Hi Simon,

I have RH8.0, source linux-2.4.21, and gcc3.3.

I installed gcc3.3 lib at '/usr/local/lib/gcc-lib'.

In the beginning, when I build linux I got the same error
as you have.

So, I renamed '/usr/lib/gcc-lib' which was for gcc3.2
to something else. I symbolic link '/usr/local/lib/gcc-lib'
as '/usr/lib/gcc-lib' and rebuild.

Everything worked fine.

I hope with this info you will be able to progress with
your build.

I pasted the last bit of my compiler message as follows.

<snipped>

...
gcc -D__ASSEMBLY__ -D__KERNEL__ -I/home4/src/linux-2.4.21/include -tradition
al -c head.S
gcc -D__KERNEL__ -I/home4/src/linux-2.4.21/include -Wall -Wstrict-prototypes
 -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -p
ipe -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=misc -c
misc.c
ld -m elf_i386 -Ttext 0x100000 -e startup_32 -o bvmlinux head.o misc.o
piggy.o
make[2]: Leaving directory
`/home4/src/linux-2.4.21/arch/i386/boot/compressed'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o tools/build
tools/build.c -I/home4/src/linux-2.4.21/include
objcopy -O binary -R .note -R .comment -S compressed/bvmlinux
compressed/bvmlinux.out
tools/build -b bbootsect bsetup compressed/bvmlinux.out CURRENT > bzImage
Root device is (3, 1)
Boot sector 512 bytes.
Setup is 2515 bytes.
System is 1116 kB
warning: kernel is too big for standalone boot from floppy
make[1]: Leaving directory `/home4/src/linux-2.4.21/arch/i386/boot'
[EMAIL PROTECTED] linux-2.4.21]#

> On Wed, 2003-06-11 at 22:45, Lester Cheung wrote:
> > I believe that the top level makefile set CC to gcc explictly.
> >
> > /usr/src/kernel-source-2.4.20/Makefile:
> >      30 CC      = $(CROSS_COMPILE)gcc
>
> Is anyone having problems building the kernel with gcc-3.3?
>
> My previously compilable kernel 2.4.19 (using gcc 2.95.4) is no longer
> buildable under gcc 3.3.
>
> The first error I get is for the IDE cd-rom module:
>
>     gcc -D__KERNEL__ -I/usr/src/kernel-source-2.4.19/include -Wall
>     -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
>     -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2
>     -march=i686   -nostdinc -I /usr/lib/gcc-lib/i386-linux/3.3/include
>     -DKBUILD_BASENAME=ide_cd  -c -o ide-cd.o ide-cd.c
>     In file included from ide-cd.c:318:
>     ide-cd.h:440: error: long, short, signed or unsigned used invalidly
>     for `slot_tablelen'
>     make[4]: *** [ide-cd.o] Error 1
>     make[4]: Leaving directory
>     `/usr/src/kernel-source-2.4.19/drivers/ide'
>     make[3]: *** [first_rule] Error 2
>     make[3]: Leaving directory
>     `/usr/src/kernel-source-2.4.19/drivers/ide'
>     make[2]: *** [_subdir_ide] Error 2
>     make[2]: Leaving directory `/usr/src/kernel-source-2.4.19/drivers'
>     make[1]: *** [_dir_drivers] Error 2
>     make[1]: Leaving directory `/usr/src/kernel-source-2.4.19'
>     make: *** [stamp-build] Error 2
>
> Seems funny.
>
> I tried setting CC=/usr/bin/gcc-2.95 but same problem.
>

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to