Building jamvm-1.5.4 from ports fails on libffi. This is installed on an SD-card made specifically for use on the Raspberry Pi: http://www.peach.ne.jp/archives/rpi/ http://www.peach.ne.jp/archives/rpi/freebsd-pi-clang-20130105.img.gz `make` Output: root@raspberry-pi:/usr/ports/java/jamvm # make ===> jamvm-1.5.4 depends on executable: zip - found ===> jamvm-1.5.4 depends on executable: gmake - found ===> jamvm-1.5.4 depends on executable: pkgconf - found ===> jamvm-1.5.4 depends on shared library: ffi - found ===> Configuring for jamvm-1.5.4 ===> FreeBSD 10 autotools fix applied to /usr/ports/java/jamvm/work/jamvm-1.5.4/aclocal.m4 ===> FreeBSD 10 autotools fix applied to /usr/ports/java/jamvm/work/jamvm-1.5.4/configure ===> FreeBSD 10 autotools fix applied to /usr/ports/java/jamvm/work/jamvm-1.5.4/acinclude.m4 ===> FreeBSD 10 autotools fix applied to /usr/ports/java/jamvm/work/jamvm-1.5.4/libtool checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... nawk checking whether gmake sets $(MAKE)... yes checking build system type... arm-portbld-freebsd10.0 checking host system type... arm-portbld-freebsd10.0 checking for style of include used by gmake... GNU checking for gcc... cc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking dependency style of cc... gcc3 checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognize dependent libraries... unknown checking how to run the C preprocessor... cpp checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking whether we are using the GNU C++ compiler... yes checking whether c++ accepts -g... yes checking dependency style of c++... gcc3 checking how to run the C++ preprocessor... c++ -E checking for g77... no checking for xlf... no checking for f77... no checking for frt... no checking for pgf77... no checking for cf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for xlf90... no checking for f90... no checking for pgf90... no checking for pghpf... no checking for epcf90... no checking for gfortran... no checking for g95... no checking for xlf95... no checking for f95... no checking for fort... no checking for ifort... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for ftn... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... (cached) 262144 checking command to parse /usr/bin/nm -B output from cc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if cc supports -fno-rtti -fno-exceptions... yes checking for cc option to produce PIC... -fPIC checking if cc PIC flag -fPIC works... yes checking if cc static flag -static works... yes checking if cc supports -c -o file.o... yes checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... no checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... no checking whether to build shared libraries... no checking whether to build static libraries... yes configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by c++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the c++ linker (/usr/bin/ld) supports shared libraries... no checking for c++ option to produce PIC... -fPIC checking if c++ PIC flag -fPIC works... yes checking if c++ static flag -static works... yes checking if c++ supports -c -o file.o... yes checking whether the c++ linker (/usr/bin/ld) supports shared libraries... no checking dynamic linker characteristics... no (cached) (cached) checking how to hardcode library paths into programs... immediate appending configuration tag "F77" to libtool checking for gcc... (cached) cc checking whether we are using the GNU C compiler... (cached) yes checking whether cc accepts -g... (cached) yes checking for cc option to accept ISO C89... (cached) none needed checking dependency style of cc... (cached) gcc3 checking dependency style of cc... gcc3 checking for ecj... no checking for jikes... no checking for gcj... no checking for javac... no checking for pthread_self in -lthr... yes checking for fmod in -lm... yes checking for inflate in -lz... yes checking for ffi_call in -lffi... no ===> Script "configure" failed unexpectedly. Please report the problem to java@FreeBSD.org [maintainer] and attach the "/usr/ports/java/jamvm/work/jamvm-1.5.4/config.log" including the output of the failure of your make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. a /usr/local/sbin/pkg info -g -Ea). *** [do-configure] Error code 1 Stop in /usr/ports/java/jamvm. *** [build] Error code 1 Stop in /usr/ports/java/jamvm. `pkg info -g -Ea` output: root@raspberry-pi:/usr/ports/java/jamvm # /usr/local/sbin/pkg info -g -Ea gettext-0.18.1.1 gmake-3.82_1 libffi-3.0.9 libiconv-1.14 libtool-2.4.2 pkg-1.0.4_1 pkgconf-0.8.9 zip-3.0 `find /usr | grep libffi` output: /usr/local/info/libffi.info /usr/local/lib/libffi-3.0.9 /usr/local/lib/libffi-3.0.9/include /usr/local/lib/libffi-3.0.9/include/ffi.h /usr/local/lib/libffi-3.0.9/include/ffitarget.h /usr/local/lib/libffi.so.5 /usr/local/lib/libffi.so /usr/local/lib/libffi.la /usr/local/lib/libffi.a /usr/local/libdata/pkgconfig/libffi.pc [omitted all /usr/ports matches] How-To-Repeat: from a newly dd'ed image: portsnap fetch portsnap extract portsnap update cd /usr/ports/java/jamvm make config-recursive make
This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.63. Invocation command line was $ ./configure --with-classpath-install-dir=/usr/local --enable-ffi --prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/ --build=arm-portbld-freebsd10.0 ## --------- ## ## Platform. ## ## --------- ## hostname = raspberry-pi.local uname -m = arm uname -r = 10.0-CURRENT uname -s = FreeBSD uname -v = FreeBSD 10.0-CURRENT #0 r244906M: Sat Jan 5 01:10:27 JST 2013 aoyama@fbs.local:/usr/obj-rpi-clang/arm.armv6/usr/src/sys/RPI-B-test12 /usr/bin/uname -p = arm /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /sbin PATH: /bin PATH: /usr/sbin PATH: /usr/bin PATH: /usr/games PATH: /usr/local/sbin PATH: /usr/local/bin PATH: /root/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:2149: checking for a BSD-compatible install configure:2217: result: /usr/bin/install -c -o root -g wheel configure:2228: checking whether build environment is sane configure:2271: result: yes configure:2296: checking for a thread-safe mkdir -p configure:2335: result: ./install-sh -c -d configure:2348: checking for gawk configure:2378: result: no configure:2348: checking for mawk configure:2378: result: no configure:2348: checking for nawk configure:2364: found /usr/bin/nawk configure:2375: result: nawk configure:2386: checking whether gmake sets $(MAKE) configure:2408: result: yes configure:2602: checking build system type configure:2620: result: arm-portbld-freebsd10.0 configure:2642: checking host system type configure:2657: result: arm-portbld-freebsd10.0 configure:3120: checking for style of include used by gmake configure:3148: result: GNU configure:3218: checking for gcc configure:3245: result: cc configure:3477: checking for C compiler version configure:3485: cc --version >&5 FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221 Target: armv6-unknown-freebsd10.0 Thread model: posix configure:3489: $? = 0 configure:3496: cc -v >&5 FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221 Target: armv6-unknown-freebsd10.0 Thread model: posix configure:3500: $? = 0 configure:3507: cc -V >&5 cc: error: argument to '-V' is missing (expected 1 value) cc: error: no input files configure:3511: $? = 1 configure:3534: checking for C compiler default output file name configure:3556: cc -O -pipe conftest.c >&5 configure:3560: $? = 0 configure:3598: result: a.out configure:3617: checking whether the C compiler works configure:3627: ./a.out configure:3631: $? = 0 configure:3650: result: yes configure:3657: checking whether we are cross compiling configure:3659: result: no configure:3662: checking for suffix of executables configure:3669: cc -o conftest -O -pipe conftest.c >&5 configure:3673: $? = 0 configure:3699: result: configure:3705: checking for suffix of object files configure:3731: cc -c -O -pipe conftest.c >&5 configure:3735: $? = 0 configure:3760: result: o configure:3764: checking whether we are using the GNU C compiler configure:3793: cc -c -O -pipe conftest.c >&5 configure:3800: $? = 0 configure:3817: result: yes configure:3826: checking whether cc accepts -g configure:3856: cc -c -g conftest.c >&5 configure:3863: $? = 0 configure:3964: result: yes configure:3981: checking for cc option to accept ISO C89 configure:4055: cc -c -O -pipe conftest.c >&5 configure:4062: $? = 0 configure:4085: result: none needed configure:4105: checking dependency style of cc configure:4196: result: gcc3 configure:4211: checking for a sed that does not truncate output configure:4267: result: /usr/bin/sed configure:4270: checking for grep that handles long lines and -e configure:4330: result: /usr/bin/grep configure:4335: checking for egrep configure:4399: result: /usr/bin/grep -E configure:4415: checking for ld used by cc configure:4482: result: /usr/bin/ld configure:4491: checking if the linker (/usr/bin/ld) is GNU ld configure:4506: result: yes configure:4511: checking for /usr/bin/ld option to reload object files configure:4518: result: -r configure:4536: checking for BSD-compatible nm configure:4585: result: /usr/bin/nm -B configure:4589: checking whether ln -s works configure:4593: result: yes configure:4600: checking how to recognize dependent libraries configure:4786: result: unknown configure:5035: checking how to run the C preprocessor configure:5153: result: cpp configure:5182: cpp conftest.c configure:5189: $? = 0 configure:5220: cpp conftest.c conftest.c:16:10: fatal error: 'ac_nonexistent.h' file not found #include <ac_nonexistent.h> ^ 1 error generated. configure:5227: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "jamvm" | #define VERSION "1.5.4" | #define THREADED 1 | #define USE_CACHE 1 | #define DIRECT 1 | #define INLINING 1 | #define CLASSPATH_INSTALL_DIR "/usr/local" | #define INSTALL_DIR "/usr/local" | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:5267: checking for ANSI C header files configure:5297: cc -c -O -pipe conftest.c >&5 configure:5304: $? = 0 configure:5403: cc -o conftest -O -pipe conftest.c >&5 configure:5407: $? = 0 configure:5413: ./conftest configure:5417: $? = 0 configure:5435: result: yes configure:5459: checking for sys/types.h configure:5480: cc -c -O -pipe conftest.c >&5 configure:5487: $? = 0 configure:5504: result: yes configure:5459: checking for sys/stat.h configure:5480: cc -c -O -pipe conftest.c >&5 configure:5487: $? = 0 configure:5504: result: yes configure:5459: checking for stdlib.h configure:5480: cc -c -O -pipe conftest.c >&5 configure:5487: $? = 0 configure:5504: result: yes configure:5459: checking for string.h configure:5480: cc -c -O -pipe conftest.c >&5 configure:5487: $? = 0 configure:5504: result: yes configure:5459: checking for memory.h configure:5480: cc -c -O -pipe conftest.c >&5 configure:5487: $? = 0 configure:5504: result: yes configure:5459: checking for strings.h configure:5480: cc -c -O -pipe conftest.c >&5 configure:5487: $? = 0 configure:5504: result: yes configure:5459: checking for inttypes.h configure:5480: cc -c -O -pipe conftest.c >&5 configure:5487: $? = 0 configure:5504: result: yes configure:5459: checking for stdint.h configure:5480: cc -c -O -pipe conftest.c >&5 configure:5487: $? = 0 configure:5504: result: yes configure:5459: checking for unistd.h configure:5480: cc -c -O -pipe conftest.c >&5 configure:5487: $? = 0 configure:5504: result: yes configure:5534: checking dlfcn.h usability configure:5551: cc -c -O -pipe conftest.c >&5 configure:5558: $? = 0 configure:5572: result: yes configure:5576: checking dlfcn.h presence configure:5591: cpp conftest.c configure:5598: $? = 0 configure:5612: result: yes configure:5640: checking for dlfcn.h configure:5649: result: yes configure:5776: checking for C++ compiler version configure:5784: c++ --version >&5 FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221 Target: armv6-unknown-freebsd10.0 Thread model: posix configure:5788: $? = 0 configure:5795: c++ -v >&5 FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221 Target: armv6-unknown-freebsd10.0 Thread model: posix configure:5799: $? = 0 configure:5806: c++ -V >&5 c++: error: argument to '-V' is missing (expected 1 value) c++: error: no input files configure:5810: $? = 1 configure:5813: checking whether we are using the GNU C++ compiler configure:5842: c++ -c -O -pipe conftest.cpp >&5 configure:5849: $? = 0 configure:5866: result: yes configure:5875: checking whether c++ accepts -g configure:5905: c++ -c -g conftest.cpp >&5 configure:5912: $? = 0 configure:6013: result: yes configure:6038: checking dependency style of c++ configure:6129: result: gcc3 configure:6154: checking how to run the C++ preprocessor configure:6190: c++ -E conftest.cpp configure:6197: $? = 0 configure:6228: c++ -E conftest.cpp conftest.cpp:27:10: fatal error: 'ac_nonexistent.h' file not found #include <ac_nonexistent.h> ^ 1 error generated. configure:6235: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "jamvm" | #define VERSION "1.5.4" | #define THREADED 1 | #define USE_CACHE 1 | #define DIRECT 1 | #define INLINING 1 | #define CLASSPATH_INSTALL_DIR "/usr/local" | #define INSTALL_DIR "/usr/local" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:6268: result: c++ -E configure:6297: c++ -E conftest.cpp configure:6304: $? = 0 configure:6335: c++ -E conftest.cpp conftest.cpp:27:10: fatal error: 'ac_nonexistent.h' file not found #include <ac_nonexistent.h> ^ 1 error generated. configure:6342: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "jamvm" | #define VERSION "1.5.4" | #define THREADED 1 | #define USE_CACHE 1 | #define DIRECT 1 | #define INLINING 1 | #define CLASSPATH_INSTALL_DIR "/usr/local" | #define INSTALL_DIR "/usr/local" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | /* end confdefs.h. */ | #include <ac_nonexistent.h> configure:6437: checking for g77 configure:6467: result: no configure:6437: checking for xlf configure:6467: result: no configure:6437: checking for f77 configure:6467: result: no configure:6437: checking for frt configure:6467: result: no configure:6437: checking for pgf77 configure:6467: result: no configure:6437: checking for cf77 configure:6467: result: no configure:6437: checking for fort77 configure:6467: result: no configure:6437: checking for fl32 configure:6467: result: no configure:6437: checking for af77 configure:6467: result: no configure:6437: checking for xlf90 configure:6467: result: no configure:6437: checking for f90 configure:6467: result: no configure:6437: checking for pgf90 configure:6467: result: no configure:6437: checking for pghpf configure:6467: result: no configure:6437: checking for epcf90 configure:6467: result: no configure:6437: checking for gfortran configure:6467: result: no configure:6437: checking for g95 configure:6467: result: no configure:6437: checking for xlf95 configure:6467: result: no configure:6437: checking for f95 configure:6467: result: no configure:6437: checking for fort configure:6467: result: no configure:6437: checking for ifort configure:6467: result: no configure:6437: checking for ifc configure:6467: result: no configure:6437: checking for efc configure:6467: result: no configure:6437: checking for pgf95 configure:6467: result: no configure:6437: checking for lf95 configure:6467: result: no configure:6437: checking for ftn configure:6467: result: no configure:6490: checking for Fortran 77 compiler version configure:6498: --version >&5 eval: --version: not found configure:6502: $? = 127 configure:6509: -v >&5 eval: -v: not found configure:6513: $? = 127 configure:6520: -V >&5 eval: -V: not found configure:6524: $? = 127 configure:6532: checking whether we are using the GNU Fortran 77 compiler configure:6551: -c conftest.F >&5 eval: -c: not found configure:6558: $? = 127 configure: failed program was: | program main | #ifndef __GNUC__ | choke me | #endif | | end configure:6575: result: no configure:6581: checking whether accepts -g configure:6598: -c -g conftest.f >&5 eval: -c: not found configure:6605: $? = 127 configure: failed program was: | program main | | end configure:6621: result: no configure:6654: checking the maximum length of command line arguments configure:6766: result: 262144 configure:6778: checking command to parse /usr/bin/nm -B output from cc object configure:6883: cc -c -O -pipe conftest.c >&5 configure:6886: $? = 0 configure:6890: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' \> conftest.nm configure:6893: $? = 0 configure:6945: cc -o conftest -O -pipe conftest.c conftstm.o >&5 configure:6948: $? = 0 configure:6986: result: ok configure:6990: checking for objdir configure:7005: result: .libs configure:7097: checking for ar configure:7113: found /usr/bin/ar configure:7124: result: ar configure:7189: checking for ranlib configure:7205: found /usr/bin/ranlib configure:7216: result: ranlib configure:7281: checking for strip configure:7297: found /usr/bin/strip configure:7308: result: strip configure:7898: checking if cc supports -fno-rtti -fno-exceptions configure:7916: cc -c -O -pipe -fno-rtti -fno-exceptions conftest.c >&5 configure:7920: $? = 0 configure:7933: result: yes configure:7948: checking for cc option to produce PIC configure:8180: result: -fPIC configure:8188: checking if cc PIC flag -fPIC works configure:8206: cc -c -O -pipe -fPIC -DPIC conftest.c >&5 configure:8210: $? = 0 configure:8223: result: yes configure:8251: checking if cc static flag -static works configure:8279: result: yes configure:8289: checking if cc supports -c -o file.o configure:8310: cc -c -O -pipe -o out/conftest2.o conftest.c >&5 configure:8314: $? = 0 configure:8336: result: yes configure:8362: checking whether the cc linker (/usr/bin/ld) supports shared libraries configure:9350: result: yes configure:9371: checking whether -lc should be explicitly linked in configure:9376: cc -c -O -pipe conftest.c >&5 configure:9379: $? = 0 configure:9394: cc -shared conftest.o -v -Wl,-soname -Wl,conftest -o conftest 2\>\&1 \| grep -lc \>/dev/null 2\>\&1 configure:9397: $? = 0 configure:9409: result: no configure:9417: checking dynamic linker characteristics configure:10019: result: no configure:10043: checking how to hardcode library paths into programs configure:10068: result: immediate configure:10082: checking whether stripping libraries is possible configure:10087: result: yes configure:10917: checking if libtool supports shared libraries configure:10919: result: no configure:10922: checking whether to build shared libraries configure:10943: result: no configure:10946: checking whether to build static libraries configure:10950: result: yes configure:11044: creating libtool configure:11637: checking for ld used by c++ configure:11704: result: /usr/bin/ld configure:11713: checking if the linker (/usr/bin/ld) is GNU ld configure:11728: result: yes configure:11779: checking whether the c++ linker (/usr/bin/ld) supports shared libraries configure:12733: result: no configure:12750: c++ -c -O -pipe conftest.cpp >&5 configure:12753: $? = 0 configure:12909: checking for c++ option to produce PIC configure:13193: result: -fPIC configure:13201: checking if c++ PIC flag -fPIC works configure:13219: c++ -c -O -pipe -fPIC -DPIC conftest.cpp >&5 configure:13223: $? = 0 configure:13236: result: yes configure:13264: checking if c++ static flag -static works configure:13292: result: yes configure:13302: checking if c++ supports -c -o file.o configure:13323: c++ -c -O -pipe -o out/conftest2.o conftest.cpp >&5 configure:13327: $? = 0 configure:13349: result: yes configure:13375: checking whether the c++ linker (/usr/bin/ld) supports shared libraries configure:13401: result: no configure:13468: checking dynamic linker characteristics configure:14018: result: no configure:14042: checking how to hardcode library paths into programs configure:14067: result: immediate configure:20353: checking for gcc configure:20380: result: cc configure:20612: checking for C compiler version configure:20620: cc --version >&5 FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221 Target: armv6-unknown-freebsd10.0 Thread model: posix configure:20624: $? = 0 configure:20631: cc -v >&5 FreeBSD clang version 3.2 (tags/RELEASE_32/final 170710) 20121221 Target: armv6-unknown-freebsd10.0 Thread model: posix configure:20635: $? = 0 configure:20642: cc -V >&5 cc: error: argument to '-V' is missing (expected 1 value) cc: error: no input files configure:20646: $? = 1 configure:20649: checking whether we are using the GNU C compiler configure:20702: result: yes configure:20711: checking whether cc accepts -g configure:20849: result: yes configure:20866: checking for cc option to accept ISO C89 configure:20970: result: none needed configure:20990: checking dependency style of cc configure:21081: result: gcc3 configure:21105: checking dependency style of cc configure:21196: result: gcc3 configure:21216: checking for ecj configure:21246: result: no configure:21216: checking for jikes configure:21246: result: no configure:21216: checking for gcj configure:21246: result: no configure:21216: checking for javac configure:21246: result: no configure:21257: checking for pthread_self in -lthr configure:21292: cc -o conftest -O -pipe conftest.c -lthr >&5 configure:21299: $? = 0 configure:21320: result: yes configure:21415: checking for fmod in -lm configure:21450: cc -o conftest -O -pipe conftest.c -lm -lthr >&5 configure:21457: $? = 0 configure:21478: result: yes configure:21578: checking for inflate in -lz configure:21613: cc -o conftest -O -pipe conftest.c -lz -lm -lthr >&5 configure:21620: $? = 0 configure:21641: result: yes configure:21660: checking for ffi_call in -lffi configure:21702: cc -o conftest -I/usr/local/lib/libffi-3.0.9/include -O -pipe -L/usr/local/lib conftest.c -lffi -lz -lm -lthr >&5 /usr/local/lib/libffi.so: undefined reference to `__clear_cache' cc: error: linker command failed with exit code 1 (use -v to see invocation) configure:21709: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "jamvm" | #define VERSION "1.5.4" | #define THREADED 1 | #define USE_CACHE 1 | #define DIRECT 1 | #define INLINING 1 | #define CLASSPATH_INSTALL_DIR "/usr/local" | #define INSTALL_DIR "/usr/local" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define HAVE_LIBTHR 1 | #define HAVE_LIBM 1 | #define HAVE_LIBZ 1 | /* end confdefs.h. */ | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char ffi_call (); | int | main () | { | return ffi_call (); | ; | return 0; | } configure:21732: result: no configure:21742: error: libffi is missing ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=arm-portbld-freebsd10.0 ac_cv_c_compiler_gnu=yes ac_cv_cxx_compiler_gnu=yes ac_cv_env_CCASFLAGS_set='' ac_cv_env_CCASFLAGS_value='' ac_cv_env_CCAS_set='' ac_cv_env_CCAS_value='' ac_cv_env_CCC_set='' ac_cv_env_CCC_value='' ac_cv_env_CC_set=set ac_cv_env_CC_value=cc ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-O -pipe' ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value='' ac_cv_env_CPP_set=set ac_cv_env_CPP_value=cpp ac_cv_env_CXXCPP_set='' ac_cv_env_CXXCPP_value='' ac_cv_env_CXXFLAGS_set=set ac_cv_env_CXXFLAGS_value='-O -pipe' ac_cv_env_CXX_set=set ac_cv_env_CXX_value=c++ ac_cv_env_F77_set='' ac_cv_env_F77_value='' ac_cv_env_FFLAGS_set='' ac_cv_env_FFLAGS_value='' ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value='' ac_cv_env_LIBS_set='' ac_cv_env_LIBS_value='' ac_cv_env_build_alias_set=set ac_cv_env_build_alias_value=arm-portbld-freebsd10.0 ac_cv_env_host_alias_set='' ac_cv_env_host_alias_value='' ac_cv_env_target_alias_set='' ac_cv_env_target_alias_value='' ac_cv_f77_compiler_gnu=no ac_cv_header_dlfcn_h=yes ac_cv_header_inttypes_h=yes ac_cv_header_memory_h=yes ac_cv_header_stdc=yes ac_cv_header_stdint_h=yes ac_cv_header_stdlib_h=yes ac_cv_header_string_h=yes ac_cv_header_strings_h=yes ac_cv_header_sys_stat_h=yes ac_cv_header_sys_types_h=yes ac_cv_header_unistd_h=yes ac_cv_host=arm-portbld-freebsd10.0 ac_cv_lib_ffi_ffi_call=no ac_cv_lib_m_fmod=yes ac_cv_lib_thr_pthread_self=yes ac_cv_lib_z_inflate=yes ac_cv_objext=o ac_cv_path_EGREP='/usr/bin/grep -E' ac_cv_path_GREP=/usr/bin/grep ac_cv_prog_AWK=nawk ac_cv_prog_CPP=cpp ac_cv_prog_CXXCPP='c++ -E' ac_cv_prog_ac_ct_AR=ar ac_cv_prog_ac_ct_CC=cc ac_cv_prog_ac_ct_RANLIB=ranlib ac_cv_prog_ac_ct_STRIP=strip ac_cv_prog_cc_c89='' ac_cv_prog_cc_g=yes ac_cv_prog_cxx_g=yes ac_cv_prog_f77_g=no ac_cv_prog_make_gmake_set=yes am_cv_CCAS_dependencies_compiler_type=gcc3 am_cv_CC_dependencies_compiler_type=gcc3 am_cv_CXX_dependencies_compiler_type=gcc3 lt_cv_deplibs_check_method=unknown lt_cv_file_magic_cmd='$MAGIC_CMD' lt_cv_file_magic_test_file='' lt_cv_ld_reload_flag=-r lt_cv_objdir=.libs lt_cv_path_LD=/usr/bin/ld lt_cv_path_LDCXX=/usr/bin/ld lt_cv_path_NM='/usr/bin/nm -B' lt_cv_path_SED=/usr/bin/sed lt_cv_prog_compiler_c_o=yes lt_cv_prog_compiler_c_o_CXX=yes lt_cv_prog_compiler_pic_works=yes lt_cv_prog_compiler_pic_works_CXX=yes lt_cv_prog_compiler_rtti_exceptions=yes lt_cv_prog_compiler_static_works=yes lt_cv_prog_compiler_static_works_CXX=yes lt_cv_prog_gnu_ld=yes lt_cv_prog_gnu_ldcxx=yes lt_cv_sys_global_symbol_pipe='sed -n -e '\''s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p'\' lt_cv_sys_global_symbol_to_c_name_address='sed -n -e '\''s/^: \([^ ]*\) $/ {\"\1\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr) \&\2},/p'\' lt_cv_sys_global_symbol_to_cdecl='sed -n -e '\''s/^. .* \(.*\)$/extern int \1;/p'\' lt_cv_sys_lib_dlsearch_path_spec='/lib /usr/lib' lt_cv_sys_lib_search_path_spec=/usr/lib lt_cv_sys_max_cmd_len=262144 lt_lt_cv_prog_compiler_c_o='"yes"' lt_lt_cv_prog_compiler_c_o_CXX='"yes"' lt_lt_cv_sys_global_symbol_pipe='"sed -n -e '\''s/^.*[ ]\\([ABCDGIRSTW][ABCDGIRSTW]*\\)[ ][ ]*\\([_A-Za-z][_A-Za-z0-9]*\\)\$/\\1 \\2 \\2/p'\''"' lt_lt_cv_sys_global_symbol_to_c_name_address='"sed -n -e '\''s/^: \\([^ ]*\\) \$/ {\\\"\\1\\\", (lt_ptr) 0},/p'\'' -e '\''s/^[BCDEGRST] \\([^ ]*\\) \\([^ ]*\\)\$/ {\"\\2\", (lt_ptr) \\&\\2},/p'\''"' lt_lt_cv_sys_global_symbol_to_cdecl='"sed -n -e '\''s/^. .* \\(.*\\)\$/extern int \\1;/p'\''"' ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='${SHELL} /usr/ports/java/jamvm/work/jamvm-1.5.4/missing --run aclocal-1.10' ALLOCA='' AMDEPBACKSLASH='\' AMDEP_FALSE='#' AMDEP_TRUE='' AMTAR='${SHELL} /usr/ports/java/jamvm/work/jamvm-1.5.4/missing --run tar' AR='ar' AUTOCONF='${SHELL} /usr/ports/java/jamvm/work/jamvm-1.5.4/missing --run autoconf' AUTOHEADER='${SHELL} /usr/ports/java/jamvm/work/jamvm-1.5.4/missing --run autoheader' AUTOMAKE='${SHELL} /usr/ports/java/jamvm/work/jamvm-1.5.4/missing --run automake-1.10' AWK='nawk' CC='cc' CCAS='cc' CCASDEPMODE='depmode=gcc3' CCASFLAGS='-O -pipe' CCDEPMODE='depmode=gcc3' CFLAGS='-O -pipe' COMPILE_TIME_RELOC_CHECKS_FALSE='#' COMPILE_TIME_RELOC_CHECKS_TRUE='' CPP='cpp' CPPFLAGS='' CXX='c++' CXXCPP='c++ -E' CXXDEPMODE='depmode=gcc3' CXXFLAGS='-O -pipe' CYGPATH_W='echo' DEFS='' DEPDIR='.deps' DSYMUTIL='' ECHO='echo' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='/usr/bin/grep -E' EXEEXT='' F77='' FFLAGS='' GREP='/usr/bin/grep' INSTALL_DATA='install -o root -g wheel -m 444' INSTALL_PROGRAM='install -s -o root -g wheel -m 555' INSTALL_SCRIPT='install -o root -g wheel -m 555' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' JAVAC='' LDFLAGS='' LIBOBJS='' LIBS='-lz -lm -lthr ' LIBTOOL='$(SHELL) $(top_builddir)/libtool' LN_S='ln -s' LTLIBOBJS='' MAINT='' MAINTAINER_MODE_FALSE='' MAINTAINER_MODE_TRUE='' MAKEINFO='${SHELL} /usr/ports/java/jamvm/work/jamvm-1.5.4/missing --run makeinfo' MKDIR_P='./install-sh -c -d' NMEDIT='' OBJEXT='o' PACKAGE='jamvm' PACKAGE_BUGREPORT='' PACKAGE_NAME='' PACKAGE_STRING='' PACKAGE_TARNAME='' PACKAGE_VERSION='' PATH_SEPARATOR=':' RANLIB='ranlib' SED='/usr/bin/sed' SET_MAKE='' SHELL='/bin/sh' STRIP='strip' VERSION='1.5.4' ac_ct_CC='cc' ac_ct_CXX='' ac_ct_F77='' am__fastdepCCAS_FALSE='#' am__fastdepCCAS_TRUE='' am__fastdepCC_FALSE='#' am__fastdepCC_TRUE='' am__fastdepCXX_FALSE='#' am__fastdepCXX_TRUE='' am__include='include' am__isrc='' am__leading_dot='.' am__quote='' am__tar='${AMTAR} chof - "$$tardir"' am__untar='${AMTAR} xf -' arch='arm' bindir='${exec_prefix}/bin' build='arm-portbld-freebsd10.0' build_alias='arm-portbld-freebsd10.0' build_cpu='arm' build_os='freebsd10.0' build_vendor='portbld' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE}' dvidir='${docdir}' exec_prefix='NONE' host='arm-portbld-freebsd10.0' host_alias='' host_cpu='arm' host_os='bsd' host_vendor='portbld' htmldir='${docdir}' includedir='${prefix}/include' infodir='/usr/local/info' install_sh='$(SHELL) /usr/ports/java/jamvm/work/jamvm-1.5.4/install-sh' interp_cflags='-fno-reorder-blocks' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='/usr/local/man' mkdir_p='$(top_builddir)/./install-sh -c -d' oldincludedir='/usr/include' os='bsd' pdfdir='${docdir}' prefix='/usr/local' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='' use_zip_no='' use_zip_yes='' with_classpath_install_dir='/usr/local' ## ----------- ## ## confdefs.h. ## ## ----------- ## #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define PACKAGE "jamvm" #define VERSION "1.5.4" #define THREADED 1 #define USE_CACHE 1 #define DIRECT 1 #define INLINING 1 #define CLASSPATH_INSTALL_DIR "/usr/local" #define INSTALL_DIR "/usr/local" #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_DLFCN_H 1 #define HAVE_LIBTHR 1 #define HAVE_LIBM 1 #define HAVE_LIBZ 1 configure: exit 1
Is this bug still relevant?
/usr/local/lib/libffi.so: undefined reference to `__clear_cache' ^^ this is the problem you were actually having. This is fixed on armv6 in head and I have compiled and tested libffi.