Re: CURRENT: buildworld fails to compile: cannot find -lctf cc: error: linker command failed [libproc.so.3]

From: O. Hartmann <ohartman_at_zedat.fu-berlin.de>
Date: Sat, 4 Oct 2014 22:24:31 +0200
Am Sat, 4 Oct 2014 11:33:38 -0700
Mark Johnston <markj_at_FreeBSD.org> schrieb:

> On Sat, Oct 04, 2014 at 07:47:56PM +0200, O. Hartmann wrote:
> > Recent sources (Revision: 272529) fail to compile:
> > 
> > [...]
> > cc -m32 -march=native -DCOMPAT_32BIT  -isystem /usr/obj/usr/src/lib32/usr/include/
> > -L/usr/obj/usr/src/lib32/usr/lib32  -B/usr/obj/usr/src/lib32/usr/lib32  -O2 -pipe -O3
> > -O3 -pipe  -DYP -I/usr/obj/usr/src/lib32/usr/include/rpcsvc -std=gnu99
> > -fstack-protector -Wsystem-headers -Werror -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 -Wno-parentheses
> > -Qunused-arguments -c /usr/src/lib/librpcsvc/yp_passwd.c -o yp_passwd.o ---
> > all_subdir_libproc --- --- libproc.so.3 --- /usr/obj/usr/src/tmp/usr/bin/ld: skipping
> > incompatible /usr/obj/usr/src/tmp/usr/lib/libctf.so when searching for
> 
> I'm confused by this message. Are you building with -DNO_CLEAN? Do you
> have anything in make.conf or src.conf, especially anything that's
> changed since libctf was rebuilt?

I do not build with -DNO_CLEAN. I use a script which kills everything in /usr/obj/ and
build then from scratch. 

> 
> You might try rebuilding libctf with
> 
> $ cd /usr/src
> $ make -C cddl/lib/libctf clean all

I can build libctf.so that way, also installation is no problem, but next time when I
buildworld, I run into the same situation.

> 
> but I'm not sure why ld is ignoring the existing libctf.so.

Me either.

> 
> > -lctf /usr/obj/usr/src/tmp/usr/bin/ld: skipping
> > incompatible /usr/obj/usr/src/tmp/usr/lib/libctf.a when searching for
> > -lctf /usr/obj/usr/src/tmp/usr/bin/ld: cannot find -lctf cc: error: linker command
> > failed with exit code 1 (use -v to see invocation) *** [libproc.so.3] Error code 1
> > 
> > make[5]: stopped in /usr/src/lib/libproc
> > --- libproc.a ---
> > ranlib -D libproc.a
> > [...]
> > 
> > oh



Received on Sat Oct 04 2014 - 18:24:41 UTC

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