Opened 8 months ago

Last modified 7 weeks ago

#68282 assigned defect

ghc-prebuilt configure: error: Failed to compile test program

Reported by: wyuenho (Jimmy Yuen Ho Wong) Owned by: essandess (Steve Smith)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: sonoma arm64 Cc:
Port: ghc-prebuilt

Description

--->  Fetching archive for ghc-prebuilt
--->  ghc-prebuilt-9.6.2_0.darwin_23.arm64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
--->  Attempting to fetch ghc-prebuilt-9.6.2_0.darwin_23.arm64.tbz2 from https://packages.macports.org/ghc-prebuilt
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   126    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Attempting to fetch ghc-prebuilt-9.6.2_0.darwin_23.arm64.tbz2 from https://ema.uk.packages.macports.org/ghc-prebuilt
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0--->  Attempting to fetch ghc-prebuilt-9.6.2_0.darwin_23.arm64.tbz2 from https://mse.uk.packages.macports.org/ghc-prebuilt
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   196    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Configuring ghc-prebuilt
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc-prebuilt/work/ghc-9.6.2" && ./configure --prefix=/opt/local 
checking build system type... aarch64-apple-darwin23.0.0
checking host system type... aarch64-apple-darwin23.0.0
checking target system type... aarch64-apple-darwin23.0.0
build platform inferred as: aarch64-apple-darwin
host platform inferred as: aarch64-apple-darwin
target platform inferred as: aarch64-apple-darwin
configure: GHC build : aarch64-apple-darwin
configure: GHC host : aarch64-apple-darwin
configure: GHC target : aarch64-apple-darwin
checking for path to top of build tree... /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc-prebuilt/work/ghc-9.6.2
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gsed... sed
checking for python3... /opt/local/bin/python3
checking for gfind... no
checking for find... /usr/bin/find
checking Xcode version... xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
not found (too old?)
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether ccache /usr/bin/clang accepts -g... yes
checking for ccache /usr/bin/clang option to enable C11 features... none needed
checking whether the compiler supports GNU C++... yes
checking whether ccache /usr/bin/clang++ accepts -g... yes
checking for ccache /usr/bin/clang++ option to enable C++11 features... none needed
checking how to run the C preprocessor... ccache /usr/bin/clang -E
checking for -ld.lld... no
checking for ld.lld... no
checking for -ld.gold... no
checking for ld.gold... no
checking for -ld... no
checking for ld... ld
ld: unknown option: --version
configure: unknown linker version 
configure: unable to convince 'ccache /usr/bin/clang' to use linker 'ld'
checking for -ld... no
checking for ld... ld
checking for ld.gold object merging bug (binutils 22266)... ld: unknown option: --version
checking whether ld is GNU ld... NO
./configure: line 7023: FP_PROG_LD_BUILD_ID: command not found
checking whether ld understands -no_compact_unwind... yes
checking whether ld understands -filelist... yes
checking for -strip... no
checking for strip... strip
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for llc-15... no
checking for llc-15.0... no
checking for llc15... no
checking for llc-14... no
checking for llc-14.0... no
checking for llc14... no
checking for llc-13... no
checking for llc-13.0... no
checking for llc13... no
checking for llc-12... no
checking for llc-12.0... no
checking for llc12... no
checking for llc-11... no
checking for llc-11.0... no
checking for llc11... no
checking for llc... no
checking for opt-15... no
checking for opt-15.0... no
checking for opt15... no
checking for opt-14... no
checking for opt-14.0... no
checking for opt14... no
checking for opt-13... no
checking for opt-13.0... no
checking for opt13... no
checking for opt-12... no
checking for opt-12.0... no
checking for opt12... no
checking for opt-11... no
checking for opt-11.0... no
checking for opt11... no
checking for opt... no
configure: $CC is not gcc; assuming it's a reasonably new C compiler
checking whether CC supports -no-pie... no
checking for extra options to pass gcc when compiling via C... 
checking Setting up CFLAGS, LDFLAGS, IGNORE_LINKER_LD_FLAGS and CPPFLAGS... done
checking Setting up CONF_CC_OPTS_STAGE0, CONF_GCC_LINKER_OPTS_STAGE0, CONF_LD_LINKER_OPTS_STAGE0 and CONF_CPP_OPTS_STAGE0... done
checking Setting up CONF_CC_OPTS_STAGE1, CONF_GCC_LINKER_OPTS_STAGE1, CONF_LD_LINKER_OPTS_STAGE1 and CONF_CPP_OPTS_STAGE1... done
checking Setting up CONF_CC_OPTS_STAGE2, CONF_GCC_LINKER_OPTS_STAGE2, CONF_LD_LINKER_OPTS_STAGE2 and CONF_CPP_OPTS_STAGE2... done
checking whether ld64 requires -no_fixup_chains... yes
checking whether ld64 requires -no_fixup_chains... yes
checking whether ld64 requires -no_fixup_chains... yes
checking whether ld64 requires -no_fixup_chains... yes
checking C++ standard library flavour... ./configure: line 8244: ccache /usr/bin/clang++: No such file or directory
configure: error: Failed to compile test program
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc-prebuilt/work/ghc-9.6.2" && ./configure --prefix=/opt/local 
Exit code: 1
Error: Failed to configure ghc-prebuilt: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc-prebuilt/work/ghc-9.6.2/config.log
Error: Failed to configure ghc-prebuilt: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_ghc/ghc-prebuilt/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port shellcheck failed

Attachments (1)

main.log (56.4 KB) - added by wyuenho (Jimmy Yuen Ho Wong) 8 months ago.

Download all attachments as: .zip

Change History (3)

comment:1 Changed 8 months ago by reneeotten (Renee Otten)

Owner: set to essandess
Status: newassigned

please attach the main.log file and don’t forgot to add maintainers to CC when opening a ticket.

Changed 8 months ago by wyuenho (Jimmy Yuen Ho Wong)

Attachment: main.log added

comment:2 Changed 7 weeks ago by kippesp (Paul Kippes)

Check this error:

checking Xcode version... xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
not found (too old?)

Incorrect application of command xcode-select -s /PATH/TO/XCODE/Contents/Developer as a potential cause. See also #69566 with identical failure but w/o the xcode-select error.

Note: See TracTickets for help on using tickets.