Error building cross compiler
Posted: Fri Jan 08, 2016 1:28 am
I'm using Ubuntu 14.04 on a 32-bit pc. I just compiled gcc 4.9.3 and binutils 2.25, per OSDev instructions. I have tried to compile a cross compiler but I am getting an error I can't resolve:
configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
I read everything I could find about this error which mostly are written by people trying to build a cross compiler. The articles go back several years with different comments and suggestions on how to fix the problem. I've tried several of the recomendations such as editing lines in files 'libstdc++v3/acinclude.m4' and 'configure.ac', or adding other options after the 'configure' command.
Per OSDev I am using the command
../gcc-4.9.3/configure --target=$TARGET --prefix="$PREFIX" --disable-nls --enable-languages=c,c++ --without-headers.
Does anyone here know how to resolve the error? I'can't go any further and I've run out of clues.
TIA. Bill S.
configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.
I read everything I could find about this error which mostly are written by people trying to build a cross compiler. The articles go back several years with different comments and suggestions on how to fix the problem. I've tried several of the recomendations such as editing lines in files 'libstdc++v3/acinclude.m4' and 'configure.ac', or adding other options after the 'configure' command.
Per OSDev I am using the command
../gcc-4.9.3/configure --target=$TARGET --prefix="$PREFIX" --disable-nls --enable-languages=c,c++ --without-headers.
Does anyone here know how to resolve the error? I'can't go any further and I've run out of clues.
TIA. Bill S.