I'm trying to build gcc-4.3.2 for powerpc-405-gnu-linux. I'm using binutils 2.18 built earlier with no erros according to LSF 6.4
Steps for building gcc (according to LSF 6.4): ../gcc-4.3.2/configure \ --target=powerpc-405-linux-gnu --prefix=/tools \ --disable-nls --disable-shared --disable-multilib \ --disable-decimal-float --disable-threads \ --disable-libmudflap --disable-libssp \ --disable-libgomp --enable-languages=c make After a while I got the following error: checking dynamic linker characteristics... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. make[1]: *** [configure-target-libssp] Error 1 make[1]: Leaving directory `/HMeyzam08/a99059/GNU/gcc/bin/gcc-4.3.2' make: *** [all] Error 2 In config.log I got the following errors: -------------------------------------------------------------------- conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me' configure:3636: $? = 1 configure: failed program was: | #ifndef __cplusplus | choke me | #endif ----------------------------------------------------------------- conftest.cc: In function 'int main()': conftest.cc:13: error: 'exit' was not declared in this scope configure:4088: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | /* end confdefs.h. */ | | int | main () | { | exit (42); | ; | return 0; | } ------------------------------------------------------------ configure:4616: gcc -B/usr/bin/ -o conftest -g -O2 conftest.c -lmpfr -lgmp >&5 conftest.c: In function 'main': conftest.c:19: error: 'choke' undeclared (first use in this function) conftest.c:19: error: (Each undeclared identifier is reported only once conftest.c:19: error: for each function it appears in.) conftest.c:19: error: expected ';' before 'me' conftest.c:21: error: 'n' undeclared (first use in this function) configure:4622: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #ifdef __cplusplus | extern "C" void std::exit (int) throw (); using std::exit; | #endif | /* end confdefs.h. */ | #include <gmp.h> | #include <mpfr.h> | int | main () | { | | #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,0) | choke me | #endif | mpfr_t n; mpfr_init(n); | | ; | return 0; | } configure:4643: result: buggy but acceptable What is missing in my build ? I'm using the gmp,mpfr installed in red-hat 5.1. I didn't install gmp-4.2.4, mpfr-2.3.2. Thanks. -- Summary: error: Link tests are not allowed after GCC_NO_EXECUTABLES Product: gcc Version: 4.3.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: veredz at elta dot co dot il GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: powerpc-405-linux-gnu GCC target triplet: powerpc-405-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38847