Rockbox Development > Starting Development and Compiling
Can't setup build environment in Ububtu 8.10
(1/1)
froce:
As title,I can't setup build environment in Ububtu 8.10.
The error message:
--- Code: ---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!
--- End code ---
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!
GodEater:
--- Code: ---CPPFLAGS="-U_FORTIFY_SOURCE" ./rockboxdev.sh
--- End code ---
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!
froce:
--- Quote from: GodEater on October 29, 2008, 04:24:42 AM ---
--- Code: ---export CPPFLAGS="-U_FORTIFY_SOURCE" ./rockboxdev.sh
--- End code ---
Should fix it.
--- End quote ---
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!
--- End quote ---
;D
AlexP:
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
froce:
Thanks all.
It can work now. ;D
--- Quote ---sudo CPPFLAGS="-U_FORTIFY_SOURCE" ./rockboxdev.sh
--- End quote ---
Navigation
[0] Message Index
Go to full version