dslm4515 / bmlfs Goto Github PK
View Code? Open in Web Editor NEWBeyond Musl Linux From Scratch - Build Recipes for MLFS [Musl Linux From Source]
Beyond Musl Linux From Scratch - Build Recipes for MLFS [Musl Linux From Source]
Browser has icons but no text rendered. Text renders fine for webpages.
librsvg-2.50.7 compiles fine with a downloaded pre-built rust toolchain from www.rust-lang.org but when used, it segfaults:
[35343.845037] nwggrid-server[5960]: segfault at 55c6956e8a88 ip 00007f0fd6b54455 sp 00007ffcd58e6930 error 4 in librsvg-2.so.2.47.0[7f0fd6648000+579000]
[35343.845079] Code: 07 48 8d 15 4d b2 1e 00 0f b6 44 02 fc 83 c0 11 49 c7 c6 ff ff ff ff 89 c1 89 44 24 1c 49 d3 e6 4c 89 74 24 08 e9 03 fd ff ff <49> 8b 48 18 49 8b 50 10 41 83 ff 27 7e 1a 8b 44 24 1c 83 c0 02 41
If librsvg is replaced with an older version (2.40.18) that was not built with rust, segfault does not occur (in the example above, nwggrid does not not segault but runs.)
Htop fails to compile:
make all-am
make[1]: Entering directory '/media/usb3/home/sysdev/BUILD_SPACE/htop-3.0.5'
depbase=`echo Meter.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -DNDEBUG -Wall -Wcast-align -Wcast-qual -Wextra -Wfloat-equal -Wformat=2 -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -Wunused -Wwrite-s
trings -Wnull-dereference -pedantic -std=c99 -D_XOPEN_SOURCE_EXTENDED -DSYSCONFDIR=\"/etc\" -I"./linux" -march=native -O3 -ffat-lto-objects -flto=4 -fcommon -MT Meter.o -MD -MP -MF $depbase.Tpo -c -o Meter.o Meter.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from Object.h:15,
from ListItem.h:12,
from Meter.h:16,
from Meter.c:10:
Meter.c: In function 'BarMeterMode_draw':
RichString.h:25:56: error: 'cchar_t' has no member named 'chars'
25 | #define RichString_getCharVal(this, i) ((this).chptr[i].chars[0] & 255)
| ^
Meter.c:212:14: note: in expansion of macro 'RichString_getCharVal'
212 | if (RichString_getCharVal(bar, pos) == ' ') {
| ^~~~~~~~~~~~~~~~~~~~~
RichString.h:25:56: error: 'cchar_t' has no member named 'chars'
25 | #define RichString_getCharVal(this, i) ((this).chptr[i].chars[0] & 255)
| ^
Meter.c:213:31: note: in expansion of macro 'RichString_getCharVal'
213 | while (pos > w && RichString_getCharVal(bar, pos - 1) == ' ')
| ^~~~~~~~~~~~~~~~~~~~~
RichString.h:25:56: error: 'cchar_t' has no member named 'chars'
25 | #define RichString_getCharVal(this, i) ((this).chptr[i].chars[0] & 255)
| ^
Meter.c:243:14: note: in expansion of macro 'RichString_getCharVal'
243 | if (RichString_getCharVal(bar, startPos + j) == ' ') {
| ^~~~~~~~~~~~~~~~~~~~~
RichString.h:26:83: error: 'cchar_t' has no member named 'chars'
26 | #define RichString_setChar(this, at, ch) do { (this)->chptr[(at)] = (CharType) { .chars = { ch, 0 } }; } while (0)
| ^~~~~
Meter.c:245:16: note: in expansion of macro 'RichString_setChar'
245 | RichString_setChar(&bar, startPos + j, BarMeterMode_characters[i]);
| ^~~~~~~~~~~~~~~~~~
Meter.c:245:16: warning: braces around scalar initializer
Meter.c:245:16: note: (near initialization for '(anonymous).attributes')
In file included from Object.h:15,
from ListItem.h:12,
from Meter.h:16,
from Meter.c:10:
RichString.h:26:97: warning: excess elements in scalar initializer
26 | #define RichString_setChar(this, at, ch) do { (this)->chptr[(at)] = (CharType) { .chars = { ch, 0 } }; } while (0)
| ^
Meter.c:245:16: note: in expansion of macro 'RichString_setChar'
245 | RichString_setChar(&bar, startPos + j, BarMeterMode_characters[i]);
| ^~~~~~~~~~~~~~~~~~
RichString.h:26:97: note: (near initialization for '(anonymous).attributes')
26 | #define RichString_setChar(this, at, ch) do { (this)->chptr[(at)] = (CharType) { .chars = { ch, 0 } }; } while (0)
| ^
Meter.c:245:16: note: in expansion of macro 'RichString_setChar'
245 | RichString_setChar(&bar, startPos + j, BarMeterMode_characters[i]);
| ^~~~~~~~~~~~~~~~~~
RichString.h:26:83: error: 'cchar_t' has no member named 'chars'
26 | #define RichString_setChar(this, at, ch) do { (this)->chptr[(at)] = (CharType) { .chars = { ch, 0 } }; } while (0)
| ^~~~~
Meter.c:247:16: note: in expansion of macro 'RichString_setChar'
247 | RichString_setChar(&bar, startPos + j, '|');
| ^~~~~~~~~~~~~~~~~~
Meter.c:247:16: warning: braces around scalar initializer
Meter.c:247:16: note: (near initialization for '(anonymous).attributes')
In file included from Object.h:15,
from ListItem.h:12,
from Meter.h:16,
from Meter.c:10:
RichString.h:26:97: warning: excess elements in scalar initializer
26 | #define RichString_setChar(this, at, ch) do { (this)->chptr[(at)] = (CharType) { .chars = { ch, 0 } }; } while (0)
| ^
Meter.c:247:16: note: in expansion of macro 'RichString_setChar'
247 | RichString_setChar(&bar, startPos + j, '|');
| ^~~~~~~~~~~~~~~~~~
RichString.h:26:97: note: (near initialization for '(anonymous).attributes')
26 | #define RichString_setChar(this, at, ch) do { (this)->chptr[(at)] = (CharType) { .chars = { ch, 0 } }; } while (0)
| ^
Meter.c:247:16: note: in expansion of macro 'RichString_setChar'
247 | RichString_setChar(&bar, startPos + j, '|');
| ^~~~~~~~~~~~~~~~~~
Meter.c: In function 'LEDMeterMode_draw':
RichString.h:25:56: error: 'cchar_t' has no member named 'chars'
25 | #define RichString_getCharVal(this, i) ((this).chptr[i].chars[0] & 255)
| ^
Meter.c:416:15: note: in expansion of macro 'RichString_getCharVal'
416 | int c = RichString_getCharVal(out, i);
| ^~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:1098: Meter.o] Error 1
make[1]: Leaving directory '/media/usb3/home/sysdev/BUILD_SPACE/htop-3.0.5'
make: *** [Makefile:780: all] Error 2
I think that would be a great experiment.
libQt5Core.so.5.15.2 fails to link against libexecinfo:
/usr/bin/ld: .obj/qlogging.o: in function `backtraceFramesForLogMessage(int)':
qlogging.cpp:(.text+0x1bf4): undefined reference to `backtrace'
/usr/bin/ld: qlogging.cpp:(.text+0x1cd7): undefined reference to `backtrace_symbols'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:1256: ../../lib/libQt5Core.so.5.15.2] Error 1
make[3]: Leaving directory '/src/qt-everywhere-src-5.15.2/qtbase/src/corelib'
make[2]: *** [Makefile:171: sub-corelib-make_first] Error 2
make[2]: Leaving directory '/src/qt-everywhere-src-5.15.2/qtbase/src'
make[1]: *** [Makefile:51: sub-src-make_first] Error 2
make[1]: Leaving directory '/src/qt-everywhere-src-5.15.2/qtbase'
make: *** [Makefile:86: module-qtbase-make_first] Error 2
This still even happens when libexecinfo is added to CFLAGS, CXXFLAGS and LDFLAGS
Command segfaults:
$ udisksctl power-off -b /dev/sdb
(udisksctl power-off:19392): GLib-GIO-CRITICAL **: 15:05:24.205: g_dbus_interface_dup_object: assertion 'G_IS_DBUS_INTERFACE (interface_)' failed
Segmentation fault
[22835.388282] udisksctl[20742]: segfault at 0 ip 00007fe7c110ee6f sp 00007ffc2282c540 error 4 in libgio-2.0.so.0.7000.2[7fe7c101e000+113000]
[22835.388460] Code: 27 ff ff ff 48 8b 7d 00 48 89 c6 e8 9b 12 f1 ff 48 89 ef 5d 48 8b 40 18 ff e0 90 41 54 49 89 f4 55 48 89 fd 53 e8 01 ff ff ff <48> 8b 7d 00 48 89 c6 e8 75 12 f1 ff 4c 89 e7 48 89 c3 e8 5a 4a fd
System has polkit installed, but not running. Same issue even if polktd
is running.
System uses seatd instead of elogind.
After installing elogind
and polkit
, user login is delayed for 30+ secs. This also causes sudo
to lag as well. If chrooted by another host system, there is no delay.
Issue goes away if elogind
and polkit
services are not started at boot.
When compiling:
Entering directory mpg123.
/usr/bin/ld: mpg123.plugin.o: in function `DecodeState::DecodeState(char const*, VFSFile&, bool, bool)':
/src/audacious-plugins-4.1/src/mpg123/mpg123.cc:150: undefined reference to `mpg123_replace_reader_handle'
/usr/bin/ld: /src/audacious-plugins-4.1/src/mpg123/mpg123.cc:165: undefined reference to `mpg123_open_handle'
/usr/bin/ld: mpg123.plugin.o: in function `read_mpg123_info(char const*, VFSFile&, Tuple&)':
/src/audacious-plugins-4.1/src/mpg123/mpg123.cc:262: undefined reference to `mpg123_length'
/usr/bin/ld: mpg123.plugin.o: in function `MPG123Plugin::play(char const*, VFSFile&)':
/src/audacious-plugins-4.1/src/mpg123/mpg123.cc:330: undefined reference to `mpg123_seek'
collect2: error: ld returned 1 exit status
Failed to link madplug.so!
make[5]: *** [../../buildsys.mk:228: madplug.so] Error 1
make[4]: *** [../../buildsys.mk:134: all] Error 2
make[3]: *** [../buildsys.mk:144: mpg123] Error 2
make[2]: *** [../buildsys.mk:132: all] Error 2
make[1]: *** [buildsys.mk:144: src] Error 2
make: *** [buildsys.mk:132: all] Error 2
Checking the installed mpg123 library:
$ readelf -s /usr/lib/libmpg123.so.0.46.7 | grep mpg123_open
52: 0000000000033436 68 FUNC GLOBAL DEFAULT 10 mpg123_open_64
66: 00000000000336dd 52 FUNC GLOBAL DEFAULT 10 mpg123_open_feed
69: 00000000000335cf 107 FUNC GLOBAL DEFAULT 10 mpg123_open_fixed_64
149: 0000000000033679 100 FUNC GLOBAL DEFAULT 10 mpg123_open_handle_64
155: 000000000003363a 63 FUNC GLOBAL DEFAULT 10 mpg123_open_fd_64
I noticed when building this CFLAG when mpg123 was built:
CFLAGS="-D_FILE_OFFSET_BITS=64"
I forgot why this flag was used. If ommited then mpg123 builds its library with these symbols instead:
$ readelf -s libmpg123* | grep mpg123_open
readelf: Error: Not an ELF file - it has the wrong magic bytes at the start
53: 0000000000014510 54 FUNC GLOBAL DEFAULT 11 mpg123_open_fd
69: 0000000000014550 85 FUNC GLOBAL DEFAULT 11 mpg123_open_handle
74: 00000000000144b0 96 FUNC GLOBAL DEFAULT 11 mpg123_open_fixed
75: 00000000000143a0 54 FUNC GLOBAL DEFAULT 11 mpg123_open
93: 00000000000145b0 38 FUNC GLOBAL DEFAULT 11 mpg123_open_feed
491: 0000000000014510 54 FUNC GLOBAL DEFAULT 11 mpg123_open_fd
503: 00000000000144b0 96 FUNC GLOBAL DEFAULT 11 mpg123_open_fixed
551: 0000000000014550 85 FUNC GLOBAL DEFAULT 11 mpg123_open_handle
556: 00000000000145b0 38 FUNC GLOBAL DEFAULT 11 mpg123_open_feed
625: 00000000000143a0 54 FUNC GLOBAL DEFAULT 11 mpg123_open
53: 0000000000014510 54 FUNC GLOBAL DEFAULT 11 mpg123_open_fd
69: 0000000000014550 85 FUNC GLOBAL DEFAULT 11 mpg123_open_handle
74: 00000000000144b0 96 FUNC GLOBAL DEFAULT 11 mpg123_open_fixed
75: 00000000000143a0 54 FUNC GLOBAL DEFAULT 11 mpg123_open
93: 00000000000145b0 38 FUNC GLOBAL DEFAULT 11 mpg123_open_feed
491: 0000000000014510 54 FUNC GLOBAL DEFAULT 11 mpg123_open_fd
503: 00000000000144b0 96 FUNC GLOBAL DEFAULT 11 mpg123_open_fixed
551: 0000000000014550 85 FUNC GLOBAL DEFAULT 11 mpg123_open_handle
556: 00000000000145b0 38 FUNC GLOBAL DEFAULT 11 mpg123_open_feed
625: 00000000000143a0 54 FUNC GLOBAL DEFAULT 11 mpg123_open
53: 0000000000014510 54 FUNC GLOBAL DEFAULT 11 mpg123_open_fd
69: 0000000000014550 85 FUNC GLOBAL DEFAULT 11 mpg123_open_handle
74: 00000000000144b0 96 FUNC GLOBAL DEFAULT 11 mpg123_open_fixed
75: 00000000000143a0 54 FUNC GLOBAL DEFAULT 11 mpg123_open
93: 00000000000145b0 38 FUNC GLOBAL DEFAULT 11 mpg123_open_feed
491: 0000000000014510 54 FUNC GLOBAL DEFAULT 11 mpg123_open_fd
503: 00000000000144b0 96 FUNC GLOBAL DEFAULT 11 mpg123_open_fixed
551: 0000000000014550 85 FUNC GLOBAL DEFAULT 11 mpg123_open_handle
556: 00000000000145b0 38 FUNC GLOBAL DEFAULT 11 mpg123_open_feed
625: 00000000000143a0 54 FUNC GLOBAL DEFAULT 11 mpg123_open
Should i remove that flag?
Configures successfully with Meson or autotools ("auftoreconf -f && ./configure").
Build objects fine, but when linking:
[41/228] Linking target metadata/gvfsd-metadata.
FAILED: metadata/gvfsd-metadata
cc -o metadata/gvfsd-metadata 'metadata/metadata@@gvfsd-metadata@exe/meson-generated_.._metadata-dbus.c.o' 'metadata/metadata@@gvfsd-metadata@exe/meta-daemon.c.o' -Wl,--no-undefined -Wl,--as-needed -Wl,--start-group metadata/libmetadata.a common/libgvfscommon.so /usr/lib/libgio-2.0.so /usr/lib/libgobject-2.0.so /usr/lib/libglib-2.0.so /usr/lib/libgmodule-2.0.so -pthread /usr/lib/libgudev-1.0.so -Wl,--end-group -pthread '-Wl,-rpath,$ORIGIN/../common' -Wl,-rpath-link,/home/builder/sources/gvfs-1.36.2/build/common
/usr/bin/ld: metadata/metadata@@gvfsd-metadata@exe/meta-daemon.c.o: in function `handle_move':
/home/builder/sources/gvfs-1.36.2/build/../metadata/meta-daemon.c:293: undefined reference to `libintl_gettext'
/usr/bin/ld: /home/builder/sources/gvfs-1.36.2/build/../metadata/meta-daemon.c:282: undefined reference to `libintl_gettext'
/usr/bin/ld: metadata/metadata@@gvfsd-metadata@exe/meta-daemon.c.o: in function `handle_set':
/home/builder/sources/gvfs-1.36.2/build/../metadata/meta-daemon.c:210: undefined reference to `libintl_gettext'
/usr/bin/ld: /home/builder/sources/gvfs-1.36.2/build/../metadata/meta-daemon.c:188: undefined reference to `libintl_gettext'
/usr/bin/ld: /home/builder/sources/gvfs-1.36.2/build/../metadata/meta-daemon.c:170: undefined reference to `libintl_gettext'
/usr/bin/ld: metadata/metadata@@gvfsd-metadata@exe/meta-daemon.c.o:/home/builder/sources/gvfs-1.36.2/build/../metadata/meta-daemon.c:246: more undefined references to `libintl_gettext' follow
/usr/bin/ld: metadata/metadata@@gvfsd-metadata@exe/meta-daemon.c.o: in function `main':
/home/builder/sources/gvfs-1.36.2/build/../metadata/meta-daemon.c:383: undefined reference to `libintl_bindtextdomain'
/usr/bin/ld: /home/builder/sources/gvfs-1.36.2/build/../metadata/meta-daemon.c:384: undefined reference to `libintl_bind_textdomain_codeset'
/usr/bin/ld: /home/builder/sources/gvfs-1.36.2/build/../metadata/meta-daemon.c:385: undefined reference to `libintl_textdomain'
/usr/bin/ld: /home/builder/sources/gvfs-1.36.2/build/../metadata/meta-daemon.c:387: undefined reference to `libintl_gettext'
/usr/bin/ld: /home/builder/sources/gvfs-1.36.2/build/../metadata/meta-daemon.c:390: undefined reference to `libintl_gettext'
/usr/bin/ld: /home/builder/sources/gvfs-1.36.2/build/../metadata/meta-daemon.c:403: undefined reference to `libintl_gettext'
/usr/bin/ld: /home/builder/sources/gvfs-1.36.2/build/../metadata/meta-daemon.c:405: undefined reference to `libintl_gettext'
collect2: error: ld returned 1 exit status
[44/228] Compiling C object 'client/client@@gvfsdbus@sha/gdaemonfile.c.o'.
ninja: build stopped: subcommand failed.
Compile hangs on:
msgmerge --verbose -o xx.mpo xx.po libbytesize.pot
With xx as a random locale.
Under a LLVM/clang system (llvm as primary toolchain), rustc will fail due to parameters (for C++ compilers) being applied to C compiler ... -std=c++11
:
Compiling unwind v0.0.0 (/src/rustc-1.49.0-src/library/unwind)
Running `/src/rustc-1.49.0-src/build/bootstrap/debug/rustc --crate-name libc /src/rustc-1.49.0-src/vendor/libc/src/lib.rs --error-format=js
on --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C debuginfo=0 --
cfg 'feature="align"' --cfg 'feature="rustc-dep-of-std"' --cfg 'feature="rustc-std-workspace-core"' -C metadata=3f3ec50ecc70584e -C extra-filename=-3f3ec50ecc70584e --out-dir /src/rustc-1.49.0-src/build/x86_64-unknown-linux-musl/stage0-std/x86_64-unknown-linux-musl/release/deps --target x86_64-unknown-linux-musl -C linker=clang-11 -L dependency=/src/rustc-1.49.0-src/build/x86_64-unknown-linux-musl/stage0-std/x86_64-unknown-linux-musl/release/deps -L dependency=/src/rustc-1.49.0-src/build/x86_64-unknown-linux-musl/stage0-std/release/deps --extern rustc_std_workspace_core=/src/rustc-1.49.0-src/build/x86_64-unknown-linux-musl/stage0-std/x86_64-unknown-linux-musl/release/deps/librustc_std_workspace_core-71d9fbde38147198.rmeta --cap-lints allow -Zmacro-backtrace '-Clink-args=-Wl,-rpath,$ORIGIN/../lib' -Ctarget-feature=-crt-static -Cprefer-dynamic -L native=/usr/lib -Z binary-dep-depinfo --cfg freebsd11 --cfg libc_priv_mod_use --cfg libc_union --cfg libc_const_size_of --cfg libc_align --cfg libc_core_cvoid --cfg libc_packedN --cfg libc_cfg_target_vendor --cfg libc_thread_local`
Running `/src/rustc-1.49.0-src/build/x86_64-unknown-linux-musl/stage0-std/release/build/unwind-5d77e7b9d9204225/build-script-build`
rustc command: "LD_LIBRARY_PATH"="/bootstrap/lib:/src/rustc-1.49.0-src/build/x86_64-unknown-linux-musl/stage0-std/release/deps:/src/rust-boot/lib" "/bootstrap/bin/rustc" "--crate-name" "libc" "/src/rustc-1.49.0-src/vendor/libc/src/lib.rs" "--error-format=json" "--json=diagnostic-rendered-ansi,artifacts" "--crate-type" "lib" "--emit=dep-info,metadata,link" "-C" "opt-level=3" "-C" "embed-bitcode=no" "-C" "debuginfo=0" "--cfg" "feature=\"align\"" "--cfg" "feature=\"rustc-dep-of-std\"" "--cfg" "feature=\"rustc-std-workspace-core\"" "-C" "metadata=3f3ec50ecc70584e" "-C" "extra-filename=-3f3ec50ecc70584e" "--out-dir" "/src/rustc-1.49.0-src/build/x86_64-unknown-linux-musl/stage0-std/x86_64-unknown-linux-musl/release/deps" "--target" "x86_64-unknown-linux-musl" "-C" "linker=clang-11" "-L" "dependency=/src/rustc-1.49.0-src/build/x86_64-unknown-linux-musl/stage0-std/x86_64-unknown-linux-musl/release/deps" "-L" "dependency=/src/rustc-1.49.0-src/build/x86_64-unknown-linux-musl/stage0-std/release/deps" "--extern" "rustc_std_workspace_core=/src/rustc-1.49.0-src/build/x86_64-unknown-linux-musl/stage0-std/x86_64-unknown-linux-musl/release/deps/librustc_std_workspace_core-71d9fbde38147198.rmeta" "--cap-lints" "allow" "-Zmacro-backtrace" "-Clink-args=-Wl,-rpath,$ORIGIN/../lib" "-Ctarget-feature=-crt-static" "-Cprefer-dynamic" "-L" "native=/usr/lib" "-Z" "binary-dep-depinfo" "--cfg" "freebsd11" "--cfg" "libc_priv_mod_use" "--cfg" "libc_union" "--cfg" "libc_const_size_of" "--cfg" "libc_align" "--cfg" "libc_core_cvoid" "--cfg" "libc_packedN" "--cfg" "libc_cfg_target_vendor" "--cfg" "libc_thread_local" "-Wrust_2018_idioms" "-Wunused_lifetimes" "-Dwarnings" "--sysroot" "/src/rustc-1.49.0-src/build/x86_64-unknown-linux-musl/stage0-sysroot" "-Z" "force-unstable-if-unmarked"
sysroot: "/src/rustc-1.49.0-src/build/x86_64-unknown-linux-musl/stage0-sysroot" libdir: "/bootstrap/lib"
The following warnings were emitted during compilation:
warning: error: invalid argument '-std=c++11' not allowed with 'C'
error: failed to run custom build command for `unwind v0.0.0 (/src/rustc-1.49.0-src/library/unwind)`
Caused by:
process didn't exit successfully: `/src/rustc-1.49.0-src/build/x86_64-unknown-linux-musl/stage0-std/release/build/unwind-5d77e7b9d9204225/build-script-build` (exit code: 1)
--- stdout
cargo:rerun-if-changed=build.rs
cargo:rustc-link-search=native=/src/rustc-1.49.0-src/build/x86_64-unknown-linux-musl/stage0-std/x86_64-unknown-linux-musl/release/build/unwind-0cf056c834ad1b96/out
CC_x86_64-unknown-linux-musl = Some("clang-11") CFLAGS_x86_64-unknown-linux-musl = Some("-ffunction-sections -fdata-sections -fPIC --target=x86_64-unknown-linux-musl -w")
CRATE_CC_NO_DEFAULTS = None
running: "clang-11" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=x86_64-unknown-linux-musl" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=x86_64-unknown-linux-musl" "-w" "-I" "../../src/llvm-project/libunwind/include" "-std=c99" "-std=c++11" "-nostdinc++" "-fno-exceptions" "-fno-rtti" "-fstrict-aliasing" "-funwind-tables" "-fvisibility=hidden" "-fvisibility-global-new-delete-hidden" "-D__LITTLE_ENDIAN__=1" "-D_LIBUNWIND_DISABLE_VISIBILITY_ANNOTATIONS" "-o" "/src/rustc-1.49.0-src/build/x86_64-unknown-linux-musl/stage0-std/x86_64-unknown-linux-musl/release/build/unwind-0cf056c834ad1b96/out/../../src/llvm-project/libunwind/src/Unwind-EHABI.o" "-c" "../../src/llvm-project/libunwind/src/Unwind-EHABI.cpp"
exit code: 0
running: "clang-11" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=x86_64-unknown-linux-musl" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=x86_64-unknown-linux-musl" "-w" "-I" "../../src/llvm-project/libunwind/include" "-std=c99" "-std=c++11" "-nostdinc++" "-fno-exceptions" "-fno-rtti" "-fstrict-aliasing" "-funwind-tables" "-fvisibility=hidden" "-fvisibility-global-new-delete-hidden" "-D__LITTLE_ENDIAN__=1" "-D_LIBUNWIND_DISABLE_VISIBILITY_ANNOTATIONS" "-o" "/src/rustc-1.49.0-src/build/x86_64-unknown-linux-musl/stage0-std/x86_64-unknown-linux-musl/release/build/unwind-0cf056c834ad1b96/out/../../src/llvm-project/libunwind/src/Unwind-seh.o" "-c" "../../src/llvm-project/libunwind/src/Unwind-seh.cpp"
exit code: 0
running: "clang-11" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=x86_64-unknown-linux-musl" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=x86_64-unknown-linux-musl" "-w" "-I" "../../src/llvm-project/libunwind/include" "-std=c99" "-std=c++11" "-nostdinc++" "-fno-exceptions" "-fno-rtti" "-fstrict-aliasing" "-funwind-tables" "-fvisibility=hidden" "-fvisibility-global-new-delete-hidden" "-D__LITTLE_ENDIAN__=1" "-D_LIBUNWIND_DISABLE_VISIBILITY_ANNOTATIONS" "-o" "/src/rustc-1.49.0-src/build/x86_64-unknown-linux-musl/stage0-std/x86_64-unknown-linux-musl/release/build/unwind-0cf056c834ad1b96/out/../../src/llvm-project/libunwind/src/Unwind-sjlj.o" "-c" "../../src/llvm-project/libunwind/src/Unwind-sjlj.c"
cargo:warning=error: invalid argument '-std=c++11' not allowed with 'C' exit code: 1
Stage0 of rustc build was successful, but not stage 1.
A fake libgcc_s.so
was deployed. A simple file:
echo "INPUT(-lunwind)" > /usr/lib/libgcc_s.so
config.toml
that was used:
changelog-seen = 2
[llvm] link-shared = true
[build] build = 'x86_64-unknown-linux-musl'
host = ['x86_64-unknown-linux-musl']
target = ['x86_64-unknown-linux-musl']
cargo = '/bootstrap/bin/cargo'
rustc = '/bootstrap/bin/rustc'
docs = false
python = 'python3'
locked-deps = true
vendor = true
extended = true
tools = ['analysis', 'cargo', 'src']
verbose = 1
configure-args = ['--build=x86_64-unknown-linux-musl', '--host=x86_64-unknown-linux-musl', '--target=x86_64-unknown-linux-musl', '--prefix=/usr'
, '--release-channel=stable', '--enable-local-rust', '--local-rust-root=/bootstrap', '--llvm-root=/usr/lib', '--disable-docs', '--enable-extende
d', '--tools=analysis,cargo,src', '--enable-llvm-link-shared', '--enable-option-checking', '--enable-locked-deps', '--enable-vendor', '--python=
python3', '--set=target.x86_64-unknown-linux-musl.llvm-config=/usr/bin/llvm-config', '--set=target.x86_64-unknown-linux-musl.musl-root=/usr', '-
-set=target.x86_64-unknown-linux-musl.crt-static=false', '--musl-root-x86_64=/usr']
[install] prefix = '/usr'
default-linker = "clang"
channel = 'stable'
deny-warnings = true
llvm-libunwind = 'system'
[target.x86_64-unknown-linux-musl]
cc = "clang-11"
cxx = "clang-11"
linker = "clang-11"
llvm-config = '/usr/bin/llvm-config'
crt-static = false
musl-root = '/usr'
[dist]
Bootstrap rustc with LLVM library (libLLVM.so) is in /bootstrap with executables and binaries patched with patchelf
...so LD_LIBRARY_PATH
would not need to be set.
Hardware: Raspberry Pi 4 4GB RAM
Distro: MLFS-7.00
Arch: aarch64
Package: rustc-1.46.0
Bootstrap: Cargo 1.44.0 + rust 1.44.0 + rust-stdlib-1.44.0
Method: Both Void and Alpine
Rust fails to build .. on aarch64[, so far]:
Compiling bootstrap v0.0.0 (/src-blfs/rustc-1.46.0-src/src/bootstrap)
error[E0658]: use of unstable library feature 'str_strip': newly added
--> src/bootstrap/lib.rs:439:31
|
439 | .filter_map(|x| x.strip_prefix("release:"))
| ^^^^^^^^^^^^
|
= note: see issue #67302 <https://github.com/rust-lang/rust/issues/67302> for more information
= help: add `#![feature(str_strip)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'str_strip': newly added
--> src/bootstrap/lib.rs:1092:22
|
1092 | line.strip_prefix("version = \"").and_then(|s| s.strip_suffix("\""))
| ^^^^^^^^^^^^
|
= note: see issue #67302 <https://github.com/rust-lang/rust/issues/67302> for more information
= help: add `#![feature(str_strip)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'str_strip': newly added
--> src/bootstrap/lib.rs:1092:66
|
1092 | line.strip_prefix("version = \"").and_then(|s| s.strip_suffix("\""))
| ^^^^^^^^^^^^
|
= note: see issue #67302 <https://github.com/rust-lang/rust/issues/67302> for more information
= help: add `#![feature(str_strip)]` to the crate attributes to enable
error[E0658]: use of unstable library feature 'str_strip': newly added
--> src/bootstrap/compile.rs:968:22
|
968 | .strip_prefix(&prefix[..])
| ^^^^^^^^^^^^
|
= note: see issue #67302 <https://github.com/rust-lang/rust/issues/67302> for more information
= help: add `#![feature(str_strip)]` to the crate attributes to enable
error: aborting due to 4 previous errors
For more information about this error, try `rustc --explain E0658`.
error: could not compile `bootstrap`.
To learn more, run the command again with --verbose.
failed to run: /src-blfs/rustc-1.46.0-src/stage0/bin/cargo build --manifest-path /src-blfs/rustc-1.46.0-src/src/bootstrap/Cargo.toml --locked --frozen
Build completed unsuccessfully in 0:00:28
Glib build fine with meson and samurai, but will not install:
Installing docs/reference/gio/gapplication.1 to /BUILD/usr/share/man/man1
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/mesonbuild/mesonmain.py", line 134, in run
return options.run_func(options)
File "/usr/lib/python3.9/site-packages/mesonbuild/minstall.py", line 719, in run
installer.do_install(datafilename)
File "/usr/lib/python3.9/site-packages/mesonbuild/minstall.py", line 511, in do_install
self.install_targets(d, dm, destdir, fullprefix)
File "/usr/lib/python3.9/site-packages/mesonbuild/minstall.py", line 673, in install_targets
self.fix_rpath(outname, t.rpath_dirs_to_remove, install_rpath, final_path,
File "/usr/lib/python3.9/site-packages/mesonbuild/minstall.py", line 325, in fix_rpath
depfixer.fix_rpath(*args, **kwargs)
File "/usr/lib/python3.9/site-packages/mesonbuild/scripts/depfixer.py", line 509, in fix_rpath
fix_darwin(fname, new_rpath, final_path, install_name_mappings)
File "/usr/lib/python3.9/site-packages/mesonbuild/scripts/depfixer.py", line 421, in fix_darwin
rpaths = get_darwin_rpaths_to_remove(fname)
File "/usr/lib/python3.9/site-packages/mesonbuild/scripts/depfixer.py", line 402, in get_darwin_rpaths_to_remove
out = subprocess.check_output(['otool', '-l', fname],
File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.9/subprocess.py", line 505, in run
with Popen(*popenargs, **kwargs) as process:
File "/usr/lib/python3.9/subprocess.py", line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.9/subprocess.py", line 1821, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'otool'
samu: job failed: /usr/bin/meson install --no-rebuild
samu: subcommand failed
Host: CMLFS 2.0.0
Installed LLVM-14.0.0 in /opt/build
.
LLVM compiles and installs, but cannot compile binaries/libraries:
$ echo 'int main(){}' > dummy.c
$ clang dummy.c -v -Wl,--verbose &> dummy.log
$ grep failed dummy.log
attempt to open crtbeginS.o failed
attempt to open /opt/build/bin/../lib/libgcc.so failed
attempt to open /opt/build/bin/../lib/libgcc.a failed
attempt to open /lib/libgcc.so failed
attempt to open /lib/libgcc.a failed
attempt to open /usr/lib/libgcc.so failed
attempt to open /usr/lib/libgcc.a failed
attempt to open /opt/X11/lib/libgcc.so failed
attempt to open /opt/X11/lib/libgcc.a failed
attempt to open /opt/build/lib/libgcc.so failed
attempt to open /opt/build/lib/libgcc.a failed
attempt to open /usr/x86_64-pc-linux-musl/lib64/libgcc.so failed
attempt to open /usr/x86_64-pc-linux-musl/lib64/libgcc.a failed
attempt to open /usr/local/lib64/libgcc.so failed
attempt to open /usr/local/lib64/libgcc.a failed
attempt to open /lib64/libgcc.so failed
attempt to open /lib64/libgcc.a failed
attempt to open /usr/lib64/libgcc.so failed
attempt to open /usr/lib64/libgcc.a failed
attempt to open /usr/x86_64-pc-linux-musl/lib/libgcc.so failed
attempt to open /usr/x86_64-pc-linux-musl/lib/libgcc.a failed
attempt to open /usr/local/lib/libgcc.so failed
attempt to open /usr/local/lib/libgcc.a failed
attempt to open /lib/libgcc.so failed
attempt to open /lib/libgcc.a failed
attempt to open /usr/lib/libgcc.so failed
attempt to open /usr/lib/libgcc.a failed
attempt to open /opt/build/bin/../lib/libgcc.so failed
attempt to open /opt/build/bin/../lib/gcc.a failed
attempt to open /lib/libgcc.so failed
attempt to open /lib/gcc.a failed
attempt to open /usr/lib/libgcc.so failed
attempt to open /usr/lib/gcc.a failed
attempt to open /opt/X11/lib/libgcc.so failed
attempt to open /opt/X11/lib/gcc.a failed
attempt to open /opt/build/lib/libgcc.so failed
attempt to open /opt/build/lib/gcc.a failed
attempt to open /usr/x86_64-pc-linux-musl/lib64/libgcc.so failed
attempt to open /usr/x86_64-pc-linux-musl/lib64/gcc.a failed
attempt to open /usr/local/lib64/libgcc.so failed
attempt to open /usr/local/lib64/gcc.a failed
attempt to open /lib64/libgcc.so failed
attempt to open /lib64/gcc.a failed
attempt to open /usr/lib64/libgcc.so failed
attempt to open /usr/lib64/gcc.a failed
attempt to open /usr/x86_64-pc-linux-musl/lib/libgcc.so failed
attempt to open /usr/x86_64-pc-linux-musl/lib/gcc.a failed
attempt to open /usr/local/lib/libgcc.so failed
attempt to open /usr/local/lib/gcc.a failed
attempt to open /lib/libgcc.so failed
attempt to open /lib/gcc.a failed
attempt to open /usr/lib/libgcc.so failed
attempt to open /usr/lib/gcc.a failed
attempt to open /opt/build/bin/../lib/libgcc_s.so failed
attempt to open /opt/build/bin/../lib/libgcc_s.a failed
attempt to open /opt/build/bin/../lib/libgcc.so failed
attempt to open /opt/build/bin/../lib/libgcc.a failed
attempt to open /lib/libgcc.so failed
attempt to open /lib/libgcc.a failed
attempt to open /usr/lib/libgcc.so failed
attempt to open /usr/lib/libgcc.a failed
attempt to open /opt/X11/lib/libgcc.so failed
attempt to open /opt/X11/lib/libgcc.a failed
attempt to open /opt/build/lib/libgcc.so failed
attempt to open /opt/build/lib/libgcc.a failed
attempt to open /usr/x86_64-pc-linux-musl/lib64/libgcc.so failed
attempt to open /usr/x86_64-pc-linux-musl/lib64/libgcc.a failed
attempt to open /usr/local/lib64/libgcc.so failed
attempt to open /usr/local/lib64/libgcc.a failed
attempt to open /lib64/libgcc.so failed
attempt to open /lib64/libgcc.a failed
attempt to open /usr/lib64/libgcc.so failed
attempt to open /usr/lib64/libgcc.a failed
attempt to open /usr/x86_64-pc-linux-musl/lib/libgcc.so failed
attempt to open /usr/x86_64-pc-linux-musl/lib/libgcc.a failed
attempt to open /usr/local/lib/libgcc.so failed
attempt to open /usr/local/lib/libgcc.a failed
attempt to open /lib/libgcc.so failed
attempt to open /lib/libgcc.a failed
attempt to open /usr/lib/libgcc.so failed
attempt to open /usr/lib/libgcc.a failed
attempt to open /opt/build/bin/../lib/libgcc.so failed
attempt to open /opt/build/bin/../lib/gcc.a failed
attempt to open /lib/libgcc.so failed
attempt to open /lib/gcc.a failed
attempt to open /usr/lib/libgcc.so failed
attempt to open /usr/lib/gcc.a failed
attempt to open /opt/X11/lib/libgcc.so failed
attempt to open /opt/X11/lib/gcc.a failed
attempt to open /opt/build/lib/libgcc.so failed
attempt to open /opt/build/lib/gcc.a failed
attempt to open /usr/x86_64-pc-linux-musl/lib64/libgcc.so failed
attempt to open /usr/x86_64-pc-linux-musl/lib64/gcc.a failed
attempt to open /usr/local/lib64/libgcc.so failed
attempt to open /usr/local/lib64/gcc.a failed
attempt to open /lib64/libgcc.so failed
attempt to open /lib64/gcc.a failed
attempt to open /usr/lib64/libgcc.so failed
attempt to open /usr/lib64/gcc.a failed
attempt to open /usr/x86_64-pc-linux-musl/lib/libgcc.so failed
attempt to open /usr/x86_64-pc-linux-musl/lib/gcc.a failed
attempt to open /usr/local/lib/libgcc.so failed
attempt to open /usr/local/lib/gcc.a failed
attempt to open /lib/libgcc.so failed
attempt to open /lib/gcc.a failed
attempt to open /usr/lib/libgcc.so failed
attempt to open /usr/lib/gcc.a failed
clang-14: error: linker command failed with exit code 1 (use -v to see invocation)
If trying to compile the Linux kernel with LLVM:
$ LLVM=1 LLVM_IAS=1 make -j4 menuconfig
HOSTCC scripts/basic/fixdep
/usr/bin/ld: cannot find crtbeginS.o: No such file or directory
/usr/bin/ld: cannot find -lgcc
/usr/bin/ld: cannot find -lgcc
clang-14: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [scripts/Makefile.host:95: scripts/basic/fixdep] Error 1
make: *** [Makefile:555: scripts_basic] Error 2
Using Alpine rust 1.47.0 and Cargo 1.47.0.
Building rustc-1.48.0-src.
Copying stage0 rustc from stage0 (i586-alpine-linux-musl -> i586-alpine-linux-musl / i586-alpine-linux-musl)
Assembling stage1 compiler (i586-alpine-linux-musl)
Building stage1 std artifacts (i586-alpine-linux-musl -> i686-unknown-linux-musl)
error: failed to run `rustc` to learn about target-specific information
Caused by:
process didn't exit successfully: `/src-bmlfs/rustc-1.48.0-src/build/bootstrap/debug/rustc - --crate-name ___ --print=file-names -Zmacro-backtrace '-Clink-args=-Wl,-rpath,$ORIGIN/../lib' -Ctarget-feature=-crt-static -Zsave-analysis -Cprefer-dynamic -L native=/usr/lib -Cembed-bitcode=yes --target i686-unknown-linux-musl --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=cfg` (exit code: 1)
--- stderr
error: Error loading host specification: Could not find specification for target "i586-alpine-linux-musl"
command did not execute successfully: "/src-bmlfs/rustc-1.48.0-src/stage0/bin/cargo" "build" "--target" "i686-unknown-linux-musl" "-Zbinary-dep-depinfo" "-j" "4" "--release" "--locked" "--frozen" "--features" "panic-unwind backtrace" "--manifest-path" "/src-bmlfs/rustc-1.48.0-src/library/test/Cargo.toml" "--message-format" "json-render-diagnostics"
expected success, got: exit code: 101
failed to run: /src-bmlfs/rustc-1.48.0-src/build/bootstrap/debug/bootstrap build --jobs 4
Build completed unsuccessfully in 0:48:01
When building, linker throws these errors
make[2]: Entering directory '/src-blfs/curl-7.72.0/src'
CCLD curl
/usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to `ZSTD_createDStream'
/usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to `ZSTD_isError'
/usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to `ZSTD_versionNumber'
/usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to `ZSTD_decompressStream'
/usr/bin/ld: ../lib/.libs/libcurl.so: undefined reference to `ZSTD_freeDStream'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:985: curl] Error 1
make[2]: Leaving directory '/src-blfs/curl-7.72.0/src'
make[1]: *** [Makefile:2121: all-recursive] Error 1
make[1]: Leaving directory '/src-blfs/curl-7.72.0/src'
make: *** [Makefile:988: all-recursive] Error 1
DISTRO: MLFS-7.00
Hardware: Raspberry Pi 4b 4GB
Arch: AARCH64
GCC: 10.2
Zstd: 1.4.5
Configure command used:
./configure --prefix=/usr --disable-static --enable-threaded-resolver \
--with-ca-path=/etc/ssl/certs --enable-ipv6 \
--enable-unix-sockets --with-pic \
--without-libssh2
PNG images in webpages are blurred
Blueman will crash when launched from a wayland session:
$ blueman-applet
blueman-applet 14.58.35 ERROR PluginManager:90 load_plugin: Unable to load plugin module GameControllerWakelock
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/blueman/main/PluginManager.py", line 88, in load_plugin
importlib.import_module(self.module_path.__name__ + f".{plugin}")
File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 850, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/usr/lib/python3.9/site-packages/blueman/plugins/applet/GameControllerWakelock.py", line 15, in <module>
raise ImportError('This is not an X11 screen')
ImportError: This is not an X11 screen
blueman-applet 14.58.35 WARNING PluginManager:147 __load_plugin: Not loading PPPSupport because its conflict has higher priority
blueman-applet 14.58.35 WARNING TransferService:213 _make_share_path: Failed to get Download dir from XDG
blueman-applet 14.58.35 WARNING PluginManager:147 __load_plugin: Not loading DhcpClient because its conflict has higher priority
blueman-applet 14.58.36 WARNING DiscvManager:119 update_menuitems: warning: Adapter is None
Segmentation fault
Looks like hardcoded for X11
Compiling under a system that uses gettext-tiny instead of GNU's gettext, cause geany to not link during build:
make[3]: Entering directory '/home/sysdev/geany-1.37/src'
CXXLD libgeany.la
libtool: error: cannot find the library '/usr/lib/libintl.la' or unhandled arg
ument '/usr/lib/libintl.la'
make[3]: *** [Makefile:801: libgeany.la] Error 1
make[3]: Leaving directory '/home/sysdev/geany-1.37/src'
make[2]: *** [Makefile:1268: all-recursive] Error 1
make[2]: Leaving directory '/home/sysdev/geany-1.37/src'
make[1]: *** [Makefile:598: all-recursive] Error 1
make[1]: Leaving directory '/home/sysdev/geany-1.37'
make: *** [Makefile:482: all] Error 2
Gettext-tiny installs /usr/lib/libintl.a
instead of libintl.so
or libintl.la
Pangomm fails to compile:
ninja: job failed: c++ -Ipango/pangomm/libpangomm-2.48.so.1.0.30.p -Ipango -I../pango -I../untracked/pango -I/usr/include/giomm-2.68 -I/usr/lib/
giomm-2.68/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glibmm-2.68 -
I/usr/lib/glibmm-2.68/include -I/usr/include/sigc++-3.0 -I/usr/lib/sigc++-3.0/include -I/usr/include/cairomm-1.16 -I/usr/lib/cairomm-1.16/includ
e -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/uuid -I/usr/in
clude/cogl -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libdrm -I/usr/include/pixman-1 -I/usr/include/pango-1.0 -I/usr/include/fribidi -fdiagnos
tics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -g -Wall -fPIC -pthread -DPANGOMM_BUILD=1 -MD -MQ pan
go/pangomm/libpangomm-2.48.so.1.0.30.p/.._.._untracked_pango_pangomm_attrlist.cc.o -MF pango/pangomm/libpangomm-2.48.so.1.0.30.p/.._.._untracked
_pango_pangomm_attrlist.cc.o.d -o pango/pangomm/libpangomm-2.48.so.1.0.30.p/.._.._untracked_pango_pangomm_attrlist.cc.o -c ../untracked/pango/pa
ngomm/attrlist.cc
../untracked/pango/pangomm/attrlist.cc: In constructor 'Pango::AttrList::AttrList(const Glib::ustring&, gunichar)':
../untracked/pango/pangomm/attrlist.cc:34:20: error: 'pango_parse_markup' was not declared in this scope
34 | gboolean bTest = pango_parse_markup(markup_text.c_str(), -1 /* means null-terminated */, accel_marker,
| ^~~~~~~~~~~~~~~~~~
../untracked/pango/pangomm/attrlist.cc: In constructor 'Pango::AttrList::AttrList(const Glib::ustring&, gunichar, Glib::ustring&, gunichar&)':
../untracked/pango/pangomm/attrlist.cc:52:20: error: 'pango_parse_markup' was not declared in this scope
52 | gboolean bTest = pango_parse_markup(markup_text.c_str(), -1 /* means null-terminated */, accel_marker,
| ^~~~~~~~~~~~~~~~~~
ninja: subcommand failed
Webkit2GTK fails to compile with GCC or Clang.
For Clang:
FAILED: Source/JavaScriptCore/CMakeFiles/LLIntOffsetsExtractor.dir/llint/LLIntOffsetsExtractor.cpp.o
/usr/bin/ccache /usr/bin/clang++ -DBUILDING_GTK__=1 -DBUILDING_WITH_CMAKE=1 -DBWRAP_EXECUTABLE=\"/usr/bin/bwrap\" -DDBUS_PROXY_EXECUTABLE=\"/usr/bin/xdg-dbus-proxy\" -DGETTEXT_PACKAGE=\"WebKit2GTK-4.0\" -DHAVE_CONFIG_H=1 -DJSC_COMPILATION -DJSC_GLIB_API_ENABLED -DSTATICALLY_LINKED_WITH_WTF -DSVN_REVISION=\"tarball\" -DWEBKITGTK_API_VERSION_STRING=\"4.0\" -IDerivedSources/ForwardingHeaders -I. -I../Source/JavaScriptCore -I../Source/JavaScriptCore/API -I../Source/JavaScriptCore/assembler -I../Source/JavaScriptCore/b3 -I../Source/JavaScriptCore/b3/air -I../Source/JavaScriptCore/bindings -I../Source/JavaScriptCore/builtins -I../Source/JavaScriptCore/bytecode -I../Source/JavaScriptCore/bytecompiler -I../Source/JavaScriptCore/dfg -I../Source/JavaScriptCore/disassembler -I../Source/JavaScriptCore/disassembler/ARM64 -I../Source/JavaScriptCore/disassembler/udis86 -I../Source/JavaScriptCore/domjit -I../Source/JavaScriptCore/ftl -I../Source/JavaScriptCore/heap -I../Source/JavaScriptCore/debugger -I../Source/JavaScriptCore/inspector -I../Source/JavaScriptCore/inspector/agents -I../Source/JavaScriptCore/inspector/augmentable -I../Source/JavaScriptCore/inspector/remote -I../Source/JavaScriptCore/interpreter -I../Source/JavaScriptCore/jit -I../Source/JavaScriptCore/llint -I../Source/JavaScriptCore/parser -I../Source/JavaScriptCore/profiler -I../Source/JavaScriptCore/runtime -I../Source/JavaScriptCore/tools -I../Source/JavaScriptCore/wasm -I../Source/JavaScriptCore/wasm/js -I../Source/JavaScriptCore/yarr -IDerivedSources/JavaScriptCore -IDerivedSources/JavaScriptCore/inspector -IDerivedSources/JavaScriptCore/runtime -IDerivedSources/JavaScriptCore/yarr -IDerivedSources/ForwardingHeaders/JavaScriptCore/glib -IDerivedSources/JavaScriptCore/javascriptcoregtk/jsc -I../Source/JavaScriptCore/API/glib -IDerivedSources/JavaScriptCore/javascriptcoregtk -I../Source/JavaScriptCore/inspector/remote/glib -isystem /usr/include/glib-2.0 -isystem /usr/lib/glib-2.0/include -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -mfpmath=sse -msse2 -Wno-noexcept-type -Wno-psabi -Wno-parentheses-equality -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -D__WORDSIZE=32 -g1 -O2 -fno-strict-aliasing -fno-exceptions -fno-rtti -Os -DNDEBUG -fPIE -std=c++17 -MD -MT Source/JavaScriptCore/CMakeFiles/LLIntOffsetsExtractor.dir/llint/LLIntOffsetsExtractor.cpp.o -MF Source/JavaScriptCore/CMakeFiles/LLIntOffsetsExtractor.dir/llint/LLIntOffsetsExtractor.cpp.o.d -o Source/JavaScriptCore/CMakeFiles/LLIntOffsetsExtractor.dir/llint/LLIntOffsetsExtractor.cpp.o -c ../Source/JavaScriptCore/llint/LLIntOffsetsExtractor.cpp
In file included from ../Source/JavaScriptCore/llint/LLIntOffsetsExtractor.cpp:28:
In file included from ../Source/JavaScriptCore/bytecode/ArithProfile.h:28:
In file included from ../Source/JavaScriptCore/jit/GPRInfo.h:28:
In file included from ../Source/JavaScriptCore/assembler/MacroAssembler.h:56:
../Source/JavaScriptCore/assembler/MacroAssemblerX86.h:103:21: error: no matching member function for call to 'orw_im'
m_assembler.orw_im(imm.m_value, address.m_ptr);
~~~~~~~~~~~~^~~~~~
../Source/JavaScriptCore/assembler/X86Assembler.h:1076:10: note: candidate function not viable: requires 3 arguments, but 2 were provided
void orw_im(int imm, int offset, RegisterID base)
^
../Source/JavaScriptCore/assembler/X86Assembler.h:1088:10: note: candidate function not viable: requires 5 arguments, but 2 were provided
void orw_im(int imm, int offset, RegisterID base, RegisterID index, int scale)
^
In file included from ../Source/JavaScriptCore/llint/LLIntOffsetsExtractor.cpp:103:
DerivedSources/JavaScriptCore/LLIntDesiredOffsets.h:3:2: error: "Invalid configuration. Error at: /src-bmlfs/webkitgtk-2.30.4/Source/JavaScriptCore/llint/LowLevelInterpreter.asm:304"
#error "Invalid configuration. Error at: /src-bmlfs/webkitgtk-2.30.4/Source/JavaScriptCore/llint/LowLevelInterpreter.asm:304"
^
../Source/JavaScriptCore/llint/LLIntOffsetsExtractor.cpp:104:12: error: use of undeclared identifier 'offsetExtractorTable'
return offsetExtractorTable;
^
3 errors generated.
ninja: build stopped: subcommand failed.
Similar errors come up with either webkitgtk 2.30.2 or 2.30.4.
Some flags were set but no help:
CXFLAGS="-D__WORDSIZE=32 -g1"
CXXFLAGS="-D__WORDSIZE=32 -g1"
LDFLAGS=" -Wl,--no-keep-memory"
If /bin/sh
is a symlink to dash, LVM2 will not compile:
make[1]: Leaving directory '/src/LVM2.2.02.187/daemons'
[LN] man-generator.c
[GEN] command-lines-input.h
[GEN] command-count.h
/bin/sh: 1: set: Illegal option -o pipefail
[GEN] cmds.h
/bin/sh: 1: set: Illegal option -o pipefail
make[1]: *** No rule to make target 'command-lines-input.h', needed by 'dmsetup.o'. Stop.
make[1]: *** Waiting for unfinished jobs....
/bin/sh: 1: set: Illegal option -o pipefail
make[1]: Leaving directory '/src/LVM2.2.02.187/tools'
make: *** [make.tmpl:364: tools.device-mapper] Error 2
When building NSS, pkgtool file has missing version numbers:
prefix=/usr
exec_prefix=/usr/bin
libdir=/usr/lib
includedir=/usr/include/nss
Name: NSS
Description: Network Security Services
Version:
Requires: nspr >=
Libs: -lssl3 -lsmime3 -lnss3 -lnssutil3
Cflags: -I${includedir}
Need to review build process.
Chromium builds, but produced binary will randomly crash.
While Chromium is running, this warning keeps spamming:
[1218/195013.952779:WARNING:process_reader_linux.cc(76)] sched_getscheduler: Function not implemented (38)
Looks like ...
The POSIX functions sched_getscheduler(), sched_setscheduler(),
sched_getparam(), sched_setparam() are technically not correctly
implemented by the Linux syscalls of the same name, because what the
kernel calls a PID and what POSIX calls a PID isn't truly the same, resulting
in somewhat different semantics as to what these functions exactly apply to.
Details: https://sourceware.org/bugzilla/show_bug.cgi?id=14829
Since the musl developers put a high premium on POSIX compliance, they
deliberately implement these functions to return -ENOSYS instead of
relaying them to the respective Linux syscalls as glibc/uClibc do.
LLVM 14.0.0 was installed in /opt/build
. Using rust-1.59.0 (rustup) installed in ${HOME)/.cargo
since building rust from source fails to build. cbindgen
was compile from source and installed in /opt/build
.
Firefox fails to complete build:
0:06.02 error: failed to run custom build command for `neqo-crypto v0.4.28 (https://github.com/ddragana/neqo/?branch=pr_1247#0dc6eb8a)`
0:06.02 Caused by:
0:06.02 process didn't exit successfully: `/src/firefox-91.6.0/obj-x86_64-pc-linux-musl/release/build/neqo-crypto-f3813a7baca64d9f/build-script-buil
d` (exit status: 101)
0:06.02 --- stdout
0:06.02 cargo:rustc-link-lib=dylib=nssutil3
0:06.02 cargo:rustc-link-lib=dylib=nss3
0:06.02 cargo:rustc-link-lib=dylib=ssl3
0:06.02 cargo:rustc-link-lib=dylib=plds4
0:06.02 cargo:rustc-link-lib=dylib=plc4
0:06.02 cargo:rustc-link-lib=dylib=nspr4
0:06.02 cargo:rustc-link-search=native=/src/firefox-91.6.0/obj-x86_64-pc-linux-musl/dist/bin
0:06.02 cargo:rustc-link-search=native=/src/firefox-91.6.0/obj-x86_64-pc-linux-musl/security/nss/lib/nss/nss_nss3
0:06.02 cargo:rustc-link-search=native=/src/firefox-91.6.0/obj-x86_64-pc-linux-musl/security/nss/lib/ssl/ssl_ssl3
0:06.02 cargo:rustc-link-search=native=/src/firefox-91.6.0/obj-x86_64-pc-linux-musl/config/external/nspr/pr
0:06.02 cargo:rerun-if-changed=/src/firefox-91.6.0/obj-x86_64-pc-linux-musl/netwerk/socket/neqo/extra-bindgen-flags
0:06.03 cargo:rerun-if-changed=bindings/bindings.toml
0:06.03 cargo:rerun-if-changed=bindings/nss_sslopt.h
0:06.03 --- stderr
0:06.03 thread 'main' panicked at 'Unable to find libclang: "the `libclang` shared library at /opt/build/lib/libclang.so.14.0.0 could not be opened:
Dynamic loading not supported"', /src/firefox-91.6.0/third_party/rust/bindgen/src/lib.rs:1922:31
0:06.03 stack backtrace:
0:06.03 0: 0x7f5c9d9d311c - std::backtrace_rs::backtrace::libunwind::trace::h77e2ca07ef63e4d4
0:06.03 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/../../backtrace/src/backtrace/libunwind.rs
:93:5
0:06.03 1: 0x7f5c9d9d311c - std::backtrace_rs::backtrace::trace_unsynchronized::hee4866ffc0258806
0:06.03 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5
0:06.03 2: 0x7f5c9d9d311c - std::sys_common::backtrace::_print_fmt::h228418e02eb0f8fc
0:06.03 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/sys_common/backtrace.rs:67:5
0:06.03 3: 0x7f5c9d9d311c - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h855e38790874b97a
0:06.03 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/sys_common/backtrace.rs:46:22
0:06.03 4: 0x7f5c9da0f73c - core::fmt::write::h42c44c4c71e808e0
0:06.03 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/fmt/mod.rs:1168:17
0:06.03 5: 0x7f5c9d9ce9c3 - std::io::Write::write_fmt::h42b4dd70169d991f
0:06.03 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/io/mod.rs:1660:15
0:06.03 6: 0x7f5c9d9d59c2 - std::sys_common::backtrace::_print::h9931fc7c5b71fd53
0:06.03 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/sys_common/backtrace.rs:49:5
0:06.03 7: 0x7f5c9d9d59c2 - std::sys_common::backtrace::print::ha50ba850f23815df
0:06.03 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/sys_common/backtrace.rs:36:9
0:06.03 8: 0x7f5c9d9d59c2 - std::panicking::default_hook::{{closure}}::hecdd69c96d580ce5
0:06.03 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:211:50
0:06.03 9: 0x7f5c9d9d55a5 - std::panicking::default_hook::h7928b9e2bcca33b5
0:06.03 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:228:9
0:06.03 10: 0x7f5c9d9d6013 - std::panicking::rust_panic_with_hook::h165aa2fa5fe93a26
0:06.03 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:606:17
0:06.03 11: 0x7f5c9d9d5d30 - std::panicking::begin_panic_handler::{{closure}}::h33ea6995ff6f26c6
0:06.03 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:502:13
0:06.03 12: 0x7f5c9d9d35c4 - std::sys_common::backtrace::__rust_end_short_backtrace::h5e001056b3d239a9
0:06.03 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/sys_common/backtrace.rs:139:18
0:06.03 13: 0x7f5c9d9d5a69 - rust_begin_unwind [15/1986]
0:06.03 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:498:5
0:06.03 14: 0x7f5c9d805591 - core::panicking::panic_fmt::h25f4bace64163d71
0:06.03 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/panicking.rs:116:14
0:06.03 15: 0x7f5c9d805683 - core::result::unwrap_failed::h265e18644e4f3feb
0:06.03 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/result.rs:1690:5
0:06.03 16: 0x7f5c9d83a082 - std::sync::once::Once::call_once::{{closure}}::ha8148e020c9f2fa5
0:06.03 17: 0x7f5c9d80422a - std::sync::once::Once::call_inner::h15fe0a99e12518cb
0:06.03 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/sync/once.rs:426:21
0:06.03 18: 0x7f5c9d838626 - bindgen::ensure_libclang_is_loaded::h4679091124295b97
0:06.04 19: 0x7f5c9d835a3c - bindgen::Builder::generate::h1397ecfb84fc9453
0:06.04 20: 0x7f5c9d81370c - build_script_build::main::h17bda49755b7f244
0:06.04 21: 0x7f5c9d815143 - std::sys_common::backtrace::__rust_begin_short_backtrace::he2ee8f8a93f66324
0:06.04 22: 0x7f5c9d8148e9 - std::rt::lang_start::{{closure}}::h1bb2a37653cd8161
0:06.04 23: 0x7f5c9d9d2860 - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::heaf574743191e15b
0:06.04 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/ops/function.rs:259:13
0:06.04 24: 0x7f5c9d9d2860 - std::panicking::try::do_call::h60c0c5ed566cfa08
0:06.04 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:406:40
0:06.04 25: 0x7f5c9d9d2860 - std::panicking::try::hdf3f2b36564f953d
0:06.04 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:370:19
0:06.04 26: 0x7f5c9d9d2860 - std::panic::catch_unwind::hc3b6348826703723
0:06.04 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panic.rs:133:14
0:06.04 27: 0x7f5c9d9d2860 - std::rt::lang_start_internal::{{closure}}::hf9c39ce91fc3ea64
0:06.04 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/rt.rs:128:48
0:06.04 28: 0x7f5c9d9d2860 - std::panicking::try::do_call::hb63d8c4b5823a9ea
0:06.04 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:406:40
0:06.04 29: 0x7f5c9d9d2860 - std::panicking::try::hfff1ffa733fc0b90
0:06.04 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:370:19
0:06.04 30: 0x7f5c9d9d2860 - std::panic::catch_unwind::hd0081cbdc19bd646
0:06.04 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panic.rs:133:14
0:06.04 31: 0x7f5c9d9d2860 - std::rt::lang_start_internal::hc166cd9392444b47
0:06.04 at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/rt.rs:128:20
0:06.04 32: 0x7f5c9d814422 - main
0:06.04 warning: build failed, waiting for other jobs to finish...
0:06.41 toolkit/library/buildid.cpp.stub
0:06.70 browser/app/firefox
0:06.83 toolkit/library
0:06.93 /src/firefox-91.6.0/python/mozbuild/mozbuild/action/check_binary.py:13: DeprecationWarning: The distutils package is deprecated and slated for
removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
0:06.93 from distutils.version import StrictVersion as Version
0:10.88 error: build failed
0:10.88 make[4]: *** [/src/firefox-91.6.0/config/makefiles/rust.mk:405: force-cargo-library-build] Error 101
0:10.89 make[3]: *** [/src/firefox-91.6.0/config/recurse.mk:72: toolkit/library/rust/target] Error 2
0:10.89 make[2]: *** [/src/firefox-91.6.0/config/recurse.mk:34: compile] Error 2
0:10.89 make[1]: *** [/src/firefox-91.6.0/config/rules.mk:355: default] Error 2
0:10.89 make: *** [client.mk:65: build] Error 2
0:10.89 0 compiler warnings present.
By the way, talking about "alternatives", what about linking Shadow to OpenPAM (in BMLFS, in the case) instead of Linux-PAM? I didn't found many information about why most distributions link to Linux-PAM instead of OpenPAM (is it just a question of compatibility?), and it would be interesting to have OpenPAM as an alternative. I've tested it at Copacabana Linux, it compiles just fine in musl.
Originally posted by @takusuman in dslm4515/CMLFS#77 (comment)
Tracking changes here to be done when using OpenPAM instead of Linux-PAM
Launching startx
as non root launches an Xorg session BUT input doesn’t work.
Launching as root, issue is gone.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.