* libjava broken on the trunk on i386-darwin8.11
@ 2009-09-29 23:15 Andrew Pinski
2009-09-29 23:21 ` Andrew Pinski
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Pinski @ 2009-09-29 23:15 UTC (permalink / raw)
To: GCC Mailing List, java
Hi,
Sometime between revision 151933 and 152300, libjava is broken on
i386-darwin8.11.
libgij.so fails to build with the following error:
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
_libiconv
_libiconv_close
_libiconv_open
_environ
collect2: ld returned 1 exit status
Here was the link line:
/Users/apinski/src/local/gcc/objdir/./gcc/xgcc -shared-libgcc
-B/Users/apinski/src/local/gcc/objdir/./gcc -nostdinc++
-L/Users/apinski/src/local/gcc/objdir/i386-apple-darwin8.11.1/libstdc++-v3/src
-L/Users/apinski/src/local/gcc/objdir/i386-apple-darwin8.11.1/libstdc++-v3/src/.libs
-B/Users/apinski/local-gcc/i386-apple-darwin8.11.1/bin/
-B/Users/apinski/local-gcc/i386-apple-darwin8.11.1/lib/ -isystem
/Users/apinski/local-gcc/i386-apple-darwin8.11.1/include -isystem
/Users/apinski/local-gcc/i386-apple-darwin8.11.1/sys-include
-dynamiclib -o .libs/libgij.11.dylib .libs/gij.o
-L/Users/apinski/src/local/gcc/objdir/i386-apple-darwin8.11.1/libjava/.libs
-L/Users/apinski/src/local/gcc/objdir/i386-apple-darwin8.11.1/libstdc++-v3/src
-L/Users/apinski/src/local/gcc/objdir/i386-apple-darwin8.11.1/libstdc++-v3/src/.libs
./.libs/libgcj.dylib
-L/Users/apinski/src/local/gcc/objdir/i386-apple-darwin8.11.1/libjava
-lpthread -ldl -install_name
/Users/apinski/local-gcc/lib/libgij.11.dylib -compatibility_version 12
-current_version 12.0 -Wl,-single_module
The old link line which still works:
/Users/apinski/src/local/gcc/objdir/./gcc/xgcc -shared-libgcc
-B/Users/apinski/src/local/gcc/objdir/./gcc -nostdinc++
-L/Users/apinski/src/local/gcc/objdir/i386-apple-darwin8.11.1/libstdc++-v3/src
-L/Users/apinski/src/local/gcc/objdir/i386-apple-darwin8.11.1/libstdc++-v3/src/.libs
-B/Users/apinski/local-gcc/i386-apple-darwin8.11.1/bin/
-B/Users/apinski/local-gcc/i386-apple-darwin8.11.1/lib/ -isystem
/Users/apinski/local-gcc/i386-apple-darwin8.11.1/include -isystem
/Users/apinski/local-gcc/i386-apple-darwin8.11.1/sys-include
-dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libgij.11.dylib
.libs/gij.o -L/Users/apinski/src/local/gcc/objdir/i386-apple-darwin8.11.1/libjava/.libs
-L/Users/apinski/src/local/gcc/objdir/i386-apple-darwin8.11.1/libstdc++-v3/src
-L/Users/apinski/src/local/gcc/objdir/i386-apple-darwin8.11.1/libstdc++-v3/src/.libs
./.libs/libgcj.dylib
-L/Users/apinski/src/local/gcc/objdir/i386-apple-darwin8.11.1/libjava
-lpthread -ldl -install_name
/Users/apinski/local-gcc/lib/libgij.11.dylib -compatibility_version 12
-current_version 12.0 -Wl,-single_module
From the look of it, -Wl,-undefined -Wl,dynamic_lookup was removed
from the link line.
Thanks,
Andrew Pinski
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: libjava broken on the trunk on i386-darwin8.11
2009-09-29 23:15 libjava broken on the trunk on i386-darwin8.11 Andrew Pinski
@ 2009-09-29 23:21 ` Andrew Pinski
2009-09-29 23:44 ` Dave Korn
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Pinski @ 2009-09-29 23:21 UTC (permalink / raw)
To: GCC Mailing List, java, dave.korn.cygwin
And this was caused by Dave Korn's change on the 2009-09-22.
He added -no-undefined to libgij_la_LDFLAGS which causes libtool to
remove -Wl,-undefined -Wl,dynamic_lookup from the link line.
Thanks,
Andrew Pinski
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: libjava broken on the trunk on i386-darwin8.11
2009-09-29 23:21 ` Andrew Pinski
@ 2009-09-29 23:44 ` Dave Korn
0 siblings, 0 replies; 3+ messages in thread
From: Dave Korn @ 2009-09-29 23:44 UTC (permalink / raw)
To: Andrew Pinski; +Cc: GCC Mailing List, java
Andrew Pinski wrote:
> And this was caused by Dave Korn's change on the 2009-09-22.
> He added -no-undefined to libgij_la_LDFLAGS which causes libtool to
> remove -Wl,-undefined -Wl,dynamic_lookup from the link line.
Ow, sorry about that, I didn't know it would change things for Darwin. I'll
whip up a fix that adds the flag only for windows platforms, thanks for the
bug report.
cheers,
DaveK
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-09-29 23:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-29 23:15 libjava broken on the trunk on i386-darwin8.11 Andrew Pinski
2009-09-29 23:21 ` Andrew Pinski
2009-09-29 23:44 ` Dave Korn
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).