Re: Recent HEAD: buildworld is broken with clang

From: Niclas Zeising <niclas.zeising_at_gmail.com>
Date: Sun, 14 Aug 2011 22:07:04 +0200
On 2011-08-14 20:58, Oleg V. Nauman wrote:
> ===> libexec (all)
> ===> libexec/atrun (all)
> clang -O -pipe -march=i686 -mtune=i686  -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/usr/src/libexec/atrun/../../usr.bin/at
> -I/usr/src/libexec/atrun -DLOGIN_CAP -DPAM -std=gnu99 -fstack-protector
> -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized
> -Wno-pointer-sign -c /usr/src/libexec/atrun/atrun.c
> clang -O -pipe -march=i686 -mtune=i686  -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/usr/src/libexec/atrun/../../usr.bin/at
> -I/usr/src/libexec/atrun -DLOGIN_CAP -DPAM -std=gnu99 -fstack-protector
> -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized
> -Wno-pointer-sign -c /usr/src/libexec/atrun/gloadavg.c
> clang -O -pipe -march=i686 -mtune=i686  -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/usr/src/libexec/atrun/../../usr.bin/at
> -I/usr/src/libexec/atrun -DLOGIN_CAP -DPAM -std=gnu99 -fstack-protector
> -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized
> -Wno-pointer-sign  -o atrun atrun.o gloadavg.o -lpam -lutil
> clang: warning: argument unused during compilation: '-std=gnu99'
> /usr/obj/usr/src/tmp/usr/lib/libc.so: undefined reference to `_nsyylex'
> /usr/obj/usr/src/tmp/usr/lib/libc.so: undefined reference to `_nsyyin'
> /usr/obj/usr/src/tmp/usr/lib/libc.so: undefined reference to `_nsyytext'
> /usr/obj/usr/src/tmp/usr/lib/libc.so: undefined reference to `_nsyyerror'
> /usr/obj/usr/src/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
> 
> Stop in /usr/src/libexec/atrun.
> *** Error code 1
> 
> Stop in /usr/src/libexec.
> *** Error code 1
> 
> Stop in /usr/src.
> *** Error code 1
> 
> Stop in /usr/src.
> *** Error code 1
> 
> Stop in /usr/src.
> 

This is fixed. I had no trouble building r224865 some hours ago. This
issue might be related to the fix in r224842, Try to rebuild just the
kernel, and boot to the new kernel before doing another buildworld.
HTH!
-- 
Niclas Zeising
Received on Sun Aug 14 2011 - 18:07:13 UTC

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