-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 8/20/11 10:49 AM, Richard Miles wrote: > I tried to compile this package but got this:
<snip> > checking for i386-apple-darwin-g77... /sw/bin/gfortran checking > whether we are using the GNU Fortran 77 compiler... no checking > whether /sw/bin/gfortran accepts -g... no checking how to get > verbose linking output from /sw/bin/gfortran... configure: > WARNING: compilation failed > > checking for Fortran 77 libraries of /sw/bin/gfortran... > /sw/lib/gcc4.6/lib/libgfortran.dylib checking for dummy main to > link with Fortran 77 libraries... none checking for Fortran 77 > name-mangling scheme... configure: error: cannot compile a simple > Fortran program See `config.log' for more details. <snip> > Package manager version: 0.31.0 Distribution version: > selfupdate-cvs Sat Aug 20 06:34:43 2011, 10.6, i386 Trees: > local/main stable/main unstable unstable/crypto unstable/main > Xcode Version: 3.2.6-1 > > Any ideas? > > Richard Miles [email protected] > <mailto:[email protected]> > I don't reproduce it on 10.6/i386, so I'm guessing the error is due to something local on your system. The config.log file mentioned above, i.e.: /sw/src/fink.build/octave-3.0.5-7/octave-3.0.5/config.log will help us determine what that is. At the point where Fortran stuff is mentioned, I have the following: configure:10598: checking for i386-apple-darwin-g77 configure:10625: result: /sw32/bin/gfortran configure:10699: checking for Fortran 77 compiler version configure:10706: /sw32/bin/gfortran --version >&5 GNU Fortran (GCC) 4.6.1 Copyright (C) 2011 Free Software Foundation, Inc. GNU Fortran comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of GNU Fortran under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING configure:10709: $? = 0 configure:10716: /sw32/bin/gfortran -v >&5 Using built-in specs. COLLECT_GCC=/sw32/bin/gfortran COLLECT_LTO_WRAPPER=/sw32/lib/gcc4.6/libexec/gcc/i386-apple-darwin10.8.0/4.6.1/lto-wrapper Target: i386-apple-darwin10.8.0 Configured with: ../gcc-4.6.1/configure --prefix=/sw32 - --prefix=/sw32/lib/gcc4.6 --mandir=/sw32/share/man - --infodir=/sw32/lib/gcc4.6/info - --enable-languages=c,c++,fortran,lto,objc,obj-c++,java - --with-gmp=/sw32 --with-libiconv-prefix=/sw32 --with-ppl=/sw32 - --with-cloog=/sw32 --with-mpc=/sw32 --with-system-zlib - --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib - --program-suffix=-fsf-4.6 --enable-cloog-backend=isl Thread model: posix gcc version 4.6.1 (GCC) configure:10719: $? = 0 configure:10726: /sw32/bin/gfortran -V >&5 gfortran: error: unrecognized option '-V' gfortran: fatal error: no input files compilation terminated. configure:10729: $? = 1 configure:10737: checking whether we are using the GNU Fortran 77 compiler configure:10756: /sw32/bin/gfortran -c -O3 conftest.F >&5 configure:10762: $? = 0 configure:10779: result: yes configure:10785: checking whether /sw32/bin/gfortran accepts -g configure:10802: /sw32/bin/gfortran -c -g conftest.f >&5 configure:10808: $? = 0 configure:10824: result: yes configure:10854: checking how to get verbose linking output from /sw32/bin/gfortran configure:10870: /sw32/bin/gfortran -c -O3 conftest.f >&5 configure:10876: $? = 0 configure:10898: /sw32/bin/gfortran -o conftest -O3 -v - -Wl,-dead_strip_dylibs -L/sw32/opt/hdf5v1.6/lib -L/sw32/lib conftest.f - -lhdf5 -lz -lm Using built-in specs. COLLECT_GCC=/sw32/bin/gfortran COLLECT_LTO_WRAPPER=/sw32/lib/gcc4.6/libexec/gcc/i386-apple-darwin10.8.0/4.6.1/lto-wrapper Target: i386-apple-darwin10.8.0 Configured with: ../gcc-4.6.1/configure --prefix=/sw32 - --prefix=/sw32/lib/gcc4.6 --mandir=/sw32/share/man - --infodir=/sw32/lib/gcc4.6/info - --enable-languages=c,c++,fortran,lto,objc,obj-c++,java - --with-gmp=/sw32 --with-libiconv-prefix=/sw32 --with-ppl=/sw32 - --with-cloog=/sw32 --with-mpc=/sw32 --with-system-zlib - --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib - --program-suffix=-fsf-4.6 --enable-cloog-backend=isl Thread model: posix gcc version 4.6.1 (GCC) COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.6' '-o' 'conftest' '-O3' '-v' '-L/sw32/opt/hdf5v1.6/lib' '-L/sw32/lib' '-shared-libgcc' '-mtune=core2' /sw32/lib/gcc4.6/libexec/gcc/i386-apple-darwin10.8.0/4.6.1/f951 conftest.f -ffixed-form -fPIC -quiet -dumpbase conftest.f - -mmacosx-version-min=10.6 -mtune=core2 -auxbase conftest -O3 -version - -fintrinsic-modules-path /sw32/lib/gcc4.6/lib/gcc/i386-apple-darwin10.8.0/4.6.1/finclude -o /var/tmp//ccutwi29.s GNU Fortran (GCC) version 4.6.1 (i386-apple-darwin10.8.0) compiled by GNU C version 4.6.1, GMP version 5.0.2, MPFR version 3.0.1, MPC version 0.9 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 GNU Fortran (GCC) version 4.6.1 (i386-apple-darwin10.8.0) compiled by GNU C version 4.6.1, GMP version 5.0.2, MPFR version 3.0.1, MPC version 0.9 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.6' '-o' 'conftest' '-O3' '-v' '-L/sw32/opt/hdf5v1.6/lib' '-L/sw32/lib' '-shared-libgcc' '-mtune=core2' as -arch i386 -force_cpusubtype_ALL -o /var/tmp//cc1DEcy8.o /var/tmp//ccutwi29.s Reading specs from /sw32/lib/gcc4.6/lib/gcc/i386-apple-darwin10.8.0/4.6.1/../../../libgfortran.spec rename spec lib to liborig COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.6' '-o' 'conftest' '-O3' '-v' '-L/sw32/opt/hdf5v1.6/lib' '-L/sw32/lib' '-shared-libgcc' '-mtune=core2' COMPILER_PATH=/sw32/lib/gcc4.6/libexec/gcc/i386-apple-darwin10.8.0/4.6.1/:/sw32/lib/gcc4.6/libexec/gcc/i386-apple-darwin10.8.0/4.6.1/:/sw32/lib/gcc4.6/libexec/gcc/i386-apple-darwin10.8.0/:/sw32/lib/gcc4.6/lib/gcc/i386-apple-darwin10.8.0/4.6.1/:/sw32/lib/gcc4.6/lib/gcc/i386-apple-darwin10.8.0/ LIBRARY_PATH=/sw32/lib/gcc4.6/lib/gcc/i386-apple-darwin10.8.0/4.6.1/:/sw32/lib/gcc4.6/lib/gcc/i386-apple-darwin10.8.0/4.6.1/../../../:/usr/lib/ COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.6' '-o' 'conftest' '-O3' '-v' '-L/sw32/opt/hdf5v1.6/lib' '-L/sw32/lib' '-shared-libgcc' '-mtune=core2' /sw32/lib/gcc4.6/libexec/gcc/i386-apple-darwin10.8.0/4.6.1/collect2 - -dynamic -arch i386 -macosx_version_min 10.6 - -weak_reference_mismatches non-weak -o conftest -lcrt1.10.5.o - -L/sw32/opt/hdf5v1.6/lib -L/sw32/lib - -L/sw32/lib/gcc4.6/lib/gcc/i386-apple-darwin10.8.0/4.6.1 - -L/sw32/lib/gcc4.6/lib/gcc/i386-apple-darwin10.8.0/4.6.1/../../.. - -dead_strip_dylibs /var/tmp//cc1DEcy8.o -lhdf5 -lz -lgfortran - -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lquadmath -lm - -lgcc_ext.10.5 -lgcc -lSystem -v collect2 version 4.6.1 (i686 Darwin) /usr/bin/ld -dynamic -arch i386 -macosx_version_min 10.6 - -weak_reference_mismatches non-weak -o conftest -lcrt1.10.5.o - -L/sw32/opt/hdf5v1.6/lib -L/sw32/lib - -L/sw32/lib/gcc4.6/lib/gcc/i386-apple-darwin10.8.0/4.6.1 - -L/sw32/lib/gcc4.6/lib/gcc/i386-apple-darwin10.8.0/4.6.1/../../.. - -dead_strip_dylibs /var/tmp//cc1DEcy8.o -lhdf5 -lz -lgfortran - -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lquadmath -lm - -lgcc_ext.10.5 -lgcc -lSystem -v @(#)PROGRAM:ld PROJECT:ld64-97.17 Library search paths: /sw32/opt/hdf5v1.6/lib /sw32/lib /sw32/lib/gcc4.6/lib/gcc/i386-apple-darwin10.8.0/4.6.1 /sw32/lib/gcc4.6/lib /usr/lib /usr/local/lib Framework search paths: /Library/Frameworks/ /System/Library/Frameworks/ configure:10964: result: -v configure:10966: checking for Fortran 77 libraries of /sw32/bin/gfortran configure:11163: result: /sw32/lib/gcc4.6/lib/libgfortran.dylib configure:11179: checking for dummy main to link with Fortran 77 libraries configure:11223: gcc -o conftest -O3 -I/sw32/opt/hdf5v1.6/include - -I/sw32/include -I/sw32/include -Wl,-dead_strip_dylibs - -L/sw32/opt/hdf5v1.6/lib -L/sw32/lib conftest.c -lhdf5 -lz -lm /sw32/lib/gcc4.6/lib/libgfortran.dylib >&5 configure:11229: $? = 0 configure:11310: result: none configure:11347: checking for Fortran 77 name-mangling scheme configure:11366: /sw32/bin/gfortran -c -O3 conftest.f >&5 configure:11372: $? = 0 configure:11427: gcc -o conftest -O3 -I/sw32/opt/hdf5v1.6/include - -I/sw32/include -I/sw32/include -Wl,-dead_strip_dylibs - -L/sw32/opt/hdf5v1.6/lib -L/sw32/lib conftest.c cfortran_test.o -lhdf5 - -lz -lm /sw32/lib/gcc4.6/lib/libgfortran.dylib >&5 Undefined symbols: "_foobar", referenced from: _main in ccYUfTXH.o (maybe you meant: _foobar_) ld: symbol(s) not found collect2: ld returned 1 exit status configure:11433: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define OCTAVE_SOURCE 1 | #define _GNU_SOURCE 1 | #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 SEPCHAR ':' | #define SEPCHAR_STR ":" | #define __NO_MATH_INLINES 1 | #define CXX_NEW_FRIEND_TEMPLATE_DECL 1 | #define CXX_ISO_COMPLIANT_LIBRARY 1 | #define CXX_ABI unknown | #define CXX_PREPENDS_UNDERSCORE 1 | #define HAVE_LIBM 1 | #define HAVE_QHULL 1 | #define HAVE_PCRE 1 | #define HAVE_REGEXEC 1 | #define HAVE_REGEX 1 | #define HAVE_ZLIB_H 1 | #define HAVE_ZLIB 1 | #define HAVE_HDF5_H 1 | #define HAVE_HDF5 1 | #define HAVE_H5GGET_NUM_OBJS 1 | #define HAVE_FFTW3 1 | #define HAVE_GLPK_H 1 | #define HAVE_GLPK 1 | #define HAVE_CURL_CURL_H 1 | #define HAVE_CURL 1 | #define HAVE_IEEE754_DATA_FORMAT 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 foobar (); | #ifdef F77_DUMMY_MAIN | | # ifdef __cplusplus | extern "C" | # endif | int F77_DUMMY_MAIN() { return 1; } | | #endif | int | main () | { | return foobar (); | ; | return 0; | } configure:11427: gcc -o conftest -O3 -I/sw32/opt/hdf5v1.6/include - -I/sw32/include -I/sw32/include -Wl,-dead_strip_dylibs - -L/sw32/opt/hdf5v1.6/lib -L/sw32/lib conftest.c cfortran_test.o -lhdf5 - -lz -lm /sw32/lib/gcc4.6/lib/libgfortran.dylib >&5 configure:11433: $? = 0 configure:11512: gcc -o conftest -O3 -I/sw32/opt/hdf5v1.6/include - -I/sw32/include -I/sw32/include -Wl,-dead_strip_dylibs - -L/sw32/opt/hdf5v1.6/lib -L/sw32/lib conftest.c cfortran_test.o -lhdf5 - -lz -lm /sw32/lib/gcc4.6/lib/libgfortran.dylib >&5 configure:11518: $? = 0 configure:11575: result: lower case, underscore, no extra underscore configure:11695: checking whether /sw32/bin/gfortran accepts -mieee-fp configure:11719: /sw32/bin/gfortran -o conftest -O3 -mieee-fp - -Wl,-dead_strip_dylibs -L/sw32/opt/hdf5v1.6/lib -L/sw32/lib conftest.f - -lhdf5 -lz -lm >&5 configure:11725: $? = 0 configure:11752: result: yes configure:11756: result: adding -mieee-fp to FFLAGS configure:11991: defining FFLAGS to be -O3 -mieee-fp configure:12025: checking whether /sw32/bin/gfortran accepts -ffloat-store configure:12049: /sw32/bin/gfortran -o conftest -O3 -mieee-fp - -ffloat-store -Wl,-dead_strip_dylibs -L/sw32/opt/hdf5v1.6/lib - -L/sw32/lib conftest.f -lhdf5 -lz -lm >&5 configure:12055: $? = 0 configure:12082: result: yes configure:12085: result: setting F77_FLOAT_STORE_FLAG to -ffloat-store - -- Alexander Hansen, Ph.D. Fink User Liaison http://finkakh.wordpress.com/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk5QJ2cACgkQB8UpO3rKjQ8m4wCgnLxxnBbOTYFVmO6OakLKybH9 EU0AoKIKT8/2DQvxvMrPcEuyzU+R45zw =mWgJ -----END PGP SIGNATURE----- ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ Fink-users mailing list [email protected] List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users
