Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jan 2012 11:28:14 -0800 (PST)
From:      "Thomas D. Dean" <tomdean@speakeasy.org>
To:        freebsd-amd64@freebsd.org
Subject:   make kernel and buildworld both fail
Message-ID:  <201201041928.q04JSEjX070547@P9X79.tddhome>

next in thread | raw e-mail | index | archive | help
I really only wanted to build a new kernel.  But, I tried both after seeing
failures.

# uname -a
FreeBSD P9X79.tddhome 9.0-PRERELEASE FreeBSD 9.0-PRERELEASE #1: \
      Sun Dec 25 09:28:17 PST 2011 \
      root@P9X79.tddhome:/usr/obj/usr/src/sys/GENERIC  amd64

source up-to-date as of now, cvsup with 
   *default release=cvs tag=RELENG_9
I tried cvsup 2 times with no changes to source tree.

# cd /usr/src
# make cleandir
# make cleandir
# env -i make kernel
...
cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option   -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -fno-omit-frame-pointer -mno-sse -mcmodel=kernel -mno-red-zone -mno-mmx -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror  /usr/src/sys/amd64/ia32/ia32_syscall.c
cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option   -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -fno-omit-frame-pointer -mno-sse -mcmodel=kernel -mno-red-zone -mno-mmx -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror  /usr/src/sys/amd64/ia32/ia32_misc.c
cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option   -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -fno-omit-frame-pointer -mno-sse -mcmodel=kernel -mno-red-zone -mno-mmx -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror  /usr/src/sys/compat/freebsd32/freebsd32_ioctl.c
cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option   -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -fno-omit-frame-pointer -mno-sse -mcmodel=kernel -mno-red-zone -mno-mmx -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -Werror  /usr/src/sys/compat/freebsd32/freebsd32_misc.c
/usr/src/sys/compat/freebsd32/freebsd32_misc.c: In function 'freebsd32_posix_fallocate':
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:2814: error: 'struct freebsd32_posix_fallocate_args' has no member named 'offset1'
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:2814: error: 'struct freebsd32_posix_fallocate_args' has no member named 'offset2'
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:2815: error: 'struct freebsd32_posix_fallocate_args' has no member named 'len1'
/usr/src/sys/compat/freebsd32/freebsd32_misc.c:2815: error: 'struct freebsd32_posix_fallocate_args' has no member named 'len2'
*** Error code 1

Stop in /usr/obj/usr/src/sys/GENERIC.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

===================================================================

After that failure, I did another cvsup with no changes to the source
tree and tried buildworld.

# env -i make buildworld
sed -i "" -e '/\.note\.ABI-tag/s/progbits/note/' gcrt1_c.s
gcc -O2 -pipe -I/usr/src/lib/csu/i386-elf/../common  -I/usr/src/lib/csu/i386-elf/../../libc/include -std=gnu99  -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -c -o gcrt1_c.o gcrt1_c.s
gcc -O2 -pipe -I/usr/src/lib/csu/i386-elf/../common  -I/usr/src/lib/csu/i386-elf/../../libc/include -std=gnu99  -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign  -c /usr/src/lib/csu/i386-elf/crt1_s.S
/usr/src/lib/csu/i386-elf/crt1_s.S: Assembler messages:
/usr/src/lib/csu/i386-elf/crt1_s.S:38: Error: suffix or operands invalid for `push'
/usr/src/lib/csu/i386-elf/crt1_s.S:41: Error: bad register expression
/usr/src/lib/csu/i386-elf/crt1_s.S:42: Error: bad register expression
/usr/src/lib/csu/i386-elf/crt1_s.S:46: Error: suffix or operands invalid for `push'
/usr/src/lib/csu/i386-elf/crt1_s.S:47: Error: suffix or operands invalid for `push'
/usr/src/lib/csu/i386-elf/crt1_s.S:48: Error: suffix or operands invalid for `push'
*** Error code 1

Stop in /usr/src/lib/csu/i386-elf.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.


tomdean



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