From nobody Mon May 15 16:06:11 2023 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QKkkc0kM1z4BmgS for ; Mon, 15 May 2023 16:06:16 +0000 (UTC) (envelope-from yuri@aetern.org) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4QKkkb5wH8z3Pwv; Mon, 15 May 2023 16:06:15 +0000 (UTC) (envelope-from yuri@aetern.org) Authentication-Results: mx1.freebsd.org; none Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id ADE155C013E; Mon, 15 May 2023 12:06:14 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 15 May 2023 12:06:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aetern.org; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm3; t= 1684166774; x=1684253174; bh=dan+25uJBiRSCdQFEbTyccDGCHeXeSmFk3b Mmdsyc/s=; b=ePefIaqaeYpAfocFXgNAs+KOY/jlvpN2BzN+gpcUaCvp2ddrReC Ojc+9txUqT9YR+6XbD8CX3ZT478niKPbPmEZED0jTwP4Tgv2Sz3qWmSogz9x7bRm l6h0/bevjjMaUKQ0l88Xen8U60Lvc6GQgyRVTN3CChFbbAjXf0aY8TqbD3wZTR2A DWWmWmgUHqEmHmZE5801ZOCq97mlOTjnjdXZS6Km8Zi9oFPODQ2kDCnDmyV026Cr m6QpUG2qNFln69VqUqraoWBA0sf/Gojy0Dz5Bz4XLdJSA0yiZ5i0It31w2lknS8Q w8oUwgwRhscKoaogqlGhvkitB2N77MogazQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1684166774; x= 1684253174; bh=dan+25uJBiRSCdQFEbTyccDGCHeXeSmFk3bMmdsyc/s=; b=n T3HLO4HeW05KAjG+LeSyG04+OvsI/euGwr6O1LK9YxSNyQVOh6LG9NWph7yHX2V5 SxhUE8ECzxSGNDDb70MAPwawqn/xIzR5rgtXDFZ7fcEQEL8SnmCxZo8YmVjlqpWx hXwkAkdi9nV5/+fq/9sxS/ILOdCFF2wt+ygvUM5knDBCCXxW3R4ldIF8wxHIGO9K FjlCGVBZWnl/cm2GhwuhBQxJPm2VpKl2AtTznX7mf59fmDZ3i2uszFTcYNvyo4ng IxJJ56ez2/hGsNVMLCwMpnLnMr2NnC9fU9WQvrHO4VE7WPoXBVCCgENEzFv0H3BC 3jMauMeKfhOcud0OY62lA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeehjedgleekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtke ertddtfeejnecuhfhrohhmpegjuhhrihcuoeihuhhrihesrggvthgvrhhnrdhorhhgqeen ucggtffrrghtthgvrhhnpedtteffgeetjefghedtjefhuefhieefudeggfehheeuieegue ejfeejjeeugedutdenucffohhmrghinheptghphihthhhonhdqfeelrdhsohenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeihuhhrihesrggvth gvrhhnrdhorhhg X-ME-Proxy: Feedback-ID: i0d79475b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 15 May 2023 12:06:13 -0400 (EDT) Message-ID: <92b77a40-6754-234f-9769-2a45e878d189@aetern.org> Date: Mon, 15 May 2023 18:06:11 +0200 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: python pip install does not work on FreeBSD 13.2 Content-Language: en-US To: Miroslav Lachman <000.fbsd@quip.cz>, Charlie Li , freebsd-ports References: <21fbbe0d-6091-7150-b1d8-b1b21b13b3ce@quip.cz> <6dd48add-3047-7ef8-eb1c-004f2246aa68@aetern.org> <0316ef7a-4556-1d85-b500-62d7c3cec631@freebsd.org> <2e3e3f33-ed39-043a-7493-bf50ef9cc3a5@quip.cz> From: Yuri In-Reply-To: <2e3e3f33-ed39-043a-7493-bf50ef9cc3a5@quip.cz> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4QKkkb5wH8z3Pwv X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N Miroslav Lachman wrote: > On 15/05/2023 15:35, Charlie Li wrote: >> Yuri wrote: >>> Miroslav Lachman wrote: >>>>            cc -pthread -shared -L/usr/local/lib >>>> -fstack-protector-strong >>>> build/temp.freebsd-13.2-RELEASE-amd64-cpython-39/c/_cffi_backend.o >>>> -L/usr/local/lib -L/usr/local/lib -lffi -o >>>> build/lib.freebsd-13.2-RELEASE-amd64-cpython-39/_cffi_backend.cpython-39.so >>>>            /usr/bin/ld: BFD 2.17.50 [FreeBSD] 2007-07-03 internal >>>> error, >>>> aborting at >>>> /usr/src/gnu/usr.bin/binutils/libbfd/../../../../contrib/binutils/bfd/reloc.c line 445 in unsigned int bfd_get_reloc_size(reloc_howto_type *) >>>> >>>>              /usr/bin/ld: Please report this bug. > > [..] > >>>> Does anybody know what can cause this problem on FreeBSD 13.2? >>> >>> Looks like in-base binutils (gnu ld included) were removed even before >>> 13.0, so the one you have is likely a leftover.  And the question is -- >>> do you have WITHOUT_LLD, WITHOUT_LLD_IS_LD, or similar options specified >>> in src.conf? > > No, only WITHOUT_KERNEL_SYMBOLS=yes > And only KERNCONF=GENERIC in make.conf, nothing else. > >> /usr/bin/ld is a symlink to ld.lld by default, you should not have >> ld.bfd since binutils was removed from base prior to 13. >> >> This is giving unclean world/userland, poudriere jails perform a full >> installworld/delete-old{,-libs} so if you did your pip install >> procedures in there (as a test) you shouldn't have issues either. >> Always make sure your kernel and userland are in sync. > > Kernel and userland are in sync: > > # freebsd-version -kru > 13.2-RELEASE > 13.2-RELEASE > 13.2-RELEASE > > make delete-old and make delete-old-libs was run after make > installworld, many files were deleted but is still there > > # ll /usr/bin/ld > -r-xr-xr-x  1 root  wheel   1.6M Jul 13  2020 /usr/bin/ld* > > I checked all other upgraded machines and all of them have this > /usr/bin/ld dated back to Jul 13 2020. > All machines were upgraded from 11.4 to 12.x years ago and from 12.3 to > 13.2 few weaks ago. That's strange, looking at the git history, even 11.0 shipped /usr/bin/ld as a symlink to /usr/bin/ld.bfd, is it possible it was modified locally for some reason? git show origin/releng/11.0:gnu/usr.bin/binutils/ld/Makefile > So is there some bug in "make delete-old"? No, delete-old should not delete /usr/bin/ld as it still exists, it's only supposed to delete /usr/bin/ld.bfd (the gnu one). > Should I delete /usb/bin/ls on all machines? > >> Slightly unrelated, but if you are running pip against the normally >> pkg(8)-managed site-packages (and not elsewhere like a virtual >> environment), this will soon not be allowed with our Python ports. > > We run pip install only in venv. We don't mix global packages from pkg > and pip.