From owner-freebsd-ports@freebsd.org Tue Dec 15 05:48:56 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 57E544A9484 for ; Tue, 15 Dec 2020 05:48:56 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-23.consmr.mail.gq1.yahoo.com (sonic304-23.consmr.mail.gq1.yahoo.com [98.137.68.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Cw6kv1RDfz4t00 for ; Tue, 15 Dec 2020 05:48:54 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1608011332; bh=TBaEj00Trs9mTtX2thqC6inixb0sSBU3VEDYE1Xm+CM=; h=From:Subject:Date:To:From:Subject; b=g/v7XMzcAhTNk4O38/BVr7lpGV3xwmTd91zQYs/LHxd5RYxSKUSSVDiVlJSIXk2aXEzbygccKbJnwwt1FIgLiDXX/U0ZETm9VNzpH2fm+ShzLva0I3xAxYdpwtwEguX/5jYRzoSztq1Dh/NYZD8bVydwcrdep4jlgz1OAHV488VqITDlmyKjCDVG7SQLkdOknS0y/qTbOYTKOWziPQ2SvnfmfTVKQGzRgOxqxrbDASXqvSEG0Q86wMDht83ThSshUDzz23r4NXMMMeZpAsdKKnOCeKZhSKp909dfzF+4dgVHGGVtt5+TzkIIE5BoYQOxzcRUrXjoxg8bTrUOa52xeQ== X-YMail-OSG: 4cYJbFQVM1ndmlNATBvd2eWqCNOzqcIotLCffENFT1HIQd2UPJK3wNwIO9Cfaxj ryCRVPqSGS2WYMBsr5L36xGhYSna0A1oxwuYzApdg580ffV5XYgtiRun3mBSpY83Hktn7ghaz6ik EeNHbM0iOUDX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Hd.SDTSCxjb9AwecdDkfJdoX7Qska4oVbI4sNl xI4NkumDcmu1SRQU4vBS65y79KztgVyMJ1U5PKILy43rB5ah_jcoxyYkveg8KaUU.dswcZgXiflS _lPM4ks8jpeTL2VbnhvyQXmJn3tbt2cC.36FGTzyI7.CHYeA60S47mnIcnc6CRD_fWlvr0uqv8zG D_HpJQtcFs0jLhw.9hkU5dqZ9mGOM_fybMZGdpOeo4GI5RyrdvplGtwHA_Nc..fSFfRJk.lu7WVj G.6iLhM0- Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Tue, 15 Dec 2020 05:48:52 +0000 Received: by smtp414.mail.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 13beb38ba6676df85a8dfb43d5238014; Tue, 15 Dec 2020 05:48:46 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.20.0.2.21\)) Subject: Re: math/suitesparse from ports head -r557893 fails for armv7 by default: "/usr/local/bin/ld: cannot find -lomp" Date: Mon, 14 Dec 2020 21:48:44 -0800 References: To: FreeBSD ports In-Reply-To: Message-Id: <71175328-345B-490E-861A-71A05030631A@yahoo.com> X-Mailer: Apple Mail (2.3654.20.0.2.21) X-Rspamd-Queue-Id: 4Cw6kv1RDfz4t00 X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.50 / 15.00]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[98.137.68.204:from]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[98.137.68.204:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.204:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.204:from]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-ports] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Dec 2020 05:48:56 -0000 On 2020-Dec-14, at 13:34, Mark Millard wrote: > This was on aarch64 doing a build targeting armv7 via poudriere --but = might apply to other platforms that by default do not have LLVM's OpenMP = runtime: >=20 > WITHOUT_OPENMP > Set to not build LLVM's OpenMP runtime. >=20 > This is a default setting on arm/armv6, arm/armv7, = mips/mips, > mips/mips64, powerpc/powerpc, riscv/riscv64 and = riscv/riscv64sf. >=20 > # poudriere jail -jFBSDFSSDjailArmV7 -i > Jail name: FBSDFSSDjailArmV7 > Jail version: 13.0-CURRENT > Jail arch: arm.armv7 > Jail method: null > Jail mount: /usr/obj/DESTDIRs/clang-armv7-installworld-poud > Jail fs: =20 > Jail updated: 2020-04-21 22:39:35 >=20 > /usr/obj/DESTDIRs/clang-armv7-installworld-poud is at: head -r368500 > (as is the containing aarch64 environment). >=20 > Apparently, armv7 (at least) requires a manual/explicit OPENMP=3Doff = configuration option for math/suitesparse . Is this intentional? >=20 >=20 > poudriere reported: >=20 > [02:42:51] [01] [00:00:00] Building math/suitesparse | = suitesparse-5.8.1 > [02:46:41] [01] [00:03:50] Saving math/suitesparse | suitesparse-5.8.1 = wrkdir > [02:46:45] [01] [00:03:54] Saved math/suitesparse | suitesparse-5.8.1 = wrkdir to: = /usr/local/poudriere/data/wrkdirs/FBSDFSSDjailArmV7-default/default/suites= parse-5.8.1.tar > [02:46:55] [01] [00:04:04] Finished math/suitesparse | = suitesparse-5.8.1: Failed: build > [02:46:59] [01] [00:04:08] Skipping math/eigen3 | eigen-3.3.8: = Dependent port math/suitesparse | suitesparse-5.8.1 failed > [02:46:59] [01] [00:04:08] Skipping multimedia/ffmpeg | = ffmpeg-4.3.1_9,1: Dependent port math/suitesparse | suitesparse-5.8.1 = failed > [02:46:59] [01] [00:04:08] Skipping multimedia/gstreamer1-libav | = gstreamer1-libav-1.16.2: Dependent port math/suitesparse | = suitesparse-5.8.1 failed > [02:46:59] [01] [00:04:08] Skipping multimedia/gstreamer1-plugins-core = | gstreamer1-plugins-core-1.16: Dependent port math/suitesparse | = suitesparse-5.8.1 failed > [02:46:59] [01] [00:04:08] Skipping x11/lumina | lumina-1.6.0,3: = Dependent port math/suitesparse | suitesparse-5.8.1 failed > [02:46:59] [01] [00:04:08] Skipping x11/lumina-core | = lumina-core-1.6.0: Dependent port math/suitesparse | suitesparse-5.8.1 = failed > [02:46:59] [01] [00:04:08] Skipping graphics/opencv-core | = opencv-core-3.4.1_37: Dependent port math/suitesparse | = suitesparse-5.8.1 failed > . . . > [02:48:20] Failed ports: math/suitesparse:build > [02:48:20] Skipped ports: graphics/opencv-core math/eigen3 = multimedia/ffmpeg multimedia/gstreamer1-libav = multimedia/gstreamer1-plugins-core x11/lumina x11/lumina-core >=20 > (That last gives a clue what types of things are blocked by the = failure.) >=20 > The log showed the -lomp issue: >=20 > . . . > /usr/local/bin/ranlib libcholmod.a > /usr/local/bin/ld: cannot find -lomp > c++: error: linker command failed with exit code 1 (use -v to see = invocation) > gmake[4]: *** [Makefile:544: = /wrkdirs/usr/ports/math/suitesparse/work/SuiteSparse-5.8.1/lib/libcholmod.= so.3.0.14] Error 1 > gmake[4]: Leaving directory = '/wrkdirs/usr/ports/math/suitesparse/work/SuiteSparse-5.8.1/CHOLMOD/Lib' > gmake[3]: *** [Makefile:31: library] Error 2 > gmake[3]: Leaving directory = '/wrkdirs/usr/ports/math/suitesparse/work/SuiteSparse-5.8.1/CHOLMOD/Lib' > gmake[2]: *** [Makefile:19: library] Error 2 > gmake[2]: Leaving directory = '/wrkdirs/usr/ports/math/suitesparse/work/SuiteSparse-5.8.1/CHOLMOD' > gmake[1]: *** [Makefile:135: library] Error 2 > gmake[1]: Leaving directory = '/wrkdirs/usr/ports/math/suitesparse/work/SuiteSparse-5.8.1' > =3D=3D=3D> Compilation failed unexpectedly. > Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the = failure to > the maintainer. > *** Error code 1 > . . . >=20 > Other context details . . . >=20 > # svnlite info /usr/ports/ > Path: /usr/ports > Working Copy Root Path: /usr/ports > URL: svn://svn.freebsd.org/ports/head > Relative URL: ^/head > Repository Root: svn://svn.freebsd.org/ports > Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 > Revision: 557893 > Node Kind: directory > Schedule: normal > Last Changed Author: manu > Last Changed Rev: 557893 > Last Changed Date: 2020-12-13 03:53:57 -0800 (Sun, 13 Dec 2020) >=20 > # uname -apKU > FreeBSD FBSDmacch 13.0-CURRENT FreeBSD 13.0-CURRENT #47 r368500M: Thu = Dec 10 03:15:10 PST 2020 = root@FBSDFHUGE:/usr/obj/cortexA72_clang/arm64.aarch64/usr/src/arm64.aarch6= 4/sys/GENERIC-NODBG arm64 aarch64 1300131 1300131 >=20 An explicit use of OPTIONS_FILE_UNSET+=3DOPENMP in the below was = sufficient to allow the build: # more = /usr/local/etc/poudriere.d/FBSDFSSDjailArmV7-options/math_suitesparse/opti= ons=20 # This file is auto-generated by 'make config'. # Options for suitesparse-5.8.1 _OPTIONS_READ=3Dsuitesparse-5.8.1 _FILE_COMPLETE_OPTIONS_LIST=3DDEMOS DOCS TBB ATLAS GOTOBLAS NETLIB = OPENBLAS OPTIONS_FILE_UNSET+=3DDEMOS OPTIONS_FILE_SET+=3DDOCS OPTIONS_FILE_SET+=3DTBB OPTIONS_FILE_UNSET+=3DATLAS OPTIONS_FILE_UNSET+=3DGOTOBLAS OPTIONS_FILE_UNSET+=3DNETLIB OPTIONS_FILE_SET+=3DOPENBLAS OPTIONS_FILE_UNSET+=3DOPENMP Note that for armv7 config had not even listed OPENMP as an option. Yet = UNSET'ing it seems to be required for a by-default WITHOUT_OPENMP = context in order for the build to work. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)