From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24399 invoked by alias); 4 Apr 2009 17:45:48 -0000 Received: (qmail 24338 invoked by uid 48); 4 Apr 2009 17:45:28 -0000 Date: Sat, 04 Apr 2009 17:45:00 -0000 Message-ID: <20090404174528.24337.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/msg00304.txt.bz2 ------- Comment #5 from fpbeekhof at gmail dot com 2009-04-04 17:45 ------- Created an attachment (id=17586) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17586&action=view) preprocessed source; with a Makefile! Everything fails perfectly: $ make clean; make rm -f *.o *~ shapes gcc -pipe -I. -Wall -O3 -funroll-loops -fopenmp -march=native -ftree-vectorize -c -o mainpp.o mainpp.cc gcc -pipe -I. -Wall -O3 -funroll-loops -fopenmp -march=native -ftree-vectorize -c -o tinystrpp.o tinystrpp.cc gcc -pipe -I. -Wall -O3 -funroll-loops -fopenmp -march=native -ftree-vectorize -c -o tinyxmlpp.o tinyxmlpp.cc gcc -pipe -I. -Wall -O3 -funroll-loops -fopenmp -march=native -ftree-vectorize -c -o tinyxmlerrorpp.o tinyxmlerrorpp.cc gcc -pipe -I. -Wall -O3 -funroll-loops -fopenmp -march=native -ftree-vectorize -c -o tinyxmlparserpp.o tinyxmlparserpp.cc gcc -pipe -I. -Wall -O3 -funroll-loops -fopenmp -march=native -ftree-vectorize -c -o SurfaceExtractorpp.o SurfaceExtractorpp.cc gcc -o shapes -pipe -I. -Wall -O3 -funroll-loops -fopenmp -march=native -ftree-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+0x5641): 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 Oh, and this is the CPU: $ cat /proc/cpuinfo processor : 0 vendor_id : AuthenticAMD cpu family : 15 model : 47 model name : AMD Athlon(tm) 64 Processor 3200+ stepping : 0 cpu MHz : 1000.000 cache size : 512 KB fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow up rep_good nopl pni lahf_lm bogomips : 2002.51 TLB size : 1024 4K pages clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: ts fid vid ttp tm stc -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39573