Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Installing cross-dev toolchain on Ubuntu 9.10 Karmic Koala
« previous next »
  • Print
Pages: [1]

Author Topic: Installing cross-dev toolchain on Ubuntu 9.10 Karmic Koala  (Read 4585 times)

Offline pirlouwi

  • Member
  • *
  • Posts: 5
Installing cross-dev toolchain on Ubuntu 9.10 Karmic Koala
« on: February 07, 2010, 01:00:29 PM »
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"
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);}

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

Thanks
Pirlouwi
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Installing cross-dev toolchain on Ubuntu 9.10 Karmic Koala
« Reply #1 on: February 07, 2010, 01:01:58 PM »
Quote from: pirlouwi on February 07, 2010, 01:00:29 PM
Quote
    gccconfigure="--host=arm-i386-linux"
    binutilsconf="--host=arm-i386-linux"
I suppose this is correct.

Are you really sure about this? What does "uname -a" tell about your host architecture?
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Installing cross-dev toolchain on Ubuntu 9.10 Karmic Koala
« Reply #2 on: February 07, 2010, 01:30:39 PM »
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?
Logged

Offline pirlouwi

  • Member
  • *
  • Posts: 5
Re: Installing cross-dev toolchain on Ubuntu 9.10 Karmic Koala
« Reply #3 on: February 07, 2010, 02:03:48 PM »
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

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
« Last Edit: February 07, 2010, 02:54:41 PM by pirlouwi »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Installing cross-dev toolchain on Ubuntu 9.10 Karmic Koala
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.072 seconds with 15 queries.