Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Oct 2014 11:18:55 +0200
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        Arseny Nasokin <eirnym@gmail.com>
Cc:        "Russell L. Carter" <rcarter@pinyon.org>, Mark Johnston <markj@freebsd.org>, freebsd-current@freebsd.org
Subject:   Re: CURRENT: buildworld fails to compile: cannot find -lctf cc: error: linker command failed [libproc.so.3]
Message-ID:  <20141005111855.1d8691d1.ohartman@zedat.fu-berlin.de>
In-Reply-To: <CAO8GK0p0SPvG4qtGcVnL%2BjFn9gcfeGhfW8B_PSm8NP0pxrN4jw@mail.gmail.com>
References:  <20141004194756.5c291180.ohartman@zedat.fu-berlin.de> <20141004183337.GA22999@charmander.picturesperfect.net> <CAFMmRNymJqwmaZRaqvLV01MGnmScibsr3xy6_TE7EwxYd958uw@mail.gmail.com> <20141004224007.GA82800@charmander.picturesperfect.net> <CAMw1wOyptefO3mWRSJHg2YS_0SUVKR5qS%2BufvNxeHhqPr%2B3jhA@mail.gmail.com> <54308593.6050301@pinyon.org> <20141005004314.GA30051@charmander.picturesperfect.net> <CAO8GK0p0SPvG4qtGcVnL%2BjFn9gcfeGhfW8B_PSm8NP0pxrN4jw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/uiOhGnMNN4/+mh0icCJ5GF1
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Am Sun, 5 Oct 2014 05:36:57 +0400
Arseny Nasokin <eirnym@gmail.com> schrieb:

> Mark,
>=20
> Thank you for patch, I encounter same error and this patch works for me.
>=20
> =E2=9C=AA
>=20
>=20
> -- Eir Nym
>=20
> On 5 October 2014 04:43, Mark Johnston <markj@freebsd.org> wrote:
>=20
> > On Sat, Oct 04, 2014 at 04:41:07PM -0700, Russell L. Carter wrote:
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA1
> > >
> > >
> > >
> > > On 10/04/14 15:58, Mark Johnston wrote:
> > > > On Sat, Oct 4, 2014 at 3:40 PM, Mark Johnston <markj@freebsd.org>
> > > > wrote:
> > > >> 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=3Dnative -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=3Dgnu99
> > > >>>>> -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.
> > > >
> > > > Sorry, that's not even true. I misread a part of Makefile.inc1.
> > > >
> > > > I'm still not able to reproduce the problem, but it seems that the
> > > > patch here is appropriate:
> > > > http://people.freebsd.org/~markj/patches/libctf_prebuild.diff
> > > >
> > > > Oliver, could you give this a try?
> > >
> > > Even poudriere can't get past this one.
> >
> > Sorry, it was incomplete. It's been updated:
> > http://people.freebsd.org/~markj/patches/libctf_prebuild.diff
> > _______________________________________________
> > freebsd-current@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-current
> > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.o=
rg"
> >
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"

After some minor corrections to the patch (the patched original sources see=
m not to match
most recent CURRENT sources as of revision 272562), buildworld works again =
as expected.

Thank you very much.

Oliver

--Sig_/uiOhGnMNN4/+mh0icCJ5GF1
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJUMQz/AAoJEOgBcD7A/5N8xBcIANIkBdxI0OSiS+HHqXlnSSYu
+tpc5znYA/zfWygdWwcyDycx9jbAKr+r1XS040tnKQa/Wov4nLMNcUcfQ4a9ZZXx
/gW70/db2+6q7/f5wh2ZIRPc6VS76X4bvLzEeJ+clzV45sIvTY1vWPVP8ZST2Bks
ngA0eTN214srfYd4V90JC7zTO8sXdiXwtxnwHwFnuVny60eC6WaB2p7a5afJvAH5
KB1cOsDaiiKncb7nFB6dBdNP/ntnLWQJYYimks4vJmfGn38wfpbQE3dshgA+SPEP
3a828Udd9/Do45zZ182pzAgWuqawKu6dnQp0G26r9ZzAh2JCULDh8HAx0sqHPoc=
=C25D
-----END PGP SIGNATURE-----

--Sig_/uiOhGnMNN4/+mh0icCJ5GF1--



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