LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Weird problem, can't compile kernel: gcc: Internal error:Segmentation fault (prgm as) (https://www.linuxquestions.org/questions/linux-software-2/weird-problem-cant-compile-kernel-gcc-internal-error-segmentation-fault-prgm-as-469454/)

abefroman 07-31-2006 02:28 PM

Weird problem, can't compile kernel: gcc: Internal error:Segmentation fault (prgm as)
 
CentOS 4.3
Current Kernel 2.6.9-34.0.2.ELsmp
I have a weird problem, I can't compile kernel, it seems to choke on a different module each time I try to compile.

Has anyone had this problem before?

One of the messages state it might be an OS or Hardware issue, do you know which one it is more likely to be? or is it likely something else? Thanks in advance.

******FIRST RUN*********
gcc: Internal error: Segmentation fault (program as)

Here is what the kernel says while compiling:
CC [M] drivers/atm/ambassador.o
gcc: Internal error: Segmentation fault (program as)
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
make[2]: *** [drivers/atm/ambassador.o] Error 1
make[1]: *** [drivers/atm] Error 2
make: *** [drivers] Error 2
INSTALL arch/i386/crypto/aes-i586.ko
cp: cannot stat `arch/i386/crypto/aes-i586.ko': No such file or directory
make[1]: *** [arch/i386/crypto/aes-i586.ko] Error 1
make: *** [_modinst_] Error 2

mm/memory.c: In function `get_user_pages':
mm/memory.c:1086: internal compiler error: in final_scan_insn, at final.c:1794
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[1]: *** [mm/memory.o] Error 1
make: *** [mm] Error 2
sh /usr/src/linux-2.6.17.7/arch/i386/boot/install.sh 2.6.17.7 arch/i386/boot/bzImage System.map "/boot"

*** Missing file: arch/i386/boot/bzImage
*** You need to run "make" before "make install".

make[1]: *** [install] Error 1
make: *** [install] Error 2

****SECOND RUN*********8

CC [M] drivers/infiniband/hw/mthca/mthca_mr.o
drivers/infiniband/hw/mthca/mthca_mr.c:890: internal compiler error: in size_of_die, at dwarf2out.c:6362
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[3]: *** [drivers/infiniband/hw/mthca/mthca_mr.o] Error 1
make[2]: *** [drivers/infiniband/hw/mthca] Error 2
make[1]: *** [drivers/infiniband] Error 2
make: *** [drivers] Error 2

gcc: Internal error: Segmentation fault (program as)
Please submit a full bug report.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
make[2]: *** [fs/ext2/inode.o] Error 1
make[1]: *** [fs/ext2] Error 2
make: *** [fs] Error 2

Lenard 07-31-2006 02:46 PM

What version of gcc and qt (include the -devel packages also) are installed????

There seems to be an issue with qt-3.3.6-11.1 from the kde-redhat repo.

rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}.rpm\n" 'gcc*' 'qt*' | sort

abefroman 07-31-2006 04:37 PM

root@server1 [~]# rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}.rpm\n" 'gcc*' 'qt*' | sort
gcc-3.4.5-2.i386.rpm
gcc-c++-3.4.5-2.i386.rpm

root@server1 [~]# rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}.rpm\n" 'gcc*' 'qt*' | sort
gcc-3.4.5-2.i386.rpm
gcc-c++-3.4.5-2.i386.rpm
qt-3.3.3-9.3.i386.rpm
qt-devel-3.3.3-9.3.i386.rpm

Compiling the kernel still returns the same error.

Emerson 07-31-2006 05:15 PM

>I have a weird problem, I can't compile kernel, it seems to choke on a different module each time I try to compile.

Since it segfaults on different modules I'd say it is certainly a hardware problem. Suspect #1 is RAM. Kernel compiling is actually a very good RAM test.

abefroman 08-01-2006 05:28 PM

That was it, I replaced the ram and it worked no problem.

Thanks and thanks a lot!!


All times are GMT -5. The time now is 03:19 AM.