Member Site › Forums › Rosetta 3 › Rosetta 3 – Build/Install › Build Error, ubuntu 10.10, scons 2.0, python 2.6.6 and gcc 4.4.5, truncation › Reply To: Build Error, ubuntu 10.10, scons 2.0, python 2.6.6 and gcc 4.4.5, truncation
For reference, my GCC is gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu12).
I looked into what this “fPIC” does, and it looks like it’s a static/dynamic linking thing. This implies that it can’t get the C++ standard library it wants for linking; maybe you have the ones for static builds and it wants the ones for dynamic builds.
You may be able to add “extras=static” to your compile command line for the static build, which may fix this.
To try adding -fPIC, go to tools/build/basic.settings, and find the entry for your GCC. You can copy a different version if you need to.
"gcc, 4.1" : {
"appends" : {
"version" : [ "4", "1" ],
"flags" : {
"compile" : [ "-param inline-unit-growth=1000",
"-param large-function-growth=50000" ],
},
},
},
In the flags / compile section, try adding fPIC along with those param flags.
It took an hour because it recompiled from scratch when you added the cxx_ver flag, thinking the compiler had changed. If the compiler actually did change, this is appropriate; if it didn’t change, then scons is being screwy. It will probably take an hour again after either of these changes, unfortunately: it’s a linker error not a compile error so it can’t be seen until after Rosetta is done compiling.