Summary: | buildworld failure in /usr/src/sbin/gbde: ld: error: /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libmd.so: undefined reference to _libmd_SHA256_Transform [--no-allow-shlib-undefined] | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Oleh Vinichenko <moonlapse81> | ||||
Component: | misc | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||
Status: | New --- | ||||||
Severity: | Affects Only Me | CC: | editor, emaste, jhb, lwhsu, markj | ||||
Priority: | --- | ||||||
Version: | CURRENT | ||||||
Hardware: | amd64 | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Oleh Vinichenko
2021-10-20 14:11:12 UTC
I am seeing similar issues when cross building ARM64 on AMD64 or vice-versa, with many WITHOUT_ build options enabled: ld: error: undefined reference due to --no-allow-shlib-undefined: yp_next >>> referenced by /usr/obj/usr/src/arm64.aarch64/tmp/lib/libc.so.7 --- all_subdir_usr.sbin --- --- all_subdir_usr.sbin/syslogd --- ===> usr.sbin/syslogd (all) --- all_subdir_usr.bin --- --- all_subdir_usr.bin/login --- ===> usr.bin/login (all) --- all_subdir_usr.bin/chpass --- ld: error: undefined reference due to --no-allow-shlib-undefined: yp_match >>> referenced by /usr/obj/usr/src/arm64.aarch64/tmp/lib/libc.so.7 The failure is on many utilities. I will attach an example src.conf that reproduces this. Created attachment 240487 [details]
Example src.conf to reproduce this
The src.conf works on the same architecture but not cross-built. The host is a default installation with a full toolchain.
Probably due to WITHOUT_OPENSSL as that implies no libcrypto. Not sure how that doesn't break for a amd64 on amd64 build the same way unless it is accidentally finding the host libcrypto.so (which it should not be). |