From owner-freebsd-current@FreeBSD.ORG Sat Oct 4 22:58:50 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2BCD4AC2 for ; Sat, 4 Oct 2014 22:58:50 +0000 (UTC) Received: from mail-wg0-x234.google.com (mail-wg0-x234.google.com [IPv6:2a00:1450:400c:c00::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B7B36132 for ; Sat, 4 Oct 2014 22:58:49 +0000 (UTC) Received: by mail-wg0-f52.google.com with SMTP id a1so3945657wgh.35 for ; Sat, 04 Oct 2014 15:58:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=3+tMKE+J5Tao7h5zuz97XdRe8xrdKDZfxwHRIE3kfFU=; b=FGEcvjUeeK39iPkPSsFUplAJCs/ONf4HZ4N8i5s6icTmsNSGUiLkicVJ0guq0eYRg8 0vmCVkr1EfvAHsErXNIBybDaGppUSHPaM+RI7dQRGi9atTN73/z4nTouH7ZCznGQBX13 V+LhM0OHtS3ASSlPQ06/tT77nAuFOsLpo0hLCRuZE17I41WRS70fpukM4VE94u9andMY 6s+2HfzBMNb7oN5xdH7aZFkWCpSbcZ/g6Jk8EeHfdyqNJswlHxBvMQ1/NYDPObj90mwv QzWb4g8p3iQT7o1I7RhjvdSnEgYNLuNuP4YeS4dTJMudyBjuxAt6u+2v2Ry3fqLqIUJU ieww== MIME-Version: 1.0 X-Received: by 10.180.106.104 with SMTP id gt8mr57847wib.13.1412463528112; Sat, 04 Oct 2014 15:58:48 -0700 (PDT) Sender: markjdb@gmail.com Received: by 10.194.19.38 with HTTP; Sat, 4 Oct 2014 15:58:48 -0700 (PDT) In-Reply-To: <20141004224007.GA82800@charmander.picturesperfect.net> References: <20141004194756.5c291180.ohartman@zedat.fu-berlin.de> <20141004183337.GA22999@charmander.picturesperfect.net> <20141004224007.GA82800@charmander.picturesperfect.net> Date: Sat, 4 Oct 2014 15:58:48 -0700 X-Google-Sender-Auth: nNinJzPDkbu4jdw1MOydO33AXXU Message-ID: Subject: Re: CURRENT: buildworld fails to compile: cannot find -lctf cc: error: linker command failed [libproc.so.3] From: Mark Johnston To: Ryan Stone , "O. Hartmann" Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Oct 2014 22:58:50 -0000 On Sat, Oct 4, 2014 at 3:40 PM, Mark Johnston 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 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. 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?