gcc 4.6 "Seems to be a completely non-functional toolchain"

Bug #1271078 reported by Steven Valsesia
2
Affects Status Importance Assigned to Milestone
Raspbian
Expired
Undecided
Unassigned

Bug Description

When i try to compile a hello world, I get that :

pi@raspberry ~/prog/test $ gcc test.c -o test
gcc: internal compiler error: Illegal instruction (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.

When i try to use gcc-4.4, it works !!!

4.6.3-14+rpi1 -> don't works.
4.4.7-3+rpi1 -> works.

Here is the test.i :

# 1 "test.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "test.c"
# 1 "/usr/include/stdio.h" 1 3 4

My Linux :

Linux raspberry 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST 2013 armv6l GNU/Linux

I first send a bug report for gcc ( http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59887 ), and Richard Biener tell me "Seems to be a completely non-functional toolchain. Report a bug to where you got it from."

EDIT: I think that bug happenned after my installation of gdc (gnu D compiler). Can it be the cause of my broken gcc ?

Thanks !

Tags: gcc gcc-4.6
description: updated
description: updated
Revision history for this message
peter green (plugwash) wrote :

If gcc 4.6 (the default compiler) was generally broken in raspbian I think we would have found out a long time ago so there must be something going on on your Pi that is breaking things and that does not apply to the majority of Pis out there .

Do you have a copy of the program that failed?
How did you attempt to install gdc 4.6? from a package? from source?

Revision history for this message
Steven Valsesia (steven-valsesia) wrote :

I posted here because I think it's "# apt-get update ; apt-get install gdc" who did that !

Plus, I don't understand why gcc-4.4 works normally... :(

The program i try to build is just an hello world !

Thank you !

Revision history for this message
peter green (plugwash) wrote :

Can you post the output of

cat /etc/apt/sources.list /etc/apt/sources.list.d/*
dpkg -l gdc gdc-4.6 gdc-4.8 gcc gcc-4.6 gcc-4.8

Revision history for this message
Steven Valsesia (steven-valsesia) wrote :

pi@raspberry ~/prog/test $ cat /etc/apt/sources.list /etc/apt/sources.list.d/*
deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
deb http://archive.raspberrypi.org/debian/ wheezy main

pi@raspberry ~/prog/test $ dpkg -l gdc gdc-4.6 gdc-4.8 gcc gcc-4.6 gcc-4.8
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============================================================================
ii gcc 4:4.6.3-8 armhf GNU C compiler
ii gcc-4.6 4.6.3-14+rpi1 armhf GNU C compiler
dpkg-query: no packages found matching gdc
dpkg-query: no packages found matching gdc-4.6
dpkg-query: no packages found matching gdc-4.8
dpkg-query: no packages found matching gcc-4.8

Thank you for your help !

Revision history for this message
Steven Valsesia (steven-valsesia) wrote :

I think I find what's going on,

root@raspberry:/home/pi# reboot
Broadcast message from root@raspberry (pts/0) (Tue Jan 21 20:40:58 2014):
The system is going down for reboot NOW!
Segmentation fault

less /var/log/kern.log | grep error
(a lot of)
Jan 21 20:03:06 raspberry kernel: [40375.785120] EXT4-fs error (device mmcblk0p2): add_dirent_to_buf:1587: inode #144040: block 533613: comm tar: bad entry in directory: rec_len % 4 != 0 - offset=0(0), inode=521849406, rec_len=58533, name_len=31

My raspberry is definitely dead ?

Revision history for this message
Diederik (didi-debian) wrote :

What's the current status? Any new developments?

Changed in raspbian:
status: New → Incomplete
Revision history for this message
Steven Valsesia (steven-valsesia) wrote :

Sorry, this bug report was a mistake.
Errors was due to bad sectors on the sd card.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Raspbian because there has been no activity for 60 days.]

Changed in raspbian:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.