Git Product home page Git Product logo

Comments (6)

RalfHain avatar RalfHain commented on June 16, 2024

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.

RalfHain avatar RalfHain commented on June 16, 2024

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.

BatmanAoD avatar BatmanAoD commented on June 16, 2024

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.

BatmanAoD avatar BatmanAoD commented on June 16, 2024

Oops, sorry, ignore my comment; this is an LLVM issue, not install-clang issue (I am not using install-clang).

from install-clang.

sneakernets avatar sneakernets commented on June 16, 2024

This also happens on ARMv7. Very frustrating, indeed.

from install-clang.

rsmmr avatar rsmmr commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.