Rockbox Development > Starting Development and Compiling
Problems compiling MIPS cross compiler
rosco_pc:
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
nls:
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?
mcuelenaere:
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)
nls:
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.
rosco_pc:
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 :(
Navigation
[0] Message Index
[#] Next page
Go to full version