public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/7138: gcc-3.2 failed to compile kernel
@ 2002-06-26 23:36 joel.soete
  0 siblings, 0 replies; only message in thread
From: joel.soete @ 2002-06-26 23:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7138
>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:16:00 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:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-06-27  6:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-26 23:36 c/7138: gcc-3.2 failed to compile kernel joel.soete

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).