|
From: Thomas H. <Tho...@ce...> - 2012-07-26 11:53:31
|
Hi Federico, can you post the actual error output of CMake / GCC ? Please give the output as verbose as possible ( for GNU make: "make VERBOSE=1" ) Greetings, Thomas On 07/26/12 12:10, Federico Colecchia wrote: > Dear Thomas, > > Thank you for your answer. I set the environment variables as suggested in the FAQ (GCC4.4), followed by makeEnv.sh, . env.sh, and cmake -G "Unix Makefiles". I'm still experiencing the same problem, though, is anything else wrong in what I am doing? > > Best wishes, > Federico > > ________________________________________ > From: Thomas Hauth [Tho...@ce...] > Sent: Thursday, July 26, 2012 10:27 AM > To: gen...@li... > Subject: Re: [Genfit-forum] Problem compiling GENFIT > > Dear Federico, > > I suggest to follow one of the methods in the CMake-FAQ to set a > different compiler version: > > http://www.cmake.org/Wiki/CMake_FAQ#How_do_I_use_a_different_compiler.3F > > If the newer GCC compiler and its dependencies is installed correctly, > it should be sufficient to simply change the path to the binary. > > Greetings, > Thomas > > On 07/26/2012 09:34 AM, Federico Colecchia wrote: >> Dear Thomas, >> >> Thank you for your prompt reply and for your information. Following your suggestion, I have tried to use GCC 4.4 (is any version above 4.2 OK?). I'm most likely not doing the right thing, though, I'm wondering whether I'm doing something wrong since I'm not familiar with cmake. >> >> I've tried to change CMAKE_CXX_COMPILER:FILEPATH from "/usr/bin/c++" to GCC 4.4 in CMakeCache.txt, but after issuing "cmake ." I get an error message about the C++ compiler not being able to compile a simple test program. I'm confused about the default setting /usr/bin/c++, where is GCC supposed to be used? More generally, which files have to be modified with cmake in order to change compiler? >> >> Thank you again for your help. >> >> Best regards, >> Federico >> >> ________________________________________ >> From: Thomas Hauth [Tho...@ce...] >> Sent: Wednesday, July 25, 2012 12:30 PM >> To: gen...@li... >> Subject: Re: [Genfit-forum] Problem compiling GENFIT >> >> Dear Frederico, >> >> the compiler option "march=native" allows the GCC compiler to target the >> specific features of the CPU you compile on. Mostly this concerns SIMD >> instruction sets. >> This option was introduced with GCC 4.2 >> >> http://gcc.gnu.org/gcc-4.2/changes.html >> >> So you either ugrade to a newer GCC version ( which I highly suggest ) >> or you remove the "native" option from the build files manually. >> >> Greetings, >> Thomas >> >> >> On 07/25/12 13:23, Federico Colecchia wrote: >>> Dear all, >>> >>> I have downloaded the GENFIT source from sourceforge and have tried to compile it. I followed the instructions in trunk/README and got this error message at compilation: >>> >>> [...]/genfit/trunk/core/GFAbsRecoHit.cxx:1: error: bad value (native) for -march= switch >>> [...]/genfit/trunk/core/GFAbsRecoHit.cxx:1: error: bad value (native) for -mtune= switch >>> >>> I'm on RedHat, gcc 4.1.2, 64 bits. >>> >>> Is there something wrong in what I'm doing? >>> >>> Best regards, >>> Federico >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Live Security Virtual Conference >>> Exclusive live event will cover all the ways today's security and >>> threat landscape has changed and how IT managers can respond. Discussions >>> will include endpoint security, mobile security and the latest in malware >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> _______________________________________________ >>> Genfit-forum mailing list >>> Gen...@li... >>> https://lists.sourceforge.net/lists/listinfo/genfit-forum >>> >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Genfit-forum mailing list >> Gen...@li... >> https://lists.sourceforge.net/lists/listinfo/genfit-forum > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Genfit-forum mailing list > Gen...@li... > https://lists.sourceforge.net/lists/listinfo/genfit-forum > |