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

lld-link /lib allows creating mixed-bitness lib files; lib.exe doesn't allow that #38130

Closed
nico opened this issue Aug 30, 2018 · 3 comments
Closed
Labels
bugzilla Issues migrated from bugzilla lld:COFF

Comments

@nico
Copy link
Contributor

nico commented Aug 30, 2018

Bugzilla Link 38782
Resolution FIXED
Resolved on Jun 07, 2019 18:36
Version unspecified
OS Windows NT
Blocks #38313
CC @pcc

Extended Description

C:\src\chrome\src>type f1.c
void f1() {}

C:\src\chrome\src>type f2.c
void f2() {}

C:\src\chrome\src>"third_party\llvm-build\Release+Asserts\bin\clang-cl.exe" -m64 -c f1.c

C:\src\chrome\src>"third_party\llvm-build\Release+Asserts\bin\clang-cl.exe" -m32 -c f2.c

C:\src\chrome\src>lib /out:foo.lib f1.obj f2.obj
Microsoft (R) Library Manager Version 14.14.26428.1
Copyright (C) Microsoft Corporation. All rights reserved.

f2.obj : fatal error LNK1112: module machine type 'x86' conflicts with target machine type 'x64'

C:\src\chrome\src>"third_party\llvm-build\Release+Asserts\bin\lld-link.exe" /lib /out:foo.lib f2.obj f1.obj

Not allowing this seems like a good choice.

@nico
Copy link
Contributor Author

nico commented Jun 5, 2019

@nico
Copy link
Contributor Author

nico commented Jun 8, 2019

Fixed in r362798. Filed bug 42180 with some related follow-up issues I noticed while working on that.

@nico
Copy link
Contributor Author

nico commented Nov 27, 2021

mentioned in issue #38313

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla lld:COFF
Projects
None yet
Development

No branches or pull requests

1 participant