Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error while executing "make run" #7

Closed
anujfulia opened this issue Jan 29, 2016 · 10 comments
Closed

error while executing "make run" #7

anujfulia opened this issue Jan 29, 2016 · 10 comments

Comments

@anujfulia
Copy link

➜ RustOS git:(master) make run
cargo rustc --features rustos --target i686-unknown-linux-gnu --verbose -- -L .
Compiling core v0.0.1 (file:///home/anuj/RustOS)
Running rustc lib/rust/cargo/core/src/lib.rs --crate-name core --crate-type lib -g -C metadata=2839fe1be8c3a48a -C extra-filename=-2839fe1be8c3a48a --out-dir /home/anuj/RustOS/target/i686-unknown-linux-gnu/debug/deps --emit=dep-info,link --target i686-unknown-linux-gnu -L dependency=/home/anuj/RustOS/target/i686-unknown-linux-gnu/debug/deps -L dependency=/home/anuj/RustOS/target/i686-unknown-linux-gnu/debug/deps
lib/rust/cargo/core/src/nonzero.rs:58:19: 58:25 error: expected identifier, found keyword unsafe
lib/rust/cargo/core/src/nonzero.rs:58 pub const unsafe fn new(inner: T) -> NonZero {
^~~~~~
lib/rust/cargo/core/src/nonzero.rs:58:26: 58:28 error: expected :, found fn
lib/rust/cargo/core/src/nonzero.rs:58 pub const unsafe fn new(inner: T) -> NonZero {
^~
Could not compile core.

Caused by:
Process didn't exit successfully: rustc lib/rust/cargo/core/src/lib.rs --crate-name core --crate-type lib -g -C metadata=2839fe1be8c3a48a -C extra-filename=-2839fe1be8c3a48a --out-dir /home/anuj/RustOS/target/i686-unknown-linux-gnu/debug/deps --emit=dep-info,link --target i686-unknown-linux-gnu -L dependency=/home/anuj/RustOS/target/i686-unknown-linux-gnu/debug/deps -L dependency=/home/anuj/RustOS/target/i686-unknown-linux-gnu/debug/deps (exit code: 101)
make: ** [target/i686-unknown-linux-gnu/debug/libstd.a] Error 101

I am using rust version 1.2.0 nightly

@ryanra
Copy link
Owner

ryanra commented Feb 9, 2016

Try with 1.6.0-nightly and let me know what happens.

@anujfulia
Copy link
Author

With * rustc 1.6.0-nightly (8ca0acc25 2015-10-28)* it is showing following error:

as -march=i386 --32 -o boot.o src//arch/x86/boot.s
as -march=i386 --32 -o morestack.o src//morestack.s
ar rcs libmorestack.a morestack.o
as -march=i386 --32 -o compiler-rt.o src//dummy-compiler-rt.s
ar rcs libcompiler-rt.a compiler-rt.o
cc -E src//arch/x86/_context.S > src//arch/x86/_context.s
as -march=i386 --32 -o _context.o src//arch/x86/_context.s
ar rcs lib_context.a _context.o
cargo rustc --features rustos --target i686-unknown-linux-gnu --verbose -- -L .
Compiling core v0.0.1 (file:///home/anuj/RustOS)
Running rustc lib/rust/cargo/core/src/lib.rs --crate-name core --crate-type lib -g -C metadata=2839fe1be8c3a48a -C extra-filename=-2839fe1be8c3a48a --out-dir /home/anuj/RustOS/target/i686-unknown-linux-gnu/debug/deps --emit=dep-info,link --target i686-unknown-linux-gnu -L dependency=/home/anuj/RustOS/target/i686-unknown-linux-gnu/debug/deps -L dependency=/home/anuj/RustOS/target/i686-unknown-linux-gnu/debug/deps
lib/rust/cargo/core/src/intrinsics.rs:527:5: 527:32 error: unrecognized intrinsic function: ctpop [E0093]
lib/rust/cargo/core/src/intrinsics.rs:527 pub fn ctpop(x: T) -> T;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/rust/cargo/core/src/intrinsics.rs:527:5: 527:32 help: run rustc --explain E0093 to see a detailed explanation
lib/rust/cargo/core/src/intrinsics.rs:543:5: 543:31 error: unrecognized intrinsic function: ctlz [E0093]
lib/rust/cargo/core/src/intrinsics.rs:543 pub fn ctlz(x: T) -> T;
^~~~~~~~~~~~~~~~~~~~~~~~~~
lib/rust/cargo/core/src/intrinsics.rs:543:5: 543:31 help: run rustc --explain E0093 to see a detailed explanation
lib/rust/cargo/core/src/intrinsics.rs:559:5: 559:31 error: unrecognized intrinsic function: cttz [E0093]
lib/rust/cargo/core/src/intrinsics.rs:559 pub fn cttz(x: T) -> T;
^~~~~~~~~~~~~~~~~~~~~~~~~~
lib/rust/cargo/core/src/intrinsics.rs:559:5: 559:31 help: run rustc --explain E0093 to see a detailed explanation
lib/rust/cargo/core/src/intrinsics.rs:572:5: 572:32 error: unrecognized intrinsic function: bswap [E0093]
lib/rust/cargo/core/src/intrinsics.rs:572 pub fn bswap(x: T) -> T;
^~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/rust/cargo/core/src/intrinsics.rs:572:5: 572:32 help: run rustc --explain E0093 to see a detailed explanation
lib/rust/cargo/core/src/intrinsics.rs:602:5: 602:58 error: unrecognized intrinsic function: add_with_overflow [E0093]
lib/rust/cargo/core/src/intrinsics.rs:602 pub fn add_with_overflow(x: T, y: T) -> (T, bool);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/rust/cargo/core/src/intrinsics.rs:602:5: 602:58 help: run rustc --explain E0093 to see a detailed explanation
lib/rust/cargo/core/src/intrinsics.rs:632:5: 632:58 error: unrecognized intrinsic function: sub_with_overflow [E0093]
lib/rust/cargo/core/src/intrinsics.rs:632 pub fn sub_with_overflow(x: T, y: T) -> (T, bool);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/rust/cargo/core/src/intrinsics.rs:632:5: 632:58 help: run rustc --explain E0093 to see a detailed explanation
lib/rust/cargo/core/src/intrinsics.rs:662:5: 662:58 error: unrecognized intrinsic function: mul_with_overflow [E0093]
lib/rust/cargo/core/src/intrinsics.rs:662 pub fn mul_with_overflow(x: T, y: T) -> (T, bool);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/rust/cargo/core/src/intrinsics.rs:662:5: 662:58 help: run rustc --explain E0093 to see a detailed explanation
lib/rust/cargo/core/src/intrinsics.rs:667:5: 667:46 error: unrecognized intrinsic function: unchecked_div [E0093]
lib/rust/cargo/core/src/intrinsics.rs:667 pub fn unchecked_div(x: T, y: T) -> T;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/rust/cargo/core/src/intrinsics.rs:667:5: 667:46 help: run rustc --explain E0093 to see a detailed explanation
lib/rust/cargo/core/src/intrinsics.rs:671:5: 671:46 error: unrecognized intrinsic function: unchecked_rem [E0093]
lib/rust/cargo/core/src/intrinsics.rs:671 pub fn unchecked_rem(x: T, y: T) -> T;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/rust/cargo/core/src/intrinsics.rs:671:5: 671:46 help: run rustc --explain E0093 to see a detailed explanation
error: aborting due to 9 previous errors
Could not compile core.

Caused by:
Process didn't exit successfully: rustc lib/rust/cargo/core/src/lib.rs --crate-name core --crate-type lib -g -C metadata=2839fe1be8c3a48a -C extra-filename=-2839fe1be8c3a48a --out-dir /home/anuj/RustOS/target/i686-unknown-linux-gnu/debug/deps --emit=dep-info,link --target i686-unknown-linux-gnu -L dependency=/home/anuj/RustOS/target/i686-unknown-linux-gnu/debug/deps -L dependency=/home/anuj/RustOS/target/i686-unknown-linux-gnu/debug/deps (exit code: 101)
make: ** [target/i686-unknown-linux-gnu/debug/libstd.a] Error 101
rm morestack.o _context.o src//arch/x86/_context.s

@anujfulia
Copy link
Author

screenshot from 2016-02-10 20 45 32

@ryanra
Copy link
Owner

ryanra commented Mar 18, 2016

Hmmm, I've verified it works with rustc 1.6.0-nightly (1e3e7e73c 2015-11-07). Could you grab that and try it?

@anujfulia
Copy link
Author

with version rustc 1.6.0-nightly (1e3e7e73c 2015-11-07)

it shows following error :
ld -melf_i386 -nostdlib -o boot.bin -T src//arch/x86/link.ld boot.o target/i686-unknown-linux-gnu/debug/libstd_.a interrupt.o context.o dependencies.o
ld: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail ../../bfd/elf.c:4214
ld: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail ../../bfd/elf.c:4214
ld: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail ../../bfd/elf.c:4214
ld: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail ../../bfd/elf.c:4214
ld: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail ../../bfd/elf.c:4214
ld: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail ../../bfd/elf.c:4214
ld: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail ../../bfd/elf.c:4214
ld: BFD (GNU Binutils for Ubuntu) 2.24 assertion fail ../../bfd/elf.c:4214
make: *_* [boot.bin] Error 1
rm morestack.o _context.o src//arch/x86/_context.s

@ryanra
Copy link
Owner

ryanra commented Mar 23, 2016

This seems like a similar problem to: #5

What does ld -v output for you?

@anujfulia
Copy link
Author

GNU ld (GNU Binutils for Ubuntu) 2.24

@ryanra
Copy link
Owner

ryanra commented Mar 23, 2016

Hmm, yeah, the OP in #5 had the same issue using version 2.24 of binutils. Would it be possible for you to get 2.25? That should fix the problem.

@anujfulia
Copy link
Author

I am using ubuntu 14.04 . If you are using newer version, i will also upgrade.

@ryanra
Copy link
Owner

ryanra commented Mar 23, 2016

From what I gather, 15.04 has that version of binutils. You might also be able to keep your current version of ubuntu and just upgrade binutils. I'm going to close this thread though as the problem should be solved by getting the right version of binutils.

@ryanra ryanra closed this as completed Mar 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants