Bug 273064

Summary: sysutils/bareos-client: "/usr/bin/c++" is not able to compile a simple test program.
Product: Ports & Packages Reporter: O. Hartmann <ohartmann>
Component: Individual Port(s)Assignee: Jose Alonso Cardenas Marquez <acm>
Status: Closed Overcome By Events    
Severity: Affects Many People Flags: bugzilla: maintainer-feedback? (acm)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description O. Hartmann 2023-08-11 04:07:20 UTC
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---
Comment 1 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2023-09-19 18:11:34 UTC
Currently, bareos*-client ports are compiling without problems on FreeBSD 14.x. I'll close this PR

root@ifrit:~ # uname -a
FreeBSD ifrit 14.0-BETA2 FreeBSD 14.0-BETA2 #0 releng/14.0-n265096-dfd44f2f0143: Fri Sep 15 05:46:35 UTC 2023     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
root@ifrit:~ # pkg search bareos
bareos-client-22.0.3           Backup archiving recovery open sourced (client)
bareos-server-22.0.3           Backup archiving recovery open sourced (server)
bareos-traymonitor-22.0.3      Backup archiving recovery open sourced (traymonitor)
bareos-webui-22.0.3            PHP-Frontend to manage Bareos over the web
bareos19-client-19.2.13        Backup archiving recovery open sourced (client)
bareos19-server-19.2.13        Backup archiving recovery open sourced (server)
bareos19-traymonitor-19.2.13   Backup archiving recovery open sourced (traymonitor)
bareos19-webui-19.2.13         PHP-Frontend to manage Bareos over the web
bareos20-client-20.0.8         Backup archiving recovery open sourced (client)
bareos20-server-20.0.8         Backup archiving recovery open sourced (server)
bareos20-traymonitor-20.0.8    Backup archiving recovery open sourced (traymonitor)
bareos20-webui-20.0.8          PHP-Frontend to manage Bareos over the web
bareos21-client-21.1.7         Backup archiving recovery open sourced (client)
bareos21-server-21.1.7         Backup archiving recovery open sourced (server)
bareos21-traymonitor-21.1.7    Backup archiving recovery open sourced (traymonitor)
bareos21-webui-21.1.7          PHP-Frontend to manage Bareos over the web
py39-python-bareos-22.0.3      client library and tools for Bareos console access