-
-
Notifications
You must be signed in to change notification settings - Fork 362
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
Illegal instruction (core dumped) in linux/arm/v6
#1124
Comments
Other users report issues with 32bit vs 64bit versions for rpi compilation. Perhaps this is a cause of the issue, what was the unbound compiled for, eg. it prints that at the configure stage, and what is the running architecture. It may also be possible to run the other binaries, say with -h, to give a brief attempt to run it. |
User that initially reported to origamioffical here. It was compiled on an x86 machine, but using the v6 platform flag.
The running arch on the rpi 1 B+:
OS is Raspbian GNU/Linux 12 (bookworm) Updated the configure to capture output:
I checked the configure-output.log, but no mention of architecture was made, it's quite a long file, and just restated the above ./configure from what I could tell. running the unbound command itself also results in the core dump:
Possibly related, I did find that the build of openssl (referenced above in the full docker file) only mentioned armv4 and armv7:
Unsure if it's red herring, so I'm rebuilding the openssl with --target=armv6-linux-gnueabihf, but my system is quite slow and takes ~6h. |
Was unable to get a successful build openssl with the armv6 flag. However, I determined that it wasn't the issue. After a lot of testing, I found I can build unbound with the --platform linux/arm/v6 flag, but only if the built and provided version of openssl is a bit older. Using openssl versions 3.x (e.g. 3.4.0-dev) came up with the error "configure: error: OpenSSL found in /opt/openssl, but version 0.9.7 or higher is required". My testing wasn't exhaustive for the 3.x versions, as each build takes ~6h to run on my system. If I changed to 1.1.1-stable, unbound was able to correctly detect the correct version and build/run. Final working steps were to build with: $ sudo docker buildx build --platform linux/arm/v6 -t unbound-pihole using the dockerfile @origamiofficial linked, but doing a git checkout to the 1.1.1 stable version
Looks like unbound currently can't work with newer versions of openssl on older architecture. |
Describe the bug
When using armel arch, on say a Rpi 1B+, it will fail to start with:
How unbound was build:
Full Dockerfile available here.
Note
It runs fine on all other architectures!
To reproduce
Steps to reproduce the behavior:
/opt/unbound/sbin/unbound-anchor -a /opt/unbound/etc/unbound/var/root.key
Expected behavior
It should run fine as it does on all other architectures except
armel/ARMv6
System:
unbound -V
output:Additional information
Unbound was started using a unbound.sh script available here. Updated the unbound.sh file to list the opt/unbound/sbin dir and just run the unbound-anchor command without args:
Looks to me like building unbound in this way will successfully build, doesn't work on the linux/arm/v6
The text was updated successfully, but these errors were encountered: