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

"Could not find namespace node for function"... #9268

Closed
jesseray opened this issue Sep 18, 2013 · 5 comments
Closed

"Could not find namespace node for function"... #9268

jesseray opened this issue Sep 18, 2013 · 5 comments
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.)

Comments

@jesseray
Copy link

If you do the following using rustc 0.8-pre (6bc48b6 2013-09-16 09:00:44 -0700)

git clone https://github.com/jesseray/rust-http
cd ./rust-http
make

then you will see the following (amid some other stuff):

src/libhttp/client/request.rs:77:8: 101:9 warning: debuginfo: Could not find namespace node for function
                                      with name url_to_socket_addr. This is a bug! Please report this to
                                      github.com/mozilla/rust/issues
src/libhttp/client/request.rs:77         fn url_to_socket_addr(url: &Url) -> SocketAddr {
src/libhttp/client/request.rs:78             // Just grab the first IPv4 address
src/libhttp/client/request.rs:79             let addrs = get_host_addresses(url.host);
src/libhttp/client/request.rs:80             // TODO: Error handling
src/libhttp/client/request.rs:81             let addrs = addrs.unwrap();
src/libhttp/client/request.rs:82             let addr = do addrs.move_iter().find |&a| {
                             ...
@jdm
Copy link
Contributor

jdm commented Sep 18, 2013

Presumably you're building with -Z debug-info?

@jdm
Copy link
Contributor

jdm commented Sep 18, 2013

Could you also give the revision of rust-http that demonstrates this?

@jesseray
Copy link
Author

Operating System: Fedora 19 (LXDE Spin), x86
Rust Version: rustc 0.8-pre (6bc48b6 2013-09-16 09:00:44 -0700)
Compiler Flags: -O -Z debug-info
Revision: https://github.com/jesseray/rust-http/commit/9c8ce38f21f67a15cc2a4aa48bb18818621d7cab

If you need more information, let me know :)

bors added a commit that referenced this issue Oct 8, 2013
This should fix some outstanding namespace issues. It also fixes an issue with LLVM metadata uniquing that caused an LLVM assertion when compiling libstd.

One thing to keep in mind is that the `-O` flag and the debug info flags are essentially incompatible. It may work but I would not consider this in any way supported at the moment. On the other hand, there is also good news: With the changes in this PR I am able to compile all of rust with extra-debug-info:
```
make RUSTFLAGS_STAGE2='-Zextra-debug-info' check
```
compiles the whole thing without warning and passes the whole test suite (given that `configure` is run with `--disable-optimize`). That's kind of nice `:)` Still, I'm reluctant to automatically close the related issues (#9167, #9190, #9268) without confirmation from the openers. I'll post to the individual threads once this gets merged.
@michaelwoerister
Copy link
Member

@jesseray Would you mind trying this again with a current version of rustc and without the -O flag? That would be great!
The namespace warnings should be gone now. Activating debug info and optimizations at the same time is not supported at the moment, unfortunately.

@michaelwoerister
Copy link
Member

I think this issue can be closed. The error message as reported here cannot not occur anymore (the whole logic leading to it has been removed some time ago), so any similar problem would warrant a new issue to be opened anyway.

@jdm jdm closed this as completed Dec 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.)
Projects
None yet
Development

No branches or pull requests

3 participants