Open hyperswine opened 2 years ago
I'm not sure why, never test it on WSL or docker. Can you try on linux natively, or build in virtual machine? And try to avoid 'deb' based distros.
Hellom Thanks to emmett for this project.
I confirm the same on native Manjaro Linux (= Arch with extras)
Regards
$ ./01-toolchain
...
usr/bin/strip: /tools/bin/updatedb: file format not recognized
/usr/bin/strip: /tools/bin/xtrace: file format not recognized
/usr/bin/strip: /tools/bin/xzcmp: file format not recognized
/usr/bin/strip: /tools/bin/xzdiff: file format not recognized
/usr/bin/strip: /tools/bin/xzegrep: file format not recognized
/usr/bin/strip: /tools/bin/xzfgrep: file format not recognized
/usr/bin/strip: /tools/bin/xzgrep: file format not recognized
/usr/bin/strip: /tools/bin/xzless: file format not recognized
/usr/bin/strip: /tools/bin/xzmore: file format not recognized
/usr/bin/strip: /tools/bin/yacc: file format not recognized
/usr/bin/strip: /tools/bin/zcat: file format not recognized
/usr/bin/strip: /tools/bin/zcmp: file format not recognized
/usr/bin/strip: /tools/bin/zdiff: file format not recognized
/usr/bin/strip: /tools/bin/zegrep: file format not recognized
/usr/bin/strip: /tools/bin/zfgrep: file format not recognized
/usr/bin/strip: /tools/bin/zforce: file format not recognized
/usr/bin/strip: /tools/bin/zgrep: file format not recognized
/usr/bin/strip: /tools/bin/zless: file format not recognized
/usr/bin/strip: /tools/bin/zmore: file format not recognized
/usr/bin/strip: /tools/bin/znew: file format not recognized
+ true
+ rm -rf /tools/info /tools/man /tools/doc /tools/share/info /tools/share/man /tools/share/doc
+ find /tools/lib /tools/libexec -name '*.la' -delete
find: error while loading shared libraries: /tools/lib/libc.so.6: file too short
$ uname -a Linux tower 5.10.136-1-MANJARO #1 SMP PREEMPT Thu Aug 11 13:14:01 UTC 2022 x86_64 GNU/Linux
$ objdump -a /tools/lib/libc.so.6
[user@tower lfs-scripts-git]$ ls -l /tools/lib/libc.so.6
-rwxr-xr-x 1 user user 0 Sep 5 17:44 /tools/lib/libc.so.6
Looking back in the script 01 output:
/run/media/user/Archives/archives/System/Distro/LFS/lfs-scripts-git/toolchain/99-cleaning: line 3: 674776 Bus error (core dumped) strip --strip-debug /tools/lib/*
There are earlier errors than 'file too short', such as:
$cat -n /tmp/01-toolchain.out|grep -B 3 -A 3 103204
103201 building '_tkinter' extension
103202 gcc -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -DWITH_APPINIT=1 -I/usr/X11/include -I./Include -I/tools/include -I. -I/usr/local/include -I/run/media/user/Archives/archives/System/Distro/LFS/lfs-scripts-git/work/python/Python-3.10.4/Include -I/run/media/user/Archives/archives/System/Distro/LFS/lfs-scripts-git/work/python/Python-3.10.4 -c /run/media/user/Archives/archives/System/Distro/LFS/lfs-scripts-git/work/python/Python-3.10.4/Modules/_tkinter.c -o build/temp.linux-x86_64-3.10/run/media/user/Archives/archives/System/Distro/LFS/lfs-scripts-git/work/python/Python-3.10.4/Modules/_tkinter.o
**103203** gcc -shared build/temp.linux-x86_64-3.10/run/media/user/Archives/archives/System/Distro/LFS/lfs-scripts-git/work/python/Python-3.10.4/Modules/_multiprocessing/multiprocessing.o build/temp.linux-x86_64-3.10/run/media/user/Archives/archives/System/Distro/LFS/lfs-scripts-git/work/python/Python-3.10.4/Modules/_multiprocessing/semaphore.o -L/tools/lib -L/usr/local/lib -o build/lib.linux-x86_64-3.10/_multiprocessing.cpython-310-x86_64-linux-gnu.so
103204 building 'xxlimited' extension
103205 gcc -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -I./Include -I/tools/include -I. -I/usr/local/include -I/run/media/user/Archives/archives/System/Distro/LFS/lfs-scripts-git/work/python/Python-3.10.4/Include -I/run/media/user/Archives/archives/System/Distro/LFS/lfs-scripts-git/work/python/Python-3.10.4 -c /run/media/user/Archives/archives/System/Distro/LFS/lfs-scripts-git/work/python/Python-3.10.4/Modules/xxlimited.c -o build/temp.linux-x86_64-3.10/run/media/user/Archives/archives/System/Distro/LFS/lfs-scripts-git/work/python/Python-3.10.4/Modules/xxlimited.o
103206 /run/media/user/Archives/archives/System/Distro/LFS/lfs-scripts-git/work/python/Python-3.10.4/Modules/_tkinter.c:45:10: fatal error: tcl.h: No such file or directory
103207 45 | #include <tcl.h>
Full log attached
So Im trying out this script on an ubuntu vm (wsl2), and I get this error message
nproc: error while loading shared libraries: /tools/lib/libc.so.6: file too short
when building pkgutils. I also tried running this script on an arch linux docker container and got the same error. Any idea what might be going on?