pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
'Russian Doll' rust builds
Hi,
I have been less than happy with Dovecot recently, and started playing
with Stalwart
<https://stalw.art/open-source/>
<https://github.com/stalwartlabs/stalwart>
wip/stalwart
Now, the New Way these projects are done, "Nobody walks, everybody
drives."(*), i.e. you are supposed to run them from a container.
pkgtools/url2pkg did a good job producing a package, but it looks like
some of the librar^Wcrates start their own c/c++ builds, with autotool
runs and all, and they are hard to get to.
Upstream recommends clang, but I ran into the same issue with both gcc
and clang:
[...]
Compiling stalwart v0.13.4
(/var/obj/pkgsrc/wip/stalwart/work/stalwart-0.13.4/crates/main)
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-Wl,-R<sysroot>/lib/libatomic"
"-Wl,-L<sysroot>/lib/libatomic" "-m64" "/tmp/rustcRK3ziK/symbols.o" "<1
object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic"
"/tmp/rustcRK3ziK/{libjemalloc_sys-0942cab33b538214.rlib,libliblzma_sys-bbffec8071e24ac4.rlib,liblibrocksdb_sys-26918908822c2a64.rlib,liblz4_sys-940141120c6be024.rlib,liblibz_sys-b2c36a1ee2bccf0d.rlib,libbzip2_sys-5593240f17343dda.rlib,libblake3-e520ffe44f96156b.rlib,libzstd_sys-ce87b7853e077d90.rlib,libring-0267280e821cc2dc.rlib}.rlib"
"<sysroot>/lib/rustlib/x86_64-unknown-netbsd/lib/{libcompiler_builtins-*}.rlib"
"-Wl,-Bdynamic" "-lc++" "-lstdc++" "-lutil" "-lrt" "-lutil" "-lexecinfo"
"-lexecinfo" "-lpthread" "-lrt" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread"
"-lutil" "-lrt" "-lutil" "-lexecinfo" "-L" "/tmp/rustcRK3ziK/raw-dylibs"
"-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L"
"/var/obj/pkgsrc/hauke/stalwart/work/stalwart-0.13.4/target/release/build/ring-875a4a3d713937f5/out"
"-L"
"/var/obj/pkgsrc/hauke/stalwart/work/stalwart-0.13.4/target/release/build/ring-8dda986d9e2c0e16/out"
"-L"
"/var/obj/pkgsrc/hauke/stalwart/work/stalwart-0.13.4/target/release/build/zstd-sys-362b72bb766dacb8/out"
"-L"
"/var/obj/pkgsrc/hauke/stalwart/work/stalwart-0.13.4/target/release/build/blake3-24d495c00402ff3c/out"
"-L"
"/var/obj/pkgsrc/hauke/stalwart/work/stalwart-0.13.4/target/release/build/blake3-24d495c00402ff3c/out"
"-L"
"/var/obj/pkgsrc/hauke/stalwart/work/stalwart-0.13.4/target/release/build/librocksdb-sys-3999ec902f8c524e/out"
"-L"
"/var/obj/pkgsrc/hauke/stalwart/work/stalwart-0.13.4/target/release/build/librocksdb-sys-3999ec902f8c524e/out"
"-L"
"/var/obj/pkgsrc/hauke/stalwart/work/stalwart-0.13.4/target/release/build/bzip2-sys-aa099fb45197820d/out/lib"
"-L"
"/var/obj/pkgsrc/hauke/stalwart/work/stalwart-0.13.4/target/release/build/libz-sys-de112931b8ad8fe0/out/lib"
"-L"
"/var/obj/pkgsrc/hauke/stalwart/work/stalwart-0.13.4/target/release/build/libz-sys-de112931b8ad8fe0/out/lib"
"-L"
"/var/obj/pkgsrc/hauke/stalwart/work/stalwart-0.13.4/target/release/build/lz4-sys-fc95b2b9af4a1a38/out"
"-L"
"/var/obj/pkgsrc/hauke/stalwart/work/stalwart-0.13.4/target/release/build/liblzma-sys-9eaf7ec16a15d1f0/out"
"-L"
"/var/obj/pkgsrc/hauke/stalwart/work/stalwart-0.13.4/target/release/build/jemalloc-sys-d868c344708dd658/out/build/lib"
"-o"
"/var/obj/pkgsrc/hauke/stalwart/work/stalwart-0.13.4/target/release/deps/stalwart-1d7f517b231f1a72"
"-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-all"
= note: some arguments are omitted. use `--verbose` to show all
linker arguments
= note: ld: cannot find -lc++
[...]
My search Fu has failed me on this. Does the error speak to anybody, in
particular in the context of a rust build?
Cheerio,
Hauke
*
<http://www.indiefilmminute.com/blog/paris-texas-walking-in-an-urban-no-mans-land-11/>
--
The ASCII Ribbon Campaign Hauke Fath
() No HTML/RTF in email Institut für Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
Respect for open standards Ruf +49-6151-16-21344
Home |
Main Index |
Thread Index |
Old Index