Compile script problemin Ubuntu 11.10

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have a starange poblem with using script I runing to handle compiling of the kernel.

The two first lines execute fine ( my own config):

make ARCH=avr32 CROSS_COMPILE=avr32-linux- wpr-rec31a_defconfig
make ARCH=avr32 CROSS_COMPILE=avr32-linux- menuconfig

while the command:

make ARCH=avr32 CROSS_COMPILE=avr32-linux-

generates

make: avr32-linux-gcc: Command not found

but avr32-linux-gcc is available

user@ubuntu1010desktop:~/Desktop$ avr32-linux-gcc
avr32-linux-gcc: no input files

Life's to short for waiting on slow CPU's

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

For building modules, I had to change the path to the cross compiler when I went to buildroot3.0.0

the path is now:-
/buildroot-avr32-v3.0.0/output/staging/usr/avr32-linux/bin/

and the compiler is gcc so when building it calls as:-

/buildroot-avr32-v3.0.0/output/staging/usr/avr32-linux/bin/gcc

if I try and run:-
[las@ng2 ~]$ avr32-linux-gcc

I get:-
bash: avr32-linux-gcc: command not found...
[las@ng2 ~]$

When I was building the kernel, it built the compiler first and then used it in the rest of the build. I didn't need to change anything.

I hope this helps.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanx for the reply, I tried out from your suggestion to also add :

/home/user/buildroot-avr32-v3.0.0/output/staging/usr/avr32-linux/bin/

I already had in my path:

/home/user/buildroot-avr32-v3.0.0/output/host/usr/bin
and
/home/user/buildroot-avr32-v3.0.0/output/staging/usr/bin/

It seems to work as expected now. Not sure why but it works. Thanx again.

Life's to short for waiting on slow CPU's