From nobody Thu Feb 9 22:07: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 4PCWF66t29z3nrmJ for ; Thu, 9 Feb 2023 22:07:22 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PCWF36cNfz4Kdd for ; Thu, 9 Feb 2023 22:07:19 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of sgk@troutmask.apl.washington.edu has no SPF policy when checking 128.95.76.21) smtp.mailfrom=sgk@troutmask.apl.washington.edu; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=washington.edu (policy=none) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.16.1/8.16.1) with ESMTPS id 319M7BR2069299 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Thu, 9 Feb 2023 14:07:11 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.16.1/8.16.1/Submit) id 319M7BoT069298 for freebsd-ports@freebsd.org; Thu, 9 Feb 2023 14:07:11 -0800 (PST) (envelope-from sgk) Date: Thu, 9 Feb 2023 14:07:11 -0800 From: Steve Kargl To: freebsd-ports@freebsd.org Subject: devel/llvm16 -- flang is still broken Message-ID: Reply-To: sgk@troutmask.apl.washington.edu 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spamd-Result: default: False [-2.87 / 15.00]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_MEDIUM(-1.00)[-0.997]; NEURAL_HAM_SHORT(-0.87)[-0.873]; DMARC_POLICY_SOFTFAIL(0.10)[washington.edu : No valid SPF, No valid DKIM,none]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; R_SPF_NA(0.00)[no SPF record]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; ASN(0.00)[asn:73, ipnet:128.95.0.0/16, country:US]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; HAS_REPLYTO(0.00)[sgk@troutmask.apl.washington.edu] X-Rspamd-Queue-Id: 4PCWF36cNfz4Kdd X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N TL:DR: Please disable building flang in devel/llvm16. I was hoping to test the to Fortran compilers included in devel/llvm16. Unfortunately, neither flang16 nor flang-new16 are usable. % flang16 -o z a.f90 ld: error: undefined symbol: _FortranAioBeginExternalFormattedOutput >>> referenced by FIRModule >>> /mnt3/kargl/tmp/a-c99267.o:(_QQmain) >>> referenced by FIRModule >>> /mnt3/kargl/tmp/a-c99267.o:(_QQmain) >>> referenced by FIRModule >>> /mnt3/kargl/tmp/a-c99267.o:(_QQmain) >>> referenced 1 more times % flang-new16 -o z a.f90 ld: error: undefined symbol: main >>> referenced by crt1_c.c:73 (/usr/src/lib/csu/amd64/crt1_c.c:73) >>> /usr/lib/crt1.o:(_start) ld: error: undefined symbol: _FortranAioBeginExternalFormattedOutput >>> referenced by FIRModule >>> /mnt3/kargl/tmp/a-9d28a3.o:(_QQmain) >>> referenced by FIRModule >>> /mnt3/kargl/tmp/a-9d28a3.o:(_QQmain) >>> referenced by FIRModule >>> /mnt3/kargl/tmp/a-9d28a3.o:(_QQmain) So support libraries appear to be missing during the link stage, and looking at the verbose output shows that none of the libraries are actually given to the linker. To compound the matter, the libraries are static. There are no shared libraries. % find /usr/local/llvm16 -name \*Fortran\* | grep "\.a" /usr/local/llvm16/lib/libFortranCommon.a /usr/local/llvm16/lib/libFortranDecimal.a /usr/local/llvm16/lib/libFortranEvaluate.a /usr/local/llvm16/lib/libFortranLower.a /usr/local/llvm16/lib/libFortranParser.a /usr/local/llvm16/lib/libFortranRuntime.a /usr/local/llvm16/lib/libFortranSemantics.a /usr/local/llvm16/lib/libFortran_main.a % find /usr/local/llvm16 -name \*flang\* | grep "\.a" /usr/local/llvm16/lib/libflangFrontend.a /usr/local/llvm16/lib/libflangFrontendTool.a So building devel/llvm16 is a waste of cpu cycles and threshes memory. -- Steve