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

rustc fails whlie linking files if the source file path begins with ./ or ../ #821

Closed
msullivan opened this issue Aug 15, 2011 · 1 comment
Labels
A-driver Area: rustc_driver that ties everything together into the `rustc` compiler

Comments

@msullivan
Copy link
Contributor

sully@anansi:~/src/rust/build [master]$ s1 ./stage1/rustc ./test.rs 
gcc: .o: No such file or directory
:0:0:0:0: error: linking with gcc failed with code 256
:0:0:0:0: note: gcc arguments: -L./stage1/lib -Lrt -lrustrt ./stage1/lib/glue.o -m32 -o  .o -lm ./stage1/lib/main.o
:0:0:0:0: error: aborting due to previous errors

(s1 is my shell function that sets up the environment).

Doing "../build/test.rs" also fails. Doing "test.rs" works. If I have a file in another directory, "foo/test.rs" works but "./foo/test.rs" doesn't work.

@msullivan
Copy link
Contributor Author

In fact, it fails if a . appears anywhere in the path.

keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
ZuseZ4 pushed a commit to EnzymeAD/rust that referenced this issue Mar 7, 2023
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-driver Area: rustc_driver that ties everything together into the `rustc` compiler
Projects
None yet
Development

No branches or pull requests

1 participant