From nobody Mon Jun 10 15:43:48 2024 X-Original-To: freebsd-hackers@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 4Vybh35RSJz5M7gQ; Mon, 10 Jun 2024 15:44:03 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-io1-f46.google.com (mail-io1-f46.google.com [209.85.166.46]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vybh26Dkzz4lQm; Mon, 10 Jun 2024 15:44:02 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=freebsd.org (policy=none); spf=pass (mx1.freebsd.org: domain of carpeddiem@gmail.com designates 209.85.166.46 as permitted sender) smtp.mailfrom=carpeddiem@gmail.com Received: by mail-io1-f46.google.com with SMTP id ca18e2360f4ac-7eb6ca2cd09so87350939f.2; Mon, 10 Jun 2024 08:44:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718034241; x=1718639041; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Bnn9IaO4TV+AEFPCFJuTpwbcMe1yenqkqDQwBoK3teQ=; b=d14TSeqbzP5QtAkdT27Udpjk0IFRIH+40SrVWB+sxVRVe+Q265YSbIZ7NrZKkkN1Gq Mg0u1RVRQDFy5HOTUoxjCTEFF9h6lf43rpkmIc+UP5zKjjDOSOxSLBN6UBYX7Y78QC9C P9prG2r6EG3aITwMj5bQmfDKj/vzspOLTdKhcUyo7U/8BlQzXFOaCzKs+pQkvI5unf+I agn8YVHtn4/RKPYfBH1cVNEGwWIOwARFzvSjXKB5ytXzEx8Yvp17QaWfQ0ISg30ZI7hZ ZuAJIcAhr6nbLt3atvzQnO0eFlFK9Q2mBVTAEx95Y3/HroWQjH3FlUmFqiVDFqswMd78 oG1A== X-Forwarded-Encrypted: i=1; AJvYcCXHkegujxm6vvdCLGe8FtJmlGnpLpxDh6YSueQVHeShbaa8E3Qd65sMdICzxWMO0P9/0Ti60RgxadJnGyOqDaaPk8Xkx2m393P2Cd+R0KEvXa2BwhyivPrbPbiQRYhJeqJRZqy6/RI= X-Gm-Message-State: AOJu0YxUPqqqTotr/8DOO6TdZnADpPwwlWBEEW/e/Ik+km0qXkzmZlRp uepFJO5nGHSNFxPsai/bfHlVkV7zc4pLj2iOySS01VYgx0NvpKZUsZywwK+/u3BWe2AmFgzT5yV KnYHNAIBaqSD28yqxSf9mnbiVt4KjMJEg X-Google-Smtp-Source: AGHT+IHtZO6FOKelq83Z/NJz3UGw53sjsTVYXX2tRljHkldYJ1hSmVBsdtK2ssk33Jt6mnrJKfw788eAc0foABbvn+E= X-Received: by 2002:a05:6602:2c90:b0:7eb:6e81:1bb1 with SMTP id ca18e2360f4ac-7eb6e815528mr710568339f.13.1718034240987; Mon, 10 Jun 2024 08:44:00 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Ed Maste Date: Mon, 10 Jun 2024 11:43:48 -0400 Message-ID: Subject: Heads-up: Migrating to LLVM binutils tools (ar, nm, addr2line, etc.) for FreeBSD 15.0 To: "freebsd-toolchain@FreeBSD.org" , FreeBSD Hackers , FreeBSD Ports Content-Type: text/plain; charset="UTF-8" X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.77 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.99)[-0.987]; NEURAL_HAM_SHORT(-0.88)[-0.885]; FORGED_SENDER(0.30)[emaste@freebsd.org,carpeddiem@gmail.com]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : SPF not aligned (relaxed), No valid DKIM,none]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; FREEFALL_USER(0.00)[carpeddiem]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; RCVD_COUNT_ONE(0.00)[1]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TO_DN_EQ_ADDR_SOME(0.00)[]; FROM_NEQ_ENVFROM(0.00)[emaste@freebsd.org,carpeddiem@gmail.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.85.166.46:from]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[209.85.166.46:from]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-toolchain@freebsd.org,freebsd-hackers@freebsd.org,freebsd-ports@freebsd.org]; MISSING_XM_UA(0.00)[]; RCPT_COUNT_THREE(0.00)[3] X-Rspamd-Queue-Id: 4Vybh26Dkzz4lQm On Mon, 5 Jul 2021 at 11:09, Ed Maste wrote: > > FreeBSD migrated from GNU binutils to versions from ELF Tool Chain, > starting in 2014. At that time there were no usable LLVM versions of > those tools, but they have been developing rapidly since then. Now I > think it may be prudent to migrate to the LLVM tools where they exist, > for both functionality and maintainability reasons. For the rest of the context see the thread at https://lists.freebsd.org/archives/freebsd-hackers/2021-July/000111.html > Potential next steps are: > - Introduce new build knob This was done by Alex Richardson in commit 021385aba562. > - Iterate on exp-runs and call for testing The exp-run is PR258872. There are five open bugs for ports failing to build with LLVM_BINUTILS: 1. PR270421 graphics/librsvg2-rust This needs to be fixed in the port -- it combines ports LLVM with base system nm / ar, and they're not compatible for LTO. 2. PR270962 sysutils/stressdisk This is an issue in llvm-strip - https://github.com/llvm/llvm-project/issues/53999. For FreeBSD ports the short-term workaround is probably to have it use GNU binutils instead 3. PR270963 textproc/sxml The PR has a patch that addresses the issue, but has some issues that need to be addressed before being committed. 4. PR278172 lang/racket* 5. PR278895 lang/ghc It's not clear to me what's happening for these two. Likely switch to GNU binutils for them. > - Switch to LLVM tools by default > - Major release (14.0) This clearly did not happen for FreeBSD 14.0, but I plan to do this before 15.0. > - Retire knob, leaving only the LLVM implementation. The knob would remain in place for at least one release; this will not happen before 16.0.