This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Has anyone compiled Linux 2.2.1x with gcc 2.96?


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...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]