Opened 6 years ago

Closed 6 years ago

#55425 closed defect (fixed)

valgrind @3.13.0_1 configure fails with Xcode 9.x

Reported by: mopihopi Owned by: raimue (Rainer Müller)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: ierofant (Андрей Корнилов)
Port: valgrind

Description

valgrind @3.13.0_1 fails to configure using Xcode 9.1:

--->  Computing dependencies for valgrind
--->  Fetching archive for valgrind
--->  Attempting to fetch valgrind-3.13.0_1.darwin_16.x86_64.tbz2 from https://packages.macports.org/valgrind
--->  Attempting to fetch valgrind-3.13.0_1.darwin_16.x86_64.tbz2 from http://sea.us.packages.macports.org/macports/packages/valgrind
--->  Attempting to fetch valgrind-3.13.0_1.darwin_16.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/valgrind
--->  Fetching distfiles for valgrind
--->  Verifying checksums for valgrind
--->  Extracting valgrind
--->  Configuring valgrind
Error: Failed to configure valgrind, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_valgrind/valgrind/work/valgrind-3.13.0/config.log
Error: Failed to configure valgrind: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_valgrind/valgrind/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

This is the error from config.log:

configure:5401: checking for a supported version of gcc
configure:5485: result: no (applellvm-9.0.0)
configure:5487: error: please use gcc >= 3.0 or clang >= 2.9 or icc >= 13.0
$ xcodebuild -version
Xcode 9.1
Build version 9B55
$ /usr/bin/gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.0.0 (clang-900.0.38)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$ 

This issue appears to be fixed upstream on master but not released yet. https://sourceware.org/git/?p=valgrind.git;a=commitdiff;h=27e1503bc7bd767f3a98824176558beaa5a7c1d5

This appears to be similar to ticket #53525 except that that is for old versions and is not fixed upstream.

Change History (4)

comment:1 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: raimue@… removed
Keywords: xcode9 added
Owner: set to raimue
Status: newassigned

Applying that patch to the port seems reasonable.

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

Cc: ierofant added

Has duplicate #55534.

comment:3 Changed 6 years ago by kencu (Ken)

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

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