LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-03-2015, 05:06 AM   #1
occam25
LQ Newbie
 
Registered: Feb 2010
Posts: 19

Rep: Reputation: 0
/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?
 
Old 03-03-2015, 05:24 AM   #2
occam25
LQ Newbie
 
Registered: Feb 2010
Posts: 19

Original Poster
Rep: Reputation: 0
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
 
Old 03-03-2015, 05:24 AM   #3
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
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'.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Not Found The requested URL /nagios/cgi-bin/tac.cgi was not found on this server. amanamu Linux - Server 5 02-07-2013 04:45 AM
/bin/sh not found Eckstona Linux - Software 3 12-21-2006 01:05 AM
Error when starting up snort: bash:!/bin/sh/usr/local/bin/snort :Eent not found cynthia_thomas Linux - Software 1 11-11-2005 03:59 PM
why /bin/sh is not found ? abd_bela Linux - General 3 12-24-2002 11:11 AM
why /bin/sh is not found ? abd_bela Linux - Software 1 12-24-2002 09:38 AM


All times are GMT -5. The time now is 12:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration