Skip to content

Add a regression test for #29122 (fixed in #29134) #29151

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

Merged
merged 1 commit into from
Oct 24, 2015

Conversation

wthrowe
Copy link
Contributor

@wthrowe wthrowe commented Oct 18, 2015

I suspect this won't work on Windows, but let's be optimistic and try it before disabling.

@rust-highfive
Copy link
Contributor

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@pnkfelix
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Oct 18, 2015

📌 Commit 19041cd has been approved by pnkfelix

steveklabnik added a commit to steveklabnik/rust that referenced this pull request Oct 19, 2015
I suspect this won't work on Windows, but let's be optimistic and try it before disabling.
@steveklabnik
Copy link
Member

@bors: r-

this caused rollup failure

@wthrowe
Copy link
Contributor Author

wthrowe commented Oct 20, 2015

I've fixed the pretty failures and I think the test should be working on OS X now.

@alexcrichton
Copy link
Member

@bors: r+ 9c877c2

steveklabnik added a commit to steveklabnik/rust that referenced this pull request Oct 20, 2015
…ichton

I suspect this won't work on Windows, but let's be optimistic and try it before disabling.
@steveklabnik
Copy link
Member

@bors: r-

Still caused another failure: #29178

@wthrowe
Copy link
Contributor Author

wthrowe commented Oct 20, 2015

I do not understand this new error. There is rustc output indicating a successful compilation of a staticlib, but then the expected staticlib does not exist.

note: link against the following native artifacts when linking against this static library
note: the order and any duplication can be significant on some platforms, and so may need to be preserved
note: library: ws2_32
note: library: userenv
note: library: advapi32
note: library: kernel32
note: library: shell32
note: library: msvcrt
mv: cannot stat '/C/bot/slave/auto-win-msvc-64-opt/build/obj/x86_64-pc-windows-msvc/test/run-make/linker-output-non-utf8/library.lib': No such file or directory
make[1]: *** [all] Error 1

all:
$(RUSTC) library.rs
mkdir $(bad_dir)
mv $(call STATICLIB,library) $(bad_dir)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The STATICLIB macro here is expanding to library.lib on Windows when a staticlib output always produces libfoo.a (e.g. liblibrary.a in this case)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reference could use an update, then. (I'm not going to do it because, as shown here, I don't understand what's going on well enough to write something useful.)

I think at this point I'm just going to disable the test on Windows, if no one objects. I expect that the linking command won't work there anyway, and it seems like there might be several more cycles of this before I even figure out how to attempt to link a Windows native library. Someone who can do local testing and actually knows how to develop for Windows can fix it if they want to.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh weird! Yeah that documentation should probably be updated!

Could this just hardcode liblibrary.a for now to work on Windows as well? In general we prefer to have tests run everywhere whenever possible.

@wthrowe
Copy link
Contributor Author

wthrowe commented Oct 21, 2015

Modified to be a no-op on Windows.

@wthrowe
Copy link
Contributor Author

wthrowe commented Oct 21, 2015

(Moving to the main comment thread from line comments.)

Alright, try this version.

I should probably point out that if this does work on Windows and actually tests what it's supposed to then it would seem I've created a file whose name can't be stored in a PathBuf.

@alexcrichton
Copy link
Member

Thanks! Could you also squash this down to one commit?

@wthrowe wthrowe force-pushed the linker-output-ICE branch 2 times, most recently from 19664fd to 0dce92a Compare October 22, 2015 00:29
@wthrowe
Copy link
Contributor Author

wthrowe commented Oct 22, 2015

Squashed.

@alexcrichton
Copy link
Member

@bors: r+ 0dce92a

steveklabnik added a commit to steveklabnik/rust that referenced this pull request Oct 22, 2015
…ichton

I suspect this won't work on Windows, but let's be optimistic and try it before disabling.
@bors
Copy link
Collaborator

bors commented Oct 22, 2015

⌛ Testing commit 0dce92a with merge 93429ad...

bors added a commit that referenced this pull request Oct 22, 2015
I suspect this won't work on Windows, but let's be optimistic and try it before disabling.
@alexcrichton
Copy link
Member

@bors: r-

I think this caused a legitimate failure

@alexcrichton
Copy link
Member

@bors: force

@bors
Copy link
Collaborator

bors commented Oct 22, 2015

⛄ The build was interrupted to prioritize another pull request.

@steveklabnik
Copy link
Member

I wasn't sure

@steveklabnik
Copy link
Member

Can we not roll this up in the future? It's already caused three rollups to fail.

@steveklabnik
Copy link
Member

@bors: rollup-

@wthrowe
Copy link
Contributor Author

wthrowe commented Oct 22, 2015

Not much to go on. The failed command is a grep, so in failing it swallowed all the debugging output.

@alexcrichton
Copy link
Member

This may actually be a bug in MinGW's gcc because the error I'm seeing is that it can't find -llibrary (even if this is passed as -L).

If that's the case where this just unfortunately doesn't work on Windows then could you add a comment as such before ignoring it?

@wthrowe
Copy link
Contributor Author

wthrowe commented Oct 24, 2015

This look good?

@alexcrichton
Copy link
Member

@bors: r+ a1c8431

Thanks!

bors added a commit that referenced this pull request Oct 24, 2015
I suspect this won't work on Windows, but let's be optimistic and try it before disabling.
@bors
Copy link
Collaborator

bors commented Oct 24, 2015

⌛ Testing commit a1c8431 with merge d2f41bd...

@bors bors merged commit a1c8431 into rust-lang:master Oct 24, 2015
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

Successfully merging this pull request may close these issues.

6 participants