gcc-3.2 failed to compile kernel
Hi all,
To try to investigate the network problem with compiling kernel with gcc-3.2 on hppa, I cvs update gcc and binutils this morning. Then build toolchain and finally make dep ; make vmlinux but it failled with following message:
make[1]: Entering directory `/Develop/parisc-linux/src/linux-2.4.18-pa40/arch/parisc/kernel' gcc -D__KERNEL__ -I/Develop/parisc-linux/src/linux-2.4.18-pa40/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -D__linux__ -pipe -fno-strength-reduce -mno-space-regs -mfast-indirect-calls -mdisable-fpregs -ffunction-sections -march=1.1
-mschedule=7100 -DKBUILD_BASENAME=cache -c -o cache.o cache.c
gcc -D__ASSEMBLY__ -traditional -D__KERNEL__ -I/Develop/parisc-linux/src/linux-2.4.18-pa40/include -c -o pacache.o pacache.S In file included from pacache.S:44:
/Develop/parisc-linux/src/linux-2.4.18-pa40/include/asm/cache.h:9: 1/config.h:
No such file or directory
make[1]: *** [pacache.o] Error 1
make[1]: Leaving directory `/Develop/parisc-linux/src/linux-2.4.18-pa40/arch/parisc/kernel'
make: *** [_dir_arch/parisc/kernel] Error 2
?? "1/config.h"
??
Any idea?
Thanks in advance,
Joel
PS1: the same sources (2.4.18-pa40) compile and run fine when compile natively with gcc-3.0.4 (last hppa.dpkg).
PS2: glibc used to build toolchain was based on glibc_2.2.5-4 (+ patch)
-------------------------------------------------
This mail sent through Tiscali Webmail (http://webmail.tiscali.be)
Quoted 4 lines · [email protected] wrote:
In file included from pacache.S:44:
/Develop/parisc-linux/src/linux-2.4.18-pa40/include/asm/cache.h:9:1/config.h
:
No such file or directory
The offending line is:
8 #include <linux/config.h>
I'll assume "linux" being #define'd to 1.
gcc predefines perhaps?
grant
Quoted 11 lines
Quoted 4 lines · [email protected] wrote:
In file included from pacache.S:44:
/Develop/parisc-linux/src/linux-2.4.18-pa40/include/asm/cache.h:9:1/config.h
:
No such file or directoryThe offending line is:
8 #include <linux/config.h>I'll assume "linux" being #define'd to 1.
gcc predefines perhaps?
Yes, the predefine is standard and is present in gcc 3.0.4, etc. You can see macro defines using the "-dM -E" option.
However, the macro should not be expanded inside <> or "". Joel, can you file a PR <http://gcc.gnu.org/cgi-bin/gnatsweb.pl>?
Dave
Signature · 2 lines
J. David Anglin [email protected] National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
Quoting John David Anglin <[email protected]>:
Quoted 10 lines
Quoted 3 lines
Quoted 2 lines · [email protected] wrote:
In file included from pacache.S:44:
/Develop/parisc-linux/src/linux-2.4.18-pa40/include/asm/cache.h:9:
1/config.hQuoted 6 lines
Quoted 2 lines
:
No such file or directoryThe offending line is:
8 #include <linux/config.h>
Quoted 6 lines
Quoted 2 lines
I'll assume "linux" being #define'd to 1.
gcc predefines perhaps?Yes, the predefine is standard and is present in gcc 3.0.4, etc. You can
see macro defines using the "-dM -E" option.
Oops, gcc -E ... works well and give the expect results (if I do a link 1->linux) but gcc -dM -E ... SegFault :((
# gcc -dM -E -D__ASSEMBLY__ -traditional -D__KERNEL__
-I/Develop/parisc-linux/src/linux/include -c -o pacache.CPP pacache.S
In file included from /Develop/parisc-linux/src/linux/include/asm/assembly.h:31,
from pacache.S:44:
/Develop/parisc-linux/src/linux/include/asm/offset.h:3: unterminated #ifndef
cc1: internal compiler error: internal error: Segmentation faultQuoted 5 lines
However, the macro should not be expanded inside <> or "". Joel, can you
file a PR <http://gcc.gnu.org/cgi-bin/gnatsweb.pl>?
For the first problem ("linux" #define 1) here is the references:
----- Forwarded message from [email protected] -----
Date: 27 Jun 2002 06:16:00 -0000
From: [email protected]
Reply-To: [email protected],[email protected]
Subject: Re: c/7138: gcc-3.2 failed to compile kernel
To: [email protected]
Thank you very much for your problem report.
It has the internal identification `c/7138'.
The individual assigned to look at your
report is: unassigned.
Quoted 4 lines
Category: c Responsible: unassigned Synopsis: gcc-3.2 failed to compile kernel Arrival-Date: Wed Jun 26 23:16:00 PDT 2002
----- End forwarded message -----
Would I have to assign it to you?
Thanks for all,
Joel
-------------------------------------------------
This mail sent through Tiscali Webmail (http://webmail.tiscali.be)
Quoted 9 lines
Oops, gcc -E ... works well and give the expect results (if I do a link 1->linux) but gcc -dM -E ... SegFault :((
# gcc -dM -E -D__ASSEMBLY__ -traditional -D__KERNEL__ -I/Develop/parisc-linux/src/linux/include -c -o pacache.CPP pacache.S In file included from /Develop/parisc-linux/src/linux/include/asm/assembly.h:31, from pacache.S:44: /Develop/parisc-linux/src/linux/include/asm/offset.h:3: unterminated #ifndef cc1: internal compiler error: internal error: Segmentation fault
The '-c' shouldn't be there but cc1 shouldn't ICE on an unterminated #ifdef. Is the #ifdef actually unterminated? Would you file a PR on this one as well?
I'm also seeing a problem with the preprocessor on the vax :(
Dave
Signature · 2 lines
J. David Anglin [email protected] National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
It is perfectly all right now. Just a messed up cvs tree. An rm -rf and a cvs co took care of it.
Quoted 18 lines · John David Anglin
Quoted 9 lines
Oops, gcc -E ... works well and give the expect results (if I do a link 1->linux) but gcc -dM -E ... SegFault :((
# gcc -dM -E -D__ASSEMBLY__ -traditional -D__KERNEL__ -I/Develop/parisc-linux/src/linux/include -c -o pacache.CPP pacache.S In file included from /Develop/parisc-linux/src/linux/include/asm/assembly.h:31, from pacache.S:44: /Develop/parisc-linux/src/linux/include/asm/offset.h:3: unterminated #ifndef cc1: internal compiler error: internal error: Segmentation faultThe '-c' shouldn't be there but cc1 shouldn't ICE on an unterminated #ifdef. Is the #ifdef actually unterminated? Would you file a PR on this one as well?
I'm also seeing a problem with the preprocessor on the vax :(
Dave
Signature · 2 lines
"Cable is not a luxury, since many areas have poor TV reception." -- The mayor of Tucson, Arizona, 1989
This answer concern well your CVS Kernel?
Nice so :)
Joel
Quoting Jeremy Drake <[email protected]>:
Quoted 22 lines
It is perfectly all right now. Just a messed up cvs tree. An rm -rf and
a cvs co took care of it.Quoted 1 line · John David Anglin
Quoted 1 line
Oops, gcc -E ... works well and give the expect results (if I do a
link
Quoted 4 lines
Quoted 4 lines
1->linux) but gcc -dM -E ... SegFault :((
# gcc -dM -E -D__ASSEMBLY__ -traditional -D__KERNEL__ -I/Develop/parisc-linux/src/linux/include -c -o pacache.CPP
pacache.SQuoted 1 line
Quoted 1 line
In file included from
/Develop/parisc-linux/src/linux/include/asm/assembly.h:31,
Quoted 2 lines
Quoted 2 lines
from pacache.S:44:/Develop/parisc-linux/src/linux/include/asm/offset.h:3: unterminated
#ifndef
Quoted 3 lines
Quoted 1 line
cc1: internal compiler error: internal error: Segmentation fault
The '-c' shouldn't be there but cc1 shouldn't ICE on an unterminated
#ifdef.
Quoted 15 lines
Quoted 1 line
Is the #ifdef actually unterminated? Would you file a PR on this one
as
Quoted 6 lines
well?
I'm also seeing a problem with the preprocessor on the vax :(
Dave
Signature · 2 lines
"Cable is not a luxury, since many areas have poor TV reception." -- The mayor of Tucson, Arizona, 1989
-------------------------------------------------
This mail sent through Tiscali Webmail (http://webmail.tiscali.be)
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
1->linux) but gcc -dM -E ... SegFault :((
# gcc -dM -E -D__ASSEMBLY__ -traditional -D__KERNEL__ -I/Develop/parisc-linux/src/linux/include -c -o pacache.CPP
pacache.S
I don't think gcc (cc1) should segfault even if the cvs is messed up.
Dave
Signature · 2 lines
J. David Anglin [email protected] National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
Hi,
Neil seems to have fixed this problem but another one appears at the same place.
Here is the continue of story:
Quoting [email protected]:
Quoted 7 lines
Synopsis: gcc-3.2 failed to compile kernel
Quoted 1 line
State-Changed-From-To:
analyzed->closedState-Changed-By: neil
State-Changed-When: Thu Jun 27 23:31:44 2002 State-Changed-Why:
Fixed. Please let me know if it doesn't work for you (unlikely).Quoted 1 line
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7138
Quoted 1 line
Quoted 1 line
Hi Neil,
This seems to be fixed but (just for info) another problem at the same place:
gcc -D__KERNEL__ -I/Develop/parisc-linux/src/linux-2.4.18-pa40/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -D__linux__ -pipe -fno-strength-reduce -mno-space-regs -mfast-indirect-calls -mdisable-fpregs -ffunction-sections -march=1.1
-mschedule=7100 -DKBUILD_BASENAME=cache -c -o cache.o cache.c
gcc -D__ASSEMBLY__ -traditional -D__KERNEL__ -I/Develop/parisc-linux/src/linux-2.4.18-pa40/include -c -o pacache.o pacache.S /Develop/parisc-linux/src/linux-2.4.18-pa40/include/asm/pgtable.h: Assembler messages:
/Develop/parisc-linux/src/linux-2.4.18-pa40/include/asm/pgtable.h:45: Fatal
error: Unknown opcode: `printk("%s:%d: bad pte %08lx.\n", "/Develop/parisc-linux/src/linux-2.4.18-pa40/include/asm/pgtable.h",45,pte_val(e))' make[1]: *** [pacache.o] Error 1
make[1]: Leaving directory `/Develop/parisc-linux/src/linux-2.4.18-pa40/arch/parisc/kernel'
make: *** [_dir_arch/parisc/kernel] Error 2
But that will be another story (next 2 weeks i will be on hollidays :))
Many thanks Neil for your attention,
Joel
Quoting [email protected]:
Quoted 51 lines
This answer concern well your CVS Kernel?
Nice so :)
Joel
Quoting Jeremy Drake <[email protected]>:
Quoted 7 lines
It is perfectly all right now. Just a messed up cvs tree. An rm -rf and
a cvs co took care of it.Quoted 1 line · John David Anglin
Quoted 1 line
Oops, gcc -E ... works well and give the expect results (if I do
a
Quoted 10 lines
link
Quoted 4 lines
Quoted 4 lines
1->linux) but gcc -dM -E ... SegFault :((
# gcc -dM -E -D__ASSEMBLY__ -traditional -D__KERNEL__ -I/Develop/parisc-linux/src/linux/include -c -o pacache.CPP
pacache.SQuoted 1 line
Quoted 1 line
In file included from
/Develop/parisc-linux/src/linux/include/asm/assembly.h:31,
Quoted 2 lines
Quoted 2 lines
from pacache.S:44:/Develop/parisc-linux/src/linux/include/asm/offset.h:3:
unterminated
Quoted 4 lines
#ifndef
Quoted 3 lines
Quoted 1 line
cc1: internal compiler error: internal error: Segmentation fault
The '-c' shouldn't be there but cc1 shouldn't ICE on an
unterminated
Quoted 2 lines
#ifdef.
Quoted 1 line
Is the #ifdef actually unterminated? Would you file a PR on this
one
Quoted 14 lines
as
Quoted 6 lines
well?
I'm also seeing a problem with the preprocessor on the vax :(
Dave
Signature · 2 lines
"Cable is not a luxury, since many areas have poor TV reception." -- The mayor of Tucson, Arizona, 1989
Quoted 9 lines
-------------------------------------------------
This mail sent through Tiscali Webmail (http://webmail.tiscali.be)_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
-------------------------------------------------
This mail sent through Tiscali Webmail (http://webmail.tiscali.be)