New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 728726 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Jun 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

LLD fails to link angle_util.dll after .def file parser change

Project Member Reported by r...@chromium.org, Jun 1 2017

Issue description

It complains about many missing __imp_gl* symbols:

[8311/53972] LINK(DLL) angle_util.dll angle_util.dll.lib
FAILED: angle_util.dll angle_util.dll.lib 
C:/b/depot_tools/python276_bin/python.exe ../../build/toolchain/win/tool_wrapper.py link-wrapper environment.x86 False ../../third_party/llvm-build/Release+Asserts/bin/lld-link.exe /nologo /IMPLIB:./angle_util.dll.lib /DLL /OUT:./angle_util.dll /PDB:./angle_util.dll.pdb @./angle_util.dll.rsp
..\..\third_party\llvm-build\Release+Asserts\bin\lld-link.exe: warning: obj/third_party/angle/angle_util/shader_utils.obj: undefined symbol: __imp__glCreateShader@4
...

There's a large blame window from May 16 to May 24. Last green:
https://build.chromium.org/p/chromium.fyi/builders/CrWinClangLLD/builds/5579
First red:
https://build.chromium.org/p/chromium.fyi/builders/CrWinClangLLD/builds/5581

Good rev: r303235
Bad rev: r303799

Presumably this is Rui's change to import garbage collection, which was in at the first bad revision, reverted, and then came back in r303814 for the next build, which was at r303826.
 

Comment 1 by r...@chromium.org, Jun 1 2017

This does not reproduce in 64-bit, so this must be a stdcall-specific issue.

Comment 2 by r...@chromium.org, Jun 1 2017

Reverting just the import GC change doesn't fix the issue either. I'll keep bisecting.

Comment 3 by r...@chromium.org, Jun 2 2017

Summary: LLD fails to link angle_util.dll after .def file parser change (was: LLD fails to link angle_util.dll after the import GC change)
I bisected this to r303491 / r303490, which moved the .def file parser from LLD to LLVM.

Comment 4 by r...@chromium.org, Jun 2 2017

Cc: ruiu@google.com
Owner: r...@chromium.org
I reverted the .def file parser in r304561, but then I went ahead and fixed it up and relanded it in r304573. We still have a bug for fastcall symbols in .def files, which I filed upstream as https://bugs.llvm.org//show_bug.cgi?id=33284.

Comment 5 by r...@chromium.org, Jun 23 2017

Status: Verified (was: Untriaged)
This went green eventually. The LLD bots are currently red, but for other reasons.

Sign in to add a comment