Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Feb 2022 21:58:31 +0100
From:      Florian Walpen <dev@submerge.ch>
To:        freebsd-multimedia@freebsd.org
Subject:   Re: audio/jack does not compile under ARM/aarch64
Message-ID:  <2257684.THHZn3L5Ee@z800>
In-Reply-To: <a00c865884caff045564d31474c5aa7d@mail.yourbox.net>
References:  <a00c865884caff045564d31474c5aa7d@mail.yourbox.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Jos=E9,

On Monday, February 7, 2022 7:20:45 PM CET Jos=E9 P=E9rez wrote:
> Hi,
> audio/jack does not compile under ARM/aarch64 and outputs:
>=20
> 19:13:23 runner ['c++', '-O2', '-pipe', '-fPIC',
> '-fstack-protector-strong', '-fno-strict-aliasing', '-Wall',
> '-Wno-invalid-offsetof', '-std=3Dgnu++11', '-fPIC', '-Ifreebsd',
> '-I../freebsd', '-Iposix', '-I../posix', '-Icommon', '-I../common',
> '-Icommon/jack', '-I../common/jack', '-I.', '-I..',
> '-I../compat/alloca', '-I../../../../../../local/include/opus',
> '-I../../../../../../local/include',
> '-I../../../../../../local/include/dbus-1.0',
> '-I../../../../../../local/lib/dbus-1.0/include', '-DEXECINFO=3D1',
> '-DHAVE_LIBSYSINFO=3D1', '-DHAVE_DOXYGEN=3D0', '-DHAVE_ALSA=3D1',
> '-DHAVE_FIREWIRE=3D0', '-DHAVE_IIO=3D0', '-DHAVE_PORTAUDIO=3D0',
> '-DHAVE_WINMME=3D0', '-DHAVE_CELT=3D0', '-DHAVE_EXAMPLE_TOOLS=3D0',
> '-DHAVE_OPUS_OPUS_CUSTOM_H=3D1', '-DHAVE_OPUS_PKG=3D1', '-DHAVE_OPUS=3D1',
> '-DHAVE_SAMPLERATE=3D1', '-DHAVE_SNDFILE=3D0', '-DHAVE_READLINE=3D0',
> '-DHAVE_SYSTEMD=3D0', '-DHAVE_DB_H=3D1', '-DHAVE_DB=3D0', '-DHAVE_ZALSA=
=3D0',
> '-DHAVE_PPOLL=3D1', '-DHAVE_EXECINFO_H=3D1', '-DJACK_VERSION=3D"[]"',
> '-DHAVE_DBUS_1=3D1', '-DHAVE_EXPAT=3D1', '-DUSE_LIBDBUS_AUTOLAUNCH=3D1',
> '-DCLIENT_NUM=3D256', '-DPORT_NUM_FOR_CLIENT=3D2048',
> '-DADDON_DIR=3D"/usr/local/lib/jack"', '-DJACK_LOCATION=3D"/usr/local/bin=
"',
> '-DUSE_POSIX_SHM=3D1', '-DJACKMP=3D1', '-DJACK_DBUS=3D1', '-DHAVE_CONFIG_=
H',
> '-DSERVER_SIDE', '../posix/JackSocketServerNotifyChannel.cpp', '-c',
> '-o/usr/ports/audio/jack/work/jack2-1.9.20/build/posix/JackSocketServerNo=
tif
> yChannel.cpp.2.o', '-I/usr/local/include']
> In file included from ../common/JackTransportEngine.cpp:24:
> ../common/JackEngineControl.h:67:5: error: requested alignment is less
> than minimum alignment of 8 for type 'Jack::JackTransportEngine'
>      alignas(UInt32) JackTransportEngine fTransport;
>      ^
> ../common/JackEngineControl.h:89:5: error: requested alignment is less
> than minimum alignment of 8 for type 'Jack::JackFrameTimer'
>      alignas(UInt32) JackFrameTimer fFrameTimer;
>      ^

thanks for the report, this is a known problem and I am working on it:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261508

Still waiting for upstream to test my solution on MacOS with rosetta. In th=
e=20
meantime you can download my patch there (apply with "git am"):
https://bz-attachments.freebsd.org/attachment.cgi?id=3D231525

>=20
> There is a mention to a similar issue under powerpc and powerpc64, but
> there is no indication on how to solve it.

The powerpc architectures use GCC as a workaround, in current ports tree.

>=20
> Can someone point me toward a solution?
>=20
> Thank you.
>=20
> BR,

Regards,

=46lo







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2257684.THHZn3L5Ee>