[Bug target/39573] Linking fails on AMD with -march=native, works with generic x86_64
fpbeekhof at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Apr 4 18:13:00 GMT 2009
------- Comment #9 from fpbeekhof at gmail dot com 2009-04-04 18:13 -------
Subject: Re: Linking fails on AMD with -march=native, works
with generic x86_64
rguenth at gcc dot gnu dot org wrote:
> ------- Comment #8 from rguenth at gcc dot gnu dot org 2009-04-04 18:03 -------
> Btw, with -O3 the vectorizer is on by default, so you need -fno-tree-vectorize
> to turn it off.
(Oh...)
I tried with "-march=native" and "-fno-tree-vectorize", it still fails:
gccbug39573$ make clean; make
rm -f *.o *~ shapes
gcc -pipe -I. -Wall -O3 -funroll-loops -fopenmp -march=native
-fno-tree-vectorize -c -o mainpp.o mainpp.cc
gcc -pipe -I. -Wall -O3 -funroll-loops -fopenmp -march=native
-fno-tree-vectorize -c -o tinystrpp.o tinystrpp.cc
gcc -pipe -I. -Wall -O3 -funroll-loops -fopenmp -march=native
-fno-tree-vectorize -c -o tinyxmlpp.o tinyxmlpp.cc
gcc -pipe -I. -Wall -O3 -funroll-loops -fopenmp -march=native
-fno-tree-vectorize -c -o tinyxmlerrorpp.o tinyxmlerrorpp.cc
gcc -pipe -I. -Wall -O3 -funroll-loops -fopenmp -march=native
-fno-tree-vectorize -c -o tinyxmlparserpp.o tinyxmlparserpp.cc
gcc -pipe -I. -Wall -O3 -funroll-loops -fopenmp -march=native
-fno-tree-vectorize -c -o SurfaceExtractorpp.o SurfaceExtractorpp.cc
gcc -o shapes -pipe -I. -Wall -O3 -funroll-loops -fopenmp -march=native
-fno-tree-vectorize -lz -lboost_iostreams -lgsl -lgslcblas mainpp.o
tinystrpp.o tinyxmlpp.o tinyxmlerrorpp.o tinyxmlparserpp.o
SurfaceExtractorpp.o
mainpp.o: In function
`_ZN7cvmlcpp25extractSurfaceFromAdapterIN6shapes20ShapeSurfaceAdaptor_IdEEdEEvRKT_RNS_8GeometryIT0_EEd.omp_fn.8':
mainpp.cc:(.text+0x5688): undefined reference to `void
cvmlcpp::extractSurfaceFromAdapter<shapes::ShapeSurfaceAdaptor_<double>,
double>(shapes::ShapeSurfaceAdaptor_<double> const&,
cvmlcpp::Geometry<double>&, double)::C.907'
collect2: ld returned 1 exit status
make: *** [shapes] Error 1
On an
vendor_id : AuthenticAMD
cpu family : 15
model : 47
model name : AMD Athlon(tm) 64 Processor 3200+
stepping : 0
As well as on an
processor : 31
vendor_id : AuthenticAMD
cpu family : 16
model : 2
model name : Quad-Core AMD Opteron(tm) Processor 8356
stepping : 3
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39573
More information about the Gcc-bugs
mailing list