problem building stable/{9,8} toolchains on head

Andriy Gapon avg at FreeBSD.org
Fri Aug 23 08:16:51 UTC 2013


I am trying to build stable/{9,8} GENERIC kernels on a recent-ish head system
(cc is clang).
To be sure I first try to build the respective tool-chains using the following
process:
1. make make
2. /usr/obj/path/to/make toolchain WITHOUT_CLANG=1 NO_WERROR=yes WERROR=

WERROR stuff is to increase chances of a successful build.

I am getting the following errors though.

stable/9:
building shared library libc.so.7
/usr/bin/ld: cap_getrights.So: relocation R_X86_64_32S against
`SYS_cap_getrights' can not be used when making a shared object; recompile with
-fPIC

stable/8:
cc -O2 -pipe -O2 -fno-strict-aliasing -pipe -march=amdfam10
-I/usr/devel/svn/base/stable/8/lib/libc/include
-I/usr/devel/svn/base/stable/8/lib/libc/../../include
-I/usr/devel/svn/base/stable/8/lib/libc/amd64 -DNLS -D__DBINTERFACE_PRIVATE
-I/usr/devel/svn/base/stable/8/lib/libc/../../contrib/gdtoa
-I/usr/obj/usr/devel/svn/base/stable/8/lib/libc
-I/usr/devel/svn/base/stable/8/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE
-DMALLOC_PRODUCTION -I/usr/devel/svn/base/stable/8/lib/libc/locale -DBROKEN_DES
-DPORTMAP -DDES_BUILTIN -I/usr/devel/svn/base/stable/8/lib/libc/rpc -DYP
-DNS_CACHING -DSYMBOL_VERSIONING -std=gnu99 -fstack-protector -Wsystem-headers
-Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c syscall.S
/usr/devel/svn/base/stable/8/lib/libc/include/compat.h:41:38: error: expected a
'@' in the name
.symver freebsd7___semctl , __semctl @ FBSD_1.0;
                                     ^
/usr/devel/svn/base/stable/8/lib/libc/include/compat.h:42:34: error: expected a
'@' in the name
.symver freebsd7_msgctl , msgctl @ FBSD_1.0;
                                 ^
/usr/devel/svn/base/stable/8/lib/libc/include/compat.h:43:34: error: expected a
'@' in the name
.symver freebsd7_shmctl , shmctl @ FBSD_1.0;
                                 ^

I would appreciate any help with getting this straightened.

-- 
Andriy Gapon


More information about the freebsd-current mailing list