Re: gcc 4.2 on 10.4 tiger: ld: unknown flag: -compatibility_version
Re: gcc 4.2 on 10.4 tiger: ld: unknown flag: -compatibility_version
- Subject: Re: gcc 4.2 on 10.4 tiger: ld: unknown flag: -compatibility_version
- From: "YJZ" <email@hidden>
- Date: Mon, 14 Jul 2008 01:34:47 +0200
Included below please find the output of both using "gcc-4.2 -v":
1) gettext 1.6 during "jhbuild bootstrap". This seems to fail regardless of whether "gcc_select" is set to 4.0 or 4.2, as long as "export CC=/usr/bin/gcc-4.2" is set.
ls -al /usr/bin/gcc
lrwxr-xr-x 1 root wheel 7 Jul 13 18:32 /usr/bin/gcc -> gcc-4.0
echo $CC
/usr/bin/gcc-4.2 -v
make
...
/usr/bin/gcc-4.2 -v -dynamiclib -o .libs/libintl.8.0.1.dylib .libs/bindtextdom.o .libs/dcgettext.o .libs/dgettext.o .libs/gettext.o .libs/finddomain.o .libs/hash-string.o .libs/loadmsgcat.o .libs/localealias.o .libs/textdomain.o .libs/l10nflist.o .libs/explodename.o .libs/dcigettext.o .libs/dcngettext.o .libs/dngettext.o .libs/ngettext.o .libs/plural.o .libs/plural-exp.o .libs/localcharset.o .libs/lock.o .libs/relocatable.o .libs/langprefs.o .libs/localename.o .libs/log.o .libs/printf.o .libs/version.o .libs/osdep.o .libs/intl-compat.o -L/Users/raymond/gtk/inst/lib /usr/lib/libiconv.dylib -lc -Wl,-headerpad_max_install_names -Wl,-framework -Wl,CoreFoundation -install_name /Users/raymond/gtk/inst/lib/libintl.8.dylib -Wl,-compatibility_version -Wl,9 -Wl,-current_version -Wl,9.1
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /Builds/apple/gcc_42-5553/build/obj/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/usr/share/man --enable-languages=c,objc,c++,obj-c++,fortran --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-gxx-include-dir=/usr/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin8 --host=i686-apple-darwin8 --target=i686-apple-darwin8
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5553)
/usr/libexec/gcc/i686-apple-darwin8/4.2.1/collect2 -dynamic -dylib -arch i386 -dylib_install_name /Users/raymond/gtk/inst/lib/libintl.8.dylib -macosx_version_min 10.4 -weak_reference_mismatches non-weak -o .libs/libintl.8.0.1.dylib -ldylib1.o -L/Users/raymond/gtk/inst/lib -L/usr/lib/gcc/i686-apple-darwin8/4.2.1 -L/usr/lib/gcc/i686-apple-darwin8/4.2.1 -L/usr/lib/gcc/i686-apple-darwin8/4.2.1/../../.. .libs/bindtextdom.o .libs/dcgettext.o .libs/dgettext.o .libs/gettext.o .libs/finddomain.o .libs/hash-string.o .libs/loadmsgcat.o .libs/localealias.o .libs/textdomain.o .libs/l10nflist.o .libs/explodename.o .libs/dcigettext.o .libs/dcngettext.o .libs/dngettext.o .libs/ngettext.o .libs/plural.o .libs/plural-exp.o .libs/localcharset.o .libs/lock.o .libs/relocatable.o .libs/langprefs.o .libs/localename.o .libs/log.o .libs/printf.o .libs/version.o .libs/osdep.o .libs/intl-compat.o /usr/lib/libiconv.dylib -lc -headerpad_max_install_names -framework CoreFoundation -compatibility_version
9 -current_version 9.1 -lgcc_s.10.4 -lgcc -lSystem
/usr/libexec/gcc/i686-apple-darwin8/4.2.1/ld: warning -L: directory name (/Users/raymond/gtk/inst/lib) does not exist
/usr/libexec/gcc/i686-apple-darwin8/4.2.1/ld: unknown flag: -compatibility_version
collect2: ld returned 1 exit status
make[3]: *** [libintl.la] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1
*** error during stage build of gettext: ########## Error running make *** [1/13]
2) subversion-1.6dev latest trunk. This only fails when "sudo gcc_select 4.2" and "export CC=/usr/bin/gcc-4.2" are set. It builds fine with "sudo gcc_select 4.0" despite "export CC=/usr/bin/gcc-4.2 -v"
sudo gcc_select 4.2
export CC="/usr/bin/gcc-4.2 -v"
make
...
./subversion/include
./subversion
/usr/local/apr/include/apr-0
/usr/local/include/neon
/usr/local/include
/usr/lib/gcc/i686-apple-darwin8/4.2.1/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
GNU C version 4.2.1 (Apple Inc. build 5553) (i686-apple-darwin8)
compiled by GNU C version 4.2.1 (Apple Inc. build 5553).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 72b671542e6a88a8eba15f950f4852d2
/usr/libexec/gcc/i686-apple-darwin8/4.2.1/as -arch i386 -force_cpusubtype_ALL -o subversion/libsvn_subr/.libs/win32_xlate.o /var/tmp//ccwJ7x7c.s
/bin/sh /Users/raymond/svn/subversion/libtool --tag=CC --silent --mode=compile /usr/bin/gcc-4.2 -v -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -g -O2 -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -I./subversion/include -I./subversion -I/usr/local/apr/include/apr-0 -I/usr/local/apr/include/apr-0 -I/usr/local/include/neon -I/usr/local/lib/include -o subversion/libsvn_subr/xml.lo -c subversion/libsvn_subr/xml.c
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /Builds/apple/gcc_42-5553/build/obj/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/usr/share/man --enable-languages=c,objc,c++,obj-c++,fortran --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-gxx-include-dir=/usr/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin8 --host=i686-apple-darwin8 --target=i686-apple-darwin8
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5553)
/usr/libexec/gcc/i686-apple-darwin8/4.2.1/cc1 -quiet -v -I./subversion/include -I./subversion -I/usr/local/apr/include/apr-0 -I/usr/local/apr/include/apr-0 -I/usr/local/include/neon -I/usr/local/lib/include -D__DYNAMIC__ -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DPIC subversion/libsvn_subr/xml.c -fPIC -feliminate-unused-debug-symbols -quiet -dumpbase xml.c -mmacosx-version-min=10.4 -mtune=core2 -auxbase-strip subversion/libsvn_subr/.libs/xml.o -g -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -version -fno-common -o /var/tmp//ccedCegS.s
ignoring nonexistent directory "/usr/lib/gcc/i686-apple-darwin8/4.2.1/../../../../i686-apple-darwin8/include"
ignoring duplicate directory "/usr/local/apr/include/apr-0"
ignoring nonexistent directory "/usr/local/lib/include"
#include "..." search starts here:
#include <...> search starts here:
./subversion/include
./subversion
/usr/local/apr/include/apr-0
/usr/local/include/neon
/usr/local/include
/usr/lib/gcc/i686-apple-darwin8/4.2.1/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
GNU C version 4.2.1 (Apple Inc. build 5553) (i686-apple-darwin8)
compiled by GNU C version 4.2.1 (Apple Inc. build 5553).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 72b671542e6a88a8eba15f950f4852d2
/usr/libexec/gcc/i686-apple-darwin8/4.2.1/as -arch i386 -force_cpusubtype_ALL -o subversion/libsvn_subr/.libs/xml.o /var/tmp//ccedCegS.s
cd subversion/libsvn_subr && /bin/sh /Users/raymond/svn/subversion/libtool --tag=CC --silent --mode=link /usr/bin/gcc-4.2 -v -g -O2 -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -L/usr/local/apr/lib -L/usr/local/lib/lib -rpath /usr/local/lib -o libsvn_subr-1.la atomic.lo auth.lo cache-inprocess.lo cache-memcache.lo cache.lo cmdline.lo compat.lo config.lo config_auth.lo config_file.lo config_win.lo constructors.lo ctype.lo date.lo dso.lo error.lo hash.lo io.lo iter.lo kitchensink.lo lock.lo log.lo md5.lo mergeinfo.lo nls.lo opt.lo path.lo pool.lo prompt.lo properties.lo quoprint.lo simple_providers.lo sorts.lo ssl_client_cert_providers.lo ssl_client_cert_pw_providers.lo ssl_server_trust_providers.lo stream.lo subst.lo svn_base64.lo svn_string.lo target.lo time.lo user.lo username_providers.lo utf.lo utf_validate.lo validate.lo version.lo win32_crashrpt.lo win32_xlate.lo xml.lo /usr/local/apr/lib/libaprutil-0.la -lexpat -liconv /usr/local/apr/l
ib/libapr-0.la -lresolv -lpthread -lz -lintl -framework Security -framework CoreFoundation -framework CoreServices
/usr/libexec/gcc/i686-apple-darwin8/4.2.1/ld: warning -L: directory name (/usr/local/lib/lib) does not exist
/usr/libexec/gcc/i686-apple-darwin8/4.2.1/ld: warning -L: directory name (/opt/build/subversion/subversion-1.3.1/apr-util/xml/expat/lib) does not exist
/usr/libexec/gcc/i686-apple-darwin8/4.2.1/ld: unknown flag: -compatibility_version
collect2: ld returned 1 exit status
make: *** [subversion/libsvn_subr/libsvn_subr-1.la] Error 1
-------- Original-Nachricht --------
> Betreff: Re: gcc 4.2 on 10.4 tiger: ld: unknown flag: -compatibility_version
> Use the -v flag to get GCC to tell you exactly what it's doing (which
> ld it's calling etc).
>
> I use the stock GCC 4.2 on Tiger all the time to build our data-
> analysis application.
>
> I vaguely recall running into this "compatibility_version" problem.
> For some reason I remember running into some command-line flags that
> took options like this: compatibility-version -- note the words
> delimited with dashes, rather than underscores...
>
> I'll dig through my MacPorts patches/hacks to see if I can dig that
> up...
>
--
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden