[Lldb-commits] [PATCH] D67583: Fix swig python package path

Hal Gentz via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 18 21:04:05 PDT 2019


ZeGentzy added a comment.

That's odd....

> Can you share your full compile command and environment?

I'm using this PKGBUILD: https://github.com/ZeGentzy/aur-buildscripts/blob/master/llvm-git-gentz/PKGBUILD#L376

The commands being run are these:

  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
  export CFLAGS="$CFLAGS -m32"
  export CXXFLAGS="$CXXFLAGS -m32"
  export LDFLAGS="$LDFLAGS -m32"
  
  cmake /build/llvm-git-gentz/src/llvm-project32/llvm -G Ninja \
      -D CMAKE_BUILD_TYPE="Release" \
      -D LLVM_DEFAULT_TARGET_TRIPLE="i686-pc-linux-gnu" \
      -D LLVM_LIBDIR_SUFFIX=32 \
      -D LLVM_TARGET_ARCH:STRING=i686 \
      -D LLVM_CONFIG="/usr/bin/llvm-config32" \
      -D COMPILER_RT_BUILD_LIBFUZZER=OFF \
      -D LLVM_ENABLE_BINDINGS=OFF \
      -D PYTHON_EXECUTABLE=/usr/bin/python-32 \
      -D CMAKE_CXX_COMPILER="/usr/bin/clang++" \
      -D CMAKE_C_COMPILER="/usr/bin/clang" \
      -D LLVM_USE_LINKER="/usr/bin/ld.lld" \
      -D CMAKE_RANLIB="/usr/bin/llvm-ranlib" \
      -D CMAKE_AR="/usr/bin/llvm-ar" \
      -D LLVM_ENABLE_LTO=OFF \
      -D LLVM_BUILD_LLVM_DYLIB=ON \
      -D LLVM_LINK_LLVM_DYLIB=ON \
      -D LLVM_ENABLE_PROJECTS="clang;compiler-rt;lld;lldb;clang-tools-extra" \
      -D LLVM_APPEND_VC_REV=ON \
      -D LLVM_HOST_TRIPLE="x86_64-pc-linux-gnu" \
      -D LLVM_ENABLE_RTTI=ON \
      -D LLVM_ENABLE_FFI=ON \
      -D FFI_INCLUDE_DIR="/usr/lib32/libffi-3.2.1/include" \
      -D LLVM_BUILD_TESTS=ON \
      -D LLVM_VERSION_SUFFIX= \
      -D CMAKE_POLICY_DEFAULT_CMP0075=NEW \
      -D LLVM_OPTIMIZED_TABLEGEN=ON \
      -D LLVM_CCACHE_BUILD=ON \
      -D CMAKE_POLICY_DEFAULT_CMP0075=NEW \
      -D CMAKE_C_FLAGS="-march=native -O3 -pipe -ffast-math -funroll-loops -fstack-protector-strong -fno-plt -mno-xop -mno-fma4 -mno-tbm -m32" \
      -D CMAKE_CXX_FLAGS="-march=native -O3 -pipe -ffast-math -funroll-loops -fstack-protector-strong -fno-plt -mno-xop -mno-fma4 -mno-tbm -m32" \
      -D LLVM_TARGETS_TO_BUILD="AMDGPU;X86" \
      -D LLVM_BINUTILS_INCDIR=/usr/include \
      -D LLVM_EXTERNAL_LIT="/usr/bin/lit" \
      -D LLVM_BUILD_DOCS=OFF \
      -D LLVM_INCLUDE_DOCS=OFF \
      -D LLVM_ENABLE_SPHINX=OFF \
      -D LLVM_ENABLE_DOXYGEN=OFF \
      -D LLVM_INSTALL_UTILS=ON \
      -D LLVM_PARALLEL_LINK_JOBS=1 \
      -D CMAKE_INSTALL_PREFIX="/opt/llvm32"
  ninja -j4 all
  DESTDIR=/build/llvm-git-gentz/pkg/lib32-llvm-git-gentz ninja -j4 install

A lot... err, most... of the things I cargo culted from other sources.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67583/new/

https://reviews.llvm.org/D67583





More information about the lldb-commits mailing list