* Kernel 2.1.104 with egcs?
@ 1998-06-08 4:00 Nils Faerber
1998-06-08 4:00 ` Peter Rye
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Nils Faerber @ 1998-06-08 4:00 UTC (permalink / raw)
Hi!
Is it true (or only my fault?) that kernels 2.1.103-104 are not compilable
with egcs that comes with RH5.1?
I tried so yesterday and got an error from the assembler about some unknown
instruction. Very annoying as I would like a) to use egcs as it should
produce better code and b) test the latest kernels ;)
Tips welcome!
CU
nils
--
Nils Faerber (Linux Nils) eMail: nils@unix-ag.org
Student of computer science http://www.si.unix-ag.org/~nils/
Unix user group, University of Siegen, Germany
Siegen ... the arctic rain forest!
--
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: Kernel 2.1.104 with egcs?
1998-06-08 4:00 Kernel 2.1.104 with egcs? Nils Faerber
@ 1998-06-08 4:00 ` Peter Rye
1998-06-08 4:00 ` Nils Faerber
1998-06-09 4:00 ` Bram Stolk
1998-06-10 4:00 ` Wai-Sun Chia
2 siblings, 1 reply; 9+ messages in thread
From: Peter Rye @ 1998-06-08 4:00 UTC (permalink / raw)
Nils Faerber <nils@unix-ag.org> writes:
> Hi!
> Is it true (or only my fault?) that kernels 2.1.103-104 are not compilable
> with egcs that comes with RH5.1?
> I tried so yesterday and got an error from the assembler about some unknown
> instruction. Very annoying as I would like a) to use egcs as it should
> produce better code and b) test the latest kernels ;)
> Tips welcome!
I presume the "unknown instruction" error is the well known
__builtin_memset error.
I've compiled 2.1.102 to 2.1.105 using egcs, and although it is not
recommended, I don't seem to have come across any other problems (yet).
As far as the __builtin_memset stuff is concerned, you should be able to
get the kernel to compile with the following patch.
--- linux/include/asm-alpha/string.h.orig Fri Apr 10 06:25:33 1998
+++ linux/include/asm-alpha/string.h Thu Apr 9 19:28:23 1998
@@ -24,7 +24,8 @@
extern void * __constant_c_memset(void *, unsigned long, long);
extern void * __memset(void *, char, size_t);
-#if __GNUC__ > 2 || __GNUC_MINOR__ >= 8
+/* #if __GNUC__ > 2 || __GNUC_MINOR__ >= 8 */
+#if 0
#define memset(s, c, n)
\
(__builtin_constant_p(c) \
? (__builtin_constant_p(n) && (c) == 0
\
This seems to have been fixed in 2.1.105, where these lines now look like:
#if __GNUC__ > 2 || __GNUC_MINOR__ >= 91
#define memset(s, c, n) \
(__builtin_constant_p(c) \
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: Kernel 2.1.104 with egcs?
1998-06-08 4:00 ` Peter Rye
@ 1998-06-08 4:00 ` Nils Faerber
1998-06-09 4:00 ` Peter Rye
0 siblings, 1 reply; 9+ messages in thread
From: Nils Faerber @ 1998-06-08 4:00 UTC (permalink / raw)
Peter Rye <prye@picu-sgh.demon.co.uk> wrote:
: Nils Faerber <nils@unix-ag.org> writes:
: > Is it true (or only my fault?) that kernels 2.1.103-104 are not compilable
: > with egcs that comes with RH5.1?
: I presume the "unknown instruction" error is the well known
: __builtin_memset error.
: I've compiled 2.1.102 to 2.1.105 using egcs, and although it is not
: recommended, I don't seem to have come across any other problems (yet).
: As far as the __builtin_memset stuff is concerned, you should be able to
: get the kernel to compile with the following patch.
I fear this is not the error I (still) see. The exact gcc (i.e. egcs) error
is
page_alloc.c: In function `free_pages':
page_alloc.c:208: internal error--unrecognizable insn:
(jump_insn 337 329 338 (return) -1 (nil)
(nil))
cpp: output pipe has been closed
gcc: Internal compiler error: program cc1 got fatal signal 6
make[2]: *** [page_alloc.o] Error 1
make[2]: Leaving directory /usr/src/linux/mm'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory /usr/src/linux/mm'
make: *** [linuxsubdirs] Error 2
{standard input}: Assembler messages:
{standard input}:337: Warning: Missing .end or .bend at end of file
Any further ideas?
Thank you anyways ;)
CU
nils
--
Nils Faerber (Linux Nils) eMail: nils@unix-ag.org
Student of computer science http://www.si.unix-ag.org/~nils/
Unix user group, University of Siegen, Germany
Siegen ... the arctic rain forest!
--
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: Kernel 2.1.104 with egcs?
1998-06-08 4:00 ` Nils Faerber
@ 1998-06-09 4:00 ` Peter Rye
0 siblings, 0 replies; 9+ messages in thread
From: Peter Rye @ 1998-06-09 4:00 UTC (permalink / raw)
Nils Faerber <nils@unix-ag.org> writes:
> Peter Rye <prye@picu-sgh.demon.co.uk> wrote:
> : Nils Faerber <nils@unix-ag.org> writes:
> : > Is it true (or only my fault?) that kernels 2.1.103-104 are not
> : > compilable
> : > with egcs that comes with RH5.1?
>
> page_alloc.c: In function `free_pages':
> page_alloc.c:208: internal error--unrecognizable insn:
> (jump_insn 337 329 338 (return) -1 (nil)
> (nil))
> cpp: output pipe has been closed
> gcc: Internal compiler error: program cc1 got fatal signal 6
> make[2]: *** [page_alloc.o] Error 1
> make[2]: Leaving directory /usr/src/linux/mm'
> make[1]: *** [first_rule] Error 2
> make[1]: Leaving directory /usr/src/linux/mm'
> make: *** [linuxsubdirs] Error 2
> {standard input}: Assembler messages:
> {standard input}:337: Warning: Missing .end or .bend at end of file
>
> Any further ideas?
No, I haven't seen this one, and just looking through my kernel source, it
would appear that egcs compiled page_alloc.c here without complaint.
I am not using the egcs that comes with RH 5.1 though, I am using one
compiled on this machine, although I thought RH used the same version
(1.0.3a). I suppose it's possible that they might have tweaked a few
things.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Kernel 2.1.104 with egcs?
1998-06-08 4:00 Kernel 2.1.104 with egcs? Nils Faerber
1998-06-08 4:00 ` Peter Rye
@ 1998-06-09 4:00 ` Bram Stolk
1998-06-09 4:00 ` Nils Faerber
1998-06-10 4:00 ` Wai-Sun Chia
2 siblings, 1 reply; 9+ messages in thread
From: Bram Stolk @ 1998-06-09 4:00 UTC (permalink / raw)
Nils Faerber wrote:
>
> Hi!
> Is it true (or only my fault?) that kernels 2.1.103-104 are not compilable
> with egcs that comes with RH5.1?
> I tried so yesterday and got an error from the assembler about some unknown
> instruction. Very annoying as I would like a) to use egcs as it should
> produce better code and b) test the latest kernels ;)
> Tips welcome!
Make sure you use the latest binutils.
It may very well be that 'as' is causing the troubles.
Bram
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Kernel 2.1.104 with egcs?
1998-06-09 4:00 ` Bram Stolk
@ 1998-06-09 4:00 ` Nils Faerber
0 siblings, 0 replies; 9+ messages in thread
From: Nils Faerber @ 1998-06-09 4:00 UTC (permalink / raw)
Bram Stolk <bram@nuson.nl> wrote:
: Nils Faerber wrote:
: > Is it true (or only my fault?) that kernels 2.1.103-104 are not compilable
: > with egcs that comes with RH5.1?
: > I tried so yesterday and got an error from the assembler about some unknown
: > instruction. Very annoying as I would like a) to use egcs as it should
: > produce better code and b) test the latest kernels ;)
: Make sure you use the latest binutils.
: It may very well be that 'as' is causing the troubles.
Of course it could also be as but AFAIK there are no updated packages for
RH5.1, or are there? I will investigate this again this afternoon ;)
Anyways I reported this "bug" to RedHat yesterday and hope they will check
it.
: Bram
CU
nils
PS: I would hate to have to compile egcs and binutils on myself :( On a
166MHz machine this takes quite _some_ time.
--
Nils Faerber (Linux Nils) eMail: nils@unix-ag.org
Student of computer science http://www.si.unix-ag.org/~nils/
Unix user group, University of Siegen, Germany
Siegen ... the arctic rain forest!
--
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Kernel 2.1.104 with egcs?
1998-06-08 4:00 Kernel 2.1.104 with egcs? Nils Faerber
1998-06-08 4:00 ` Peter Rye
1998-06-09 4:00 ` Bram Stolk
@ 1998-06-10 4:00 ` Wai-Sun Chia
1998-06-10 4:00 ` Nils Faerber
2 siblings, 1 reply; 9+ messages in thread
From: Wai-Sun Chia @ 1998-06-10 4:00 UTC (permalink / raw)
To all Alpha-Linuxers having problems compiling 2.1.103/104, pls
upgrade to the latest version of egcs, which is currently at 1.0.3a.
The egcs which came with RH5.1 is only 1.0.2....
For Alphastation 200 4/166 (Mustang) owners:
If after upgrading egcs and you still bomb out at a function called
alpha_fp_emul in arch/alpha/kernel/trap.c
Try this, by undefining the entire section by inserting this line:
#undef CONFIG_ALPHA_NEED_ROUNDING_EMULATION
immediately above this line:
#ifdef CONFIG_ALPHA_NEED_ROUNDING_EMULATION
Then run "make boot" again!
Good luck! HTH,
Wai-Sun
On 8 Jun 98 15:56:11 GMT, Nils Faerber <nils@unix-ag.org> wrote:
>Hi!
>Is it true (or only my fault?) that kernels 2.1.103-104 are not compilable
>with egcs that comes with RH5.1?
>I tried so yesterday and got an error from the assembler about some unknown
>instruction. Very annoying as I would like a) to use egcs as it should
>produce better code and b) test the latest kernels ;)
<SNIP>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Kernel 2.1.104 with egcs?
1998-06-10 4:00 ` Wai-Sun Chia
@ 1998-06-10 4:00 ` Nils Faerber
1998-06-12 4:00 ` Wai-Sun Chia
0 siblings, 1 reply; 9+ messages in thread
From: Nils Faerber @ 1998-06-10 4:00 UTC (permalink / raw)
Wai-Sun Chia <wai-sun.chia@digital.com> wrote:
: To all Alpha-Linuxers having problems compiling 2.1.103/104, pls
: upgrade to the latest version of egcs, which is currently at 1.0.3a.
: The egcs which came with RH5.1 is only 1.0.2....
Is there already a ready to run egcs-1.0.3a-alpha RPM anywhere? Compiling
all the stuff myself is no fun on a 166MHz machine ;(
: Good luck! HTH,
: Wai-Sun
CU
nils
--
Nils Faerber (Linux Nils) eMail: nils@unix-ag.org
Student of computer science http://www.si.unix-ag.org/~nils/
Unix user group, University of Siegen, Germany
Siegen ... the arctic rain forest!
--
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Kernel 2.1.104 with egcs?
1998-06-10 4:00 ` Nils Faerber
@ 1998-06-12 4:00 ` Wai-Sun Chia
0 siblings, 0 replies; 9+ messages in thread
From: Wai-Sun Chia @ 1998-06-12 4:00 UTC (permalink / raw)
Tell me about it! I've a Alphastation 200 4/166, so I know what you
mean!! It took me 34 mins to compile 104! Whereas it took me 7 min on
my other Linux machine (K6/233) only!
But what the heck, tis but a small price to pay to be on the
_BLEEDING_ edge!
Wai-Sun
On 10 Jun 98 16:23:37 GMT, Nils Faerber <nils@unix-ag.org> wrote:
<SNIP>
>Is there already a ready to run egcs-1.0.3a-alpha RPM anywhere? Compiling
>all the stuff myself is no fun on a 166MHz machine ;(
<SNIP>
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~1998-06-12 4:00 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-06-08 4:00 Kernel 2.1.104 with egcs? Nils Faerber
1998-06-08 4:00 ` Peter Rye
1998-06-08 4:00 ` Nils Faerber
1998-06-09 4:00 ` Peter Rye
1998-06-09 4:00 ` Bram Stolk
1998-06-09 4:00 ` Nils Faerber
1998-06-10 4:00 ` Wai-Sun Chia
1998-06-10 4:00 ` Nils Faerber
1998-06-12 4:00 ` Wai-Sun Chia
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox