releng/10.3 buildworld fails
Michael Landin
mich at prodnet.eu
Fri Jul 7 12:02:11 UTC 2017
Hi,
I have a 10.3-REL-p16 (upgraded from a 10.0-REL system, with a “make WITHOUT_CLANG=1 buildworld”)
FreeBSD nsXXXXX.ovh.net 10.3-RELEASE-p16 FreeBSD 10.3-RELEASE-p16 #0 r312388: Wed Jan 18 19:33:30 CET 2017 mich at nXXXXX.ovh.net:/usr/obj/usr/src/sys/GENERIC amd64
Now - I am trying to upgrade this system to 10.3-REL-p19 and getting rid of gcc while I’m at it.
I have :
- cleaned/removed /usr/obj
- removed /usr/src completely
- checked out a fresh version of releng/10.3
My /etc/src.conf:
CC=clang
CXX=clang++
CPP=clang-cpp
My /etc/make.conf:
WITH_PKGNG=yes
NO_GUI=yes
WITHOUT_X11=yes
OPTIONS_UNSET=X11
DEFAULT_VERSIONS+=perl5=5.24
DEFAULT_VERSIONS+=ruby=2.3
DEFAULT_VERSIONS+=ssl=openssl
Running “make buildworld” dies here:
<snip>
clang -O2 -pipe -DSHELL -I. -I/usr/src/bin/sh -std=gnu99 -Qunused-arguments -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter -L/usr/local/lib -I/usr/local/include -o sh alias.o arith_yacc.o arith_yylex.o cd.o echo.o error.o eval.o exec.o expand.o histedit.o input.o jobs.o kill.o mail.o main.o memalloc.o miscbltin.o mystring.o options.o output.o parser.o printf.o redir.o show.o test.o trap.o var.o builtins.o nodes.o syntax.o -ledit -ltermcap
histedit.o: In function `histedit':
/usr/src/bin/sh/histedit.c:(.text+0x2eb): undefined reference to `_el_fn_sh_complete'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1
Stop.
make[6]: stopped in /usr/src/bin/sh
*** Error code 1
</snip>
I know I can get around that particular case by setting “CFLAGS+= -L${WORLDTMP}/usr/lib” in the Makefile for bin/sh.
But even fixing that gives plenty other buildworld errors.
Any ideas what could be the problem?
thanks,
/mich
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3532 bytes
Desc: S/MIME digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20170707/e6b6de41/attachment.bin>
More information about the freebsd-questions
mailing list