public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/33851] New: gcc-4.3 mishandles -compatibility_version on OS X
@ 2007-10-21 15:09 benoit dot hudson at gmail dot com
2007-10-21 15:15 ` [Bug driver/33851] " benoit dot hudson at gmail dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: benoit dot hudson at gmail dot com @ 2007-10-21 15:09 UTC (permalink / raw)
To: gcc-bugs
libtool adds all sorts of wonderful flags to gcc, whose purpose is unclear.
Nonetheless, the following works on gcc-4.2.1 but fails on gcc version 4.3.0
20071012 (experimental) (GCC) on the same box, a Mac Pro running OS X 10.4:
g++ -m64 -dynamiclib -single_module ${wl}-flat_namespace ${wl}-undefined
${wl}suppress -o .libs/libgeometry.0.0.0.dylib
.libs/libgeometry_la-predicates.o .libs/libgeometry_la-geometry-init.o
-install_name /usr/local/lib/libgeometry.0.dylib -Wl,-compatibility_version
-Wl,1 -Wl,-current_version -Wl,1.0
Reports:
/usr/bin/ld: unknown flag: -compatibility_version
That error is not there with gcc-4.2.1.
The impact is that I can't compile libraries using libtool and the latest
gcc-4.3 snapshot.
--
Summary: gcc-4.3 mishandles -compatibility_version on OS X
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: benoit dot hudson at gmail dot com
GCC target triplet: i386-apple-darwin8.10.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33851
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug driver/33851] gcc-4.3 mishandles -compatibility_version on OS X
2007-10-21 15:09 [Bug driver/33851] New: gcc-4.3 mishandles -compatibility_version on OS X benoit dot hudson at gmail dot com
@ 2007-10-21 15:15 ` benoit dot hudson at gmail dot com
2007-10-21 16:45 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: benoit dot hudson at gmail dot com @ 2007-10-21 15:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from benoit dot hudson at gmail dot com 2007-10-21 15:15 -------
I should specify: I can *compile* but I can't *link*.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33851
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug driver/33851] gcc-4.3 mishandles -compatibility_version on OS X
2007-10-21 15:09 [Bug driver/33851] New: gcc-4.3 mishandles -compatibility_version on OS X benoit dot hudson at gmail dot com
2007-10-21 15:15 ` [Bug driver/33851] " benoit dot hudson at gmail dot com
@ 2007-10-21 16:45 ` pinskia at gcc dot gnu dot org
2007-10-21 18:23 ` benoit dot hudson at gmail dot com
2007-11-27 15:20 ` schneecrash+gcc-help at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-10-21 16:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-10-21 16:45 -------
Well, libtool needs to check the gcc version. The issue is that in 4.3, we
call ld directly instead of libtool (Apple's libtool and not GNU libtool). So
libtool needs to use dylib_compatibility_version/dylib_current_version instead
of just compatibility_version/current_version.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33851
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug driver/33851] gcc-4.3 mishandles -compatibility_version on OS X
2007-10-21 15:09 [Bug driver/33851] New: gcc-4.3 mishandles -compatibility_version on OS X benoit dot hudson at gmail dot com
2007-10-21 15:15 ` [Bug driver/33851] " benoit dot hudson at gmail dot com
2007-10-21 16:45 ` pinskia at gcc dot gnu dot org
@ 2007-10-21 18:23 ` benoit dot hudson at gmail dot com
2007-11-27 15:20 ` schneecrash+gcc-help at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: benoit dot hudson at gmail dot com @ 2007-10-21 18:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from benoit dot hudson at gmail dot com 2007-10-21 18:23 -------
(In reply to comment #2)
> Well, libtool needs to check the gcc version.
I fully understand that morally, it's libtool's fault for releasing a program
that didn't correctly divine that gcc 4.3 would change the linker it uses
compared to versions since at least 3.3. Shame on them. Nonetheless, this
change does happen to break any package that shipped using any version of
libtool up to the present. This adds up to rather a lot of free software.
Will there be an easy workaround?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33851
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug driver/33851] gcc-4.3 mishandles -compatibility_version on OS X
2007-10-21 15:09 [Bug driver/33851] New: gcc-4.3 mishandles -compatibility_version on OS X benoit dot hudson at gmail dot com
` (2 preceding siblings ...)
2007-10-21 18:23 ` benoit dot hudson at gmail dot com
@ 2007-11-27 15:20 ` schneecrash+gcc-help at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: schneecrash+gcc-help at gmail dot com @ 2007-11-27 15:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from schneecrash+gcc-help at gmail dot com 2007-11-27 15:19 -------
hi,
not just in 4.3, apparently ...
i'm seeing this same (?) issue on gcc 4.2.1 on osx 10.4.11 when building LIBSDL
... (fwiw, on OSX 10.5.11, all's OK)
i've
uname -a
Darwin scdev.local 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct
10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc
gcc -v
Using built-in specs.
Target: powerpc-apple-darwin8
Configured with: /Builds/apple/gcc_42-5531/obj/src/configure
--disable-checking -enable-werror --prefix=/usr --mandir=/usr/share/man
--enable-languages=c,objc,c++,obj-c++
--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 --program-prefix= --host=powerpc-apple-darwin8
--target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5531)
glibtool --version
ltmain.sh (GNU libtool) 1.5.25a (1.1220.2.472 2007/10/12
16:35:48)
@
make
it dies with,
gcc -dynamiclib -o build/.libs/libSDL-1.2.0.11.1.dylib
build/.libs/SDL.o build/.libs/SDL_error.o build/.libs/SDL_fatal.o
build/.libs/SDL_audio.o build/.libs/SDL_audiocvt.o build/.libs/SDL_audiodev.o
build/.libs/SDL_mixer.o build/.libs/SDL_mixer_MMX.o
build/.libs/SDL_mixer_MMX_VC.o build/.libs/SDL_mixer_m68k.o
build/.libs/SDL_wave.o build/.libs/SDL_cdrom.o build/.libs/SDL_cpuinfo.o
build/.libs/SDL_active.o build/.libs/SDL_events.o build/.libs/SDL_expose.o
build/.libs/SDL_keyboard.o build/.libs/SDL_mouse.o build/.libs/SDL_quit.o
build/.libs/SDL_resize.o build/.libs/SDL_rwops.o build/.libs/SDL_getenv.o
build/.libs/SDL_iconv.o build/.libs/SDL_malloc.o build/.libs/SDL_qsort.o
build/.libs/SDL_stdlib.o build/.libs/SDL_string.o build/.libs/SDL_thread.o
build/.libs/SDL_timer.o build/.libs/SDL_RLEaccel.o build/.libs/SDL_blit.o
build/.libs/SDL_blit_0.o build/.libs/SDL_blit_1.o build/.libs/SDL_blit_A.o
build/.libs/SDL_blit_N.o build/.libs/SDL_bmp.o build/.libs/SDL_cursor.o
build/.libs/SDL_gamma.o build/.libs/SDL_pixels.o build/.libs/SDL_stretch.o
build/.libs/SDL_surface.o build/.libs/SDL_video.o build/.libs/SDL_yuv.o
build/.libs/SDL_yuv_mmx.o build/.libs/SDL_yuv_sw.o build/.libs/SDL_joystick.o
build/.libs/SDL_nullevents.o build/.libs/SDL_nullmouse.o
build/.libs/SDL_nullvideo.o build/.libs/SDL_diskaudio.o
build/.libs/SDL_dummyaudio.o build/.libs/SDL_sysloadso.o
build/.libs/SDL_QuartzEvents.o build/.libs/SDL_QuartzGL.o
build/.libs/SDL_QuartzVideo.o build/.libs/SDL_QuartzWM.o
build/.libs/SDL_QuartzWindow.o build/.libs/SDL_QuartzYUV.o
build/.libs/SDL_x11dga.o build/.libs/SDL_x11dyn.o build/.libs/SDL_x11events.o
build/.libs/SDL_x11gamma.o build/.libs/SDL_x11gl.o build/.libs/SDL_x11image.o
build/.libs/SDL_x11modes.o build/.libs/SDL_x11mouse.o
build/.libs/SDL_x11video.o build/.libs/SDL_x11wm.o build/.libs/SDL_x11yuv.o
build/.libs/XF86DGA.o build/.libs/XF86DGA2.o build/.libs/SDL_dgaevents.o
build/.libs/SDL_dgamouse.o build/.libs/SDL_dgavideo.o build/.libs/XF86VMode.o
build/.libs/Xv.o build/.libs/Xinerama.o build/.libs/xme.o
build/.libs/SDL_systhread.o build/.libs/SDL_syssem.o build/.libs/SDL_sysmutex.o
build/.libs/SDL_syscond.o build/.libs/SDL_coreaudio.o
build/.libs/SDL_romaudio.o build/.libs/SDL_sysjoystick.o
build/.libs/AudioFilePlayer.o build/.libs/AudioFileReaderThread.o
build/.libs/CDPlayer.o build/.libs/SDLOSXCAGuard.o build/.libs/SDL_syscdrom.o
build/.libs/SDL_systimer.o -Wl,-framework -Wl,OpenGL -Wl,-framework -Wl,Cocoa
-Wl,-framework -Wl,QuickTime -Wl,-framework -Wl,ApplicationServices
-Wl,-framework -Wl,Carbon -Wl,-framework -Wl,AudioToolbox -Wl,-framework
-Wl,AudioUnit -Wl,-framework -Wl,IOKit -install_name
/usr/local/lib/libSDL-1.2.0.dylib -Wl,-compatibility_version -Wl,12
-Wl,-current_version -Wl,12.1
/usr/libexec/gcc/powerpc-apple-darwin8/4.2.1/ld: unknown flag:
-compatibility_version
collect2: ld returned 1 exit status
make: *** [build/libSDL.la] Error 1
--
schneecrash+gcc-help at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33851
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-11-27 15:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-21 15:09 [Bug driver/33851] New: gcc-4.3 mishandles -compatibility_version on OS X benoit dot hudson at gmail dot com
2007-10-21 15:15 ` [Bug driver/33851] " benoit dot hudson at gmail dot com
2007-10-21 16:45 ` pinskia at gcc dot gnu dot org
2007-10-21 18:23 ` benoit dot hudson at gmail dot com
2007-11-27 15:20 ` schneecrash+gcc-help at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).