Comments (6)
Hello again,
I've tracked it down a bit more.
command:
$ ./install-clang -j 2 /media/xubuntu/tr/llvm # ie clang-3.5
check:
$ /media/xubuntu/tr/llvm/src/llvm/build-stage1/./bin/clang --version
Target: i386-pc-linux-gnu # <--- obviously the wrong target was built
install-clang sets LLVM_TARGETS_TO_BUILD=host, which should work according the
documentation. To be on the safe side, I've also tried to set it fixed
to the value X86. The line:
CMAKE_common="-DBUILD_SHARED_LIBS=on -DLLVM_TARGETS_TO_BUILD=X86"
=> same result.
Excerpts from the .log:
=== Building LLVM/clang, stage 0 ...
-- Target triple: i686-pc-linux-gnu
-- Targeting X86
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
I have installed them! # aptitude install libxml libxml2-dev
=== Building LLVM/clang, stage 1 ...
-- Target triple: i686-pc-linux-gnu
-- Native target architecture is X86
-- Targeting X86
CMake Warning at projects/libcxxabi/CMakeLists.txt:252 (message):
The libc++abi tests are currently only valid when LIBCXXABI_ENABLE_SHARED
is on, no check target will be available!
...
[ 15%] Built target RTSanitizerCommon.i386 # <-- first hint, that 386 is generated
(
I've given -m a try (for clang 3.6), It didn't succeed:
$ ./install-clang -m -j 2 /media/xubuntu/tr/llvm
Determining if the include file malloc/malloc.h exists failed with the following output:
/media/xubuntu/tr/llvm/src/llvm/build-stage1/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:10: fatal error: 'malloc/malloc.h' file not found
)
Maybe its a known problem in the clang-build-process, but I do not know where to search for it.
from install-clang.
For information:
Ubuntu 14.04, aptitude install clang-3.5
-> also: Target: i386-pc-linux-gnu
-> also: clang: error: unsupported option '-fsanitize=thread' for target 'i386-pc-linux-gnu'
Conclusion: I cannot do build-stages > 0 on this system.
from install-clang.
I have the same issue with the following config:
- Debian 7.8
- Building LLVM version 3.5.1 including Clang and LibCxx
I am, curiously enough, able to build successfully if I don't include LibCxx in the build.
from install-clang.
Oops, sorry, ignore my comment; this is an LLVM issue, not install-clang
issue (I am not using install-clang
).
from install-clang.
This also happens on ARMv7. Very frustrating, indeed.
from install-clang.
I've updated the install-clang script for 6.0. closing old tickets, feel free to reopen if still relevant.
from install-clang.
Related Issues (12)
- Incompatible format of rpath passed to ld on OSX HOT 1
- patches are applied twice if cmake / subversion not installed and update flag given HOT 1
- Failed patch application causes install script to fail HOT 1
- Patch clang on macOS 10.14 to search system headers in new sys root
- Runtime dynamic linker error when executing compiled program
- panel.h not found HOT 2
- Linking sometimes fails after update, because of outdated Makefile.llvmbuild HOT 1
- docker build failed: cannot find -lcxxabi_shared HOT 1
- Build fails due to sanitizer compilation error HOT 1
- Add option for installing clang's extra-tools HOT 2
- Patch needed for llvm/projects/CMakeLists.txt HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from install-clang.