CLooG build error

Johannes Stezenbach js@sig21.net
Fri Jan 27 10:56:00 GMT 2012


Hi,

On Fri, Jan 27, 2012 at 01:02:55AM +0100, Benoît Thébaudeau wrote:
> > From: "Chris Morgan" <chmorgan@gmail.com>
> > To: "Johannes Stezenbach" <js@sig21.net>
> > Cc: crossgcc@sourceware.org
> > Sent: Thursday, January 26, 2012 10:23:39 PM
> > Subject: Re: CLooG build error
> >
> > [DEBUG]    ==> Executing: 'make' '-j2' '-s' 'check'
> > [ALL  ]    Making check in .
> > [ALL  ]    libtool: link: x86_64-build_unknown-linux-gnu-gcc -Wall
> > -fomit-frame-pointer -pipe -o cloog cloog.o
> > -L/home/cmorgan/ct-ng-install/bin/.build/arm-unknown-eabi/build/static/lib
> > ./.libs/libcloog.a -lm
> > /home/cmorgan/ct-ng-install/bin/.build/arm-unknown-eabi/build/static/lib/libppl_c.a
> > /home/cmorgan/ct-ng-install/bin/.build/arm-unknown-eabi/build/static/lib/libppl.a
> > /home/cmorgan/ct-ng-install/bin/.build/arm-unknown-eabi/build/static/lib/libgmpxx.a
> > /home/cmorgan/ct-ng-install/bin/.build/arm-unknown-eabi/build/static/lib/libgmp.a
> > -lstdc++
> > [ALL  ]    /usr/bin/ld:
> > /home/cmorgan/ct-ng-install/bin/.build/arm-unknown-eabi/build/static/lib/libppl_c.a(ppl_c_implementation_common.o):
> > undefined reference to symbol 'fesetround@@GLIBC_2.2.5'
> > [ALL  ]    /usr/bin/ld: note: 'fesetround@@GLIBC_2.2.5' is defined in
> > DSO
> > /usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/libm.so
> > so try adding it to the linker command line
> > [ALL  ]
> >    /usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/libm.so:
> > could not read symbols: Invalid operation
...
> It is possible that you are encountering another consequence of this issue:
> http://sourceware.org/ml/crossgcc/2011-12/msg00051.html
> http://sourceware.org/ml/crossgcc/2011-12/msg00052.html
> 
> Yann has not yet reviewed my patch.
> 
> Can you test and report if it solves your issue?

I have CT_COMPLIBS_CHECK unset thus I did not run into this issue,
and I'm using Debian sid.
(CT_COMPLIBS_CHECK help warns it "takes a loooong time" (hours)).

However, since cloog is not linked statically, the placement of -lm
should not matter.  What is this "libm.so: could not read symbols: Invalid operation"
error?  This looked to me like a linker bug, but a short search yielded:

https://wiki.ubuntu.com/NattyNarwhal/ToolchainTransition

Thus I think Benoît's patch is needed, but it would be good
to mention the Ubuntu --no-add-needed thing in the changelog.


Thanks
Johannes

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list