Compiling BETA2 with clang fails

From: Volodymyr Kostyrko <c.kworr_at_gmail.com>
Date: Sat, 03 Sep 2011 23:22:07 +0300
Hi all.

===> libexec/bootpd (all)
/usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC 
-march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 
-fstack-protector -Wsystem-headers -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args 
-c /usr/src/libexec/bootpd/bootpd.c
/usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC 
-march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 
-fstack-protector -Wsystem-headers -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args 
-c /usr/src/libexec/bootpd/dovend.c
/usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC 
-march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 
-fstack-protector -Wsystem-headers -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args 
-c /usr/src/libexec/bootpd/readfile.c
/usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC 
-march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 
-fstack-protector -Wsystem-headers -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args 
-c /usr/src/libexec/bootpd/hash.c
/usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC 
-march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 
-fstack-protector -Wsystem-headers -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args 
-c /usr/src/libexec/bootpd/dumptab.c
/usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC 
-march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 
-fstack-protector -Wsystem-headers -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args 
-c /usr/src/libexec/bootpd/lookup.c
/usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC 
-march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 
-fstack-protector -Wsystem-headers -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args 
-c /usr/src/libexec/bootpd/getif.c
/usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC 
-march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 
-fstack-protector -Wsystem-headers -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args 
-c /usr/src/libexec/bootpd/hwaddr.c
/usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC 
-march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 
-fstack-protector -Wsystem-headers -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args 
-c /usr/src/libexec/bootpd/report.c
/usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC 
-march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 
-fstack-protector -Wsystem-headers -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args 
-c /usr/src/libexec/bootpd/tzone.c
/usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC 
-march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 
-fstack-protector -Wsystem-headers -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args 
-c /usr/src/libexec/bootpd/rtmsg.c
/usr/local/libexec/ccache/world/clang -O2 -pipe -Qunused-arguments -fPIC 
-march=native -DETC_ETHERS -DSYSLOG -DDEBUG -DVEND_CMU -std=gnu99 
-fstack-protector -Wsystem-headers -Wall -Wno-format-y2k 
-Wno-uninitialized -Wno-pointer-sign -Wformat=2 -Wno-format-extra-args 
-o bootpd bootpd.o dovend.o readfile.o hash.o dumptab.o lookup.o getif.o 
hwaddr.o report.o tzone.o rtmsg.o
/usr/obj/usr/src/tmp/usr/lib/crt1.o: In function `_start1':
/usr/src/lib/csu/i386-elf/crt1_c.c:(.text+0x94): undefined reference to 
`atexit'
/usr/src/lib/csu/i386-elf/crt1_c.c:(.text+0x9d): undefined reference to 
`_init_tls'
/usr/src/lib/csu/i386-elf/crt1_c.c:(.text+0xad): undefined reference to 
`atexit'
/usr/src/lib/csu/i386-elf/crt1_c.c:(.text+0xd6): undefined reference to 
`exit'
bootpd.o: In function `main':
/var/db/ccache/tmp/bootpd.tmp.limbo.lan.76586.i:(.text+0x31): undefined 
reference to `strrchr'
/var/db/ccache/tmp/bootpd.tmp.limbo.lan.76586.i:(.text+0xa2): undefined 
reference to `malloc'
/var/db/ccache/tmp/bootpd.tmp.limbo.lan.76586.i:(.text+0xe0): undefined 
reference to `exit'
/var/db/ccache/tmp/bootpd.tmp.limbo.lan.76586.i:(.text+0x12a): undefined 
reference to `__error'
/var/db/ccache/tmp/bootpd.tmp.limbo.lan.76586.i:(.text+0x150): undefined 
reference to `getsockname'
/var/db/ccache/tmp/bootpd.tmp.limbo.lan.76586.i:(.text+0x1c7): undefined 
reference to `gethostname'
bootpd.o: In function `.LBB0_31':
/var/db/ccache/tmp/bootpd.tmp.limbo.lan.76586.i:(.text+0x385): undefined 
reference to `sscanf'
bootpd.o: In function `.LBB0_42':
/var/db/ccache/tmp/bootpd.tmp.limbo.lan.76586.i:(.text+0x44d): undefined 
reference to `sscanf'
bootpd.o: In function `.LBB0_55':

There may be some problems integrating clang into Makefiles, because if 
I cd to /usr/src/libexec/bootpd and run make there everything works fine.
-- 
Sphinx of black quartz judge my vow.
Received on Sat Sep 03 2011 - 18:22:22 UTC

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