On Tue, Mar 29, 2016 at 9:30 PM, Jim Wilson jim.wilson@linaro.org wrote:
--build=x86_64-pc-inux-gnu --host=arm-linux-gnueabi
Yes. I am using ubuntu 64bit to cross compile GCC to ARM. If i issue --host=arm-linux-gnueabi then it will pick up default /usr/arm-linux-gnuebi bins. I would like to pick up my binutils which are built statically for doing some experiment.
My configure looks like this PATH=$TOOLS_PATH/bin:$PATH ../configure --prefix=$TOOLS_PATH --with-gmp=/local2/mnt/tools/Linux-kernel/gmp-4.3.2/bins_2262016/ --with-mpfr=/local2/mnt/tools/Linux-kernel/mpfr-3.1.3/bins_2262016/ --with-mpc=/local2/mnt/tools/Linux-kernel/mpc-1.0.3/bins_2262016 --enable-languages=c --without-headers --target=$TRIPLET --disable-libmudflap -disable-libatomic --disable-threads --disable-shared --enable-static --disable-decimal-float --disable-libgomp --disable-libitm --disable-libmudflap --disable-libquadmath --disable-libsanitizer --disable-libssp --host=arm-linux-gnueabi --target=arm-linux-gnueabi AR=arm-linux-gnueabi-ar CC=arm-linux-gnueabi-gcc RANLIB=arm-linux-gnueabi-gcc-ranlib-4.7 STRIP=arm-linux-gnueabi-strip CPP=arm-linux-gnueabi-g++ CXX=arm-linux-gnueabi-g++ CFLAGS="-static" CXXFLAGS="-static" LDFLAGS="-static -pthread"
Now i am hitting one more issue before earlier one comes.
configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. make[1]: *** [configure-build-libiberty] Error 1
Seems am i not providing correct configure or my environment is messed?