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

Build errors makefiles WSL in llvm #72

Open
obiwanjacobi opened this issue Dec 22, 2019 · 2 comments
Open

Build errors makefiles WSL in llvm #72

obiwanjacobi opened this issue Dec 22, 2019 · 2 comments

Comments

@obiwanjacobi
Copy link

obiwanjacobi commented Dec 22, 2019

I got build errors using makefiles under WSL.
[disclaimer] I'm a noob trying this for the first time.

My Command Line:

cmake -G "Unix Makefiles" ../llvm
make -j 10

Result - fine up to 98%:

collect2: fatal error: ld terminated with signal 11 [Segmentation fault], core dumped
compilation terminated.
tools/bugpoint/CMakeFiles/bugpoint.dir/build.make:421: recipe for target 'bin/bugpoint' failed
make[2]: *** [bin/bugpoint] Error 1
make[2]: *** Deleting file 'bin/bugpoint'
CMakeFiles/Makefile2:21872: recipe for target 'tools/bugpoint/CMakeFiles/bugpoint.dir/all' failed
make[1]: *** [tools/bugpoint/CMakeFiles/bugpoint.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: BFD (GNU Binutils for Ubuntu) 2.30 internal error, aborting at ../../bfd/merge.c:908 in _bfd_merged_section_offset

/usr/bin/ld: Please report this bug.

collect2: error: ld returned 1 exit status
tools/llvm-lto/CMakeFiles/llvm-lto.dir/build.make:213: recipe for target 'bin/llvm-lto' failed
make[2]: *** [bin/llvm-lto] Error 1
make[2]: *** Deleting file 'bin/llvm-lto'
CMakeFiles/Makefile2:21552: recipe for target 'tools/llvm-lto/CMakeFiles/llvm-lto.dir/all' failed
make[1]: *** [tools/llvm-lto/CMakeFiles/llvm-lto.dir/all] Error 2
[ 98%] Built target lli
[ 98%] Built target llvm-jitlink
[ 98%] Built target llvm-c-test
[ 98%] Built target dsymutil
[ 98%] Built target llvm-dwp
[ 98%] Built target llvm-isel-fuzzer
[ 98%] Built target llc
[ 98%] Built target LTO
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

Not sure were core dumps end up...

@obiwanjacobi obiwanjacobi changed the title Build errors makefiles WSL Build errors makefiles WSL in llvm Dec 22, 2019
@sylvestre
Copy link
Collaborator

sylvestre commented Dec 22, 2019 via email

Bigcheese pushed a commit to Bigcheese/llvm-project that referenced this issue Feb 27, 2020
@jaredwy
Copy link
Contributor

jaredwy commented Aug 31, 2022

I also hit this on wsl2. Same linker errors looks like in the same targets as well. I found that dropping -j to around 2 seems to fix it but is very slow.

I haven't tried using lld yet.

jamesmth pushed a commit to jamesmth/llvm-project that referenced this issue Dec 5, 2022
searlmc1 referenced this issue in ROCm/llvm-project Aug 23, 2023
SWDEV-398680 - HIPCC missing permissions in Install target.
zhanyi22333 pushed a commit to zhanyi22333/llvm-project that referenced this issue Mar 7, 2024
…`. (llvm#72)

* [LLVM][XTHeadVector] Define intrinsic functions for vmerge and vmv.v.{x,i}.

* [LLVM][XTHeadVector] Define pseudos and pats for vmerge.

* [LLVM][XTHeadVector] Add test cases for vmerge.

* [LLVM][XTHeadVector] Define policy-free pseudo nodes for vmv.v.{v/x/i}. Define pats for vmv.v.v.

* [LLVM][XTHeadVector] Define ISD node for vmv.v.x and map it to pseudo nodes.

* [LLVM][XTHeadVector] Select vmv.v.x using logic shared with its 1.0 version.

* [LLVM][XTHeadVector] Don't add policy for xthead pseudo nodes.

* [LLVM][XTHeadVector] Add test cases for vmv.v.x.

* [LLVM][XTHeadVector] Update test cases since now pseudo vmv do not accept policy fields any more.

* [NFC][XTHeadVector] Update readme.
boomanaiden154 added a commit to boomanaiden154/llvm-project that referenced this issue Mar 22, 2024
This patch makes the exegesis annotator error out if we try to map the
zero address as we are not able to do this with mmap. To solve this
while still being able to annotate the blocks, we probably need some way
to adjust the register/memory values.
RevySR pushed a commit to revyos/llvm-project that referenced this issue Apr 3, 2024
…`. (llvm#72)

* [LLVM][XTHeadVector] Define intrinsic functions for vmerge and vmv.v.{x,i}.

* [LLVM][XTHeadVector] Define pseudos and pats for vmerge.

* [LLVM][XTHeadVector] Add test cases for vmerge.

* [LLVM][XTHeadVector] Define policy-free pseudo nodes for vmv.v.{v/x/i}. Define pats for vmv.v.v.

* [LLVM][XTHeadVector] Define ISD node for vmv.v.x and map it to pseudo nodes.

* [LLVM][XTHeadVector] Select vmv.v.x using logic shared with its 1.0 version.

* [LLVM][XTHeadVector] Don't add policy for xthead pseudo nodes.

* [LLVM][XTHeadVector] Add test cases for vmv.v.x.

* [LLVM][XTHeadVector] Update test cases since now pseudo vmv do not accept policy fields any more.

* [NFC][XTHeadVector] Update readme.
RevySR pushed a commit to revyos/llvm-project that referenced this issue Jul 27, 2024
…`. (llvm#72)

* [LLVM][XTHeadVector] Define intrinsic functions for vmerge and vmv.v.{x,i}.

* [LLVM][XTHeadVector] Define pseudos and pats for vmerge.

* [LLVM][XTHeadVector] Add test cases for vmerge.

* [LLVM][XTHeadVector] Define policy-free pseudo nodes for vmv.v.{v/x/i}. Define pats for vmv.v.v.

* [LLVM][XTHeadVector] Define ISD node for vmv.v.x and map it to pseudo nodes.

* [LLVM][XTHeadVector] Select vmv.v.x using logic shared with its 1.0 version.

* [LLVM][XTHeadVector] Don't add policy for xthead pseudo nodes.

* [LLVM][XTHeadVector] Add test cases for vmv.v.x.

* [LLVM][XTHeadVector] Update test cases since now pseudo vmv do not accept policy fields any more.

* [NFC][XTHeadVector] Update readme.
alexanderguy pushed a commit to alexanderguy/llvm-project that referenced this issue Sep 25, 2024
Patch anza-xyz#54 originally
reworked the SBF textual assembly syntax to match the rbpf-style syntax.

In order to allow some soak-time, the above patch temporarily supported
both the old and new syntax (selectable on the command line or via bespoke
assembler directives). A little over a year has passed since then,
and all is well with the new syntax, testing, and so forth.

The current patch now removes all existing remnants of the old syntax--
including some of the target-independent changes made in the original
patch to support both (e.g., a minor TableGen change for variants, some
additional command line selector flags, etc).

All related unit tests have been updated accordingly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants