From owner-freebsd-stable@freebsd.org Mon Mar 18 17:02:32 2019 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 953DA1546E35 for ; Mon, 18 Mar 2019 17:02:32 +0000 (UTC) (envelope-from danallen46@gmail.com) Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6BB106AE24 for ; Mon, 18 Mar 2019 17:02:31 +0000 (UTC) (envelope-from danallen46@gmail.com) Received: by mail-pg1-x530.google.com with SMTP id y3so2583323pgk.12 for ; Mon, 18 Mar 2019 10:02:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=OsGtG73qinSx6sICh5iG7C33o198ii6dfKFhjn5JtVo=; b=K2iI5rY8nrLHW9/FSyo7FYokDWjseaRz0p8O23/mBzkUA+N1agh0VLVbBUFIUOHsue u6tpdayzg7+xWj3zD4CjDJZnmjYd96cguAzNWz3RDo0cfpwBFCaEhhTQW7/5oIJoLJsk sDR/Cvq+X9mIHM10D8p8c49o2hrwqQGGEl1/LcRjda28KDnzyyQ6ezkrF7p/P696YJhC /Usaijn2liCxUgStXHUlarSDosXPsuOPj4wufFO2E21gPDG1iYx2bUnBDimVKmGwquzC FXFo20bpJS2B69InMDjumL96+synnD9aL02eNx58qQt54zwr8KVYU45Cn4pC39LbkYQs Iemw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=OsGtG73qinSx6sICh5iG7C33o198ii6dfKFhjn5JtVo=; b=kJUXQKx3WS0RCWJ+QsjHEPlnTWsAYXRByA8+oRjq4lfG3kzQvjtX2HVr4zdaGLLhnS vNNNM3v6njeO3skvSipT6OMmToYVtg4i541yDZsGRna4I3KVMC8gx/tTuhPhezrDqiUW rkiO9CyiEpZIq1nrHpnbPJio8y+KTZrW3LMpkTH8JOuyZtbfdRIYA1ZQFTaMYMBrzPzW pZ0BXd7881arKIu6e9BMbIzNTOP1aSHnKCKwvOM80UlFd+TrreTRnyG40sxH8e4rjckB yFM5imVXMwz8/y7tDKO7GAjS/r1S858yCVJt1aZhZ6l3YMg4qDy4TXEcF0lZVOm7ptr8 P0uA== X-Gm-Message-State: APjAAAURbUTV0Ug8Yvaola3yE1HTXyxMaiImSBmMAgwq9liVDT0YkINB XYx9fh+7ieSCR6y2CCBonhQCz88pHGc= X-Google-Smtp-Source: APXvYqzQTeGrcuJmzVrxSFEN1QOE96nkL8Yjovv98tW6hMlGYKBXGz1E+R7mGPHwK0/1hJkK5xcpSQ== X-Received: by 2002:a63:704c:: with SMTP id a12mr18244013pgn.394.1552928549697; Mon, 18 Mar 2019 10:02:29 -0700 (PDT) Received: from [192.168.0.4] (75-174-44-110.boid.qwest.net. [75.174.44.110]) by smtp.gmail.com with ESMTPSA id 6sm6980540pfi.53.2019.03.18.10.02.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Mar 2019 10:02:28 -0700 (PDT) From: Dan Allen Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: ifuncs check flawed? Message-Id: <35A0AE5B-B25D-4067-86E3-325E65F3C1F4@gmail.com> Date: Mon, 18 Mar 2019 11:02:28 -0600 To: "freebsd-stable@freebsd.org Mailing FreeBSD-STABLE" X-Mailer: Apple Mail (2.3445.102.3) X-Rspamd-Queue-Id: 6BB106AE24 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=K2iI5rY8; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of danallen46@gmail.com designates 2607:f8b0:4864:20::530 as permitted sender) smtp.mailfrom=danallen46@gmail.com X-Spamd-Result: default: False [-5.35 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.98)[-0.981,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[0.3.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.86)[ip: (-9.39), ipnet: 2607:f8b0::/32(-2.75), asn: 15169(-2.09), country: US(-0.07)] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Mar 2019 17:02:32 -0000 I have been building FreeBSD for many years, as in since 2.2.8. Currently my amd64 build of 12-STABLE is built with the following = src.conf: WITHOUT_BHYVE=3D1 WITHOUT_CAPSICUM=3D1 WITHOUT_CDDL=3D1 WITHOUT_CLANG_EXTRAS=3D1 WITHOUT_CLANG_FULL=3D1 WITHOUT_CROSS_COMPILER=3D1 WITHOUT_DEBUG_FILES=3D1 WITHOUT_EXAMPLES=3D1 WITHOUT_HYPERV=3D1 WITHOUT_JAIL=3D1 WITHOUT_LOCALES=3D1 WITHOUT_PROFILE=3D1 WITHOUT_QUOTAS=3D1 WITHOUT_TESTS=3D1 And a make.conf of: BATCH=3Dyes MK_CDDL=3Dno MK_CLANG_EXTRAS=3Dno MK_DEBUG_FILES=3Dno MK_NO_PROFILE=3Dyes MK_TESTS=3Dno OPTIONS_UNSET=3DJAVA WITH_JADETEX=3Dno WITHOUT_CDDL=3Dyes WITHOUT_CLANG_FULL=3Dyes WITHOUT_CTF=3Dyes WITHOUT_CTM=3Dyes DISABLE_VULNERABILITIES=3Dyes So far, so good. (I do this to fit the whole thing onto a CD-image.) Fooling around, and using xhyve on my Mac, I want to build a i386 = version in a VM. So I grabbed the 20190314 snapshot of 12-STABLE, i386 flavor, and = installed it. Works great. Now to rebuild the world. The buildworld and buildkernel steps both immediately fail due to the = linker not supporting ifuncs. The code that stops the buildworld is this from = /usr/src/lib/libc/Makefile: --- .if (${LIBC_ARCH} =3D=3D amd64 || ${LIBC_ARCH} =3D=3D i386) && \ ${.TARGETS:Mall} =3D=3D all && \ defined(LINKER_FEATURES) && ${LINKER_FEATURES:Mifunc} =3D=3D "" .error ${LIBC_ARCH} libc requires linker ifunc support .endif --- However the linker on my system is the lld linker that supports ifuncs! = Why does this check fail? I am building on i386 but I am only building i386, as in I am not = building all targets or amd64. I edited the two Makefiles that have this check to remove the check and = the builds proceed just fine. So it appears that these checks are flawed, or I am soon to learn = something new about FreeBSD! Thanks, Dan Allen