[Bug 294067] clang frontend command failed with exit code 134 on the port misc/pytorch Running pass 'AArch64 Instruction Selection' on function xx

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 25 May 2026 02:53:13 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294067

--- Comment #5 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to Mark Millard from comment #4)

My build attempt under a llvm21 based main worked.
reneabling just aarch64 main builds should work.

Details . . .

# poudriere bulk -jmain-aarch64 -palt misc/pytorch
. . .
[03:55:00] [01] [00:00:00] Building   misc/pytorch | pytorch-2.12.0
[05:21:27] [01] [01:26:27] Finished   misc/pytorch | pytorch-2.12.0: Success

Context:

# uname -apKU
FreeBSD aarch64-main-pbase 16.0-CURRENT FreeBSD 16.0-CURRENT #5
main-n285621-839d3266d8c6-dirty: Thu Apr 30 18:34:41 PDT 2026    
root@aarch64-main-pbase:/usr/obj/BUILDs/main-CA76-nodbg-clang/usr/main-src/arm64.aarch64/sys/GENERIC-NODBG-CA76
arm64 aarch64 1600018 1600018

(A personal kernel used with a pkgbase main-boot-world install --and a matching
poudriere-devel pkgbase main-world .)

# poudriere jail -l
JAILNAME            VERSION          OSVERSION ARCH          METHOD     
TIMESTAMP           PATH
. . .
main-aarch64        16.0-CURRENT     1600018   aarch64       pkgbase    
2026-05-18 14:19:44 /usr/local/poudriere/jails/main-aarch64
. . .

# ~/fbsd-based-on-what-commit.sh -C /usr/ports-alt/
07aef5b31016 (HEAD -> main, freebsd/main, freebsd/HEAD) devel/sem: Update to
0.6.0
Author:     Adam Weinberger <adamw@FreeBSD.org>
Commit:     Adam Weinberger <adamw@FreeBSD.org>
CommitDate: 2026-05-18 19:51:48 +0000
branch: main
merge-base: 07aef5b3101638d54cb5d0c7aec34ca40158160a
merge-base: CommitDate: 2026-05-18 19:51:48 +0000
n747425 (--first-parent --count for merge-base)

# git -C /usr/ports-alt/ status
Refresh index: 100% (174431/174431), done.
On branch main
Your branch is up to date with 'freebsd/main'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   misc/pytorch/Makefile

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        lang/gcc16-devel/files/patch-libgcc_config_aarch64_cpuinfo.c

no changes added to commit (use "git add" and/or "git commit -a")

[Note: the gcc16-devel line is from a test I did for someone else.]

# git -C /usr/ports-alt/ diff misc/pytorch
diff --git a/misc/pytorch/Makefile b/misc/pytorch/Makefile
index 5d2ffd1193a8..68f34188be27 100644
--- a/misc/pytorch/Makefile
+++ b/misc/pytorch/Makefile
@@ -12,7 +12,7 @@ WWW=          https://pytorch.org/
 LICENSE=       BSD3CLAUSE
 LICENSE_FILE=  ${WRKSRC}/LICENSE

-BROKEN_aarch64=        compilation fails: clang crashes, see
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294067
+#BROKEN_aarch64=       compilation fails: clang crashes, see
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294067
 BROKEN_i386=   compilation fails: error: use of undeclared identifier 'AVX2'

 BUILD_DEPENDS= ${LOCALBASE}/include/fxdiv.h:devel/fxdiv \


For reference, from misc/pytorch/Makefile:

PORTNAME=       pytorch
DISTVERSIONPREFIX=      v
DISTVERSION=    2.12.0
. . .

-- 
You are receiving this mail because:
You are the assignee for the bug.