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
| | |-+  rockboxdev.sh gcc/combine.c error
« previous next »
  • Print
Pages: [1]

Author Topic: rockboxdev.sh gcc/combine.c error  (Read 2589 times)

Offline crowd345

  • Member
  • *
  • Posts: 4
rockboxdev.sh gcc/combine.c error
« on: January 29, 2011, 04:46:57 PM »
Hello to everybody who care enough to read this topic!

I'm new here, so i am not sure is this right part of forum to ask such question or not. I hope so.

I followed this instruction The Simple Guide To Compiling In Linux with my home Ubuntu 10.10, and couple times with VirtualBoxed one (same version of Ubuntu, but it was preinstalled and i downloaded it from http://downloads.sourceforge.net/virtualboximage/ubuntu-xxx.vdi.bz2).

I believe i take steps exactly how it stated in manual, but after i launch in terminal command:
Code: [Select]
sudo ./rockboxdev.sh
i can see lots of work that my PC is doing. But after probably 30 mins it stops and give me this information:
Code: [Select]
    I../../gcc-4.4.4/gcc/../libdecnumber -I../../gcc-4.4.4/gcc/../libdecnumber/dpd -I../libdecnumber    ../../gcc-4.4.4/gcc/combine.c -o combine.o
    ../../gcc-4.4.4/gcc/combine.c: In function 'make_extraction':
    ../../gcc-4.4.4/gcc/combine.c:6776: internal compiler error: Segmentation fault
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.
    make[2]: *** [combine.o] Error 1
    make[2]: Leaving directory `/tmp/rbdev-build/build-gcc/gcc'
    make[1]: *** [all-gcc] Error 2
    make[1]: Leaving directory `/tmp/rbdev-build/build-gcc'
    make: *** [all] Error 2
    ubuntu@ubuntu-VirtualBox:~/rockbox/tools$

Please suggest something that can fix this bug. Thanks!

P.S. target arch is "e - arm-eabi - ipod"
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: rockboxdev.sh gcc/combine.c error
« Reply #1 on: January 30, 2011, 05:36:44 AM »
For target arch you just type "e", not the rest of the line but I don't think that should have caused this.

To clarify, you are running this in a ubuntu 10.10 VM?
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline crowd345

  • Member
  • *
  • Posts: 4
Re: rockboxdev.sh gcc/combine.c error
« Reply #2 on: January 30, 2011, 06:30:16 AM »
Quote from: AlexP on January 30, 2011, 05:36:44 AM
For target arch you just type "e", not the rest of the line but I don't think that should have caused this.

No, that's just misunderstanding. Actually i taped it correct ("e"), but thought to give a little more information about it. Never mind..
 
Quote from: AlexP on January 30, 2011, 05:36:44 AM
To clarify, you are running this in a ubuntu 10.10 VM?

Well, yes. And as i stated in previous post i also tried it on my real home Ubuntu 10.10 and got stocked with same error message.

After it i can try to use "../tools/configure" command and it will give me that (I believe my "$PATH" parameter is correct just proper compiler doesn't installed):

Code: [Select]
21
Platform set to ipodnano1g
Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, (C)heckWPS, (D)atabase tool, (M)anual: (Defaults to N)
n
Normal build selected
Using source code root directory: /home/maxim/rockbox
../tools/configure: 3041: arm-elf-eabi-gcc: not found
[WARNING] The compiler you must use (arm-elf-eabi-gcc) is not in your path!
[WARNING] this may cause your build to fail since we cannot do the
[WARNING] checks we want now.
Using arm-elf-eabi-ld 2.20.1.20100303
Created Makefile
maxim@m-desktop:~/rockbox/build$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
maxim@m-desktop:~/rockbox/build$


Post Merge: January 30, 2011, 10:28:30 AM
I believe there should be many people using 10.10. Is anybody from you faced such problem or that's just me?
« Last Edit: January 30, 2011, 10:28:30 AM by crowd345 »
Logged

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: rockboxdev.sh gcc/combine.c error
« Reply #3 on: January 30, 2011, 02:09:22 PM »
If you try doing it again, does it fail at the same place, or a different file during the build? If it's random places then the most common cause is flaky hardware (bad RAM is common). If it's consistent then something is probably wrong with the VM...
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

Offline crowd345

  • Member
  • *
  • Posts: 4
Re: rockboxdev.sh gcc/combine.c error
« Reply #4 on: January 30, 2011, 03:22:09 PM »
You guys undermine my confidence in English skills  :P
(i'm not a native speaker and you are probably already noticed that)

Quote from: torne on January 30, 2011, 02:09:22 PM
If you try doing it again, does it fail at the same place, or a different file during the build?
"i also tried it on my real home Ubuntu 10.10 and got stocked with same error message."

In summary i tried it one time with my real system and probably 3 times with clean brand new VirtualBoxed one (That was downloaded from sourceforge.net). That's always 100% same error in same module.

Quote from: torne on January 30, 2011, 02:09:22 PM
If it's consistent then something is probably wrong with the VM...
Well, that doesn't explain why this error also affected my real Ubuntu system (not VM).

Could it possibly be a problem with .sh script? Because i have up to date pretty "out of the box" OS with minor changes. Please tell me if you are sure there nothing wrong with script when i'll just try VMWare Image or some another way. Thank you for your help!
« Last Edit: January 30, 2011, 03:42:44 PM by crowd345 »
Logged

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: rockboxdev.sh gcc/combine.c error
« Reply #5 on: January 31, 2011, 05:45:25 AM »
Sorry, it's not your english skills but my lack of thorough reading of your post. :)

The rockboxdev.sh script just calls gcc's build process, it doesn't do anything itself. If the gcc build fails on the same file every time, even on a VM, then there's a problem, but it's not one anyone else has using the same source.

The command you gave is not complete, it's missing the beginning (most of the invocations of gcc during the build are 10+ lines long) so I can't see whether it's running the host compiler or the stage1/stage2 compiler. if it's the former then it's probably an issue with the version of gcc in your Ubuntu version.. if the latter then something strange is going on because that's the binary built by earlier stages of the gcc build which should be relatively consistent with what everyone else gets :)
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

Offline gbl08ma

  • Member
  • *
  • Posts: 249
    • My blog
Re: rockboxdev.sh gcc/combine.c error
« Reply #6 on: January 31, 2011, 04:54:34 PM »
I'm running Ubuntu 10.10 (upgraded from 10.04 without formatting) and last time I ran tools/configure.sh I had no problems.

Obviously, something might have changed in the SVN in the meantime that might have caused that. But as torne says, it might be the specific gcc instalation.
Logged
http://gbl08ma.com | http://i.tny.im

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: rockboxdev.sh gcc/combine.c error
« Reply #7 on: February 01, 2011, 04:16:30 AM »
When was the last time? We change gcc version from time to time, so rockboxdev.sh is not always building the same thing.
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

Offline gbl08ma

  • Member
  • *
  • Posts: 249
    • My blog
Re: rockboxdev.sh gcc/combine.c error
« Reply #8 on: February 01, 2011, 04:03:22 PM »
About a month and a half ago. The gcc package on the Ubuntu repositories or the tools/rockboxdev.sh could have changed in this time...
Logged
http://gbl08ma.com | http://i.tny.im

Offline crowd345

  • Member
  • *
  • Posts: 4
Re: rockboxdev.sh gcc/combine.c error
« Reply #9 on: February 02, 2011, 02:08:13 AM »
Well, i finally figured it out  8)

After my last message I tried Ubuntu 9.10 VM and manual installation of different versions of GCC and all that fail but with errors in different modules.  So i tested my RAM with memtest (from Ubuntu's bootloader) and it's looked ok. After that i loaded "fail safe" options in BIOS and rockboxdev.sh worked out for me  just fine.

So torne was right- it's the flaky hardware in my situation, but that's still a little bit mystery for me. Thanks for assistance!
Logged

Offline torne

  • Developer
  • Member
  • *
  • Posts: 994
  • arf arf
Re: rockboxdev.sh gcc/combine.c error
« Reply #10 on: February 02, 2011, 05:32:18 AM »
gcc spends all its time manipulating vast numbers of pointers; it's somewhat more likely to be affected by hardware flakiness than most software :)
Logged
some kind of ARM guy. ipodvideo/gigabeat-s/h120/clipv2. to save time let's assume i know everything.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  rockboxdev.sh gcc/combine.c error
 

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

Page created in 0.084 seconds with 14 queries.