Re: Need Help building Sable for Arm9
Stage Iup - Fabrice & Frédéric <[email protected]> Wed, 13 Apr 2005 10:36:17 +0200
| Newsgroups | gmane.comp.java.vm.sablevm.general |
|---|---|
| Message-ID | <[email protected]> |
I'll try to summarise the install i've done: libffi, libtool, libpopt with configure CC=/usr/local/arm/3.0/bin/arm-linux-gcc --target=arm --host=arm-linux --build=i686-linux make make install next i've put zlib (without any cross options) with configure, make, make install and now in sableVm, my configure command line works fine configure CC=/usr/local/arm/3.0/bin/arm-linux-gcc LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/arm/3.0/arm-linux/include" --target=arm --host=arm-linux --build=i686-linux --prefix=$HOME/sableVM but, there is a but, make doesn't works at all, there's lines and lines of error ***** libsablevm.c:18:17: ffi.h: No such file or directory libsablevm.c:20:18: ltdl.h: No such file or directory libsablevm.c:26:18: zlib.h: No such file or directory In file included from libsablevm.c:38: types.h:1623: parse error before "ffi_type" types.h:1623: warning: no semicolon at end of struct or union types.h:1624: warning: type defaults to `int' in declaration of `ret' types.h:1624: warning: data definition has no type or storage class types.h:1625: parse error before '*' token types.h:1625: warning: type defaults to `int' in declaration of `cif' types.h:1625: warning: data definition has no type or storage class types.h:1626: parse error before '}' token types.h:1963: parse error before "lt_dlhandle" types.h:1963: warning: no semicolon at end of struct or union types.h:1966: parse error before '}' token In file included from libsablevm.c:89: local_refs.c: In function `_svmf_get_jni_frame_native_local': local_refs.c:327: dereferencing pointer to incomplete type In file included from libsablevm.c:90: lib_init.c: In function `_svmf_internal_init': lib_init.c:21: warning: implicit declaration of function `lt_dlinit' In file included from libsablevm.c:98: cl_alloc.c: At top level: cl_alloc.c:605: parse error before "ffi_cif" cl_alloc.c: In function `_svmh_cl_zalloc_native_cif': cl_alloc.c:607: `env' undeclared (first use in this function) cl_alloc.c:607: (Each undeclared identifier is reported only once cl_alloc.c:607: for each function it appears in.) cl_alloc.c:607: `class_loader_info' undeclared (first use in this function) cl_alloc.c:607: `ffi_cif' undeclared (first use in this function) cl_alloc.c:607: `ptr' undeclared (first use in this function) cl_alloc.c: At top level: cl_alloc.c:618: parse error before "ffi_cif" cl_alloc.c: In function `_svmh_cl_zfree_native_cif': cl_alloc.c:620: `env' undeclared (first use in this function) cl_alloc.c:620: `class_loader_info' undeclared (first use in this function) cl_alloc.c:620: `ffi_cif' undeclared (first use in this function) cl_alloc.c:620: `ptr' undeclared (first use in this function) cl_alloc.c: In function `_svmh_cl_zalloc_native_library': cl_alloc.c:634: sizeof applied to an incomplete type cl_alloc.c: In function `_svmh_cl_zfree_native_library': cl_alloc.c:647: sizeof applied to an incomplete type cl_alloc.c: In function `_svmh_cl_zalloc_native_method_data': cl_alloc.c:661: sizeof applied to an incomplete type cl_alloc.c: In function `_svmh_cl_zfree_native_method_data': cl_alloc.c:674: sizeof applied to an incomplete type cl_alloc.c: At top level: cl_alloc.c:954: parse error before "ffi_type" cl_alloc.c: In function `_svmh_cl_malloc_native_args': cl_alloc.c:956: `nmemb' undeclared (first use in this function) cl_alloc.c:956: `ffi_type' undeclared (first use in this function) cl_alloc.c:956: parse error before ')' token cl_alloc.c:961: `env' undeclared (first use in this function) cl_alloc.c:965: `class_loader_info' undeclared (first use in this function) cl_alloc.c:965: `ptr' undeclared (first use in this function) cl_alloc.c: At top level: cl_alloc.c:977: parse error before "ffi_type" cl_alloc.c: In function `_svmh_cl_mfree_native_args': cl_alloc.c:979: `nmemb' undeclared (first use in this function) cl_alloc.c:979: `ffi_type' undeclared (first use in this function) cl_alloc.c:979: parse error before ')' token cl_alloc.c:981: `env' undeclared (first use in this function) cl_alloc.c:981: `class_loader_info' undeclared (first use in this function) cl_alloc.c:981: `ptr' undeclared (first use in this function) In file included from libsablevm.c:103: zip_file_reader.c: In function `_svmf_zip_get_file_content': zip_file_reader.c:399: `z_stream' undeclared (first use in this function) zip_file_reader.c:399: parse error before "zip_stream" zip_file_reader.c:407: `zip_stream' undeclared (first use in this function) zip_file_reader.c:412: `Z_BINARY' undeclared (first use in this function) zip_file_reader.c:416: warning: implicit declaration of function `inflateInit2' zip_file_reader.c:416: `MAX_WBITS' undeclared (first use in this function) zip_file_reader.c:416: `Z_OK' undeclared (first use in this function) zip_file_reader.c:420: warning: implicit declaration of function `inflate' zip_file_reader.c:420: `Z_FINISH' undeclared (first use in this function) zip_file_reader.c:424: `Z_STREAM_END' undeclared (first use in this function) zip_file_reader.c:436: `Z_SYNC_FLUSH' undeclared (first use in this function) zip_file_reader.c:440: warning: implicit declaration of function `inflateEnd' In file included from libsablevm.c:105: native.c: In function `_svmf_prepare_native_method_short_name': native.c:187: dereferencing pointer to incomplete type native.c:194: dereferencing pointer to incomplete type native.c: In function `_svmf_prepare_native_method_long_name': native.c:221: dereferencing pointer to incomplete type native.c:228: dereferencing pointer to incomplete type native.c: In function `_svmf_prepare_native_method_args_count': native.c:301: dereferencing pointer to incomplete type native.c:302: dereferencing pointer to incomplete type native.c: In function `_svmf_prepare_native_method_args': native.c:319: dereferencing pointer to incomplete type native.c:319: `ffi_type_pointer' undeclared (first use in this function) native.c:328: dereferencing pointer to incomplete type native.c:329: dereferencing pointer to incomplete type native.c:329: `ffi_type_sint8' undeclared (first use in this function) native.c:336: dereferencing pointer to incomplete type native.c:337: dereferencing pointer to incomplete type native.c:337: `ffi_type_uint16' undeclared (first use in this function) native.c:344: dereferencing pointer to incomplete type native.c:345: dereferencing pointer to incomplete type native.c:345: `ffi_type_float' undeclared (first use in this function) native.c:352: dereferencing pointer to incomplete type native.c:353: dereferencing pointer to incomplete type native.c:353: `ffi_type_sint32' undeclared (first use in this function) native.c:360: dereferencing pointer to incomplete type native.c:361: dereferencing pointer to incomplete type native.c:361: `ffi_type_sint16' undeclared (first use in this function) native.c:368: dereferencing pointer to incomplete type native.c:369: dereferencing pointer to incomplete type native.c:369: `ffi_type_uint8' undeclared (first use in this function) native.c:376: dereferencing pointer to incomplete type native.c:377: dereferencing pointer to incomplete type native.c:377: `ffi_type_double' undeclared (first use in this function) native.c:384: dereferencing pointer to incomplete type native.c:385: dereferencing pointer to incomplete type native.c:385: `ffi_type_sint64' undeclared (first use in this function) native.c:392: dereferencing pointer to incomplete type native.c:393: dereferencing pointer to incomplete type native.c:403: dereferencing pointer to incomplete type native.c:404: dereferencing pointer to incomplete type native.c:426: dereferencing pointer to incomplete type native.c:428: dereferencing pointer to incomplete type native.c:429: dereferencing pointer to incomplete type native.c:435: dereferencing pointer to incomplete type native.c:437: dereferencing pointer to incomplete type native.c:438: dereferencing pointer to incomplete type native.c:444: dereferencing pointer to incomplete type native.c:446: dereferencing pointer to incomplete type native.c:447: dereferencing pointer to incomplete type native.c:453: dereferencing pointer to incomplete type native.c:455: dereferencing pointer to incomplete type native.c:456: dereferencing pointer to incomplete type native.c:462: dereferencing pointer to incomplete type native.c:464: dereferencing pointer to incomplete type native.c:465: dereferencing pointer to incomplete type native.c:471: dereferencing pointer to incomplete type native.c:473: dereferencing pointer to incomplete type native.c:474: dereferencing pointer to incomplete type native.c:480: dereferencing pointer to incomplete type native.c:482: dereferencing pointer to incomplete type native.c:483: dereferencing pointer to incomplete type native.c:489: dereferencing pointer to incomplete type native.c:491: dereferencing pointer to incomplete type native.c:492: dereferencing pointer to incomplete type native.c:498: dereferencing pointer to incomplete type native.c:500: dereferencing pointer to incomplete type native.c:501: dereferencing pointer to incomplete type native.c:507: dereferencing pointer to incomplete type native.c:509: dereferencing pointer to incomplete type native.c:510: dereferencing pointer to incomplete type native.c:516: dereferencing pointer to incomplete type native.c:518: dereferencing pointer to incomplete type native.c:519: dereferencing pointer to incomplete type native.c:519: `ffi_type_void' undeclared (first use in this function) native.c: In function `_svmf_prepare_native_ffi_args': native.c:539: dereferencing pointer to incomplete type native.c:539: dereferencing pointer to incomplete type native.c:546: dereferencing pointer to incomplete type native.c:546: dereferencing pointer to incomplete type native.c:553: dereferencing pointer to incomplete type native.c:562: warning: implicit declaration of function `ffi_prep_cif' native.c:562: dereferencing pointer to incomplete type native.c:562: `FFI_DEFAULT_ABI' undeclared (first use in this function) native.c:563: dereferencing pointer to incomplete type native.c:564: dereferencing pointer to incomplete type native.c:565: dereferencing pointer to incomplete type native.c:565: `FFI_OK' undeclared (first use in this function) native.c: In function `_svmf_bind_native_method': native.c:599: dereferencing pointer to incomplete type native.c:602: dereferencing pointer to incomplete type native.c:603: warning: implicit declaration of function `lt_dlsym' native.c:603: dereferencing pointer to incomplete type native.c:605: dereferencing pointer to incomplete type native.c:607: dereferencing pointer to incomplete type native.c:613: dereferencing pointer to incomplete type native.c:614: dereferencing pointer to incomplete type native.c:615: dereferencing pointer to incomplete type native.c:617: dereferencing pointer to incomplete type native.c:629: dereferencing pointer to incomplete type native.c:639: dereferencing pointer to incomplete type native.c:644: dereferencing pointer to incomplete type native.c:654: dereferencing pointer to incomplete type native.c:658: dereferencing pointer to incomplete type native.c:661: dereferencing pointer to incomplete type native.c:664: dereferencing pointer to incomplete type native.c:676: dereferencing pointer to incomplete type native.c: In function `_svmf_invoke_native_static': native.c:759: dereferencing pointer to incomplete type native.c:761: dereferencing pointer to incomplete type native.c:762: dereferencing pointer to incomplete type native.c:773: dereferencing pointer to incomplete type native.c:888: warning: implicit declaration of function `ffi_call' native.c:888: dereferencing pointer to incomplete type native.c:889: dereferencing pointer to incomplete type native.c:951: dereferencing pointer to incomplete type native.c: In function `_svmf_invoke_native_nonstatic': native.c:1238: dereferencing pointer to incomplete type native.c:1240: dereferencing pointer to incomplete type native.c:1241: dereferencing pointer to incomplete type native.c:1252: dereferencing pointer to incomplete type native.c:1369: dereferencing pointer to incomplete type native.c:1370: dereferencing pointer to incomplete type native.c:1432: dereferencing pointer to incomplete type In file included from libsablevm.c:114: prepare.c: In function `_svmf_prepare_noninterface_methods': prepare.c:1233: dereferencing pointer to incomplete type prepare.c:1235: dereferencing pointer to incomplete type prepare.c:1241: dereferencing pointer to incomplete type In file included from libsablevm.c:118: invoke_interface.c: In function `JNI_CreateJavaVM': invoke_interface.c:363: dereferencing pointer to incomplete type invoke_interface.c:365: dereferencing pointer to incomplete type invoke_interface.c:373: dereferencing pointer to incomplete type In file included from libsablevm.c:124: java_lang_VMRuntime.c: In function `Java_java_lang_VMRuntime_nativeLoad': java_lang_VMRuntime.c:408: `lt_dlhandle' undeclared (first use in this function) java_lang_VMRuntime.c:408: parse error before "handle" java_lang_VMRuntime.c:423: `handle' undeclared (first use in this function) java_lang_VMRuntime.c:423: warning: implicit declaration of function `lt_dlopenext' java_lang_VMRuntime.c:427: warning: implicit declaration of function `lt_dlerror' java_lang_VMRuntime.c:427: warning: assignment makes pointer from integer without a cast java_lang_VMRuntime.c:434: dereferencing pointer to incomplete type java_lang_VMRuntime.c:441: dereferencing pointer to incomplete type java_lang_VMRuntime.c:459: warning: implicit declaration of function `lt_dlclose' java_lang_VMRuntime.c:473: dereferencing pointer to incomplete type java_lang_VMRuntime.c:474: dereferencing pointer to incomplete type java_lang_VMRuntime.c:477: dereferencing pointer to incomplete type make[5]: *** [libsablevm.lo] Erreur 1 make[4]: *** [all-recursive] Erreur 1 make[3]: *** [all] Erreur 2 make[2]: *** [all-recursive] Erreur 1 make[1]: *** [all-recursive] Erreur 1 make: *** [all] Erreur 2 ***** i'll try to works on it but if someone could helps me... thx for all Frederic Kwiatkowski On 4/13/05, Stage Iup - Fabrice & Frédéric <[email protected]> wrote: > That's greats, no more error with lltdl > but now i've got an other one: > *** > checking for poptGetContext in -lpopt... no > ***ERROR: libpopt is missing > *** > > On 4/13/05, Stage Iup - Fabrice & Frédéric <[email protected]> wrote: > > ok, thanks for this, i'll try to use it asap > > but need i to cross compil it to? > > > > On 4/12/05, Peter Lovell <[email protected]> wrote: > > > You also need libltdl to be installed. It's probably best to get it as > > > part of "libtool", which will install both the tool (libtool) and the > > > library (libltdl) > > > > > > Regards.....Peter > > > > > > p.s. it's available at > > > <http://www.gnu.org/software/libtool/libtool.html> > > > > > > On Apr 12, 2005, at 12:15 PM, Stage Iup - Fabrice & Frédéric wrote: > > > > > > > Hi all > > > > i was trying to build SableVm for Arm9 in order to run an OSGI > > > > implementation > > > > but i've got some error in compiling steps > > > > the version of tools i use is libffi-sable-3325 and sablevm-1.11.3 > > > > > > > > So here we go: > > > > i've built the libffi with the following command line > > > > **************** > > > > configure CC=/usr/local/arm/3.0/bin/arm-linux-gcc --target=arm > > > > --host=arm-linux --build=i686-linux > > > > make > > > > make install > > > > **************** > > > > > > > > the result was: > > > > > > > > (...) > > > > --------------------------------------------------------------------- > > > > Libraries have been installed in: > > > > /usr/local/lib/ > > > > > > > > If you ever happen to want to link against installed libraries > > > > in a given directory, LIBDIR, you must either use libtool, and > > > > specify the full pathname of the library, or use the `-LLIBDIR' > > > > flag during linking and do at least one of the following: > > > > - add LIBDIR to the `LD_LIBRARY_PATH' environment variable > > > > during execution > > > > - add LIBDIR to the `LD_RUN_PATH' environment variable > > > > during linking > > > > - use the `-Wl,--rpath -Wl,LIBDIR' linker flag > > > > - have your system administrator add LIBDIR to `/etc/ld.so.conf' > > > > > > > > See any operating system documentation about shared libraries for > > > > more information, such as the ld(1) and ld.so(8) manual pages. > > > > ---------------------------------------------------------------------- > > > > make[2]: Rien à faire pour « install-data-am ». > > > > make[2]: Leaving directory `/home/stage/dev/SableVM/libffi-sable-3325' > > > > make[1]: Leaving directory `/home/stage/dev/SableVM/libffi-sable-3325' > > > > [root@stage-pft11 libffi-sable-3325]# cd .. > > > > > > > > > > > > > > > > So i think that this part was well done > > > > > > > > Next i tried to build the SableVm with the following command line > > > > *** > > > > configure CC=/usr/local/arm/3.0/bin/arm-linux-gcc > > > > LDFLAGS="-L/usr/local/lib" > > > > CPPFLAGS="-I/usr/local/arm/3.0/arm-linux/include" --target=arm > > > > --host=arm-linux --build=i686-linux --prefix=$HOME/sableVM > > > > *** > > > > and there is the problem > > > > **************** > > > > checking for ffi_prep_cif in -lffi... yes > > > > checking for lt_dlinit in -lltdl... no > > > > ***ERROR: libltdl is missing > > > > **************** > > > > > > > > > > > > so is there anyway to build the SableVm for my Arm9? > > > > if somebody can help me... > > > > > > > > With regards > > > > > > > > Frederic Kwiatkowski > > > > > > > > Plateforme Technologique Valence > > > > Tél : 04 75 41 88 58 > > > > > > > > _______________________________________________ > > > > SableVM-user mailing list > > > > [email protected] > > > > http://sablevm.org/lists/control/listinfo/sablevm-user > > > > > > > > > > -- > > Cordialement > > > > Fabrice & Frédéric > > -- > > Plateforme Technologique Valence > > Tél : 04 75 41 88 58 > > > > -- > Cordialement > > Fabrice & Frédéric > -- > Plateforme Technologique Valence > Tél : 04 75 41 88 58 > -- Cordialement Fabrice & Frédéric -- Plateforme Technologique Valence Tél : 04 75 41 88 58