Member Site › Forums › Rosetta 3 › Rosetta 3 – Build/Install › Rosetta 3 compile error
- This topic has 2 replies, 2 voices, and was last updated 12 years, 5 months ago by
Anonymous.
-
AuthorPosts
-
-
March 24, 2012 at 2:50 am #1210
Anonymous
I have came across some error when compiling the software. this is the log.
@localhost rosetta_source]$ scons bin
scons: Reading SConscript files …
scons: done reading SConscript files.
scons: Building targets …
g++ -o build/src/debug/linux/2.6/64/x86/gcc/apps/public/AbinitioRelax.o -c -isystem external/boost_1_46_1/boost/ -isystem external/boost_1_46_1/boost/ -O0 -g -ggdb -ffloat-store -Isrc -Iexternal/include -Isrc/platform/linux/64/gcc -Isrc/platform/linux/64 -Isrc/platform/linux -Iexternal/boost_1_46_1 -Iexternal/dbio -I/usr/local/include -I/usr/include src/apps/public/AbinitioRelax.cc
src/apps/public/AbinitioRelax.cc: In function ‘int main(int, char**)’:
src/apps/public/AbinitioRelax.cc:46:8: error: reference to ‘option’ is ambiguous
/home/phoenix/software/gcc-4.5.3/include/getopt.h:83:1: error: candidates are: struct option
src/basic/options/option.hh:157:25: error: basic::options::OptionCollection basic::options::option
src/apps/public/AbinitioRelax.cc:46:37: error: reference to ‘option’ is ambiguous
/home/phoenix/software/gcc-4.5.3/include/getopt.h:83:1: error: candidates are: struct option
src/basic/options/option.hh:157:25: error: basic::options::OptionCollection basic::options::option
src/apps/public/AbinitioRelax.cc:47:53: error: reference to ‘option’ is ambiguous
/home/phoenix/software/gcc-4.5.3/include/getopt.h:83:1: error: candidates are: struct option
src/basic/options/option.hh:157:25: error: basic::options::OptionCollection basic::options::option
scons: *** [build/src/debug/linux/2.6/64/x86/gcc/apps/public/AbinitioRelax.o] Error 1
scons: building terminated because of errors.
@localhost rosetta_source]$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/home/phoenix/software/gcc-4.5.3/libexec/gcc/x86_64-unknown-linux-gnu/4.5.3/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ./configure –prefix=/home/phoenix/software/gcc-4.5.3 –disable-multilib
Thread model: posix
gcc version 4.5.3 (GCC)
@localhost rosetta_source]$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/home/phoenix/software/gcc-4.5.3/libexec/gcc/x86_64-unknown-linux-gnu/4.5.3/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ./configure –prefix=/home/phoenix/software/gcc-4.5.3 –disable-multilib
Thread model: posix
gcc version 4.5.3 (GCC) -
March 24, 2012 at 2:52 am #6843
Anonymous
my os is centos 6.1, my kernel is Linux localhost.localdomain 2.6.32-220.4.2.el6.x86_64 #1 SMP Tue Feb 14 04:00:16 GMT 2012 x86_64 x86_64 x86_64 GNU/Linux
-
March 24, 2012 at 5:37 pm #6845
Anonymous
I’ve never seen this error before.
“/home/phoenix/software/gcc-4.5.3/include/getopt.h:83:1: error: candidates are: struct option”
My best guess, from this line, is that there’s something strange installed with your version of gcc 4.5.3. The compiler is finding some “option” struct inside your GCC headers that aren’t present in the ones used by our developers. Your which gcc indicates a strange place to have installed GCC. I would say your best bet is either installing a package-manager-maintained GCC or trying a different GCC version.
-
-
AuthorPosts
- You must be logged in to reply to this topic.