/bin/sh: 1: cc: not found
Hi,
I am crosscompiling u-boot for the beaglebone black and I have a problem that I don't understand. I have installed correctly the linaro cross-compile tools and export the environment variable CC as: export CC=/path_to_linaro_arm_cross_compiler/bin/arm-linux-gnueabihf- And if I type in the terminal: ${CC}gcc --version I see the linaro's compiler version, so all seems to be ok. But, when I try to create the config file for the BBB with the command: make ARCH=arm CROSS_COMPILE=${CC} am335x_boneblack_defconfig It complains with the message: "/bin/sh: 1: cc: not found" Am I missing something? |
Sorry, it was my fault. I was in a machine with no build-essential installed. It was not a cross-compiler configuration issue, after installing that package it worked :)
|
It means it is looking for 'cc' binary instead of your supplied CC environment gcc. You can make a symlink from cc to the cross-compiler gcc binary. Or better check the compile/build scripts looking why it's using 'cc'.
|
All times are GMT -5. The time now is 01:23 AM. |