From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18859 invoked by alias); 4 Apr 2009 16:57:15 -0000 Received: (qmail 18637 invoked by uid 48); 4 Apr 2009 16:57:05 -0000 Date: Sat, 04 Apr 2009 16:57:00 -0000 Message-ID: <20090404165705.18636.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug other/39573] linking fails when optimizations are enabled 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/msg00298.txt.bz2 ------- 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