This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/39573] linking fails when optimizations are enabled
- From: "fpbeekhof at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Apr 2009 16:57:05 -0000
- Subject: [Bug other/39573] linking fails when optimizations are enabled
- References: <bug-39573-14973@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from fpbeekhof at gmail dot com 2009-04-04 16:57 -------
The problem is the "-march=native" option. If I remove that, all is fine even
on AMD machines.
$ make CNF=gcc BACKEND=gsl
scons -j 2 CNF=gcc MODE= BACKEND=gsl CVMLCPP_PREFIX=/user/l1/beekhof/
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o main.o -c -pipe -I. -Wall -O3 -funroll-loops -fopenmp -ftree-vectorize
-DNDEBUG -DUSE_GSL -I/user/l1/beekhof//include/ main.cpp
g++ -o tinystr.o -c -pipe -I. -Wall -O3 -funroll-loops -fopenmp
-ftree-vectorize -DNDEBUG -DUSE_GSL -I/user/l1/beekhof//include/ tinystr.cpp
g++ -o tinyxml.o -c -pipe -I. -Wall -O3 -funroll-loops -fopenmp
-ftree-vectorize -DNDEBUG -DUSE_GSL -I/user/l1/beekhof//include/ tinyxml.cpp
g++ -o tinyxmlerror.o -c -pipe -I. -Wall -O3 -funroll-loops -fopenmp
-ftree-vectorize -DNDEBUG -DUSE_GSL -I/user/l1/beekhof//include/
tinyxmlerror.cpp
g++ -o tinyxmlparser.o -c -pipe -I. -Wall -O3 -funroll-loops -fopenmp
-ftree-vectorize -DNDEBUG -DUSE_GSL -I/user/l1/beekhof//include/
tinyxmlparser.cpp
g++ -o shapes -fopenmp -DUSE_GSL -L/user/l1/beekhof//lib/ tinystr.o tinyxml.o
tinyxmlerror.o tinyxmlparser.o main.o -lcvmlcpp -lz -lboost_iostreams -lgsl
-lgslcblas
scons: done building targets.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39573