This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

"cannot run C compiled programs" error


Hi,

I am trying to compile gcc-4.6-2010408, and I get the following error:

checking whether the C compiler works... configure: error: in
`/Users/anna/Documents/programs/GCC/GCC/build/i386-apple-darwin10.7.0/x86_64
/libgcc':
configure: error: cannot run C compiled programs.


I am on Mac OS X 10.6.7, Intel Core Duo (NOT core 2 duo), and I have
successfully built gmp-5.0.1, mpc-0.8.2 and mpfr-3.0.1. I used the following
configure command:

export GCC_LIBS_DIR=/Users/anna/Documents/programs/GCC/GCC/libs/install
../gcc-4.6-20110408/configure --prefix=$(cd ../install/ && pwd)
--with-gmp=$GCC_LIBS_DIR --with-mpfr=$GCC_LIBS_DIR --with-mpc=$GCC_LIBS_DIR
--disable-checking --enable-werror --enable-languages=c
--disable-libquadmath

If you need further details please let me know.

Thanks & regards,
Anna.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]