Intel build fails with git pull from 20161009

  • Hello...

    I've pulled the latest changes from git today to build a generix x86_64 image on a Debian 8 x86_64 box...but the build fails with:

    Code
    [ 42%] Linking C static library libz.a
    Error running link command: No such file or directory
    CMakeFiles/zlibstatic.dir/build.make:458: recipe for target 'libz.a' failed
    make[3]: *** [libz.a] Error 2

    But "link" is installed under /usr/bin/link...

  • It's not failing to run a command named link, but the linker as in the above "Linking C static library libz.a". That would be either a gcc or ld command, perhaps there's other hints in the full error output or in the build directory for zlib.

  • Did a make clean and after that I get:

    Code
    [ 12%] Building AttributesCompatFunc.inc...
    ../../NATIVE/bin/llvm-tblgen: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ../../NATIVE/bin/llvm-tblgen)
    lib/IR/CMakeFiles/AttributeCompatFuncTableGen.dir/build.make:88: recipe for target 'lib/IR/AttributesCompatFunc.inc.tmp' failed
    make[3]: *** [lib/IR/AttributesCompatFunc.inc.tmp] Error 1

    Is there no "./configure" like option before the build?

  • Looks like llvm-tblgen is built against the host libstdc++, but when it runs it's trying to use Debian's libstdc++. Possibly related to this commit. Solution could be to add the host librar path to LD_LIBRARY_PATH when running llvm-tblgen.

  • Did a fresh clone..but fails at the same stage on Debian 8...

    Trying now with the LLVM build settings OFF...
    [hr]
    Nope..even with old package.mk from LLVM it fails at the same stage...

    Edited once, last by davorin (October 13, 2016 at 1:09 PM).