2000-11-09 01:40:22

by J.A. Magallon

[permalink] [raw]
Subject: Errors in 2.4-test11 build

Trying to build 2.4.0-test11-pre1 I get the following:

make[1]: Entering directory `/usr/src/linux-2.4.0-test11/arch/i386/kernel'
kgcc -D__ASSEMBLY__ -D__KERNEL__ -I/usr/src/linux/include -traditional -c
trampoline.S -o trampoline.o
gcc: installation problem, cannot exec `tradcpp0': No such file or directory
make[1]: *** [trampoline.o] Error 1

My egcs does not have a -traditional cpp (Mandrake 7.2, packages egcs and
egcs-cpp).

Is mandatory the -traditional flag in linux/arch/i386/kernel/Makefile ?

If I symlink /usr/lib/gcc-lib/i586-mandrake-linux/egcs-2.91.66/tradcpp0 -> cpp0,
or
remove -traditional:

kgcc -D__ASSEMBLY__ -D__KERNEL__ -I/usr/src/linux/include -c trampoline.S -o
trampoline.o
trampoline.S:47: unterminated character constant

Code is:
movl $0xA5A5A5A5, trampoline_data - r_base
>>>>> # write marker for master knows we're running

well, remove the comment. Then:

kgcc -D__ASSEMBLY__ -D__KERNEL__ -I/usr/src/linux/include -c trampoline.S -o
trampoline.o
/tmp/ccg9ZEBO.s: Assembler messages:
/tmp/ccg9ZEBO.s:806: Error: can't handle non absolute segment in `ljmp'

What's going on ??? Build works ok with 2.95.2.
Any idea ?

Thanks for reading...

--
Juan Antonio Magallon Lacarta #> cd /pub
mailto:[email protected] #> more beer


2000-11-09 20:15:21

by Chmouel Boudjnah

[permalink] [raw]
Subject: Re: Errors in 2.4-test11 build

"J . A . Magallon" <[email protected]> writes:

> Trying to build 2.4.0-test11-pre1 I get the following:
>
> make[1]: Entering directory `/usr/src/linux-2.4.0-test11/arch/i386/kernel'
> kgcc -D__ASSEMBLY__ -D__KERNEL__ -I/usr/src/linux/include -traditional -c
> trampoline.S -o trampoline.o
> gcc: installation problem, cannot exec `tradcpp0': No such file or directory
> make[1]: *** [trampoline.o] Error 1
> My egcs does not have a -traditional cpp (Mandrake 7.2, packages egcs and
> egcs-cpp).

sorry this is an error with the egcs package can you upgrade to these
packages :

ftp://ftp.chmouel.org/pub/people/chmou/kgcc/

and let me know if it's work for you (it does for me) and will do an
update soon.

--
MandrakeSoft Inc http://www.chmouel.org
--Chmouel

2000-11-09 23:57:45

by J.A. Magallon

[permalink] [raw]
Subject: Re: Errors in 2.4-test11 build


On Thu, 09 Nov 2000 21:13:36 Chmouel Boudjnah wrote:
> "J . A . Magallon" <[email protected]> writes:
>
> > Trying to build 2.4.0-test11-pre1 I get the following:
> >
> > make[1]: Entering directory `/usr/src/linux-2.4.0-test11/arch/i386/kernel'
> > kgcc -D__ASSEMBLY__ -D__KERNEL__ -I/usr/src/linux/include -traditional -c
> > trampoline.S -o trampoline.o
> > gcc: installation problem, cannot exec `tradcpp0': No such file or directory
> > make[1]: *** [trampoline.o] Error 1
> > My egcs does not have a -traditional cpp (Mandrake 7.2, packages egcs and
> > egcs-cpp).
>
> sorry this is an error with the egcs package can you upgrade to these
> packages :
>
> ftp://ftp.chmouel.org/pub/people/chmou/kgcc/
>
> and let me know if it's work for you (it does for me) and will do an
> update soon.
>

Worked fine.

A suggestion. People being able to build kernels with egcs or other version,
would not be this suitable for another entry in /var/lib/rpm/alternatives,
named kgcc, and with priorities gcc-2.91.66, gcc-2.95.2, gcc-2.7.2.3, gcc-2.96 ?

--
Juan Antonio Magallon Lacarta #> cd /pub
mailto:[email protected] #> more beer

2000-11-10 00:02:25

by Chmouel Boudjnah

[permalink] [raw]
Subject: Re: Errors in 2.4-test11 build

"J . A . Magallon" <[email protected]> writes:

> A suggestion. People being able to build kernels with egcs or other version,
> would not be this suitable for another entry in /var/lib/rpm/alternatives,
> named kgcc, and with priorities gcc-2.91.66, gcc-2.95.2, gcc-2.7.2.3, gcc-2.96 ?

this could be a good idea, but i don't want to set kgcc for gcc-2.96,
and we have only (in cooker) egcs- and gcc-2.96 in the main/
ditstrib.

Ok and BTW: this problem is only for the mandrake devlopement
distribution (cooker) 7.2 out of the box egcs/kgcc should work fine.

--
MandrakeSoft Inc http://www.chmouel.org
--Chmouel