[Lldb-commits] [PATCH] D55430: build.py: Implement "gcc" builder
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Fri Dec 14 11:56:14 PST 2018
Don't we print the environment in verbose mode? Can we see that output as
On Fri, Dec 14, 2018 at 11:53 AM Stella Stamenova <stilis at microsoft.com>
> The verbose output is below. If I run the two commands on the command
> line, they both succeed, but when I run them through build.py, the link
> command is failing. I suspect that the process that gets created through
> python doesn't inherit the environment with the PATH set, so it can't find
> the linker.
> compiling main.c -> exec-next-instruction.test.tmp-main.o
> Command Line: /vstsdrive/_work/42/b/LLVMBuild/bin/clang++ -m64 -g -O0
> -nostdinc -static -c -o
> linking exec-next-instruction.test.tmp-main.o ->
> Command Line: /vstsdrive/_work/42/b/LLVMBuild/bin/clang++ -m64 -nostdlib
> -static -Wl,-e,main -o
> clang-8: error: unable to execute command: Executable "ld" doesn't
> clang-8: error: linker command failed with exit code 1 (use -v to see
> -----Original Message-----
> From: Pavel Labath <pavel at labath.sk>
> Sent: Friday, December 14, 2018 11:48 AM
> To: reviews+D55430+public+4cf420cdda71e8db at reviews.llvm.org;
> zturner at google.com; Stella Stamenova <stilis at microsoft.com>
> Cc: llvm-commits at lists.llvm.org; joker.eph at gmail.com; dexonsmith at apple.com;
> lldb-commits at lists.llvm.org
> Subject: Re: [PATCH] D55430: build.py: Implement "gcc" builder
> On 14/12/2018 20:32, Stella Stamenova via Phabricator wrote:
> > stella.stamenova added a comment.
> > I am trying to use the new builder to build the lldb-mi tests, so that
> they can start consistently passing on Windows, so they're now using the
> gcc builder on Linux and failing:
> Interesting. Can you run the script in verbose mode so I can see the exact
> commands it executes?
> Not being able to find the linker is weird. Can you check whether you have
> /usr/bin/ld on your system? Maybe we need to add something to the PATH? Is
> that clang binary capable of producing executables when you run it manually?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lldb-commits