Re: FreeBSD 9.0-BETA1/amd64 r224808: buildworld failure: ===> lib/clang/include (all), 1 error, *** Error code 2, 1 error, *** Error code 2, 1 error

From: Test Rat <ttsestt_at_gmail.com>
Date: Sat, 13 Aug 2011 17:34:31 +0400
"Hartmann, O." <ohartman_at_zedat.fu-berlin.de> writes:

> I run several boxes based on FreebSD 9.0-BETA1/amd64, compiled with
> clang. Since yesterday, I run on all of these
> machines into strange situations: buildworld won't build anymore, it
> fails always on all boxes at
> the very same position as showed by the error message below. I can
> build and install a kernel, that's working all right.
>
[...]
> ===> lib/clang/include (all)
> 1 error
> *** Error code 2
> 1 error
> *** Error code 2
> 1 error

The actual error should be there, too. If you build with multiple jobs
use `-P' so the output would look like following which makes it more
easy to notice.

  [...]
  ===> lib/clang/include (all)
  Remaking `libexec.all__D'
  Remaking `bin.all__D'
  Results of making libexec.all__D:

  ===> libexec (all)
  Remaking `all'
  Results of making all:

  ===> libexec/atrun (all)
  Remaking `atrun'
  Results of making atrun:
  clang -O2 -pipe -O3 -Qunused-arguments -fcolor-diagnostics -march=native -DATJOB_DIR=\"/var/at/jobs/\"  -DLFILE=\"/var/at/jobs/.lockfile\"  -DLOADAVG_MX=1.5 -DATSPOOL_DIR=\"/var/at/spool\"  -DVERSION=\"2.9\" -DDAEMON_UID=1 -DDAEMON_GID=1  -DDEFAULT_BATCH_QUEUE=\'E\'  -DDEFAULT_AT_QUEUE=\'c\' -DPERM_PATH=\"/var/at/\" -I/a/freebsd/libexec/atrun/../../usr.bin/at -I/a/freebsd/libexec/atrun -DLOGIN_CAP -DPAM -g -fno-omit-frame-pointer -std=gnu99 -fstack-protector -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign  -o atrun atrun.o gloadavg.o -lpam -lutil
  /home/foo/.cache/a/freebsd/tmp/usr/lib/libc.so: undefined reference to `_nsyylex'
  /home/foo/.cache/a/freebsd/tmp/usr/lib/libc.so: undefined reference to `_nsyyin'
  /home/foo/.cache/a/freebsd/tmp/usr/lib/libc.so: undefined reference to `_nsyytext'
  /home/foo/.cache/a/freebsd/tmp/usr/lib/libc.so: undefined reference to `_nsyyerror'
  /home/foo/.cache/a/freebsd/tmp/usr/lib/libc.so: undefined reference to `_nsyylineno'
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  *** Error code 1
  1 error
  *** Error code 2
  1 error
  *** Error code 2
  Results of making bin.all__D:

  ===> bin (all)
  Remaking `all'
  Results of making all:

  ===> bin/cat (all)
  Remaking `cat.o'
  Results of making cat.o:
  clang -O2 -pipe -O3 -Qunused-arguments -fcolor-diagnostics -march=native -g -fno-omit-frame-pointer -std=gnu99 -fstack-protector -Wsystem-headers -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 /a/freebsd/bin/cat/cat.c

  Remaking `cat.1.gz'
  Remaking `cat'
  Results of making cat:
  clang -O2 -pipe -O3 -Qunused-arguments -fcolor-diagnostics -march=native -g -fno-omit-frame-pointer -std=gnu99 -fstack-protector -Wsystem-headers -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  -o cat cat.o 
  /home/foo/.cache/a/freebsd/tmp/usr/lib/libc.so: undefined reference to `_nsyylex'
  /home/foo/.cache/a/freebsd/tmp/usr/lib/libc.so: undefined reference to `_nsyyin'
  /home/foo/.cache/a/freebsd/tmp/usr/lib/libc.so: undefined reference to `_nsyytext'
  /home/foo/.cache/a/freebsd/tmp/usr/lib/libc.so: undefined reference to `_nsyyerror'
  /home/foo/.cache/a/freebsd/tmp/usr/lib/libc.so: undefined reference to `_nsyylineno'
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  *** Error code 1
  Results of making cat.1.gz:
  gzip -cn /a/freebsd/bin/cat/cat.1 > cat.1.gz
  1 error
  *** Error code 2
  1 error
  *** Error code 2
  2 errors
  *** Error code 2
  1 error
  *** Error code 2
  1 error
Received on Sat Aug 13 2011 - 11:34:45 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:16 UTC