Closed deltavoid closed 5 years ago
When I delete musl-tools, musl, musl-dev package in ubuntu 16.04, the sfsimg could be built correctly. So I think the make uses gcc-glibc instead of gcc-musllibc. We should check Makefile in usr DIR
FIX method: passed in ubuntu 16.04 x86-64
git clone https://github.com/richfelker/musl-cross-make.git cp config.mak.dist config.mak
TARGET = x86_64-linux-musl
OUTPUT = /usr/local
make && sudo make install
sudo apt remove musl*
set(PREFIX x86_64-linux-musl-)
cd usr && make clean && make sfsimg arch=x86_64 cd ../kernel && make run arch=x86_64
biscuit/ls ##should work now
I have solve the problem with the method above.
Hello world! from CPU 1!
Hello world! from CPU 2!
Hello world! from CPU 3!
Hello world! from CPU 0!
Available programs: [".", "..", "busybox", "biscuit", "rust"]
>>
>> biscuit/ls
>> [ WARN] sys_set_tid_address is unimplemented
[ WARN] sys_ioctl is unimplemented
./:
[ WARN] sys_brk is unimplemented
[ WARN] sys_brk is unimplemented
[ WARN] sys_fcntl is unimplemented
[ WARN] stat is partial implemented as lstat
drwxr-xr-x 5 .
[ WARN] stat is partial implemented as lstat
drwxr-xr-x 5 ..
[ WARN] stat is partial implemented as lstat
-rwxr-xr-x 973200 busybox
[ WARN] stat is partial implemented as lstat
drwxr-xr-x 58 biscuit
[ WARN] stat is partial implemented as lstat
drwxr-xr-x 5 rust
The output lools like this:
Hello world! from CPU 1! Hello world! from CPU 2! Hello world! from CPU 3! Hello world! from CPU 0! Available programs: [".", "..", "busybox", "rust", "biscuit"]