This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Has anyone compiled Linux 2.2.1x with gcc 2.96?
- To: "H . J . Lu" <hjl at valinux dot com>
- Subject: Re: Has anyone compiled Linux 2.2.1x with gcc 2.96?
- From: Artur Skawina <skawina at geocities dot com>
- Date: Tue, 20 Jun 2000 16:39:59 +0200
- CC: gcc at gcc dot gnu dot org
- References: <20000618120519.A23575@valinux.com>
H . J . Lu wrote:
>
> I tried to compile my modified Linux 2.2.14 with gcc 2.96 20000617. I
> exported memcpy and memset from kernel. But I cannot get a working
> kernel. Many binaries just segfault. The NFS client and server modules
> don't work with all kinds of errors. I guess gcc 2.96 20000617 is just
> not compatible with Linux kernel 2.2.1x.
# cat /proc/version
Linux version 2.3.99-pre9pre2as-smp (root@olaf) (gcc version 2.96 20000612 (experimental)) #718 SMP Tue Jun 20 03:09:03 UTC 2000
I don't know about 2.2, but the first thing I'd try is
# turn off broken sibling call optimizations
CFLAGS += $(shell if $(CC) -fno-optimize-sibling-calls -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-fno-optimize-sibling-calls"; fi)
as it wouldn't surprise me to see binaries segfaulting otherwise...