Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Feb 2002 16:17:28 +0100 (MET)
From:      Olivier DAVY <olivier.davy@free.fr>
To:        freebsd-questions@FreeBSD.org
Cc:        olivier.davy@free.fr
Subject:   HELP : GENERIC kernel compilation bug
Message-ID:  <1012749448.3c5d54880db1b@imp.free.fr>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Olivier DAVY
French Engineer in CS
olivier.davy@free.fr

Hi !

I have a tricky bug during the compilation of the GENERIC kernel.
Notice that I have tried several times to compile this generic kernel (provided with FreeBSD and not customized by myself), and that I obtained different errors.
Is the compilation non deterministic ?

Please, find enclose 4 bug reports.

My current configuration is
AMD Duron 600MHz
MEM = 256Mo
AGP Nvidia graphic card
KT7 motherboard
Sound Blaster Live Value 1024!
HD of 1.2 Go
and FreeBSD 4.4 or 4.5 (I have just download the latest version, but the compilation error still occurs)

I want to recompile the kernel in order to enable my sound card, so I have tried first with the GENERIC kernel, and it did not work, although I followed the instructions of the handbook (So please, do not tell me RTFM) !

Please, help me no to go back to Linux only for a compiling problem !


---------------------------------------
 Olivier DAVY
 ENSIMAG engineer - HEC Master
 E-mail : olivier.davy@free.fr
 tél : +33/(0)1.39.67.89.39
---------------------------------------
[-- Attachment #2 --]
cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -W
missing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -an
si  -nostdinc -I- -I. -I../.. -I/usr/include -I../../contrib/ipfilter  -D_KERNEL
 -include opt_global.h -elf  -mpreferred-stack-boundary=2  setdef1.c
touch hack.c
cc -elf -shared -nostdlib hack.c -o hack.So
rm -f hack.c
sh ../../conf/newvers.sh GENERIC
cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -W
missing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -an
si  -nostdinc -I- -I. -I../.. -I/usr/include -I../../contrib/ipfilter  -D_KERNEL
 -include opt_global.h -elf  -mpreferred-stack-boundary=2  vers.c
linking kernel
mly.o: In function `mly_attach':
mly.o(.text+0x135): undefined reference to `mly_cam_attach'
mly.o: In function `mly_process_event':
mly.o(.text+0xaec): undefined reference to `mly_name_device'
mly.o: In function `mly_startio':
mly.o(.text+0xd84): undefined reference to `mly_cam_comma
mly_pci.o: In function `mly_free':
mly_pci.o(.text+0x5dd): undefined reference to `mly_cam_detach'
*** Error code 1

Stop in /usr/src/sys/compile/GENERIC.
#


[-- Attachment #3 --]
 -include opt_global.h -elf  -mpreferred-stack-boundary=2  ../../netinet6/in6_ck
sum.c
cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -W
missing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -an
si  -nostdinc -I- -I. -I../.. -I/usr/include -I../../contrib/ipfilter  -D_KERNEL
 -include opt_global.h -elf  -mpreferred-stack-boundary=2  ../../netinet6/in6_gi
f.c
../../netinet6/in6_gif.c: In function `gif_encapcheck6':
../../netinet6/in6_gif.c:305: warning: cast discards qualifiers from pointer tar
get type
cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -W
missing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -an
si  -nostdinc -I- -I. -I../.. -I/usr/include -I../../contrib/ipfilter  -D_KERNEL
 -include opt_global.h -elf  -mpreferred-stack-boundary=2  ../../netinet6/ip6_fo
rward.c
cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -W
missing-prototypes -Wpointer-arith -Winline -Wcas-qual  -fformat-extensions -an
si  -nostdinc -I- -I. -I../.. -I/usr/include -I../../contrib/ipfilter  -D_KERNEL
 -include opt_global.h -elf  -mpreferred-stack-boundary=2  ../../netinet6/in6_if
attach.c
cc: Internal compiler error: program cc1 got fatal signal 11
*** Error code 1

Stop in /usr/src/sys/compile/GENERIC.


[-- Attachment #4 --]
missing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -an
si  -nostdinc -I- -I. -I../.. -I/usr/include -I../../contrib/ipfilter  -D_KERNEL
 -include opt_global.h -elf  -mpreferred-stack-boundary=2  ../../netinet6/route6
.c
cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -W
missing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -an
si  -nostdinc -I- -I. -I../.. -I/usr/include -I../../contrib/ipfilter  -D_KERNEL
 -include opt_global.h -elf  -mpreferred-stack-boundary=2  ../../netinet6/scope6
.c
cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -W
missing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -an
si  -nostdinc -I- -I. -I../.. -I/usr/include -I../../contrib/ipfilter  -D_KERNEL
 -include opt_global.h -elf  -mpreferred-stack-boundary=2  ../../netinet6/udp6_o
utput.c
cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -W
missing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -an
si  -nostdinc -I- -I. -I../.. -I/usr/include -I../../contrib/ipfilter  -D_KERNEL
 -include opt_global.h -elf  -mpreferred-stack-boundary=2  ../../netinet6/udp6_u
srreq.c
cc: Internal compiler error: program cc1 got fatal signal 11
*** Error code 1
Stop in /usr/src/sys/compile/GENERIC.
# cpp0: output pipe has been closed


[-- Attachment #5 --]
ypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extens
ions -ansi -DKLD_MODULE -nostdinc -I-  -I. -I@ -I@/../include  -mpreferred-stack
-boundary=2 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmiss
ing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi -
c /usr/src/sys/modules/nfs/../../nfs/nfs_vnops.c
{standard input}: Assembler messages:
{standard input}:0: Warning: end of file not at end of a line; newline inserted
{standard input}:809: Error: suffix or operands invalid for `mov'
cc: Internal compiler error: program cc1 got fatal signal 11
*** Error code 1
Stop in /usr/src/sys/modules/nfs.
*** Error code 1
Stop in /usr/src/sys/modules.
*** Error code 1
Stop in /usr/src/sys/compile/GENERIC.
# cpp0: output pipe has been closed
Feb  3 15:33:00  /kernel: pid 27315 (cc1), uid 0: exited on signal 11 (core dump
ed)
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1012749448.3c5d54880db1b>