Compile failure: (asm) phase error detected at end of assembly
Created by: pbadeer
Reproduction: By running the make qemu
command on the repo, or any of the alternatives listed in the book (kvm flag or iommu flag).
Expected behavior: Compilation. :)
Actual behavior: http://pastebin.com/QU2ii3gM
#filesystem/bin/shutdown filesystem/bin/test
#filesystem/bin/dmesg filesystem/bin/info filesystem/bin/watch
sudo umount build/filesystem/ || true
umount: build/filesystem/: not currently mounted
rm -rf build/filesystem.bin build/filesystem/
dd if=/dev/zero of=build/filesystem.bin bs=1048576 count=64
64+0 records in
64+0 records out
67108864 bytes transferred in 0.052615 secs (1275471952 bytes/sec)
cargo run --manifest-path schemes/redoxfs/Cargo.toml --release --bin redoxfs-mkfs build/filesystem.bin
Finished release [optimized] target(s) in 0.0 secs
Running `target/release/redoxfs-mkfs build/filesystem.bin`
redoxfs-mkfs: created filesystem on build/filesystem.bin, size 64 MB
mkdir -p build/filesystem/
cargo build --manifest-path schemes/redoxfs/Cargo.toml --release --bin redoxfs
Finished release [optimized] target(s) in 0.0 secs
cargo run --manifest-path schemes/redoxfs/Cargo.toml --release --bin redoxfs -- build/filesystem.bin build/filesystem/
Finished release [optimized] target(s) in 0.0 secs
Running `target/release/redoxfs build/filesystem.bin build/filesystem/`
redoxfs: opened filesystem build/filesystem.bin
sleep 2
pgrep redoxfs
23217
cp -RL filesystem/* build/filesystem/
chown -R 0:0 build/filesystem
chown -R 1000:1000 build/filesystem/home/user
chmod -R uog+rX build/filesystem
chmod -R u+w build/filesystem
chmod -R og-w build/filesystem
chmod -R 755 build/filesystem/bin
chmod -R u+rwX build/filesystem/root
chmod -R og-rwx build/filesystem/root
chmod -R u+rwX build/filesystem/home/user
chmod -R og-rwx build/filesystem/home/user
chmod +s build/filesystem/bin/passwd
chmod +s build/filesystem/bin/su
chmod +s build/filesystem/bin/sudo
mkdir build/filesystem/tmp
chmod 1777 build/filesystem/tmp
sync
sudo umount build/filesystem/ || true
rm -rf build/filesystem/
nasm -f bin -o build/harddrive.bin -D ARCH_x86_64 -ibootloader/x86_64/ bootloader/x86_64/harddrive.asm
startup-x86_64.asm:125: warning: numeric constant 0xFFFFFF000009F000 does not fit in 32 bits
bootsector.asm:184: error: integer supplied to a DQ instruction
startup-x86_64.asm:2: error: integer supplied to a DQ instruction
startup-x86_64.asm:3: error: integer supplied to a DQ instruction
startup-x86_64.asm:4: error: integer supplied to a DQ instruction
startup-x86_64.asm:5: error: integer supplied to a DQ instruction
startup-x86_64.asm:6: error: integer supplied to a DQ instruction
startup-x86_64.asm:7: error: integer supplied to a DQ instruction
unreal.asm:44: error: integer supplied to a DQ instruction
startup-x86_64.asm:118: error: symbol `rax' undefined
startup-x86_64.asm:119: error: symbol `rax' undefined
startup-x86_64.asm:120: error: symbol `rax' undefined
startup-x86_64.asm:121: error: symbol `rax' undefined
startup-x86_64.asm:122: error: symbol `rax' undefined
startup-x86_64.asm:123: error: symbol `rax' undefined
startup-x86_64.asm:125: error: symbol `rsp' undefined
startup-x86_64.asm:128: error: symbol `rax' undefined
startup-x86_64.asm:129: error: symbol `rax' undefined
startup-x86_64.asm:132: error: symbol `rax' undefined
startup-x86_64.asm:133: error: symbol `rax' undefined
startup-x86_64.asm:134: error: symbol `rax' undefined
startup-x86_64.asm:135: error: symbol `rax' undefined
startup-x86_64.asm:136: error: symbol `rax' undefined
startup-x86_64.asm:137: error: symbol `rax' undefined
startup-x86_64.asm:139: error: symbol `rdi' undefined
startup-x86_64.asm:140: error: symbol `rsi' undefined
startup-x86_64.asm:141: error: symbol `rdx' undefined
startup-x86_64.asm:142: error: symbol `rcx' undefined
startup-x86_64.asm:144: error: symbol `rsp' undefined
startup-x86_64.asm:146: error: symbol `rax' undefined
startup-x86_64.asm:147: error: operation size not specified
startup-x86_64.asm:148: error: symbol `rax' undefined
startup-x86_64.asm:152: error: integer supplied to a DQ instruction
startup-x86_64.asm:156: error: integer supplied to a DQ instruction
bootloader/x86_64/harddrive.asm:21: error: phase error detected at end of assembly.
make: *** [build/harddrive.bin] Error 1
Build information:
rustc -V: rustc 1.16.0-nightly (1a2ed98d3 2017-01-13)
git rev-parse HEAD: e9a96c545f7a2704f2032c5d0a57916966959af4
qemu-i386-version: command not found: qemu-i386
uname -a: Darwin XXXXXXXX 16.3.0 Darwin Kernel Version 16.3.0: Thu Nov 17 20:23:58 PST 2016; root:xnu-3789.31.2~1/RELEASE_X86_64 x86_64
Blocking/related: I also got this error earlier: https://github.com/rust-lang/rust/issues/25270 And solved it by doing this: https://github.com/rust-lang/rust/issues/25270#issuecomment-272673974
Misc: Complete Rust n00b.