SMP problem when compiling

SMP problem when compiling

Post by Pol » Thu, 16 May 2002 02:40:08



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I get this error when I compile the kernel 2.4.18 with make -j (make bzImage)

gcc -D__KERNEL__ -I/usr/src/linux-2.5.15/include -Wall -Wstrict-prototypes
- -Wno-              trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing
- -fno-common -pipe -mpref              erred-stack-boundary=2 -march=i686  
- -DKBUILD_BASENAME=ksyms  -DEXPORT_SYMTAB -c               ksyms.c
cpp0: gcc: Internal compiler error: program cc1 got fatal signal 11
output pipe has been closed
make[2]: *** [ksyms.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/usr/src/linux-2.5.15/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.5.15/kernel'
make: *** [_dir_kernel] Error 2


gcc -D__KERNEL__ -I/usr/src/linux-2.4.18/include -Wall -Wstrict-prototypes
- -Wno-              trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing
- -fno-common -pipe -mpref              erred-stack-boundary=2 -march=i686  
- -DKBUILD_BASENAME=main -c -o init/main.o in              it/main.c
In file included from /usr/src/linux-2.4.18/include/linux/fs.h:26,
                 from /usr/src/linux-2.4.18/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.18/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.18/include/linux/sched.h:9,
                 from /usr/src/linux-2.4.18/include/linux/mm.h:4,
                 from /usr/src/linux-2.4.18/include/linux/slab.h:14,
                 from /usr/src/linux-2.4.18/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/src/linux-2.4.18/include/asm/bitops.h: In function `constant_test_bit':
/usr/src/linux-2.4.18/include/asm/bitops.h:235: parse error before `)'
/usr/src/linux-2.4.18/include/asm/bitops.h:236: warning: control reaches end
of               non-void function
make: *** [init/main.o] Error 1

And with the 2.5.15:

gcc -D__KERNEL__ -I/usr/src/linux-2.5.15/include -Wall -Wstrict-prototypes
- -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
- -pipe -mpreferred-stack-boundary=2 -march=i686   -DKBUILD_BASENAME=lp  -c -o
lp.o lp.c
serial.c: In function `probe_serial_pnp':
serial.c:5331: invalid use of undefined type `struct list_head'
make[3]: Leaving directory `/usr/src/linux-2.5.15/drivers/ide'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.5.15/drivers/ide'
make[1]: *** [_subdir_ide] Error 2
gcc -D__KERNEL__ -I/usr/src/linux-2.5.15/include -Wall -Wstrict-prototypes
- -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
- -pipe -mpreferred-stack-boundary=2 -march=i686   -DKBUILD_BASENAME=mem  -c -o
mem.o mem.c
make[3]: *** [serial.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** Waiting for unfinished jobs....
{standard input}: Assembler messages:
{standard input}:4084: Error: bad register name `%max'
{standard input}:6191: Error: bad register name `%eix)'
make[3]: *** [console.o] Error 1
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.5.15/drivers/char'
make[1]: *** [_subdir_char] Error 2
make: *** [_dir_drivers] Error 2

- --
- -pol-
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE84Ur3EIL3A0sGDSERAqUDAKCB2KzCjflIQTCWPoVz+4BboCEoJQCgm2Dp
ETxF2H61zLAtMo/B37IV4nE=
=PJP9
-----END PGP SIGNATURE-----

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

SMP problem when compiling

Post by Dan Kege » Thu, 16 May 2002 04:40:18



> I get this error when I compile the kernel 2.4.18 with make -j (make bzImage)

> gcc -D__KERNEL__ -I/usr/src/linux-2.5.15/include -Wall -Wstrict-prototypes
> - -Wno-              trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing
> - -fno-common -pipe -mpref              erred-stack-boundary=2 -march=i686  
> - -DKBUILD_BASENAME=ksyms  -DEXPORT_SYMTAB -c               ksyms.c
> cpp0: gcc: Internal compiler error: program cc1 got fatal signal 11

Have you read http://www.bitwizard.nl/sig11/ ?
Are you overclocking?
- Dan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

SMP problem when compiling

Post by Keith Owen » Thu, 16 May 2002 08:10:13


On Tue, 14 May 2002 19:35:51 +0200,


>I get this error when I compile the kernel 2.4.18 with make -j (make bzImage)
>cpp0: gcc: Internal compiler error: program cc1 got fatal signal 11

Unless you have a very large machine, make -j when using make >= 3.78
will overload the system.  Use make -jN where N == number of cpus as a
starting point.  gcc has been known to segfault when it runs out of
memory.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. compiling non-smp kernel on smp machine - wrong signature!

To speed up the build, I've compiled new kernel (2.2.16-3 from RedHat
sources RPM) for a single-CPU, old 486 PC, on a fast dual-CPU
machine. Needless to say, the CONFIG_SMP in the config file was
NOT set. After installing the kernel to the 486 PC, it booted up
without network, quite strangely. It seems that the reason is that
the kernel has a 'smp' signature, so the 'depmod' command looks
for /lib/modules/2.2.16-3smp directory while, of course, the modules
are installed in /lib/modules/2.2.16-3.

I wonder whether this is a bug, easy to patch, or it is always so
that non-smp kernel should be built on a non-smp machine.

any hints?

regards, Michal.

--

  Warsaw University Observatory, Warszawa, POLAND

2. Need Help w/ Quota

3. Problems compiling SMP kernel for HP Vectra XU dual PPro/200

4. No route to host!?

5. Problem compiling kernel under SMP

6. Newbie needs help creating Red Hat Linux install CD

7. Problems loading modules after compiling for SMP 2.4.22

8. ATI + Linux

9. 2.5.37 : compile failed with undefined reference to find_smp_config with SMP disabled

10. Stumped on SMP kernel compile ...

11. SMP strange errors 6 / 11 when compiling

12. Compile error in SMP / IO-Apic code

13. SMP - zombie processes with SMP enabled ...