You are not logged in.

#1 2020-11-14 05:37:52

Toad39
Member
Registered: 2020-07-06
Posts: 60

NetBSD SIGSEGV on Cross-Compilation

Hello,

Before trying to modify the source code of more obscure UNIXes, I wanted to compile a [more] popular UNIX for proof of concept. I chose NetBSD, and build.sh ran smoothly. The problems arose when I tried to run a basic script, such as bin/ed. It shows "command not found." After doing research, it turns out that it shows that if the executable is missing dynamic libraries. I ran:

% ldd ./bin/ed

Some libraries, such as libc, were missing. I understand why this might happen, because Linux doesn't have those libraries. I tried chrooting:

% chroot . /bin/sh

(NetBSD has a /bin/sh). It returned a segmentation fault.

What's going wrong?
Thanks.

Last edited by Toad39 (2020-11-14 05:38:04)

Offline

Board footer

Powered by FluxBB