[Bug target/39573] Linking fails on AMD with -march=native and -fopenmp, works with generic x86_64
fpbeekhof at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Apr 4 20:15:00 GMT 2009
------- Comment #14 from fpbeekhof at gmail dot com 2009-04-04 20:14 -------
For simplicty, in the preprocessed source, edit the Makefile, set
CXXFLAGS= -pipe -I. -Wall -fopenmp -march=native
Then,
gccbug39573$ make clean; make
rm -f *.o *~ shapes
gcc -pipe -I. -Wall -fopenmp -march=native -c -o mainpp.o mainpp.cc
gcc -pipe -I. -Wall -fopenmp -march=native -c -o tinystrpp.o tinystrpp.cc
gcc -pipe -I. -Wall -fopenmp -march=native -c -o tinyxmlpp.o tinyxmlpp.cc
gcc -pipe -I. -Wall -fopenmp -march=native -c -o tinyxmlerrorpp.o
tinyxmlerrorpp.cc
gcc -pipe -I. -Wall -fopenmp -march=native -c -o tinyxmlparserpp.o
tinyxmlparserpp.cc
gcc -pipe -I. -Wall -fopenmp -march=native -c -o SurfaceExtractorpp.o
SurfaceExtractorpp.cc
gcc -o shapes -pipe -I. -Wall -fopenmp -march=native -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+0x1f76): undefined reference to `void
cvmlcpp::extractSurfaceFromAdapter<shapes::ShapeSurfaceAdaptor_<double>,
double>(shapes::ShapeSurfaceAdaptor_<double> const&,
cvmlcpp::Geometry<double>&, double)::C.867'
collect2: ld returned 1 exit status
make: *** [shapes] Error 1
gccbug39573$ nm mainpp.o | grep
_ZN7cvmlcpp25extractSurfaceFromAdapterIN6shapes20ShapeSurfaceAdaptor_IdEEdEEvRKT_RNS_8GeometryIT0_EEd
0000000000000000 W
_ZN7cvmlcpp25extractSurfaceFromAdapterIN6shapes20ShapeSurfaceAdaptor_IdEEdEEvRKT_RNS_8GeometryIT0_EEd
00000000000019af t
_ZN7cvmlcpp25extractSurfaceFromAdapterIN6shapes20ShapeSurfaceAdaptor_IdEEdEEvRKT_RNS_8GeometryIT0_EEd.omp_fn.10
0000000000001c7e t
_ZN7cvmlcpp25extractSurfaceFromAdapterIN6shapes20ShapeSurfaceAdaptor_IdEEdEEvRKT_RNS_8GeometryIT0_EEd.omp_fn.8
0000000000001af2 t
_ZN7cvmlcpp25extractSurfaceFromAdapterIN6shapes20ShapeSurfaceAdaptor_IdEEdEEvRKT_RNS_8GeometryIT0_EEd.omp_fn.9
--
fpbeekhof at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Linking fails on AMD with - |Linking fails on AMD with -
|march=native, works with |march=native and -fopenmp,
|generic x86_64 |works with generic x86_64
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39573
More information about the Gcc-bugs
mailing list