Opened 4 years ago

Last modified 18 months ago

#59892 assigned defect

mozjs60 fail on configure

Reported by: vallon (Justin) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: FaradayLight (Faraday Light), mascguy (Christopher Nielsen)
Port: mozjs60

Description

Upgrading policykit, and it is installing mozjs60. mozjs60 fails in configure.

# Catalina 10.15.2
$ uname -a
Darwin $HOSTNAME 19.2.0 Darwin Kernel Version 19.2.0: Sat Nov  9 03:47:04 PST 2019; root:xnu-6153.61.1~20/RELEASE_X86_64 x86_64 i386 Macmini8,1 Darwin
$ sudo port clean mozjs60
$ sudo port upgrade outdated
--->  Computing dependencies for mozjs60
--->  Fetching distfiles for mozjs60
--->  Verifying checksums for mozjs60
--->  Extracting mozjs60
--->  Applying patches to mozjs60
--->  Configuring mozjs60
Error: Failed to configure mozjs60, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_macports-ports.git_lang_mozjs60/mozjs60/work/mozjs-60.8.0/js/src/obj/config.log
$ tail -n 10 /opt/local/var/macports/build/_opt_local_var_macports_sources_macports-ports.git_lang_mozjs60/mozjs60/work/mozjs-60.8.0/js/src/obj/config.log
INFO: checking for android ndk version... 
INFO: no
INFO: checking for GoogleVR SDK... 
INFO: Not specified
DEBUG: Executing: `xcode-select --print-path`
DEBUG: Executing: `pkgutil --pkg-info com.apple.pkg.CLTools_Executables`
DEBUG: The command returned non-zero exit status 1.
DEBUG: Its error output was:
DEBUG: | No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
ERROR: Could not find installed Xcode Command Line Tools; run `xcode-select --install` and follow the instructions to install them then try again; if you wish to build without Xcode Command Line Tools installed, add the --disable-xcode-checks configure flag
$ sudo xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
$ sudo pkgutil --pkg-info com.apple.pkg.CLTools_Executables
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
$ port cat mozjs60 | grep -E '^(name|version) '
name                mozjs60
version             60.8.0

I am not sure what is being checked here. I just did a test "port build xterm", and the build completed successfully, so it would seem that I can build from source. Software Updates shows nothing.

Attachments (3)

Portfile.patch (582 bytes) - added by vallon (Justin) 4 years ago.
Patch for Portfile to --disable-xcode-checks on Catalina
config_11_5_1_20210731.log (310 bytes) - added by FaradayLight (Faraday Light) 3 years ago.
main_11_5_1_20210731.log (26.0 KB) - added by FaradayLight (Faraday Light) 3 years ago.

Download all attachments as: .zip

Change History (15)

comment:1 Changed 4 years ago by kencu (Ken)

this bit looks worth trying...

run `xcode-select --install` and follow the instructions to install them then try again; if you wish to build without Xcode Command Line Tools installed, add the --disable-xcode-checks configure flag

comment:2 Changed 4 years ago by jmroot (Joshua Root)

Owner: set to dbevans
Status: newassigned

comment:3 in reply to:  1 Changed 4 years ago by d0wntime

Replying to kencu:

this bit looks worth trying...

run `xcode-select --install` and follow the instructions to install them then try again; if you wish to build without Xcode Command Line Tools installed, add the --disable-xcode-checks configure flag

This is still broken; shouldn't have to add that flag ... Xcode Command Line Tools just aren't leaving that receipt around anymore.

comment:4 Changed 4 years ago by kencu (Ken)

sure, looks like something to change upstream. But until that percolates down, that flag may bail you out and be needed.

Is this a general problem (buildbots too) or just your system?

comment:5 Changed 4 years ago by d0wntime

I don't know about buildbots, but I'm reading into it ... but I do know you have two separate users here saying something about it, in case you didn't notice that I am not the original reporter of the issue.

I can confirm that adding --disable-xcode-checks to configure.args in mozjs60's Portfile allowed it to build.

comment:6 Changed 4 years ago by d0wntime

and yeah, indeed, this is a problem upstream.

Changed 4 years ago by vallon (Justin)

Attachment: Portfile.patch added

Patch for Portfile to --disable-xcode-checks on Catalina

comment:7 Changed 4 years ago by vallon (Justin)

Attached a portfile patch that turns off --disable-xcode-checks for >= Catalina (darwin >= 19). I can send a PR, if you want to commit it.

comment:8 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

This sounds like another consequence of the problem described at wiki:ProblemHotlist#reinstall-clt.

comment:9 Changed 3 years ago by FaradayLight (Faraday Light)

Hi,

I have experienced this error on arm64, macOS 11.5.1 Bug Sur while attempting an install of "finch":

--->  Fetching distfiles for mozjs60
--->  Attempting to fetch mozjs-60.8.0.tar.bz2 from https://distfiles.macports.org/mozjs60
--->  Verifying checksums for mozjs60                                                
--->  Extracting mozjs60
--->  Applying patches to mozjs60
--->  Configuring mozjs60
Error: Failed to configure mozjs60: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_mozjs60/mozjs60/work/mozjs-60.8.0/js/src/obj/config.log
Error: Failed to configure mozjs60: 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_mozjs60/mozjs60/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port finch failed
--->  Some of the ports you installed have notes:
  dbus has the following notes:
    Startup items (named 'dbus-system, dbus-session') have been generated that will aid in starting dbus with launchd. They are disabled by default. Execute the following command to start them, and to cause
    them to launch at startup:
    
        sudo port load dbus
ERROR: Install of port finch failed with exit code: 1
ERROR: MacPorts installation terminated

I have attached a copy of the config log (config_11_5_1_20210731.log) which reports:

configure:708: checking host system type
configure:729: checking target system type                                                                                                                                                                        
configure:747: checking build system type
configure: error: iOS SDK 'iphoneos' could not be found.

Main.log (see attached main_11_5_1_20210731.log) reports:

:info:configure checking target system type... arm-apple-darwin20.6.0                                                                                                                                             
:info:configure checking build system type... arm-apple-darwin20.6.0
:info:configure configure: error: iOS SDK 'iphoneos' could not be found.
:info:configure ERROR: old-configure failed
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_mozjs60/mozjs60/work/mozjs-60.8.0/js/src/obj" && ../configure --prefix=/opt/local --with-system-nspr --disable-readline
:info:configure Exit code: 1
:error:configure Failed to configure mozjs60: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_mozjs60/mozjs60/work/mozjs-60.8.0/js/src/obj/config.log
:error:configure Failed to configure mozjs60: configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
:debug:configure     while executing
:debug:configure "$procedure $targetname"
:error:configure See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_mozjs60/mozjs60/main.log for details.

I have performed the check mentioned in the reference to the "Reinstalling the command line tools" problem above, but I get a valid response - namely:

12.5.1.0.1.1623191612

Changed 3 years ago by FaradayLight (Faraday Light)

Attachment: config_11_5_1_20210731.log added

Changed 3 years ago by FaradayLight (Faraday Light)

Attachment: main_11_5_1_20210731.log added

comment:10 Changed 3 years ago by FaradayLight (Faraday Light)

Installed CLTs:

tacitus@malory issues % pkgutil --pkgs | grep CL   
com.apple.pkg.CLTools_Executables
com.apple.pkg.CLTools_SDK_macOS110
com.apple.pkg.CLTools_SDK_macOS1015
com.apple.pkg.CLTools_macOS_SDK

This is the default install for a non-dev end-user.

Last edited 3 years ago by FaradayLight (Faraday Light) (previous) (diff)

comment:11 Changed 3 years ago by FaradayLight (Faraday Light)

Cc: FaradayLight added

comment:12 Changed 18 months ago by mascguy (Christopher Nielsen)

Cc: mascguy added
Note: See TracTickets for help on using tickets.