Created attachment 265206 [details] build log riscv 16.0-CURRENT FreeBSD 16.0-CURRENT #0 main-n281643-c3a3af134668 build fails near end-- /usr/bin/env LD_LIBMAP_DISABLE=1 ldd -a "/wrkdirs/usr/ports/databases/sqlite3/work-default/stage/usr/local/bin/sqlite3" "/wrkdirs/usr/ports/databases/sqlite3/work-default/stage/usr/local/lib/libsqlite3.so" ldd: /wrkdirs/usr/ports/databases/sqlite3/work-default/stage/usr/local/bin/sqlite3: Exec format error /wrkdirs/usr/ports/databases/sqlite3/work-default/stage/usr/local/bin/sqlite3: exit status 1 /wrkdirs/usr/ports/databases/sqlite3/work-default/stage/usr/local/lib/libsqlite3.so: exit status 1 build log attached
Not a relevant platform. If you need this fixed, please provide a patch.
Sorry, what do you mean "not a relevant platform"? You can de-prioritise it as not something you want to spend your time working on, but it is an architecture supported by FreeBSD and so this is a legitimate bug report, not one that should just be closed because you personally don't care.
sqlite3-3.50.2_1,1 built in the past: pkg info -f sqlite3-3.50.2_1,1 sqlite3-3.50.2_1,1 Name : sqlite3 Version : 3.50.2_1,1 Installed on : Tue Sep 30 16:09:05 2025 EEST Origin : databases/sqlite3 Architecture : FreeBSD:16:riscv64 Prefix : /usr/local Categories : databases Licenses : PD Maintainer : pavelivolkov@gmail.com WWW : https://www.sqlite.org/ Comment : SQL database engine in a C library Options : ARMOR : off DBPAGE : on DBSTAT : on DIRECT_READ : on DQS : off EXAMPLES : on EXTENSION : on FTS3_TOKEN : on FTS4 : on FTS5 : on GEOPOLY : off ICU : off LIBEDIT : on LIKENOTBLOB : off MEMMAN : off METADATA : on NORMALIZE : off NULL_TRIM : off OFFSET : off RBU : off READLINE : off RTREE : on RTREE_INT : off SECURE_DELETE : on SESSION : off SORT_REF : off SOUNDEX : off STAT3 : off STAT4 : off STATIC : off STMT : off STRIP : on TCL : off THREADS : on TRUSTED_SCHEMA : off TS0 : off TS1 : on TS2 : off TS3 : off UNICODE61 : on UNKNOWN_SQL : off UNLOCK_NOTIFY : on UPDATE_LIMIT : off URI : on URI_AUTHORITY : off Shared Libs required: libc.so.7 libedit.so.8 libm.so.5 libncursesw.so.9 libthr.so.3 libz.so.6 Shared Libs provided: libsqlite3.so.0 Annotations : FreeBSD_version: 1600000 build_timestamp: 2025-09-27T13:11:15+00:00 built_by : poudriere-git-3.4.99.20250724 flavor : default port_checkout_unclean: no port_git_hash : 17468749f972 ports_top_checkout_unclean: no ports_top_git_hash: 3b6728a8303d repo_type : binary repository : riscv Flat size : 4.81MiB
but that was sqlite3
Created attachment 265262 [details] build log sqlite3-3.50.4_1,1
Not sure if this is significant. During boot on the serial console (but not in captured in the /var/log/messages) I see this: Mounting local filesystems:. ELF binary type "0" not known. eval: /libexec/ld-elf.so.1: Exec format error ELF ldconfig path: /usr/lib/compat /usr/local/lib /usr/local/lib/heimdal /usr/local/lib/mysql /usr/local/lib/perl5/5.42/mach/CORE /usr/local/lib/qt5 /usr/local/llvm19/lib /usr/local/llvm19/lib/riscv64-portbld-freebsd16.0
The problem is that that the linker is directly called to do a link instead of going through the C compiler. On some platforms, just invoking the linker directly does not add the required flags to make the link work. It may be enough to call brandelf on the resulting binary to fix this issue.