Rockbox Development > Starting Development and Compiling

Installing cross-dev toolchain on Ubuntu 9.10 Karmic Koala

(1/1)

pirlouwi:
Hello, it's my first message in this community, so hi everybody.

My goal is to compile Rockbox for my iPod-color, so, I have to install/build the arm crosscompiler.
I followed the wiki page, but I can't compile gcc for arm.

Before continuing, I must say that I have installed build-essential/automake/autoconf on my machine.

First, I had configure complaining about the host variable that was unknown.
I set it to following value, inside ./rockboxdev.sh

--- Quote ---    gccconfigure="--host=arm-i386-linux"
    binutilsconf="--host=arm-i386-linux"
--- End quote ---
I suppose this is correct.

Further, I got this message inside /tmp/rbdev-build/build-gcc-a/config.log file:

--- Quote ---/tmp/rbdev-build/build-gcc-a# cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:595: checking host system type
configure:616: checking target system type
configure:634: checking build system type
configure:689: checking for a BSD compatible install
configure:742: checking whether ln works
configure:766: checking whether ln -s works
configure:1808: checking for gcc
configure:1921: checking whether the C compiler (gcc -U_FORTIFY_SOURCE ) works
configure:1937: gcc -o conftest -U_FORTIFY_SOURCE   conftest.c  1>&5
gcc: installation problem, cannot exec `cpp0': No such file or directory
configure: failed program was:

#line 1932 "configure"
#include "confdefs.h"

main(){return(0);}
--- End quote ---

I don't have any clue about the reason of this error.
Any help is welcome.

Thanks
Pirlouwi

bluebrother:

--- Quote from: pirlouwi on February 07, 2010, 01:00:29 PM ---
--- Quote ---    gccconfigure="--host=arm-i386-linux"
    binutilsconf="--host=arm-i386-linux"
--- End quote ---
I suppose this is correct.

--- End quote ---

Are you really sure about this? What does "uname -a" tell about your host architecture?

saratoga:
Since i386 and ARM are different CPU architectures, I am skeptical your CPU is both at the same time.  I'm a little confused why you even have to do this though.  On a stock ubuntu install with build-essential and libc6-dev you should be able to just run the script.  I've done it lots of times.  Are you absolutely sure you have those installed and a working c compiler?

pirlouwi:
Wow, such a so fast response! Thanks!

Here is my uname -a

--- Quote ---Linux mediacenter 2.6.31-19-generic #56-Ubuntu SMP Thu Jan 28 01:26:53 UTC 2010 i686 GNU/Linux
--- End quote ---

What should I do? Just remove the --host lines I have added to ./rockboxdev.sh? ???

Secondly, I perhaps have understood the source of my problems: before discovering Rockbox, I gave a try to Ipodlinux.org, and I followed their Wiki to install a crossbuild toolchain for building the Linux kernel. It is concurrencing the Rockbox toolchain installation I guess.

 ;D Modif: ok, I compiled all with success: my errors were caused by the first installation of arm-gcc version 2.95.3. I removed also what I had added to the rockboxdev.sh file.

A warning should be inserted in the wiki about that.

Thx for the help anyway
Pirlouwi

Navigation

[0] Message Index

Go to full version