Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Nov 2023 17:58:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        emulation@FreeBSD.org
Subject:   =?UTF-8?B?bWFpbnRhaW5lci1mZWVkYmFjayByZXF1ZXN0ZWQ6IFtCdWcgMjc1?= =?UTF-8?B?MDE0XSBhdWRpby9saW51eC1jNy1hbHNhLXBsdWdpbnMtb3NzOiBmYWlscyB0?= =?UTF-8?B?byBidWlsZCB3aXRoIC1lbmFibGUtdHJpdmlhbC1hdXRvLXZhci1pbml0LXpl?= =?UTF-8?B?cm8ta25vd2luZy1pdC13aWxsLWJlLXJlbW92ZWQtZnJvbS1jbGFuZw==?=
Message-ID:  <bug-275014-4077-LVfoFrW9w5@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-275014-4077@https.bugs.freebsd.org/bugzilla/>
References:  <bug-275014-4077@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-emulation (Nob=
ody)
<emulation@FreeBSD.org> for maintainer-feedback:
Bug 275014: audio/linux-c7-alsa-plugins-oss: fails to build with
-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275014



--- Description ---
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-o
ption/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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-275014-4077-LVfoFrW9w5>