I had understood that the kernel wouldn't compile with gcc 2.96 but rather no
later that 2.95 (according to Linus). ---Jay

Christian A Strømmen [Number1/NumeroUno] wrote:

> On Friday 19 January 2001 00:15, you wrote:
> > It seems your cc install is very screwed, the -lang-c does not appear in
> > any kernel
> > Makefile, so I suppose it comes from the cc driver. It looks like it is
> > calling /usr/bin/cpp for preprocessing (so it does not understand the
> > -lang-c flag the cc command gives him, because it is only internal, for
> > cpp0), and it should use the internal cpp0, usually located at
> > /usr/lib/gcc-lib/i586-mandrake-linux/2.96/cpp0.
> >
> > As a suggestion (as you seem not to be using egcs to build kernel) check
> > you don't have any egcs-xxxx package installed (specially egcs and
> > egcs-cpp). You seem to be using cooker (at least gcc 2.6). So get the
> > latest gcc-2.96 (gcc, gcc-cpp). Perhaps you miss the gcc-cpp package, and
> > your gcc-2.96 is trying to use and old cpp.
>
> Well, I did as you said and removed all egcs stuff from my system:
> <snap>
> egcs-g77-1.1.2-40mdk
> egcs-1.1.2-40mdk
> egcs-objc-1.1.2-40mdk
> egcs-c++-1.1.2-40mdk
> egcs-libstdc++-1.1.2-40mdk
> egcs-objc-devel-1.1.2-40mdk
> </snap>
>
> I checked the gcc, but all the packages seems to be from the same period:
> <snap>
> gcc-cpp-2.96-0.33mdk
> gcc-g77-2.96-0.33mdk
> gcc-2.96-0.33mdk
> gcc-objc-2.96-0.33mdk
> gcc-java-2.96-0.33mdk
> gcc-c++-2.96-0.33mdk
> </snap>
>
> So I removed the egcs stuff, removed the /usr/src/linux-2.4.0/ dir,
> reinstalled the kernel-sources rpm, enter the 2.4.0 src dir and started from
> the beginning, but it still errors on:
> <snap>
> make[3]: Entering directory `/usr/src/linux-2.4.0/net/ipv4/netfilter'
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2
> -march=i686    -DEXPORT_SYMTAB
> -c ip_conntrack_standalone.c
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2
> -march=i686    -c -o ip_conntrack_core.o ip_conntrack_core.c
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2
> -march=i686    -c -o ip_conntrack_proto_generic.o ip_conntrack_proto_generic.c
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2
> -march=i686    -c -o ip_conntrack_proto_tcp.o ip_conntrack_proto_tcp.c
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2
> -march=i686    -c -o ip_conntrack_proto_udp.o ip_conntrack_proto_udp.c
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2
> -march=i686    -c -o ip_conntrack_proto_icmp.o ip_conntrack_proto_icmp.c
> ld -m elf_i386 -r -o ip_conntrack.o ip_conntrack_standalone.o
> ip_conntrack_core.o ip_conntrack_proto_generic.o ip_conntrack_proto_tcp.o
> ip_conntrack_proto_udp.o ip_conntrack_proto_icmp.o
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2
> -march=i686    -DEXPORT_SYMTAB
> -c ip_conntrack_ftp.c
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2
> -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2
> -march=i686    -c -o ip_nat_ftp.o ip_nat_ftp.c
> ip_nat_ftp.c: In function `help':
> ip_nat_ftp.c:315: structure has no member named `nat'
> make[3]: *** [ip_nat_ftp.o] Error 1
> make[3]: Leaving directory `/usr/src/linux-2.4.0/net/ipv4/netfilter'
> make[2]: *** [first_rule] Error 2
> make[2]: Leaving directory `/usr/src/linux-2.4.0/net/ipv4/netfilter'
> make[1]: *** [_subdir_ipv4/netfilter] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.4.0/net'
> make: *** [_dir_net] Error 2
> </snap>
>
> Any clue?
>
> > And if you want your life to be easier, get the 2.4.0 original sources from
> > www.kernel.org, and the 2.4.1-pre8 patch, to run a 2.4.1-pre8 kernel. The
> > advantage (apart from tons of bug fixes and cleanup)
> > is that reiser is yet integrated in the main kernel tree for the
> > 1-pre series from Linus. Then, you just have to look for a suitable
> > supermount patch (I don't know where to get supermount 'cause I hate it).
>
> The problem is that the 2.4.1-pre7&8 kernels still needs to be patched with
> reiserfs-utils to get it working.  I've tried compiling them, but got errors
> there too....  :(
>
> --
> \ Christian A Strømmen /
> \ Number1/NumeroUno @ Undernet - Email: [EMAIL PROTECTED] /
> \ Web: www.realityx.net - Cell: +47 911 43 948 /
>    Live your life by your dreams,
>      not by the limits of reality...


Reply via email to