Skip to content

Instantly share code, notes, and snippets.

@kohlerjl
Created November 22, 2023 04:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kohlerjl/d62ffddc7c5e82c24f18a2950c74cadf to your computer and use it in GitHub Desktop.
Save kohlerjl/d62ffddc7c5e82c24f18a2950c74cadf to your computer and use it in GitHub Desktop.
c++utilities build error
==> Making package: c++utilities 5.24.2-1 (Tue 21 Nov 2023 08:11:47 PM PST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading c++utilities-5.24.2.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 187k 100 187k 0 0 261k 0 --:--:-- --:--:-- --:--:-- 261k
==> Validating source files with sha256sums...
c++utilities-5.24.2.tar.gz ... Passed
==> Extracting sources...
-> Extracting c++utilities-5.24.2.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - 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/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for iconv
-- Looking for iconv - found
-- Using iconv from the standard library for target c++utilities.
-- Using __gnu_cxx::stdio_filebuf for NativeFileStream
-- Performing Test STD_FILESYSTEM_TEST_0
-- Performing Test STD_FILESYSTEM_TEST_0 - Success
-- Linking c++utilities against special library for std::filesystem support is not required.
-- Configuring project c++utilities
-- Using default CXX11 ABI of libstdc++ (not forcing old CX11 ABI).
-- Using template for global.h.in from own (c++utilities) source directory.
-- Using template for version.h.in from own (c++utilities) source directory.
-- Using template for Config.cmake.in from own (c++utilities) source directory.
-- Using template for template.pc.in from own (c++utilities) source directory.
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1")
-- Checking for one of the modules 'cppunit>=1.13.0'
-- Linking test target against c++utilities
-- Using template for doxygen.in from own (c++utilities) source directory.
CMake Warning at cmake/modules/Doxygen.cmake:32 (message):
Doxygen not found, unable to add target for generating API documentation
for c++utilities
Call Stack (most recent call first):
CMakeLists.txt:235 (include)
-- Using template for config.h.in from own (c++utilities) source directory.
-- Configuring done (2.1s)
-- Generating done (0.0s)
-- Build files have been written to: /home/jkohler/build/c++utilities/src/cpp-utilities-5.24.2
[21/23] Building CXX object CMakeFiles/c++utilities.dir/tests/testutils.cpp.o
/home/jkohler/build/c++utilities/src/cpp-utilities-5.24.2/tests/testutils.cpp: In function ‘int CppUtilities::execAppInternal(const char*, const char* const*, std::string&, std::string&, bool, int, const std::string&, bool)’:
/home/jkohler/build/c++utilities/src/cpp-utilities-5.24.2/tests/testutils.cpp:480:9: warning: ignoring return value of ‘int pipe(int*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
480 | pipe(coutPipes);
| ~~~~^~~~~~~~~~~
/home/jkohler/build/c++utilities/src/cpp-utilities-5.24.2/tests/testutils.cpp:481:9: warning: ignoring return value of ‘int pipe(int*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
481 | pipe(cerrPipes);
| ~~~~^~~~~~~~~~~
[23/23] Creating library symlink libc++utilities.so.5 libc++utilities.so
==> Starting check()...
[10/11] cd /home/jkohler/build/c++utilities/src/cpp-utilities-5.24.2 && /usr/bin/ctest -V
UpdateCTestConfiguration from :/home/jkohler/build/c++utilities/src/cpp-utilities-5.24.2/DartConfiguration.tcl
Parse Config file:/home/jkohler/build/c++utilities/src/cpp-utilities-5.24.2/DartConfiguration.tcl
UpdateCTestConfiguration from :/home/jkohler/build/c++utilities/src/cpp-utilities-5.24.2/DartConfiguration.tcl
Parse Config file:/home/jkohler/build/c++utilities/src/cpp-utilities-5.24.2/DartConfiguration.tcl
Test project /home/jkohler/build/c++utilities/src/cpp-utilities-5.24.2
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
test 1
Start 1: c++utilities_tidy_test
1: Test command: /usr/bin/clang-format "-output-replacements-xml" "-style=file" "application/argumentparser.h" "application/commandlineutils.h" "application/fakeqtconfigarguments.h" "application/global.h" "chrono/datetime.h" "chrono/period.h" "chrono/timespan.h" "chrono/format.h" "conversion/binaryconversion.h" "conversion/binaryconversionprivate.h" "conversion/conversionexception.h" "conversion/stringconversion.h" "conversion/stringbuilder.h" "io/ansiescapecodes.h" "io/binaryreader.h" "io/binarywriter.h" "io/bitreader.h" "io/buffersearch.h" "io/copy.h" "io/inifile.h" "io/path.h" "io/nativefilestream.h" "io/misc.h" "misc/flagenumclass.h" "misc/math.h" "misc/multiarray.h" "misc/parseerror.h" "misc/traits.h" "misc/levenshtein.h" "tests/testutils.h" "tests/cppunit.h" "tests/outputcheck.h" "application/argumentparserprivate.h" "application/argumentparser.cpp" "application/commandlineutils.cpp" "application/fakeqtconfigarguments.cpp" "chrono/datetime.cpp" "chrono/period.cpp" "chrono/timespan.cpp" "conversion/conversionexception.cpp" "conversion/stringconversion.cpp" "io/ansiescapecodes.cpp" "io/binaryreader.cpp" "io/binarywriter.cpp" "io/bitreader.cpp" "io/buffersearch.cpp" "io/inifile.cpp" "io/path.cpp" "io/nativefilestream.cpp" "io/misc.cpp" "misc/math.cpp" "misc/parseerror.cpp" "misc/levenshtein.cpp" "tests/testutils.cpp" "tests/cppunit.cpp" "tests/conversiontests.cpp" "tests/iotests.cpp" "tests/chronotests.cpp" "tests/argumentparsertests.cpp" "tests/traitstests.cpp" "tests/mathtests.cpp" "tests/misctests.cpp" "cmake/templates/cli-wrapper.cpp"
1: Working Directory: /home/jkohler/build/c++utilities/src/cpp-utilities-5.24.2
1: Test timeout computed to be: 1500
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: <replacement offset='9042' length='1'></replacement>
1: <replacement offset='9044' length='1'></replacement>
1: <replacement offset='9230' length='1'></replacement>
1: <replacement offset='9232' length='1'></replacement>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1: <?xml version='1.0'?>
1: <replacements xml:space='preserve' incomplete_format='false'>
1: </replacements>
1/2 Test #1: c++utilities_tidy_test ...........***Failed Error regular expression found in output. Regex=[<replacement.*>.*</replacement>] 0.70 sec
test 2
Start 2: c++utilities_run_tests
2: Test command: /home/jkohler/build/c++utilities/src/cpp-utilities-5.24.2/c++utilities_tests "-p" "/home/jkohler/build/c++utilities/src/cpp-utilities-5.24.2/testfiles" "-w" "/home/jkohler/build/c++utilities/src/cpp-utilities-5.24.2/testworkingdir"
2: Working Directory: /home/jkohler/build/c++utilities/src/cpp-utilities-5.24.2
2: Test timeout computed to be: 1500
2: /home/jkohler/build/c++utilities/src/cpp-utilities-5.24.2/testfiles/
2: /home/jkohler/build/c++utilities/src/cpp-utilities-5.24.2/testfiles/
2: ./testfiles/
2: Directory used to store working copies:
2: /home/jkohler/build/c++utilities/src/cpp-utilities-5.24.2/testworkingdir/
2: Executing test cases ...
2: ...................
2: output for formatting with ANSI escape codes:
2: Error: some error
2: Warning: some warning
2: Info: some info
2: ==> ERROR: Arch-style error
2: ==> WARNING: Arch-style warning
2: Arch-style message
2: ==> Arch-style success
2: -> Arch-style sub-message
2: blue, blinking text on red background
2: ---------------------------------------------
2: ........................
2:
2:
2: OK (43 tests)
2:
2:
2: Tests successful
2/2 Test #2: c++utilities_run_tests ........... Passed 0.01 sec
50% tests passed, 1 tests failed out of 2
Total Test time (real) = 0.72 sec
The following tests FAILED:
1 - c++utilities_tidy_test (Failed)
Errors while running CTest
Output from these tests are in: /home/jkohler/build/c++utilities/src/cpp-utilities-5.24.2/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
FAILED: CMakeFiles/check /home/jkohler/build/c++utilities/src/cpp-utilities-5.24.2/CMakeFiles/check
cd /home/jkohler/build/c++utilities/src/cpp-utilities-5.24.2 && /usr/bin/ctest -V
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in check().
Aborting...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment