[Bug 273064] sysutils/bareos-client: "/usr/bin/c++" is not able to compile a simple test program.

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 11 Aug 2023 04:07:20 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273064

            Bug ID: 273064
           Summary: sysutils/bareos-client: "/usr/bin/c++" is not able to
                    compile a simple test program.
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: acm@FreeBSD.org
          Reporter: ohartmann@walstatt.org
             Flags: maintainer-feedback?(acm@FreeBSD.org)
          Assignee: acm@FreeBSD.org

Host is recent CURRENT, the jail is CURRENT, too. Environment is poudriere, see
below.

[...]
===>  Performing out-of-source build
/bin/mkdir -p /wrkdirs/usr/ports/sysutils/bareos-client/work/.build
Entering /wrkdirs/usr/ports/sysutils/bareos-client/work/bareos-Release-22.0.3
-- Could NOT find Git (missing: GIT_EXECUTABLE) 
-- Using version information from
/wrkdirs/usr/ports/sysutils/bareos-client/work/bareos-Release-22.0.3/cmake/BareosVersion.cmake
BAREOS_NUMERIC_VERSION is 22.0.3
BAREOS_FULL_VERSION is 22.0.3
Entering
/wrkdirs/usr/ports/sysutils/bareos-client/work/bareos-Release-22.0.3/third-party
-- The CXX compiler identification is unknown
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - broken
CMake Error at /usr/local/share/cmake/Modules/CMakeTestCXXCompiler.cmake:60
(message):
  The C++ compiler

    "/usr/bin/c++"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir:
/wrkdirs/usr/ports/sysutils/bareos-client/work/.build/CMakeFiles/CMakeScratch/TryCompile-VMoUHp

    Run Build Command(s):/usr/local/bin/ninja -v cmTC_1d2a6 && [1/2]
/usr/bin/c++   -O2 -pipe -DMDB_DSYNC=O_SYNC -DMDB_USE_POSIX_SEM=1
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing 
-isystem /usr/local/include -o CMakeFiles/cmTC_1d2a6.dir/testCXXCompiler.cxx.o
-c
/wrkdirs/usr/ports/sysutils/bareos-client/work/.build/CMakeFiles/CMakeScratch/TryCompile-VMoUHp/testCXXCompiler.cxx
    FAILED: CMakeFiles/cmTC_1d2a6.dir/testCXXCompiler.cxx.o 
    /usr/bin/c++   -O2 -pipe -DMDB_DSYNC=O_SYNC -DMDB_USE_POSIX_SEM=1
-fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing 
-isystem /usr/local/include -o CMakeFiles/cmTC_1d2a6.dir/testCXXCompiler.cxx.o
-c
/wrkdirs/usr/ports/sysutils/bareos-client/work/.build/CMakeFiles/CMakeScratch/TryCompile-VMoUHp/testCXXCompiler.cxx
    error: environment variable 'SOURCE_DATE_EPOCH' ('') must be a non-negative
decimal integer <= 253402300799
    ninja: build stopped: subcommand failed.





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  third-party/CLI11/CMakeLists.txt:25 (project)


-- Configuring incomplete, errors occurred!
*** Error code 1

Stop.
make: stopped in /usr/ports/sysutils/bareos-client
=>> Cleaning up wrkdir
===>  Cleaning for bareos-client-22.0.3
build of sysutils/bareos-client | bareos-client-22.0.3 ended at Thu Aug 10
17:28:47 UTC 2023
build time: 00:00:22
!!! build failure encountered !!!

[...]

=>> Building sysutils/bareos-client
build started at Thu Aug 10 17:28:29 UTC 2023
port directory: /usr/ports/sysutils/bareos-client
package name: bareos-client-22.0.3
building for: FreeBSD pulverfass.dr-intern 14.0-CURRENT FreeBSD 14.0-CURRENT
1400094 amd64
maintained by: acm@FreeBSD.org
Makefile datestamp: -rw-r--r--  1 root wheel 452 Apr 13 15:49
/usr/ports/sysutils/bareos-client/Makefile
Ports top last git commit: 40e2e9a9f8
Ports top unclean checkout: no
Port dir last git commit: e106c20f31
Port dir unclean checkout: no
Poudriere version: poudriere-git-3.3.99.20220831
Host OSVERSION: 1400094
Jail OSVERSION: 1400094
Job Id: 01

---Begin Environment---
SHELL=/bin/sh
OSVERSION=1400094
UNAME_v=FreeBSD 14.0-CURRENT 1400094
UNAME_r=14.0-CURRENT
BLOCKSIZE=K
MAIL=/var/mail/root
MM_CHARSET=UTF-8
LANG=C.UTF-8
STATUS=1
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin
LOCALBASE=/usr/local
USER=root
POUDRIERE_NAME=poudriere-git
LIBEXECPREFIX=/usr/local/libexec/poudriere
POUDRIERE_VERSION=3.3.99.20220831
MAKEOBJDIRPREFIX=/pool/sources/CURRENT/obj/
MASTERMNT=/pool/poudriere/data/.m/headamd64-head-default/ref
LC_COLLATE=C
POUDRIERE_BUILD_TYPE=bulk
PACKAGE_BUILDING=yes
SAVED_TERM=screen
OUTPUT_REDIRECTED_STDERR=4
OUTPUT_REDIRECTED=1
PWD=/pool/poudriere/data/.m/headamd64-head-default/01/.p
OUTPUT_REDIRECTED_STDOUT=3
P_PORTS_FEATURES=FLAVORS SELECTED_OPTIONS
MASTERNAME=headamd64-head-default
SCRIPTPREFIX=/usr/local/share/poudriere
SCRIPTNAME=bulk.sh
OLDPWD=/pool/poudriere/data/.m/headamd64-head-default/ref/.p/pool
POUDRIERE_PKGNAME=poudriere-git-3.3.99.20220831
SCRIPTPATH=/usr/local/share/poudriere/bulk.sh
POUDRIEREPATH=/usr/local/bin/poudriere
---End Environment---

---Begin Poudriere Port Flags/Env---
PORT_FLAGS=
PKGENV=
FLAVOR=
DEPENDS_ARGS=
MAKE_ARGS=
---End Poudriere Port Flags/Env---

---Begin OPTIONS List---
===> The following configuration options are available for
bareos-client-22.0.3:
     NLS=on: Native Language Support
     PYTHON=off: Python bindings or support
     SCSICRYPTO=on: Build LTO AME crypto plugin
====> Build and/or install plugins
     GFAPI=off: GFAPI fd plugin support
====> Cryptographic library: you have to select exactly one of them
     OPENSSL=on: SSL/TLS support via OpenSSL
     GNUTLS=off: SSL/TLS support via GnuTLS
===> Use 'make config' to modify these settings
---End OPTIONS List---

-- 
You are receiving this mail because:
You are the assignee for the bug.