Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Oct 2014 15:40:07 -0700
From:      Mark Johnston <markj@freebsd.org>
To:        Ryan Stone <rysto32@gmail.com>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>, "O. Hartmann" <ohartman@zedat.fu-berlin.de>
Subject:   Re: CURRENT: buildworld fails to compile: cannot find -lctf cc: error: linker command failed [libproc.so.3]
Message-ID:  <20141004224007.GA82800@charmander.picturesperfect.net>
In-Reply-To: <CAFMmRNymJqwmaZRaqvLV01MGnmScibsr3xy6_TE7EwxYd958uw@mail.gmail.com>
References:  <20141004194756.5c291180.ohartman@zedat.fu-berlin.de> <20141004183337.GA22999@charmander.picturesperfect.net> <CAFMmRNymJqwmaZRaqvLV01MGnmScibsr3xy6_TE7EwxYd958uw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Oct 04, 2014 at 04:39:37PM -0400, Ryan Stone wrote:
> On Sat, Oct 4, 2014 at 2:33 PM, Mark Johnston <markj@freebsd.org> wrote:
> > 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?
> >
> > You might try rebuilding libctf with
> >
> > $ cd /usr/src
> > $ make -C cddl/lib/libctf clean all
> >
> > but I'm not sure why ld is ignoring the existing libctf.so.
> 
> The failure is coming while building the lib32 compat libraries.  Are
> we not currently building a lib32 libctf.so?

No, we do. One thing I've noticed is that cddl/lib is built after lib/
when compiling 32-bit libs, whereas cddl/lib is built first when building
natively. But that doesn't cause any problems for me. I also don't see
why ld would be searching /usr/obj/usr/src/tmp for a 32-bit lib.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141004224007.GA82800>