Bug 251326

Summary: x11/swaylock-effects fails to build on aarch64 under qemu
Product: Ports & Packages Reporter: Mark Linimon <linimon>
Component: Individual Port(s)Assignee: Jan Beich <jbeich>
Status: Closed FIXED    
Severity: Affects Only Me Flags: jbeich: maintainer-feedback+
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
See Also: https://github.com/mortie/swaylock-effects/pull/38

Description Mark Linimon freebsd_committer freebsd_triage 2020-11-23 11:12:48 UTC
I get the following:

11/37] /nxb-bin/usr/bin/cc -Ilibclient_protos.a.p -I. -I.. -I/usr/local/include -I/usr/local/include/libepoll-shim -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=
c11 -O3 -Wno-unused-parameter -Wno-unused-result -Wundef -Wvla -fopenmp -mtune=native '-DSYSCONFDIR="//usr/local/etc"' -D_C11_SOURCE '-DSWAYLOCK_VERSION="v1.6-3"' -O2 -fstack-protector-strong -fno-strict-aliasing -
fPIC -MD -MQ libclient_protos.a.p/meson-generated_xdg-shell-protocol.c.o -MF libclient_protos.a.p/meson-generated_xdg-shell-protocol.c.o.d -o libclient_protos.a.p/meson-generated_xdg-shell-protocol.c.o -c libclient
_protos.a.p/xdg-shell-protocol.c
FAILED: libclient_protos.a.p/meson-generated_xdg-shell-protocol.c.o
/nxb-bin/usr/bin/cc -Ilibclient_protos.a.p -I. -I.. -I/usr/local/include -I/usr/local/include/libepoll-shim -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -Werror -std=c11 -O3
-Wno-unused-parameter -Wno-unused-result -Wundef -Wvla -fopenmp -mtune=native '-DSYSCONFDIR="//usr/local/etc"' -D_C11_SOURCE '-DSWAYLOCK_VERSION="v1.6-3"' -O2 -fstack-protector-strong -fno-strict-aliasing -fPIC -MD
 -MQ libclient_protos.a.p/meson-generated_xdg-shell-protocol.c.o -MF libclient_protos.a.p/meson-generated_xdg-shell-protocol.c.o.d -o libclient_protos.a.p/meson-generated_xdg-shell-protocol.c.o -c libclient_protos.
a.p/xdg-shell-protocol.c
cc: error: the clang compiler does not support '-mtune=native'
ninja: build stopped: subcommand failed.
*** Error code 1

FWIW, the -mtune-native line in the meson.build file is not in the meson.build file of the masterport.
Comment 1 Jan Beich freebsd_committer freebsd_triage 2020-11-23 15:13:43 UTC
Reported upstream.
Comment 2 commit-hook freebsd_committer freebsd_triage 2020-11-24 00:09:29 UTC
A commit references this bug:

Author: jbeich
Date: Tue Nov 24 00:08:55 UTC 2020
New revision: 556130
URL: https://svnweb.freebsd.org/changeset/ports/556130

Log:
  x11/swaylock-effects: unbreak on aarch64

  PR:		251326
  Reported by:	linimon

Changes:
  head/x11/swaylock-effects/Makefile
  head/x11/swaylock-effects/distinfo