gcj problem with -static option

David Daney ddaney@avtrex.com
Thu Mar 16 17:39:00 GMT 2006


Andrew Haley wrote:
> Diego Novillo writes:
> > On 03/16/06 12:27, FERANDELLE Pascal wrote:
> > 
> > > I rebuild everything with GCC 4.1.0 version on PC running RedHat EL 3.0.
> > > My simple HelloWorld program is still "segfaulting" when compiled with the -static option.
> > > But the trace under gdb has changed; I have now :
> > > 
> > This may or may not be related but we had similar looking problems with
> > OpenMP programs. They were segfaulting on startup when linked statically.
> > 
> > It apparently is a problem with weak symbols in the threading library
> > not being pulled in with -static.
> > 
> > http://gcc.gnu.org/ml/gcc/2006-03/msg00248.html
>> Ooh, nasty. Thanks for that.

This is why we have the gcj wiki. Perhaps you should try linking in the 
manner shown here:
http://gcc.gnu.org/wiki/Statically%20linking%20libgcj
David Daney.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /