This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c/7137: gcc-3.2 failed to compile kernel
- From: joel at sources dot redhat dot com, soete at freebel dot net
- To: gcc-gnats at gcc dot gnu dot org
- Date: 27 Jun 2002 06:12:25 -0000
- Subject: c/7137: gcc-3.2 failed to compile kernel
- Reply-to: joel at sources dot redhat dot com, soete at freebel dot net
>Number: 7137
>Category: c
>Synopsis: gcc-3.2 failed to compile kernel
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jun 26 23:15:59 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: joel,soete@freebel.net
>Release: gcc-3.2
>Organization:
>Environment:
parisc-linux
>Description:
with gcc-3.2 (CVS update 2002-06-26),
binutils (CVS update 2002-06-26) &&
glibc (sources from debian release glibc-2.2.5-4 + Dave patch),
I build successfully the tool chain to compile the kernel linux-2.4.18-pa40 (CVS update).
After setting the env to access those binaries, I launch:
make mrproper ; make distclean # to be sure?
make oldconfig (answer PA7000 for processor type)
make menuconfig (exit without changes)
make dep ; make vmlinux
this last make failled with following messages:
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
Here is also experts comments:
Quoting John David Anglin <dave@hiauly1.hia.nrc.ca>:
> > joel.soete@freebel.net 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?
>
> 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
> --
> J. David Anglin dave.anglin@nrc.ca
> National Research Council of Canada (613) 990-0752 (FAX:
> 952-6605)
>
> _______________________________________________
> parisc-linux mailing list
> parisc-linux@lists.parisc-linux.org
> http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
>
>
>How-To-Repeat:
self explained in problem description
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: