Package Details: pstack 2.5.3-1

Git Clone URL: https://aur.archlinux.org/pstack.git (read-only, click to copy)
Package Base: pstack
Description: Print stack traces from running processes, or core files.
Upstream URL: https://github.com/peadar/pstack
Keywords: backtrace process stack trace
Licenses: BSD
Submitter: flipflop97
Maintainer: Rubo
Last Packager: Rubo
Votes: 3
Popularity: 0.000004
First Submitted: 2018-03-13 18:24 (UTC)
Last Updated: 2024-04-09 07:52 (UTC)

Dependencies (4)

Required by (0)

Sources (1)

Latest Comments

Rubo commented on 2023-12-05 20:09 (UTC)

@pspacek thanks, fixed.

pspacek commented on 2023-12-05 15:33 (UTC)

As of today the package does not build because of b2sum mismatch:

$ wget https://github.com/peadar/pstack/archive/v2.4.6.tar.gz $ b2sum v2.4.6.tar.gz dc7a9f91305741ec0a73baf4f3e30fcd3498613d621710e4f7475746b49b68687db6259eb4331e6111c7494b87e6e9d68cfa75d4dd47d1f224a2f1efa2590bde v2.4.6.tar.gz

The PKGBUILD currently says it should be b50c78c67605776e70ab27c52701152f31bbd6bc2c8a2e91a1efccb3ae9689c759c5941f34daed29c787218731f26d02e4e32b7b6540416cce2e85b3c44db27a.

redrum781 commented on 2023-09-14 08:36 (UTC)

No problem building the package with clang/clang++ with this version (2.4.2-1)

redrum781 commented on 2023-09-12 09:58 (UTC) (edited on 2023-09-12 10:40 (UTC) by redrum781)

Hi, I've added it but now the build stops while checking compiler:


-- Check for working C compiler: /usr/bin/clang - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
  The C compiler

    "/usr/bin/clang"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: '/home/username/share/pstack/src/pstack-2.4/build/CMakeFiles/CMakeScratch/TryCompile-ZmmK1w'

    Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/make -f Makefile cmTC_944d4/fast
    /usr/bin/make  -f CMakeFiles/cmTC_944d4.dir/build.make CMakeFiles/cmTC_944d4.dir/build
    make[1]: Entering directory '/home/username/share/pstack/src/pstack-2.4/build/CMakeFiles/CMakeScratch/TryCompile-ZmmK1w'
    Building C object CMakeFiles/cmTC_944d4.dir/testCCompiler.c.o
    /usr/bin/clang   -march=native -mtune=generic -O2 -pipe -fno-plt -std=c++17  -MD -MT CMakeFiles/cmTC_944d4.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_944d4.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_944d4.dir/testCCompiler.c.o -c /home/username/share/pstack/src/pstack-2.4/build/CMakeFiles/CMakeScratch/TryCompile-ZmmK1w/testCCompiler.c
    error: invalid argument '-std=c++17' not allowed with 'C'
    make[1]: *** [CMakeFiles/cmTC_944d4.dir/build.make:79: CMakeFiles/cmTC_944d4.dir/testCCompiler.c.o] Error 1
    make[1]: Leaving directory '/home/username/share/pstack/src/pstack-2.4/build/CMakeFiles/CMakeScratch/TryCompile-ZmmK1w'
    make: *** [Makefile:127: cmTC_944d4/fast] Error 2

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)

makepkg.conf:


export CC="clang"
export CXX="clang++"
CARCH="x86_64"
CHOST="x86_64-pc-linux-gnu"
CPPFLAGS="-D_FORTIFY_SOURCE=2"
CFLAGS="-march=native -mtune=generic -O2 -pipe -fno-plt -std=c++17"
CXXFLAGS="-march=native -mtune=generic -O2 -pipe -fno-plt -stdlib=libc++"

It compiles without issue if I set gcc as default C/C++ compiler.

Rubo commented on 2023-09-12 09:36 (UTC)

@redrum781 on my system it is built correctly, in a clean chroot, too. Check in your makepkg.conf files if you have -std=c++17 in $CFLAGS.

redrum781 commented on 2023-09-12 09:17 (UTC)

My knowledge is limited here, but if I set default CC to cc instead of clang in makepkg.conf then the package builds.

redrum781 commented on 2023-09-12 07:51 (UTC) (edited on 2023-09-12 07:52 (UTC) by redrum781)

Failed to build:


:: Starting the build:
==> Making package: pstack 2.4-1 
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading v2.4.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  124k    0  124k    0     0   161k      0 --:--:-- --:--:-- --:--:--  161k
==> Validating source files with b2sums...
    v2.4.tar.gz ... Passed
==> Extracting sources...
  -> Extracting v2.4.tar.gz with bsdtar
==> Starting build()...
-- The C compiler identification is Clang 16.0.6
-- The CXX compiler identification is Clang 16.0.6
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for lzma_auto_decoder in /usr/lib/liblzma.so
-- Looking for lzma_auto_decoder in /usr/lib/liblzma.so - found
-- Looking for lzma_easy_encoder in /usr/lib/liblzma.so
-- Looking for lzma_easy_encoder in /usr/lib/liblzma.so - found
-- Looking for lzma_lzma_preset in /usr/lib/liblzma.so
-- Looking for lzma_lzma_preset in /usr/lib/liblzma.so - found
-- Found LibLZMA: /usr/lib/liblzma.so (found version "5.4.4") 
-- Found ZLIB: /usr/lib/libz.so (found version "1.3")  
-- Found Git: /usr/bin/git (found version "2.42.0") 
-- git version information unavailable - defaulting to 'unknown'
-- Version: 2.4
CMake Warning at CMakeLists.txt:172 (message):
  no python2 support found


-- Configuring done (1.2s)
-- Generating done (0.0s)
-- Build files have been written to: /home/username/.cache/pikaur/build/pstack/src/pstack-2.4/build
[  3%] Building C object tests/CMakeFiles/basic-zlib.dir/basic.c.o
[  3%] Building CXX object tests/CMakeFiles/args.dir/args.cc.o
[ 11%] Building C object tests/CMakeFiles/basic-zlib-gnu.dir/basic.c.o
[ 11%] Building C object tests/CMakeFiles/testhelper.dir/abort.c.o
[ 11%] Building CXX object CMakeFiles/dwelf.dir/dwarf_die.cc.o
[ 11%] Building CXX object CMakeFiles/dwelf.dir/dwarf_cache.cc.o
[ 11%] Building CXX object CMakeFiles/dwelf.dir/dump.cc.o
[ 12%] Building C object CMakeFiles/hdbg.dir/heap.c.o
error: invalid argument '-std=c++17' not allowed with 'C'
make[2]: *** [tests/CMakeFiles/basic-zlib.dir/build.make:76: tests/CMakeFiles/basic-zlib.dir/basic.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:424: tests/CMakeFiles/basic-zlib.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
error: invalid argument '-std=c++17' not allowed with 'C'
error: invalid argument '-std=c++17' not allowed with 'C'
make[2]: *** [tests/CMakeFiles/testhelper.dir/build.make:76: tests/CMakeFiles/testhelper.dir/abort.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:320: tests/CMakeFiles/testhelper.dir/all] Error 2
make[2]: *** [tests/CMakeFiles/basic-zlib-gnu.dir/build.make:76: tests/CMakeFiles/basic-zlib-gnu.dir/basic.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:450: tests/CMakeFiles/basic-zlib-gnu.dir/all] Error 2
[ 14%] Building CXX object CMakeFiles/dwelf.dir/dwarf_frame.cc.o
[ 16%] Building CXX object CMakeFiles/dwelf.dir/dwarf_info.cc.o
[ 17%] Building CXX object CMakeFiles/dwelf.dir/dwarf_lines.cc.o
/home/username/.cache/pikaur/build/pstack/src/pstack-2.4/heap.c:25:13: warning: unknown pragma ignored [-Wunknown-pragmas]
#pragma GCC optimize("O0")
            ^
/home/username/.cache/pikaur/build/pstack/src/pstack-2.4/heap.c:339:34: warning: unknown attribute 'optimize' ignored [-Wunknown-attributes]
static void __attribute__((naked,optimize("O0")))
                                 ^~~~~~~~~~~~~~
2 warnings generated.
[ 19%] Linking C shared library libhdbg.so
[ 19%] Built target hdbg
[ 20%] Building CXX object CMakeFiles/dwelf.dir/dwarf_macros.cc.o
[ 22%] Linking CXX executable args
[ 22%] Built target args
[ 24%] Building CXX object CMakeFiles/dwelf.dir/dwarf_pubnames.cc.o
/home/username/.cache/pikaur/build/pstack/src/pstack-2.4/dwarf_lines.cc:132:18: warning: variable 'count' set but not used [-Wunused-but-set-variable]
        for (int count = 1;; count++) {
                 ^
/home/username/.cache/pikaur/build/pstack/src/pstack-2.4/dwarf_lines.cc:123:13: warning: variable 'count' set but not used [-Wunused-but-set-variable]
        int count;
            ^
[ 25%] Building CXX object CMakeFiles/dwelf.dir/dwarf_reader.cc.o
2 warnings generated.
[ 27%] Building CXX object CMakeFiles/dwelf.dir/dwarf_unit.cc.o
[ 29%] Building CXX object CMakeFiles/dwelf.dir/elf.cc.o
[ 30%] Building CXX object CMakeFiles/dwelf.dir/flags.cc.o
[ 32%] Building CXX object CMakeFiles/dwelf.dir/global.cc.o
[ 33%] Building CXX object CMakeFiles/dwelf.dir/reader.cc.o
[ 35%] Building CXX object CMakeFiles/dwelf.dir/fs.cc.o
[ 37%] Building CXX object CMakeFiles/dwelf.dir/inflate.cc.o
[ 38%] Building CXX object CMakeFiles/dwelf.dir/lzma.cc.o
/home/username/.cache/pikaur/build/pstack/src/pstack-2.4/reader.cc:120:16: warning: unqualified call to 'std::move' [-Wunqualified-std-cast-call]
    : upstream(move(upstream_))
               ^
               std::
1 warning generated.
[ 40%] Linking CXX shared library libdwelf.so
[ 40%] Built target dwelf
make: *** [Makefile:146: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...