Opened 3 years ago

Closed 5 months ago

#62733 closed defect (fixed)

stack @2.5.1: ConnectionTimeout

Reported by: manbaum (Hsi Fun) Owned by: essandess (Steve Smith)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: sierra Cc:
Port: stack

Description

Command port upgrade outdated failed, showing as following:

  • Platform: macOS Sierra version 10.12.6
  • Processor: 2.3GHz Intel Core i5
  • Memory: 8G DDR3
  • Port version: MacPorts 2.6.4
$ sudo port selfupdate; sudo port upgrade outdated;
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.6.4 installed,
MacPorts base version 2.6.4 downloaded.
--->  Updating the ports tree
Error: Synchronization of the local ports tree failed doing rsync
--->  Computing dependencies for stack
--->  Fetching archive for stack
--->  Attempting to fetch stack-2.5.1_0.darwin_16.x86_64.tbz2 from https://pek.cn.packages.macports.org/macports/packages/stack
--->  Attempting to fetch stack-2.5.1_0.darwin_16.x86_64.tbz2 from https://kmq.jp.packages.macports.org/stack
--->  Attempting to fetch stack-2.5.1_0.darwin_16.x86_64.tbz2 from https://lil.fr.packages.macports.org/stack
--->  Fetching distfiles for stack
--->  Verifying checksums for stack
--->  Extracting stack
--->  Configuring stack
Error: Failed to configure stack: 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_stack/stack/main.log for details.
Error: Problem while installing stack
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

The file main.log is attached.

Attachments (3)

main.log (13.9 KB) - added by manbaum (Hsi Fun) 3 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stack/stack/main.log
main.2.log (518.5 KB) - added by manbaum (Hsi Fun) 3 years ago.
The new log file: Undefined symbols "_utimensat"
main.3.log (553.4 KB) - added by informatimago (Pascal J. Bourguignon) 3 years ago.
on Big Sur: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_stack/stack/main.log

Download all attachments as: .zip

Change History (6)

Changed 3 years ago by manbaum (Hsi Fun)

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stack/stack/main.log

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

Keywords: sierra added; upgrade stack removed
Owner: set to essandess
Status: newassigned
Summary: Port upgrade fail caused by stack-2.5.1_0.darwin_16.x86_64stack @2.5.1: ConnectionTimeout

The log says:

Cabal file info not found for Cabal-3.0.0.0@rev:0, updating
Selected mirror https://s3.amazonaws.com/hackage.fpcomplete.com/
Downloading root
HttpExceptionRequest Request {
  host                 = "s3.amazonaws.com"
  port                 = 443
  secure               = True
  requestHeaders       = [("Accept-Encoding",""),("User-Agent","Haskell pantry package")]
  path                 = "/hackage.fpcomplete.com/root.json"
  queryString          = ""
  method               = "GET"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}
 ConnectionTimeout

comment:2 Changed 3 years ago by manbaum (Hsi Fun)

Sorry. The last fail log seemed to be network error, I retried a few times, the connection problem disappeared.

The real problem is happened at link stage: Undefined symbols "_utimensat".

:info:build Linking .stack-work/dist/x86_64-osx/Cabal-2.4.0.1/build/stack/stack ...
:info:build Undefined symbols for architecture x86_64:
:info:build   "_utimensat", referenced from:
:info:build       _cazW_info in libHSdirectory-1.3.3.0.a(Posix.o)
:info:build ld: symbol(s) not found for architecture x86_64
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build `clang' failed in phase `Linker'. (Exit code: 1)
:info:build Completed 161 action(s).
:info:build --  While building package stack-2.5.1 (scroll up to its section to see the error) using:
:info:build       /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stack/stack/work/stack-2.5.1/.stack-work/dist/x86_64-osx/Cabal-2.4.0.1/setup/setup --builddir=.stack-work/dist/x86_64-osx/Cabal-2.4.0.1 build lib:stack exe:stack --ghc-options ""
:info:build     Process exited with code: ExitFailure 1
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stack/stack/work/stack-2.5.1" && /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_stack/stack/work/bin/stack build --with-gcc /usr/bin/clang --allow-different-user
:info:build Exit code: 1
:error:build Failed to build stack: command execution failed
:debug:build Error code: CHILDSTATUS 31865 1
: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_lang_stack/stack/main.log for details.

The new log file is attached.

Changed 3 years ago by manbaum (Hsi Fun)

Attachment: main.2.log added

The new log file: Undefined symbols "_utimensat"

Changed 3 years ago by informatimago (Pascal J. Bourguignon)

Attachment: main.3.log added

on Big Sur: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_stack/stack/main.log

comment:3 Changed 5 months ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed

fixed by changes to the stack port over the past few years

Note: See TracTickets for help on using tickets.