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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Problems compiling MIPS cross compiler
« previous next »
  • Print
Pages: [1]

Author Topic: Problems compiling MIPS cross compiler  (Read 4341 times)

Offline rosco_pc

  • Member
  • *
  • Posts: 76
Problems compiling MIPS cross compiler
« on: July 16, 2008, 10:13:29 AM »
As stated here Re: Ingenic Jz4740/Jz4732 players I have problems compiling a MIPS cross compiler. I'm using the rockboxdev.sh script to do this under Ubuntu 8.04 (Hardy).

I get an " 'O_RDONLY' undeclared " error, which would suggest that I do not have a proper build environment set-up (missing linux headers), but I do have both build-essential, libc6-dev and the linux headers instaled. And compiling another cross compiler (ARM) works without problems.

What I tried sofar:
 
  • Use --disable-libssp
  • Use --disable-libmudflap --disable-libssp
  • Use --without-headers
  • Use --without-headers -- disable-libssp

None helps, any other idea's?

PS I got a working copy via mcuelenaere, but I'm just curious as to why it does not compile
Logged

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: Problems compiling MIPS cross compiler
« Reply #1 on: July 16, 2008, 02:06:09 PM »
Hi, I tried compiling the mips crosscompiler on my hardy box and got the exact same error in libssp but adding "--disable-libssp" in rockboxdev.sh (end of line 253) made gcc build fine.
Where did you put your command line switches?
Logged

Offline mcuelenaere

  • Developer
  • Member
  • *
  • Posts: 392
Re: Problems compiling MIPS cross compiler
« Reply #2 on: July 16, 2008, 02:49:21 PM »
I guess my latest commit to rockboxdev.sh broke the MIPS cross compiler, but I wanted it to be the same version as the one Ingenic provides; but I can't see why some other version numbers break building gcc..

(BTW the version Ingenic provides has some patches applied)
Logged

Offline nls

  • Developer
  • Member
  • *
  • Posts: 460
Re: Problems compiling MIPS cross compiler
« Reply #3 on: July 16, 2008, 05:03:57 PM »
It's an oldish gcc bug that exist in 4.1 and later AFAIR, just build with --disable-libssp, we don't use it anyway. It might be nice to make rckboxdev.sh do this automatically for >= 4.1 builds. This does affect gcc for other targets too but that doesn't matter much since rockboxdev.sh is for building recomended versions.
Logged

Offline rosco_pc

  • Member
  • *
  • Posts: 76
Re: Problems compiling MIPS cross compiler (SOLVED)
« Reply #4 on: July 16, 2008, 06:01:55 PM »
yep, got it to compile now as well with --disable-libssp. Not sure how I missed it, but the editor I have been using (nano) wrapped the  line :(
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Problems compiling MIPS cross compiler
« Reply #5 on: July 17, 2008, 02:56:46 AM »
Use a real editor ;)

Logged

Read The Manual Please

Offline cool_walking_

  • Rockbox Expert
  • Member
  • *
  • Posts: 695
Re: Problems compiling MIPS cross compiler
« Reply #6 on: July 17, 2008, 03:02:15 AM »
 >:(

Turn wrapping off.
Logged

Offline mcuelenaere

  • Developer
  • Member
  • *
  • Posts: 392
Re: Problems compiling MIPS cross compiler
« Reply #7 on: July 17, 2008, 06:25:22 AM »
Compiling MIPS should now be fixed in SVN..
Logged

Offline rosco_pc

  • Member
  • *
  • Posts: 76
Re: Problems compiling MIPS cross compiler
« Reply #8 on: July 17, 2008, 06:59:33 AM »
Quote
Quote from: cool_walking_ on July 17, 2008, 03:02:15 AM
Turn wrapping off.

This is using the defaults from Ubuntu, did not think they had wrapping on (and I certainly did not turn it on). Ah well

Quote from: GodEater on July 17, 2008, 02:56:46 AM
Use a real editor ;)
such as VI or EMACS? ;)
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Problems compiling MIPS cross compiler
 

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

Page created in 0.095 seconds with 16 queries.