I cannot build Redox on Mac OS High Sierra.
OS version: 10.13.6
I cloned Redox. And I tried ./bootstrap.sh -d
. But, I failed.
I got this message.
|------------------------------------------|
|----- Welcome to the redox bootstrap -----|
|------------------------------------------|
Detected OSX!
Homebrew detected! Now updating...
Already up-to-date.
Installing missing packages...
git already exists at /usr/bin/git, no need to install git...
qemu-system-x86_64 already exists at /usr/local/bin/qemu-system-x86_64, no need to install qemu...
brew install coreutils
Warning: coreutils 8.30 is already installed and up-to-date
To reinstall 8.30, run `brew reinstall coreutils`
brew install findutils
Warning: findutils 4.6.0 is already installed and up-to-date
To reinstall 4.6.0, run `brew reinstall findutils`
gcc-4.9 already exists at /usr/local/bin/gcc-4.9, no need to install gcc49...
nasm already exists at /usr/local/bin/nasm, no need to install nasm...
pkg-config already exists at /usr/local/bin/pkg-config, no need to install pkg-config...
cmake already exists at /usr/local/bin/cmake, no need to install cmake...
brew cask install osxfuse
Warning: Cask 'osxfuse' is already installed.
To re-install osxfuse, run:
brew cask reinstall osxfuse
brew install redox-os/gcc_cross_compilers/x86_64-elf-gcc
==> Installing x86_64-elf-gcc from redox-os/gcc_cross_compilers
==> Installing dependencies for redox-os/gcc_cross_compilers/x86_64-elf-gcc: x86_64-elf-binutils
==> Installing redox-os/gcc_cross_compilers/x86_64-elf-gcc dependency: x86_64-elf-binutils
==> Downloading http://ftp.gnu.org/gnu/binutils/binutils-2.27.tar.gz
Already downloaded: /Users/***/Library/Caches/Homebrew/downloads/3c11103a796523049f7da47dd03aaa14c69e8414a8c698f0e7192b944ff7cc9e--binutils-2.27.tar.gz
==> ../configure --disable-nls --target=x86_64-elf --disable-werror --enable-gold=yes --prefix=/usr/local/Cellar/x86_64-elf-binutils/2.27
Last 15 lines from /Users/***/Library/Logs/Homebrew/x86_64-elf-binutils/01.configure:
checking host system type... x86_64-apple-darwin17.7.0
checking target system type... x86_64-pc-elf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/local/Homebrew/Library/Homebrew/shims/mac/super/sed
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for gcc... /usr/local/opt/gcc/bin/gcc-7
checking for C compiler default output file name...
configure: error: in `/private/tmp/x86_64-elf-binutils-20180910-13040-1o8gfoi/binutils-2.27/build':
configure: error: C compiler cannot create executables
See `config.log' for more details.
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/redox-os/homebrew-gcc_cross_compilers/issues
Also, I tried docker build. But, I failed. I run this command.
docker run --cap-add MKNOD --cap-add SYS_ADMIN --device /dev/fuse \
-e LOCAL_UID="$(id -u)" -e LOCAL_GID="$(id -g)" \
-v redox-"$(id -u)-$(id -g)"-cargo:/usr/local/cargo \
-v redox-"$(id -u)-$(id -g)"-rustup:/usr/local/rustup \
-v "$(pwd):$(pwd)" -w "$(pwd)" --rm redoxos/redox make fetch all
And, I get this message.
cook - zerod fetch
Already up-to-date.
fusermount -u build/filesystem/ || true
fusermount: entry for /Users/***/redox/build/filesystem not found in /etc/mtab
rm -rf build/filesystem.bin build/filesystem.bin.partial build/filesystem/
dd if=/dev/zero of=build/filesystem.bin.partial bs=1048576 count=256
256+0 records in
256+0 records out
268435456 bytes (268 MB, 256 MiB) copied, 1.35548 s, 198 MB/s
cargo run --manifest-path redoxfs/Cargo.toml --release --bin redoxfs-mkfs build/filesystem.bin.partial
Finished release [optimized] target(s) in 0.12s
Running `redoxfs/target/release/redoxfs-mkfs build/filesystem.bin.partial`
redoxfs-mkfs: created filesystem on build/filesystem.bin.partial, reserved 0 blocks, size 268 MB, uuid 629d8c89-642c-4277-a8d4-7bf92beb8325
mkdir -p build/filesystem/
cargo build --manifest-path redoxfs/Cargo.toml --release --bin redoxfs
Finished release [optimized] target(s) in 0.11s
cargo run --manifest-path redoxfs/Cargo.toml --release --bin redoxfs -- build/filesystem.bin.partial build/filesystem/
Finished release [optimized] target(s) in 0.10s
Running `redoxfs/target/release/redoxfs build/filesystem.bin.partial build/filesystem/`
redoxfs: opening build/filesystem.bin.partial
redoxfs: opened filesystem on build/filesystem.bin.partial with uuid 629d8c89-642c-4277-a8d4-7bf92beb8325
fuse: failed to open /dev/fuse: Permission denied
redoxfs: failed to mount build/filesystem.bin.partial to build/filesystem/: Permission denied (os error 13)
redoxfs: not able to mount path build/filesystem.bin.partial
mk/filesystem.mk:2: recipe for target 'build/filesystem.bin' failed
make: *** [build/filesystem.bin] Error 1
What is this? I cannot understand. I wanna start redox hacking.