Date: Fri, 10 Nov 2023 17:58:54 +0000 From: bugzilla-noreply@freebsd.org To: emulation@FreeBSD.org Subject: =?UTF-8?B?W0J1ZyAyNzUwMTRdIGF1ZGlvL2xpbnV4LWM3LWFsc2EtcGx1Z2lu?= =?UTF-8?B?cy1vc3M6IGZhaWxzIHRvIGJ1aWxkIHdpdGggLWVuYWJsZS10cml2aWFsLWF1?= =?UTF-8?B?dG8tdmFyLWluaXQtemVyby1rbm93aW5nLWl0LXdpbGwtYmUtcmVtb3ZlZC1m?= =?UTF-8?B?cm9tLWNsYW5n?= Message-ID: <bug-275014-4077@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275014 Bug ID: 275014 Summary: audio/linux-c7-alsa-plugins-oss: fails to build with -enable-trivial-auto-var-init-zero-knowing-it-will-be- removed-from-clang Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: emulation@FreeBSD.org Reporter: sean@rogue-research.com Assignee: emulation@FreeBSD.org Flags: maintainer-feedback?(emulation@FreeBSD.org) I build my own packages with poudriere. I recently globally added the clang `-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang` = flag and that broke `audio/linux-c7-alsa-plugins-oss` from building. The other = 419 packages I build had no problem. The error is: ``` checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... Segmentation fault (core dumped) configure: error: in `/wrkdirs/usr/ports/audio/linux-c7-alsa-plugins-oss/work/32/alsa-plugins-1.= 1.6': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details *** Error code 77 Stop. make: stopped in /usr/ports/audio/linux-c7-alsa-plugins-oss ``` The `-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-cla= ng` flag has a dubious name I agree, but that's only because FreeBSD 13.2's cla= ng 14 is rather old. In newer clang the flag was promoted from experimental to fully legit and is now named `-ftrivial-auto-var-init=3Dzero`. See https://discourse.llvm.org/t/making-ftrivial-auto-var-init-zero-a-first-cla= ss-option/55143 My reason for using the flag is the same as others: security. Android, Chr= ome OS, Windows, Apple, and others use this in production builds too. >From the error output, I would guess that something is building and running= a C program to test something, and that program is crashing. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-275014-4077>