PPL compilation error and compiler flags

Marco Lattuada lattuada@elet.polimi.it
Tue Nov 27 11:22:00 GMT 2012


Hi,

I am trying to build a sparc toolchain but I got the same 
error described here (I am using gcc 4.7 too):
http://comments.gmane.org/gmane.comp.gcc.cross-compiling/14909
Which is the crosstool-ng option I have to change?
I set CT_TARGET_CFLAGS to -fpermissive but I still get the 
error

Looking at the build.log I have found that this is the 
source of the error:

  x86_64-build_unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I. 
-I/opt/x-tools/build_sparc/src/ppl-0.10.2/src -I.. -I.. 
-I/opt/x-tools/build_sparc/src/ppl-0.10.2/src 
-I/opt/x-tools/build_sparc/sparc-unknown-linux-gnu/build/static/include 
-O2 -frounding-math -pipe -W -Wall -MT 
Polyhedron_widenings.lo -MD -MP -MF 
.deps/Polyhedron_widenings.Tpo -c 
/opt/x-tools/build_sparc/src/ppl-0.10.2/src/Polyhedron_widenings.cc 
-o Polyhedron_widenings.o

I have noticed that g++ is used and not gcc but I have not 
found a way to set CXXFLAGS in crosstool configuration.
What am I doing wrong with respect to the proposed 
solution?

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



More information about the crossgcc mailing list