Backing off gcc version

Development on core packages and the distribution goes on in here.

Backing off gcc version

Postby jonsmirl » Fri Apr 29, 2011 2:28 am

gcc version 4.5.2 20110127 is segfaulting for me when compiling one of my programs. Are there older versions of it I can back off to?

Problem program is here:
git://contiki.git.sourceforge.net/gitro ... ki/contiki

in tools/tunslip6

[root@Arch Linux ARM install tools]# make tunslip6
cc tunslip6.c -o tunslip6
tunslip6.c: In function ‘main’:
tunslip6.c:901:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [tunslip6] Error 1
[root@Arch Linux ARM install tools]#
jonsmirl
 
Posts: 13
Joined: Sun Apr 24, 2011 11:48 pm

Re: Backing off gcc version

Postby kmihelich » Fri Apr 29, 2011 3:39 am

No need to. Problem is you ran out of memory. You generally see gcc and ld segfault when this happens. Enable some swap space somewhere, it will work. I just checked out that git repo and compiled without issue.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: Backing off gcc version

Postby jonsmirl » Fri Apr 29, 2011 4:07 am

Just to be sure I gave it 8GB of swap.
I am on PogoplugPro.
The device is a 802.15.4 radio (Zigbee).
http://mc1322x.devl.org/
--------------------------------------------------------

[root@Arch Linux ARM install tools]# swapon -s
Filename Type Size Used Priority
/media/hd-sdb1/swapfile file 8388600 44 -1
[root@Arch Linux ARM install tools]# make tunslip6
cc tunslip6.c -o tunslip6
tunslip6.c: In function ‘main’:
tunslip6.c:901:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [tunslip6] Error 1
[root@Arch Linux ARM install tools]#
jonsmirl
 
Posts: 13
Joined: Sun Apr 24, 2011 11:48 pm

Re: Backing off gcc version

Postby jonsmirl » Fri Apr 29, 2011 5:09 am

I gave up and reinstalled all of Arch Linux ARM install. I can compile everything now.

[root@Arch Linux ARM install tools]# make tunslip6
cc tunslip6.c -o tunslip6
[root@Arch Linux ARM install tools]# ./tunslip6
tunslip6: usage: ./tunslip6 [-B baudrate] [-H] [-L] [-s siodev] [-t tundev] [-T] [-v verbosity] [-d delay] [-a serveraddress] [-p serverport] ipaddress: Success
[root@Arch Linux ARM install tools]#
jonsmirl
 
Posts: 13
Joined: Sun Apr 24, 2011 11:48 pm

Re: Backing off gcc version

Postby WarheadsSE » Fri Apr 29, 2011 12:45 pm

Holy moly!
8GB?

I've never come near 1GB even when compiling a full toolchain.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Backing off gcc version

Postby jonsmirl » Fri Apr 29, 2011 2:33 pm

I didn't need the 8GB swap file, I just wanted to be sure. I had already had a 512MB swapfile initially.

The reinstall fixed it. Some problem with the install was caused the seg fault. It takes about 40MB and a Pro only has 16MB of memory.
jonsmirl
 
Posts: 13
Joined: Sun Apr 24, 2011 11:48 pm


Return to Arch Linux ARM

Who is online

Users browsing this forum: No registered users and 10 guests