Skip to content

Add Arm RTCD for OpenBSD #363

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add Arm RTCD for OpenBSD #363

wants to merge 1 commit into from

Conversation

brad0
Copy link

@brad0 brad0 commented Aug 18, 2024

Also fix FreeBSD CMake support on ARM.

@brad0
Copy link
Author

brad0 commented Nov 8, 2024

cc @jmvalin

@brad0
Copy link
Author

brad0 commented May 16, 2025

@jmvalin Ping.

@@ -191,7 +191,7 @@ static opus_uint32 opus_cpu_capabilities(void)
return flags;
}

#elif defined(__FreeBSD__)
#elif defined(HAVE_ELF_AUX_INFO)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I understand why you need to change the FreeBSD case to add OpenBSD. Not against your OpenBSD patch but would like to make sure we don't break FreeBSD. More specifically, your HAVE_ELF_AUX_INFO is added to only two out of the four build systems we support.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not every release of FreeBSD nor OpenBSD has the elf_aux_info() API. This is how I've done things with pretty much every other project I've added OpenBSD or FreeBSD/OpenBSD support. I have now added and fixed the CMake support.

@brad0 brad0 force-pushed the openbsd_arm branch 2 times, most recently from 0e19c92 to 660aed0 Compare July 19, 2025 20:45
@brad0
Copy link
Author

brad0 commented Jul 19, 2025

Added CMake support. Also noticed a missed piece for FreeBSD while I was at it.

Also fix FreeBSD CMake support on ARM.
@brad0
Copy link
Author

brad0 commented Jul 19, 2025

The meson build system seems to be broken.

arm64$ meson setup build
The Meson build system
Version: 1.8.2
Source dir: /home/brad/tmp/opus
Build dir: /home/brad/tmp/opus/build
Build type: native build

meson.build:2:11: ERROR: Command `/home/brad/tmp/opus/meson/get-version.py --package-version` failed with status 255.

A full log can be found at /home/brad/tmp/opus/build/meson-logs/meson-log.txt

meson-log.txt has..

Build started at 2025-07-19T16:47:33.212644
Main binary: /usr/local/bin/python3.12
Build Options:
Python system: OpenBSD
The Meson build system
Version: 1.8.2
Source dir: /home/brad/tmp/opus
Build dir: /home/brad/tmp/opus/build
Build type: native build
Running command: /home/brad/tmp/opus/meson/get-version.py --package-version
--- stdout ---

--- stderr ---
fatal: No names found, cannot describe anything.
ERROR: Could not extract package version via `git describe` in /home/brad/tmp/opus



meson.build:2:11: ERROR: Command `/home/brad/tmp/opus/meson/get-version.py --package-version` failed with status 255.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants