Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: gcc 3.1.1/sh1 compile problems

gcc 3.1.1/sh1 compile problems

From: roland <for_spam_at_gmx.de>
Date: Sun, 7 Dec 2003 11:57:02 +0100

hi !
while continuing working on the win32 rockbox sdk - i have hit a really strange bug. sh1 compiling (with gcc 3.0.4) under win98
(damn it!) suddenly won`t work anymore and i have absolutely no clue, why it works on other platforms(nt/xp) without problems. (same
bug as bluechip already reported). i had another setup of 3.0.4 and that worked already on win98 - so this is just strange and i
couldnt find a solution at the moment(but will dig further, for sure)
i have used gcc 3.0.4 for all the time, but i thought: cygwin comes with gcc3.1.1/i386 - so why not enter "experimental terrain" and
give gcc3.1.1/sh1 a try? maybe this solves the win98 problem (maybe it introduces new :)
i compiled gcc3.1.1/sh1 (and binutils) from source and all looked quite promising - i could compile several files without errors.
(see list of successful modules at the bottom) - but in the end, i get segfaults while compiling:

$ make firmware
make -C ../firmware TARGET=-DARCHOS_RECORDER NODEBUG=1 OBJDIR="/home/rockbox/rockbox-2.1/b" MEM=2 TOOLSDIR=../tools
make[1]: Entering directory `/home/rockbox/rockbox-2.1/firmware'
sh-elf-gcc -W -Wall -O -m1 -nostdlib -ffreestanding -Wstrict-prototypes -Iinclude -I. -Iexport -Icommon -Idrivers -DARCHOS_RECORDER
 -DMEM=2 -fomit-frame-pointer -fschedule-insns -c mpeg.c -o /home/rockbox/rockbox-2.1/b/mpeg.o
mpeg.c: In function `init_playback':
mpeg.c:2410: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[1]: *** [/home/rockbox/rockbox-2.1/b/mpeg.o] Fehler 1
make[1]: Leaving directory `/home/rockbox/rockbox-2.1/firmware'
make: *** [firmware] Fehler 2


$ make apps
make -C ../apps TARGET=-DARCHOS_RECORDER NODEBUG=1 OBJDIR="/home/rockbox/rockbox-2.1/b" VERSION=031207-0443 LANGUAGE=english MEM=2
TOOLSDIR=../tools
make[1]: Entering directory `/home/rockbox/rockbox-2.1/apps'
Updating dependencies for /home/rockbox/rockbox-2.1/b/recorder/recording.c
Updating dependencies for /home/rockbox/rockbox-2.1/b/recorder/radio.c
---- snipp ----
Updating dependencies for /home/rockbox/rockbox-2.1/b/credits.c
Updating dependencies for /home/rockbox/rockbox-2.1/b/alarm_menu.c
make[1]: Leaving directory `/home/rockbox/rockbox-2.1/apps'
make[1]: Entering directory `/home/rockbox/rockbox-2.1/apps'
sh-elf-gcc -O -W -Wall -m1 -nostdlib -ffreestanding -Wstrict-prototypes -fomit-frame-pointer -fschedule-insns -I../firmware/include
 -I../firmware/export -I. -I/home/rockbox/rockbox-2.1/b -DARCHOS_RECORDER -DAPPSVERSION=\"031207-0443\" -
DMEM=2 -DPLUGIN=1 -Irecorder -c settings.c -o /home/rockbox/rockbox-2.1/b/settings.o
settings.c: In function `set_time':
settings.c:1993: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[1]: *** [/home/rockbox/rockbox-2.1/b/settings.o] Fehler 1
make[1]: Leaving directory `/home/rockbox/rockbox-2.1/apps'
make: *** [apps] Fehler 2


could i get some help from you guys?

- should i give up here , because compiling rockbox with 3.1.1 is "unsupported" by you developers and we all should better "stay"
  with gcc 3.0.4 (as recommended in the docs)
- if not - any tips, how to further analyze this problem?
- would you think this is a gcc or a cygwin issue? (or both?)
- should i file a bugreport on cygwin or gcc, because i have hit a possible gcc/cygwin bug?

while writing this mail, i fiddled around a little bit more, and came some steps further. setting the optimization level to 2 (-O2)
made mpeg.c compile - so a "make firmware" finishes and gives me a librockbox.a in the end.

unfortunately, it doesnt help with settings.c :

now i get:
sh-elf-gcc -O2 -W -Wall -m1 -nostdlib -ffreestanding -Wstrict-prototypes -fomit-frame-pointer -fschedule-insns -I../firmware/includ
e -I../firmware/export -I. -I/home/rockbox/rockbox-2.1/b -DARCHOS_RECORDER -DAPPSVERSION=\"031207-0543\"
-DMEM=2 -DPLUGIN=1 -Irecorder -c settings.c -o /home/rockbox/rockbox-2.1/b/settings.o
settings.c: In function `settings_save_config':
settings.c:1411: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[1]: *** [/home/rockbox/rockbox-2.1/b/settings.o] Fehler 1
make[1]: Leaving directory `/home/rockbox/rockbox-2.1/apps'
make: *** [apps] Fehler 2

?????????

regards
roland


successful finished:
./alarm_menu.o
./backlight.o
./bitswap.o
./buffer.o
./build.lang
./common
./common/atoi.o
./common/ctype.o
./common/dir.o
./common/disk.o
./common/errno.o
./common/file.o
./common/memcmp.o
./common/memcpy.o
./common/memset.o
./common/qsort.o
./common/random.o
./common/sprintf.o
./common/strcasecmp.o
./common/strcat.o
./common/strchr.o
./common/strcmp.o
./common/strcpy.o
./common/strlen.o
./common/strncmp.o
./common/strncpy.o
./common/strrchr.o
./common/strtok.o
./common/timefuncs.o
./credits.o
./credits.raw
./crt0.o
./debug.o
./debug_menu.o
./descramble.o
./drivers
./drivers/adc.o
./drivers/ata.o
./drivers/button.o
./drivers/dac.o
./drivers/fat.o
./drivers/fmradio.o
./drivers/i2c.o
./drivers/lcd-player-charset.o
./drivers/lcd-player.o
./drivers/lcd-recorder.o
./drivers/lcd.o
./drivers/led.o
./drivers/mas.o
./drivers/power.o
./drivers/rtc.o
./drivers/serial.o
./font.o
./hwcompat.o
./id3.o
./kernel.o
./lang.c
./lang.h
./lang.o
./language.o
./librockbox.a
./main.o
./main_menu.o
./Makefile
./menu.o
./misc.o
./mp3data.o
./mpeg.o
./onplay.o
./panic.o
./playlist.o
./playlist_menu.o
./plugin.o
./powermgmt.o
./rolo.o
./screens.o
./sysfont.c
./sysfont.o
./system.o
./thread.o
./usb.o
Received on 2003-12-07

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy