From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5418 invoked by alias); 4 Apr 2009 18:13:43 -0000 Received: (qmail 5372 invoked by alias); 4 Apr 2009 18:13:29 -0000 Date: Sat, 04 Apr 2009 18:13:00 -0000 Message-ID: <20090404181329.5371.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/39573] Linking fails on AMD with -march=native, works with generic x86_64 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "fpbeekhof at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-04/txt/msg00313.txt.bz2 ------- 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, double>(shapes::ShapeSurfaceAdaptor_ const&, cvmlcpp::Geometry&, 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