Skip to content

Build errors makefiles WSL in llvm #72

Open
@obiwanjacobi

Description

@obiwanjacobi

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...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions