mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-17 06:32:36 +01:00
FAILED: source/Breakpoint/CMakeFiles/lldbBreakpoint.dir/BreakpointList.cpp.o /usr/bin/clang++ -DHAVE_ROUND -DLIBXML2_DEFINED -DLLDB_DISABLE_LIBEDIT -DLLDB_USE_BUILTIN_DEMANGLER -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Isource/Breakpoint -I../source/Breakpoint -Iinclude -I../include -I/usr/lib/llvm5/include -I/usr/include/python2.7 -I../tools/clang/include -I../clang/include -I/usr/include/libxml2 -I../source/. -Os -fomit-frame-pointer -pipe -fPIC -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -w -fcolor-diagnostics -ffunction-sections -fdata-sections -Wno-deprecated-declarations -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-deprecated-register -Wno-vla-extension -Os -fomit-frame-pointer -pipe -Os -DNDEBUG -fno-exceptions -MD -MT source/Breakpoint/CMakeFiles/lldbBreakpoint.dir/BreakpointList.cpp.o -MF source/Breakpoint/CMakeFiles/lldbBreakpoint.dir/BreakpointList.cpp.o.d -o source/Breakpoint/CMakeFiles/lldbBreakpoint.dir/BreakpointList.cpp.o -c ../source/Breakpoint/BreakpointList.cpp clang-5.0: error: unable to execute command: Segmentation fault clang-5.0: error: clang frontend command failed due to signal (use -v to see invocation) Alpine clang version 5.0.2 (tags/RELEASE_502/final) (based on LLVM 5.0.2) Target: armv6-alpine-linux-musleabihf Thread model: posix InstalledDir: /usr/bin clang-5.0: note: diagnostic msg: PLEASE submit a bug report to and include the crash backtrace, preprocessed source, and associated run script.
90 lines
2.6 KiB
Plaintext
90 lines
2.6 KiB
Plaintext
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
|
|
# Maintainer:
|
|
pkgname=lldb
|
|
# Note: Update together with llvm.
|
|
pkgver=5.0.2
|
|
pkgrel=0
|
|
_vermajor=${pkgver%%.*}
|
|
pkgdesc="Next generation, high-performance debugger"
|
|
arch="aarch64 armv7 s390x x86_64"
|
|
url="https://llvm.org/"
|
|
license="UOI-NCSA"
|
|
makedepends="
|
|
clang-dev>=$_vermajor
|
|
clang-static>=$_vermajor
|
|
cmake
|
|
doxygen
|
|
libedit-dev
|
|
libffi-dev
|
|
libxml2-dev
|
|
linux-headers
|
|
llvm-dev>=$_vermajor
|
|
llvm-static>=$_vermajor
|
|
ncurses-dev
|
|
ninja
|
|
python2-dev
|
|
swig
|
|
"
|
|
subpackages="$pkgname-dev py2-$pkgname:py2"
|
|
source="https://releases.llvm.org/$pkgver/$pkgname-$pkgver.src.tar.xz
|
|
musl-include-ptrace.aarch64.patch
|
|
cmake-include-ClangConfig.patch
|
|
fix-embedded_interpreter.patch
|
|
"
|
|
builddir="$srcdir/$pkgname-$pkgver.src"
|
|
|
|
build() {
|
|
mkdir -p "$builddir"/build
|
|
cd "$builddir"/build
|
|
|
|
CC=clang CXX=clang++ cmake .. -G Ninja -Wno-dev \
|
|
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
|
-DCMAKE_C_FLAGS_MINSIZEREL_INIT="$CFLAGS" \
|
|
-DCMAKE_CXX_FLAGS_MINSIZEREL_INIT="$CXXFLAGS" \
|
|
-DCMAKE_EXE_LINKER_FLAGS_MINSIZEREL_INIT="$LDFLAGS" \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DLLVM_LINK_LLVM_DYLIB=ON \
|
|
-DLLDB_DISABLE_LIBEDIT=ON \
|
|
-DPYTHON_EXECUTABLE=/usr/bin/python2
|
|
ninja
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"/build
|
|
|
|
DESTDIR="$pkgdir" ninja install
|
|
|
|
# XXX: I have no idea why this is installed to bindir. Moving it to
|
|
# libdir may break it, but I don't know how to test this.
|
|
mv "$pkgdir"/usr/bin/liblldb-intel-mpxtable.so "$pkgdir"/usr/lib/ || true
|
|
|
|
# Remove static libraries.
|
|
rm -f "$pkgdir"/usr/lib/*.a
|
|
}
|
|
|
|
py2() {
|
|
pkgdesc="Python module for LLDB"
|
|
depends="$pkgname py2-six"
|
|
replaces="py-lldb"
|
|
local sitedir="usr/lib/python2.7/site-packages"
|
|
|
|
mkdir -p "$subpkgdir"/$sitedir
|
|
cd "$subpkgdir"
|
|
|
|
mv "$pkgdir"/$sitedir ${sitedir%/*}/
|
|
rmdir "$pkgdir"/${sitedir%/*}
|
|
|
|
# Move binary lib to the module's directory.
|
|
mv $sitedir/readline.so $sitedir/lldb/
|
|
|
|
# Remove bundled module.
|
|
rm $sitedir/six.py
|
|
|
|
python2 -m compileall -fqd /$sitedir $sitedir
|
|
}
|
|
|
|
sha512sums="66eaaead60cc908ac061bedb4fac9cb96cecb7f4e5a79a51b6fa080e8f61f718b14e5f3581ead832b495bf10f055d4253d199236a0947dd22395ec80bf2afcf4 lldb-5.0.2.src.tar.xz
|
|
1613a1cb042edd430aba6b86e4971ebb01f7d2bc3f13a5a1264cb94da7612188897e9dcaaa9233be8af5c8f4bad013dd0cfb821e323cd73dfe07fe125869ccef musl-include-ptrace.aarch64.patch
|
|
18ea4cd3ef357299833e243613031ad67ff82f7c93c1f3fbe2cbce8876ffeec2d8ff2f94c8242ea540c2604ffbc023fb2678643fc9d3b64231f096054d186aef cmake-include-ClangConfig.patch
|
|
3c611fa5d45b6cb3f2925a31deeb8a34c295277aedcd55c22851d373897acd376fa92f4ef953c96a25c8dae4c93b6a88de0918550672141d324a3813d8283d48 fix-embedded_interpreter.patch"
|