Skip to content
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

24.5 broke building on 64-bit ARM #468

Open
brad0 opened this issue Dec 14, 2024 · 1 comment
Open

24.5 broke building on 64-bit ARM #468

brad0 opened this issue Dec 14, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@brad0
Copy link

brad0 commented Dec 14, 2024

NZBGet Version

v24.5-stable

Platform

All

Environment

OpenBSD/arm64

Problem or Question

I noticed a few commits making changes to compiler command line options. Something changed as it's now passing 32-bit ARM options on 64-bit ARM and breaking the build.

/home/brad/ports/pobj/nzbget-24.5/bin/cc -DHAVE_CONFIG_H -DPARPAR_ENABLE_HASHER_MD5CRC -DPARPAR_INVERT_SUPPORT -DPARPAR_SLIM_GF16 -D_DARWIN_C_SOURCE -D_DEFAULT_SOURCE -D_GNU_SOURCE -I/home/brad/ports/pobj/nzbget-24.5/build-aarch64/par2cmdline-turbo -I/home/brad/ports/pobj/nzbget-24.5/nzbget-24.5/par2cmdline-turbo/include -I/home/brad/ports/pobj/nzbget-24.5/nzbget-24.5/par2cmdline-turbo/parpar/gf16/gf16/opencl-include -O2 -pipe -DNDEBUG -std=c17 -fno-rtti -Wno-unused-function -Wno-unused-variable -Wno-unused-parameter -fstack-protector -Wno-c++98-compat -mfpu=neon -march=armv7-a -MD -MT par2cmdline-turbo/CMakeFiles/gf16.dir/parpar/gf16/gf16_shuffle_neon.c.o -MF par2cmdline-turbo/CMakeFiles/gf16.dir/parpar/gf16/gf16_shuffle_neon.c.o.d -o par2cmdline-turbo/CMakeFiles/gf16.dir/parpar/gf16/gf16_shuffle_neon.c.o -c /home/brad/ports/pobj/nzbget-24.5/nzbget-24.5/par2cmdline-turbo/parpar/gf16/gf16_shuffle_neon.c
cc: error: unsupported argument 'armv7-a' to option '-march='
ninja: build stopped: subcommand failed.

Steps To Reproduce

Build.

Logs

No response

Extra information

No response

@brad0 brad0 added the question Further information is requested label Dec 14, 2024
@dnzbk dnzbk self-assigned this Dec 14, 2024
@dnzbk
Copy link
Collaborator

dnzbk commented Dec 16, 2024

Tested on my RPI aarch64 and it works fine.
Could you share the exact command you use to configure the build with CMake?
I'm not sure if this applies but we ran into issue with Ninja then we switched to using ExternalProject instead of FetchContent due to homebrew policy,
Could you try using Unix Makefiles as your generator instead of Ninja?

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

No branches or pull requests

2 participants