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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Can't setup build environment in Ububtu 8.10
« previous next »
  • Print
Pages: [1]

Author Topic: Can't setup build environment in Ububtu 8.10  (Read 1818 times)

Offline froce

  • Member
  • *
  • Posts: 4
Can't setup build environment in Ububtu 8.10
« on: October 29, 2008, 04:16:09 AM »
As title,I can't setup build environment in Ububtu 8.10.

The error message:
Code: [Select]
make[1]: Entering directory `/tmp/rbdev-build/build-gcc/gcc'
gcc   -g -O2  -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
-pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition    -DHAVE_CONFIG_H -I. -I. -I../.. \
/gcc-4.0.3/gcc -I../../gcc-4.0.3/gcc/. -I../../gcc-4.0.3/gcc/../include -I../../gcc-4.0.3/gcc/../libcpp/include      \
-DTARGET_MACHINE=\"arm-elf\" \
-c ../../gcc-4.0.3/gcc/collect2.c -o collect2.o
In function 「open」,
    inlined from 「collect_execute」 at ../../gcc-4.0.3/gcc/collect2.c:1580:
/usr/include/bits/fcntl2.h:51: error: call to 「__open_missing_mode」 declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[1]: *** [collect2.o] Error 1
make[1]: Leaving directory `/tmp/rbdev-build/build-gcc/gcc'
make: *** [install-gcc] Error 2
Cleaning up build folder

Done!

Both gcc 4.3.2 or 4.2.4 can't work.
Could anyone help me? Thanks.
---
In 8.04,rockboxdev.sh works fine.


--edited to make the message not scroll WAAAAY off the screen!
« Last Edit: October 29, 2008, 04:39:50 AM by GodEater »
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Can't setup build environment in Ububtu 8.10
« Reply #1 on: October 29, 2008, 04:24:42 AM »
Code: [Select]
CPPFLAGS="-U_FORTIFY_SOURCE" ./rockboxdev.sh

Should fix it.

Although I thought we'd done this already in a recent fix to the script - which means you might be running an out of date version from SVN ?

It seems we only just commited that this morning - oops!
« Last Edit: October 29, 2008, 12:56:32 PM by GodEater »
Logged

Read The Manual Please

Offline froce

  • Member
  • *
  • Posts: 4
Re: Can't setup build environment in Ububtu 8.10
« Reply #2 on: October 29, 2008, 09:43:50 AM »
Quote from: GodEater on October 29, 2008, 04:24:42 AM
Code: [Select]
export CPPFLAGS="-U_FORTIFY_SOURCE" ./rockboxdev.sh

Should fix it.
Thanks.
I have tried.But still can't build the arm-elf-gcc.
number of svn version:18919
Quote
Although I thought we'd done this already in a recent fix to the script - which means you might be running an out of date version from SVN ?

It seems we only just commited that this morning - oops!
;D
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Can't setup build environment in Ububtu 8.10
« Reply #3 on: October 29, 2008, 10:20:45 AM »
Do you have 64 bit?

sudo CPPFLAGS="-U_FORTIFY_SOURCE" ./rockboxdev.sh

worked fine for me on Ubuntu 8.10 32 bit

For 64 bit you could try

sudo CPPFLAGS="-U_FORTIFY_SOURCE -fno-stack-protector" ./rockboxdev.sh
« Last Edit: October 29, 2008, 11:35:18 AM by BigBambi »
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline froce

  • Member
  • *
  • Posts: 4
Re: Can't setup build environment in Ububtu 8.10
« Reply #4 on: October 29, 2008, 11:30:11 AM »
Thanks all.
It can work now. ;D

Quote
sudo CPPFLAGS="-U_FORTIFY_SOURCE" ./rockboxdev.sh
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Can't setup build environment in Ububtu 8.10
 

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

Page created in 0.073 seconds with 15 queries.