Opened 5 years ago

Closed 4 years ago

#58804 closed defect (fixed)

(gnutls@10.6.8) failed to build gnutls - command execution failed

Reported by: mrkapqa Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: gnutls youtube-dl Cc: dliessi (Davide Liessi)
Port: gnutls

Description

sudo port upgrade outdated

resulted in

info:build Exit code: 2
:error:build Failed to build gnutls: command execution failed
:debug:build Error code: CHILDSTATUS 33338 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec 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_devel_gnutls/gnutls/main.log for details.

Attachments (3)

gnutls.log (597.2 KB) - added by mrkapqa 5 years ago.
gnutls-clang.log (597.0 KB) - added by mrkapqa 5 years ago.
LOG.LOG (595.7 KB) - added by mrkapqa 5 years ago.

Download all attachments as: .zip

Change History (14)

Changed 5 years ago by mrkapqa

Attachment: gnutls.log added

comment:1 Changed 5 years ago by mrkapqa

sorry, the command invoked was

 sudo port selfupdate

comment:2 Changed 5 years ago by kencu (Ken)

Force clang 5.0 and you should be good. Thought we already did that...

comment:3 Changed 5 years ago by jmroot (Joshua Root)

Owner: set to Schamschula
Status: newassigned

comment:4 Changed 5 years ago by mrkapqa

sorry, but i am still not up-to-date with the commands

https://trac.macports.org/wiki/UsingTheRightCompiler

what should i do then?

sudo port install macports-gcc-5

and then

sudo port upgrade outdated

?

comment:5 Changed 5 years ago by mrkapqa

sudo port activate clang-5.0 -f
--->  Computing dependencies for clang-5.0
--->  Cleaning clang-5.0
Imac2008SL:~ rich$ sudo port upgrade outdated
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
--->  Computing dependencies for gnutls
--->  Fetching archive for gnutls
Warning: Your DNS servers incorrectly claim to know the address of nonexistent hosts. This may cause checksum mismatches for some ports. See this page for more information: <https://trac.macports.org/wiki/MisbehavingServers>
--->  Attempting to fetch gnutls-3.6.9_0+doc.darwin_10.x86_64.tbz2 from http://lil.fr.packages.macports.org/gnutls
--->  Attempting to fetch gnutls-3.6.9_0+doc.darwin_10.x86_64.tbz2 from http://fco.it.packages.macports.org/mirrors/macports-packages/gnutls
--->  Attempting to fetch gnutls-3.6.9_0+doc.darwin_10.x86_64.tbz2 from http://nue.de.packages.macports.org/gnutls
--->  Fetching distfiles for gnutls
--->  Verifying checksums for gnutls
--->  Extracting gnutls
--->  Applying patches to gnutls
--->  Configuring gnutls
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
Warning: All compilers are either blacklisted or unavailable; defaulting to first fallback option
--->  Building gnutls
Error: Failed to build gnutls: command execution failed

Changed 5 years ago by mrkapqa

Attachment: gnutls-clang.log added

Changed 5 years ago by mrkapqa

Attachment: LOG.LOG added

comment:6 Changed 5 years ago by mrkapqa

on a fresh installation of macports there appears also a build-error on gnutls

also after activating clang-5.0?

sudo port install clang-5.0 sudo port install mpv

--->  Building gnutls
Error: Failed to build gnutls: command execution failed

comment:7 Changed 5 years ago by kencu (Ken)

gnutls is using a new symbol, ___get_cpuid_count that exists only in gcc and very new versions of clang. clang-7.0 and newer appear to have it.

On this 10.7.5 machine I have with me, the current portfile forces clang-8.0, and that works.

The defaulting on 10.6.8 might be different. Please make sure your portfiles are up to date, and then clean and try your install again:

sudo port selfupdate
sudo port clean gnutls
sudo port -v install gnutls

if it fails, then the blacklisting and fallbacks are wrong. In that case, force clang-8.0 yourself like this:

sudo port clean gnutls
sudo port -v -N install clang-8.0
sudo port -v install gnutls configure.compiler=macports-clang-8.0

and that should work. Report back success or failure.

Aside:

It might be simpler to just add a replacement for ___get_cpuid_count, I think. See <https://reviews.llvm.org/D61036> and <https://github.com/gcc-mirror/gcc/blob/master/gcc/config/i386/cpuid.h>.

comment:8 in reply to:  7 Changed 5 years ago by mrkapqa

Replying to kencu:

try your install again:

sudo port selfupdate
sudo port clean gnutls
sudo port -v install gnutls

if it fails, then the blacklisting and fallbacks are wrong. In that case, force clang-8.0 yourself like this:

sudo port clean gnutls
sudo port -v -N install clang-8.0
sudo port -v install gnutls configure.compiler=macports-clang-8.0

and that should work. Report back success or failure.

That helped very much, Gnutls is now installing thanks to

sudo port -v install gnutls configure.compiler=macports-clang-8.0

Build of mpv still fails, also when used with "configure.compiler=macports-clang-8.0; if i may i can add the log here.

Thank you very much.

comment:9 Changed 5 years ago by mrkapqa

the error for mpv is

Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.29.1" && /opt/local/bin/python2.7 ./waf build -v Exit code: 1 Error: Failed to build mpv: command execution failed

comment:10 Changed 5 years ago by dliessi (Davide Liessi)

Cc: dliessi added

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

Resolution: fixed
Status: assignedclosed

In 3533798bc7bd3dd30441fcf890e9f289e0620b54/macports-ports (master):

gnutls: simplify compiler selection

use base TLS selection tools
blacklist compilers that don't support get_cpuid_count

closes: #58804

Note: See TracTickets for help on using tickets.