Opened 7 years ago

Closed 7 years ago

#54308 closed defect (fixed)

cargo: configure: error: needed, but unable to find any of: CFG_CARGO cargo

Reported by: ostefano (Stefano Ortolani) Owned by: seanfarley (Sean Farley)
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: Cc: raimue (Rainer Müller), hmeine (Hans Meine), jowens (John Owens), mohd-akram (Mohamed Akram), posita (Matt Bogosian), dsedivec, floodkoff (Misha Fludkov), lesinigo (Luca Lesinigo), rex4539 (Dimitris Apostolou), dbevans (David B. Evans), amake (Aaron Madlon-Kay)
Port: cargo

Description

Cargo does not build (requires Cargo). This might actually be related: https://github.com/gentoo/gentoo-rust/issues/220

:msg:archivefetch --->  Fetching archive for cargo
:debug:archivefetch Executing org.macports.archivefetch (cargo)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 502/501
:info:archivefetch --->  cargo-0.18.0_0.darwin_16.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch cargo-0.18.0_0.darwin_16.x86_64.tbz2 from https://packages.macports.org/cargo
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found
:msg:archivefetch --->  Attempting to fetch cargo-0.18.0_0.darwin_16.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/cargo
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found
:msg:archivefetch --->  Attempting to fetch cargo-0.18.0_0.darwin_16.x86_64.tbz2 from http://nue.de.packages.macports.org/cargo
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Sun Jun 11 14:25:17 BST 2017
:notice:fetch --->  Fetching distfiles for cargo
:debug:fetch elevating privileges for fetch: euid changed to 0, egid changed to 0.
:debug:fetch dropping privileges: euid changed to 502, egid changed to 501.
:debug:fetch Executing org.macports.fetch (cargo)
:debug:fetch Executing: /usr/bin/git clone --progress https://github.com/rust-lang/cargo.git /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.18.0 2>&1
:debug:fetch system: /usr/bin/git clone --progress https://github.com/rust-lang/cargo.git /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.18.0 2>&1
:info:fetch Cloning into '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.18.0'...
:info:fetch remote: Counting objects: 30785, done.        
remote: Compressing objects: 100% (87/87), done.               
remote: Total 30785 (delta 29), reused 35 (delta 6), pack-reused 30692        
Receiving objects: 100% (30785/30785), 13.86 MiB | 2.82 MiB/s, done.MiB/s   
Resolving deltas: 100% (22585/22585), done.)   
:debug:fetch Executing GIT_DIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.18.0/.git GIT_WORK_TREE=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.18.0 /usr/bin/git checkout -q 0.18.0 2>&1
:debug:fetch system: GIT_DIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.18.0/.git GIT_WORK_TREE=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.18.0 /usr/bin/git checkout -q 0.18.0 2>&1
:debug:fetch Executing proc-post-org.macports.fetch-fetch-0
:debug:fetch system -W /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.18.0: git submodule update --init
:info:fetch Submodule 'src/rust-installer' (https://github.com/rust-lang/rust-installer.git) registered for path 'src/rust-installer'
:info:fetch Cloning into '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.18.0/src/rust-installer'...
:info:fetch Submodule path 'src/rust-installer': checked out '4f994850808a572e2cc8d43f968893c8e942e9bf'
:debug:fetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Sun Jun 11 14:25:26 BST 2017
:notice:checksum --->  Verifying checksums for cargo
:debug:checksum Executing org.macports.checksum (cargo)
:debug:checksum Privilege de-escalation not attempted as not running as root.
:debug:extract extract phase started at Sun Jun 11 14:25:26 BST 2017
:notice:extract --->  Extracting cargo
:debug:extract Executing org.macports.extract (cargo)
:debug:extract Executing proc-post-org.macports.extract-extract-0
:debug:extract Privilege de-escalation not attempted as not running as root.
:debug:patch patch phase started at Sun Jun 11 14:25:26 BST 2017
:debug:patch Executing org.macports.patch (cargo)
:debug:patch Privilege de-escalation not attempted as not running as root.
:debug:configure configure phase started at Sun Jun 11 14:25:26 BST 2017
:notice:configure --->  Configuring cargo
:debug:configure Preferred compilers: clang macports-clang-3.9 macports-clang-3.8 macports-clang-3.7
:debug:configure Using compiler 'Xcode Clang'
:debug:configure Executing org.macports.configure (cargo)
:debug:configure Environment: 
:debug:configure CC='/usr/bin/clang'
:debug:configure CC_PRINT_OPTIONS='YES'
:debug:configure CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/.CC_PRINT_OPTIONS'
:debug:configure CFLAGS='-pipe -Os -arch x86_64'
:debug:configure CPATH='/opt/local/include'
:debug:configure CPPFLAGS='-I/opt/local/include'
:debug:configure CXX='/usr/bin/clang++'
:debug:configure CXXFLAGS='-pipe -Os -stdlib=libc++ -arch x86_64'
:debug:configure F77FLAGS='-m64'
:debug:configure F90FLAGS='-pipe -Os -m64'
:debug:configure FCFLAGS='-pipe -Os -m64'
:debug:configure FFLAGS='-pipe -Os'
:debug:configure INSTALL='/usr/bin/install -c'
:debug:configure LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64'
:debug:configure LIBRARY_PATH='/opt/local/lib'
:debug:configure MACOSX_DEPLOYMENT_TARGET='10.12'
:debug:configure OBJC='/usr/bin/clang'
:debug:configure OBJCFLAGS='-pipe -Os -arch x86_64'
:debug:configure OBJCXX='/usr/bin/clang++'
:debug:configure OBJCXXFLAGS='-pipe -Os -stdlib=libc++ -arch x86_64'
:info:configure Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.18.0" && ./configure --prefix=/opt/local 
:debug:configure system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.18.0" && ./configure --prefix=/opt/local 
:info:configure configure: looking for configure programs
:info:configure configure: found cmp
:info:configure configure: found mkdir
:info:configure configure: found printf
:info:configure configure: found cut
:info:configure configure: found head
:info:configure configure: found grep
:info:configure configure: found xargs
:info:configure configure: found cp
:info:configure configure: found find
:info:configure configure: found uname
:info:configure configure: found date
:info:configure configure: found tr
:info:configure configure: found sed
:info:configure configure: found cmake
:info:configure configure: found make
:info:configure configure: recreating config.tmp
:info:configure configure: 
:info:configure configure: processing ./configure args
:info:configure configure: 
:info:configure configure: CFG_PREFIX           := /opt/local 
:info:configure configure: CFG_LOCAL_RUST_ROOT  :=  
:info:configure configure: CFG_CARGO            := cargo 
:info:configure configure: CFG_RUSTC            := rustc 
:info:configure configure: CFG_RUSTDOC          := rustdoc 
:info:configure configure: CFG_CARGO            :=  
:info:configure configure: error: needed, but unable to find any of: CFG_CARGO cargo
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cargo/cargo/work/cargo-0.18.0" && ./configure --prefix=/opt/local 
:info:configure Exit code: 1
:error:configure Failed to configure cargo: 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_release_tarballs_ports_devel_cargo/cargo/main.log for details.

Change History (19)

comment:1 Changed 7 years ago by seanfarley (Sean Farley)

Huh. Man, I really hate when languages invent their own packaging system (that almost assuredly will be broken or at the very least cumbersome). Anyway, I don't really know what to do here.

comment:2 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to seanfarley
Status: newassigned

comment:3 Changed 7 years ago by raimue (Rainer Müller)

Looks like cargo has a dependency on itself: https://github.com/rust-lang/cargo/issues/3437

In order to bootstrap we would need to additionally download a prior release as a binary, similar to how it is done for rust itself.

comment:4 Changed 7 years ago by raimue (Rainer Müller)

Cc: raimue added

comment:5 Changed 7 years ago by hmeine (Hans Meine)

Cc: hmeine added

comment:6 Changed 7 years ago by jowens (John Owens)

Cc: jowens added

comment:7 in reply to:  3 Changed 7 years ago by grr

Replying to raimue:

Looks like cargo has a dependency on itself: https://github.com/rust-lang/cargo/issues/3437

In order to bootstrap we would need to additionally download a prior release as a binary, similar to how it is done for rust itself.

Examples from other projects bootstrapping off the prebuilt cargo binaries:

comment:8 Changed 7 years ago by seanfarley (Sean Farley)

Ah, great. I'll try to get to that but if someone else has more time than I, then please feel free to fix this.

comment:9 Changed 7 years ago by mohd-akram (Mohamed Akram)

I've created a pull request for this - https://github.com/macports/macports-ports/pull/589.

comment:10 Changed 7 years ago by mohd-akram (Mohamed Akram)

Cc: mohd-akram added

comment:11 Changed 7 years ago by posita (Matt Bogosian)

Cc: posita added

comment:12 Changed 7 years ago by dsedivec

Cc: dsedivec added

comment:13 Changed 7 years ago by floodkoff (Misha Fludkov)

Cc: floodkoff added

comment:14 Changed 7 years ago by lesinigo (Luca Lesinigo)

Cc: lesinigo added

comment:15 Changed 7 years ago by rex4539 (Dimitris Apostolou)

Cc: rex4539 added

comment:16 Changed 7 years ago by dbevans (David B. Evans)

Cc: dbevans added

Just to note that the current unstable versions of librsvg use a combination of C and Rust libraries and thus need relatively recent versions of both rust and cargo to compile from source. This will become urgent with the next stable release.

See https://gitlab.gnome.org/GNOME/librsvg/blob/master/COMPILING.md

comment:17 Changed 7 years ago by dbevans (David B. Evans)

librsvg stable version 2.42.0 has just been released requiring cargo and rustc to build and is, therefore, blocked by this ticket. A status update would be appreciated. Thanks.

comment:18 Changed 7 years ago by amake (Aaron Madlon-Kay)

Cc: amake added

comment:19 Changed 7 years ago by seanfarley (Sean Farley)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.