[MacPorts] #69299: postgresql-jdbc: Error: Failed to build postgresql-jdbc: command execution failed

MacPorts noreply at macports.org
Wed Feb 7 14:44:49 UTC 2024


#69299: postgresql-jdbc: Error: Failed to build postgresql-jdbc: command execution
failed
----------------------+--------------------
  Reporter:  minfrin  |      Owner:  (none)
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:
Resolution:           |   Keywords:
      Port:           |
----------------------+--------------------

Comment (by minfrin):

 {{{
 Little-Net-8671:httpd-trunk8 minfrin$ cat
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/main.log
 version:1
 :debug:main Starting logging for postgresql-jdbc @42.2.19_0
 :debug:sysinfo macOS 13.6.3 (darwin/22.6.0) arch i386
 :debug:sysinfo MacPorts 2.8.1
 :debug:sysinfo Xcode none, CLT 15.1.0.0.1.1700200546
 :debug:sysinfo SDK 13
 :debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 13.0
 :debug:main Fetching postgresql-jdbc-42.2.19_0.darwin_22.noarch.tbz2
 archive size
 :msg:main --->  Computing dependencies for postgresql-jdbc:info:main
 .:debug:main postgresql-jdbc has no conflicts
 :debug:main Searching for dependency: gradle
 :debug:main Didn't find receipt, going to depspec regex for: gradle
 :debug:main Changing to port directory:
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/devel/gradle
 :debug:main OS darwin/22.6.0 (macOS 13.6.3) arch i386
 :debug:main Sourcing PortGroup java 1.0 from
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/java-1.0.tcl
 :debug:main universal_variant is false, so not adding the default
 universal variant
 :debug:main Running callback
 portconfigure::add_automatic_compiler_dependencies
 :debug:main Finished running callback
 portconfigure::add_automatic_compiler_dependencies
 :debug:main Running callback
 portbuild::add_automatic_buildsystem_dependencies
 :debug:main Finished running callback
 portbuild::add_automatic_buildsystem_dependencies
 :debug:main Running callback portstartupitem::add_notes
 :debug:main Finished running callback portstartupitem::add_notes
 :debug:main Running callback java::java_set_env
 :debug:main java-portgroup: Trying to find JVM version: 1.8+
 :debug:main java-portgroup: Detected JVMs: 8
 /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home 18
 /Library/Java/JavaVirtualMachines/jdk-18.0.1.1.jdk/Contents/Home 11
 /Library/Java/JavaVirtualMachines/jdk-11.0.5.jdk/Contents/Home
 :debug:main java-portgroup: Discovered matching JAVA_HOME:
 /Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home
 :debug:main Finished running callback java::java_set_env
 :info:main .:debug:main gradle has no conflicts
 :debug:main Fetching gradle-8.4_0.darwin_any.noarch.tbz2 archive size
 :debug:main Found Dependency: path: /usr/bin filename: unzip regex:
 ^unzip$
 :debug:main Searching for dependency: unzip
 :debug:main Didn't find receipt, going to depspec regex for: unzip
 :debug:main Found Dependency: path: /usr/bin filename: unzip regex:
 ^unzip$
 :debug:main Executing org.macports.main (postgresql-jdbc)
 :debug:main dropping privileges: euid changed to 503, egid changed to 504.
 :debug:archivefetch archivefetch phase started at Wed Feb  7 14:31:09 GMT
 2024
 :msg:archivefetch --->  Fetching archive for postgresql-jdbc
 :debug:archivefetch Executing org.macports.archivefetch (postgresql-jdbc)
 :debug:archivefetch euid/egid changed to: 0/0
 :debug:archivefetch chowned /opt/local/var/macports/incoming to macports
 :debug:archivefetch euid/egid changed to: 503/504
 :info:archivefetch --->  postgresql-jdbc-42.2.19_0.darwin_22.noarch.tbz2
 doesn't seem to exist in /opt/local/var/macports/incoming/verified
 :msg:archivefetch --->  Attempting to fetch postgresql-
 jdbc-42.2.19_0.darwin_22.noarch.tbz2 from https://packages.macports.org
 /postgresql-jdbc
 :debug:archivefetch Fetching archive failed: The requested URL returned
 error: 404
 :msg:archivefetch --->  Attempting to fetch postgresql-
 jdbc-42.2.19_0.darwin_22.noarch.tbz2 from
 https://mse.uk.packages.macports.org/postgresql-jdbc
 :debug:archivefetch Fetching archive failed: The requested URL returned
 error: 404
 :msg:archivefetch --->  Attempting to fetch postgresql-
 jdbc-42.2.19_0.darwin_22.noarch.tbz2 from
 https://ema.uk.packages.macports.org/postgresql-jdbc
 :debug:archivefetch Fetching archive failed: SSL: no alternative
 certificate subject name matches target host name
 'ema.uk.packages.macports.org'
 :debug:archivefetch Privilege de-escalation not attempted as not running
 as root.
 :debug:fetch fetch phase started at Wed Feb  7 14:31:09 GMT 2024
 :notice:fetch --->  Fetching distfiles for postgresql-jdbc
 :debug:fetch elevating privileges for fetch: euid changed to 0, egid
 changed to 0.
 :debug:fetch dropping privileges: euid changed to 503, egid changed to
 504.
 :debug:fetch Executing proc-pre-org.macports.fetch-fetch-0
 :debug:fetch Executing org.macports.fetch (postgresql-jdbc)
 :info:fetch --->  postgresql-jdbc-42.2.19.src.tar.gz does not exist in
 /opt/local/var/macports/distfiles/postgresql-jdbc
 :notice:fetch --->  Attempting to fetch postgresql-jdbc-42.2.19.src.tar.gz
 from https://distfiles.macports.org/postgresql-jdbc
 :debug:fetch Privilege de-escalation not attempted as not running as root.
 :debug:checksum checksum phase started at Wed Feb  7 14:31:10 GMT 2024
 :notice:checksum --->  Verifying checksums for postgresql-jdbc
 :debug:checksum Executing org.macports.checksum (postgresql-jdbc)
 :info:checksum --->  Checksumming postgresql-jdbc-42.2.19.src.tar.gz
 :debug:checksum Calculated (rmd160) is
 881895379df659e0a1aa0700c9ed47ba51393f64
 :debug:checksum Correct (rmd160) checksum for postgresql-
 jdbc-42.2.19.src.tar.gz
 :debug:checksum Calculated (sha256) is
 d30257ed692703f73adc6136b204c39f33151a5076203649f52f786fccfd3a2c
 :debug:checksum Correct (sha256) checksum for postgresql-
 jdbc-42.2.19.src.tar.gz
 :debug:checksum Calculated (size) is 1440741
 :debug:checksum Correct (size) checksum for postgresql-
 jdbc-42.2.19.src.tar.gz
 :debug:checksum Privilege de-escalation not attempted as not running as
 root.
 :debug:extract extract phase started at Wed Feb  7 14:31:10 GMT 2024
 :notice:extract --->  Extracting postgresql-jdbc
 :debug:extract Executing org.macports.extract (postgresql-jdbc)
 :info:extract --->  Extracting postgresql-jdbc-42.2.19.src.tar.gz
 :debug:extract setting option extract.args to
 '/opt/local/var/macports/distfiles/postgresql-jdbc/postgresql-
 jdbc-42.2.19.src.tar.gz'
 :debug:extract Environment:
 :debug:extract CC_PRINT_OPTIONS='YES'
 :debug:extract
 CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/.CC_PRINT_OPTIONS'
 :debug:extract CPATH='/opt/local/include'
 :debug:extract DEVELOPER_DIR='/Library/Developer/CommandLineTools'
 :debug:extract LIBRARY_PATH='/opt/local/lib'
 :debug:extract MACOSX_DEPLOYMENT_TARGET='13.0'
 :debug:extract
 SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk'
 :info:extract Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles
 /postgresql-jdbc/postgresql-jdbc-42.2.19.src.tar.gz' | /usr/bin/tar -xf -
 :debug:extract system:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles
 /postgresql-jdbc/postgresql-jdbc-42.2.19.src.tar.gz' | /usr/bin/tar -xf -
 :debug:extract euid/egid changed to: 0/0
 :debug:extract chowned
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work to macports
 :debug:extract euid/egid changed to: 503/504
 :debug:extract Privilege de-escalation not attempted as not running as
 root.
 :debug:patch patch phase started at Wed Feb  7 14:31:10 GMT 2024
 :debug:patch Executing org.macports.patch (postgresql-jdbc)
 :debug:patch Privilege de-escalation not attempted as not running as root.
 :debug:configure configure phase started at Wed Feb  7 14:31:10 GMT 2024
 :notice:configure --->  Configuring postgresql-jdbc
 :debug:configure Preferred compilers: clang macports-clang-16 macports-
 clang-15 macports-clang-14 macports-clang-13 macports-clang-12 macports-
 clang-11 macports-clang-10 macports-clang-9.0 macports-gcc-13 macports-
 gcc-12 macports-gcc-11 macports-gcc-10
 :debug:configure Using compiler 'Xcode Clang'
 :debug:configure Executing org.macports.configure (postgresql-jdbc)
 :debug:configure Executing portconfigure::configure_finish
 :debug:configure Privilege de-escalation not attempted as not running as
 root.
 :debug:build build phase started at Wed Feb  7 14:31:10 GMT 2024
 :notice:build --->  Building postgresql-jdbc
 :debug:build Executing org.macports.build (postgresql-jdbc)
 :debug:build Environment:
 :debug:build CC_PRINT_OPTIONS='YES'
 :debug:build
 CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/.CC_PRINT_OPTIONS'
 :debug:build CPATH='/opt/local/include'
 :debug:build DEVELOPER_DIR='/Library/Developer/CommandLineTools'
 :debug:build
 JAVA_HOME='/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home'
 :debug:build LIBRARY_PATH='/opt/local/lib'
 :debug:build MACOSX_DEPLOYMENT_TARGET='13.0'
 :debug:build
 SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk'
 :info:build Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/postgresql-jdbc-42.2-19.src" && /opt/local/bin/gradle assemble
 --gradle-user-
 home=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/gradle --project-prop=pgjdbc.skip.jre6 --project-
 prop=pgjdbc.skip.jre7
 :debug:build system:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/postgresql-jdbc-42.2-19.src" && /opt/local/bin/gradle assemble
 --gradle-user-
 home=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/gradle --project-prop=pgjdbc.skip.jre6 --project-
 prop=pgjdbc.skip.jre7
 :info:build Welcome to Gradle 8.4!
 :info:build Here are the highlights of this release:
 :info:build  - Compiling and testing with Java 21
 :info:build  - Faster Java compilation on Windows
 :info:build  - Role focused dependency configurations creation
 :info:build For more details see https://docs.gradle.org/8.4/release-
 notes.html
 :info:build Starting a Gradle Daemon (subsequent builds will be faster)
 :info:build > Configure project :buildSrc
 :info:build e:
 file:///opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/postgresql-jdbc-42.2-19.src/buildSrc/build.gradle.kts:25:5:
 Unresolved reference: experimentalWarning
 :info:build e:
 file:///opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/postgresql-jdbc-42.2-19.src/buildSrc/build.gradle.kts:29:5:
 Unresolved reference: sourceCompatibility
 :info:build e:
 file:///opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/postgresql-jdbc-42.2-19.src/buildSrc/build.gradle.kts:30:5:
 Unresolved reference: targetCompatibility
 :info:build FAILURE: Build completed with 2 failures.
 :info:build 1: Task failed with an exception.
 :info:build -----------
 :info:build * Where:
 :info:build Build file
 '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/postgresql-jdbc-42.2-19.src/buildSrc/build.gradle.kts' line: 25
 :info:build * What went wrong:
 :info:build Script compilation errors:
 :info:build   Line 25:     experimentalWarning.set(false)
 :info:build                ^ Unresolved reference: experimentalWarning
 :info:build   Line 29:     sourceCompatibility = "unused"
 :info:build                ^ Unresolved reference: sourceCompatibility
 :info:build   Line 30:     targetCompatibility = "unused"
 :info:build                ^ Unresolved reference: targetCompatibility
 :info:build 3 errors
 :info:build * Try:
 :info:build > Run with --stacktrace option to get the stack trace.
 :info:build > Run with --info or --debug option to get more log output.
 :info:build > Get more help at https://help.gradle.org.
 :info:build
 ==============================================================================
 :info:build 2: Task failed with an exception.
 :info:build -----------
 :info:build * Where:
 :info:build Build file
 '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/postgresql-jdbc-42.2-19.src/buildSrc/build.gradle.kts' line: 25
 :info:build * What went wrong:
 :info:build Script compilation errors:
 :info:build   Line 25:     experimentalWarning.set(false)
 :info:build                ^ Unresolved reference: experimentalWarning
 :info:build   Line 29:     sourceCompatibility = "unused"
 :info:build                ^ Unresolved reference: sourceCompatibility
 :info:build   Line 30:     targetCompatibility = "unused"
 :info:build                ^ Unresolved reference: targetCompatibility
 :info:build 3 errors
 :info:build * Try:
 :info:build > Run with --stacktrace option to get the stack trace.
 :info:build > Run with --info or --debug option to get more log output.
 :info:build > Get more help at https://help.gradle.org.
 :info:build
 ==============================================================================
 :info:build BUILD FAILED in 1m 37s
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/postgresql-jdbc-42.2-19.src" && /opt/local/bin/gradle assemble
 --gradle-user-
 home=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/gradle --project-prop=pgjdbc.skip.jre6 --project-
 prop=pgjdbc.skip.jre7
 :info:build Exit code: 1
 :error:build Failed to build postgresql-jdbc: command execution failed
 :debug:build Error code: CHILDSTATUS 23649 1
 :debug:build Backtrace: command execution failed
 :debug:build     while executing
 :debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
 :debug:build     invoked from within
 :debug:build "command_exec -callback
 portprogress::target_progress_callback build"
 :debug:build     (procedure "portbuild::build_main" line 8)
 :debug:build     invoked from within
 :debug:build "$procedure $targetname"
 :error:build See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/main.log for details.

 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/69299#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list