question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compile fails on Manjaro

See original GitHub issue

Describe the bug Stage 2 exits with an error

To Reproduce clone tc-build, and run build-llvm.py

Expected behavior it should compile cleanly

Screenshots [26/4067] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/CodeGenCoverage.cpp.o FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/CodeGenCoverage.cpp.o /home/kristof/android/tc-build/build/llvm/stage1/bin/clang++ -DGTEST_HAS_RTTI=0 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/Support -I/home/kristof/android/tc-build/llvm-project/llvm/lib/Support -I/usr/include/libxml2 -Iinclude -I/home/kristof/android/tc-build/llvm-project/llvm/include -fPIC -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -w -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -std=c++14 -fno-exceptions -fno-rtti -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/CodeGenCoverage.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/CodeGenCoverage.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/CodeGenCoverage.cpp.o -c /home/kristof/android/tc-build/llvm-project/llvm/lib/Support/CodeGenCoverage.cpp fatal error: error in backend: Cannot emit physreg copy instruction [31/4067] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/CommandLine.cpp.o ninja: build stopped: subcommand failed. Traceback (most recent call last): File “./build-llvm.py”, line 890, in <module> main() File “./build-llvm.py”, line 886, in main do_multistage_build(args, dirs, env_vars) File “./build-llvm.py”, line 858, in do_multistage_build invoke_ninja(args, dirs, stage) File “./build-llvm.py”, line 793, in invoke_ninja subprocess.run(‘ninja’, check=True, cwd=build_folder) File “/usr/lib/python3.8/subprocess.py”, line 512, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command ‘ninja’ returned non-zero exit status 1.

Environment (please complete the following information):

  • Command you ran: ./build-llvm.py
  • Distribution: Manjaro Linux latest
  • Python version: 3.8.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
msfjarviscommented, Feb 4, 2020

1132f87fbf1373835d7030354f6210c5dab62c3e

I had to step out for a bit, but builds were running in the mean time. --stage-1-only builds fine on this, and the standard build fails with the same issue you saw. I just moved to ToT at https://github.com/llvm/llvm-project/commit/92570718a86cc4c23108b596002114ab25857b14 and --stage-1-only builds fine once more. Will report back once the standard 2 stage build finishes on this.

1reaction
kristofpethocommented, Feb 4, 2020

1132f87fbf1373835d7030354f6210c5dab62c3e

Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

[HowTo] Fix a failing AUR package build - Manjaro Linux Forum
A file is missing in order to build the package. Check all needed files have been downloaded and try again. If the previous...
Read more >
Failure on build() when installing packages from the AUR
AUR is not packages but build scripts for custom packages. If a software doesn't compile or a script fails - there is a...
Read more >
Unable to build/install gcc9 - AUR - Manjaro Linux Forum
I am new to Manjaro and intend to install gcc9. I know version 9 is terribly outdated, but I have some code that...
Read more >
What Happens To Packages That Fail To Build? - AUR
I tried searching sudo pacman -Ss librewolf in the terminal if anything would come up but nothing does. If these packages are still...
Read more >
AUR build failing - Manjaro Linux Forum
Can anyone tell me what has gone wrong or what is missing here? I am trying to install Dlume (which I have installed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found