Opened 6 years ago

Closed 6 years ago

#58498 closed defect (fixed)

lua-luafilesystem @1.7.0-2 build failure

Reported by: GeneWilburn Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc:
Port: lua-luafilesystem

Description (last modified by jmroot (Joshua Root))

Attempting to install lua-luafilesystem required by package Wordgrinder
MacOS: 10.14.4 Mojave
MacPorts: 2.54
Lua: 5.3.4

$ sudo port lua-luafilesystem

Output:

---> Configuring lua-luafilesystem
---> Building lua-luafilesystem
Error: Failed to build lua-luafilesystem: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_lua-luafilesystem/lua-luafilesystem/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port lua-luafilesystem failed

Log:

:msg:archivefetch ---> Attempting to fetch lua-luafilesystem-1.7.0-2_0.darwin_18.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/lua-luafilesystem
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found
:msg:archivefetch ---> Attempting to fetch lua-luafilesystem-1.7.0-2_0.darwin_18.x86_64.tbz2 from http://aus.us.packages.macports.org/macports/packages/lua-luafilesystem
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found

Change History (5)

comment:1 Changed 6 years ago by jmroot (Joshua Root)

Description: modified (diff)
Keywords: Wordgrinder lua removed
Summary: 404 error trying to install lua-luafilesystemlua-luafilesystem @1.7.0-2 build failure

Please attach the complete log file, as the part you have quoted does not indicate why the build failed (not being able to fetch a binary archive is not fatal).

comment:2 Changed 6 years ago by GeneWilburn

Log File:

version:1
:debug:sysinfo macOS 10.14 (darwin/18.5.0) arch i386
:debug:sysinfo MacPorts 2.5.4
:debug:sysinfo Xcode 10.2.1
:debug:sysinfo SDK 10.14
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 10.14
:debug:main epoch: in tree: 0 installed: 0
:debug:main lua 5.3.4_2 exists in the ports tree
:debug:main lua 5.3.4_2  is the latest installed
:debug:main lua 5.3.4_2  is active
:debug:main Merging existing variants '' into variants
:debug:main new fully merged portvariants: 
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/lang/lua
:debug:main OS darwin/18.5.0 (Mac OS X 10.14) arch i386
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
:debug:main Running callback portconfigure::add_automatic_compiler_dependencies
:debug:main Finished running callback portconfigure::add_automatic_compiler_dependencies
:debug:main Running callback portbuild::add_automatic_buildsystem_dependencies
:debug:main Finished running callback portbuild::add_automatic_buildsystem_dependencies
:debug:main Running callback portstartupitem::add_notes
:debug:main Finished running callback portstartupitem::add_notes
:debug:main No need to upgrade! lua 5.3.4_2 >= lua 5.3.4_2
:debug:main epoch: in tree: 0 installed: 0
:debug:main readline 8.0.000_0 exists in the ports tree
:debug:main readline 8.0.000_0  is the latest installed
:debug:main readline 8.0.000_0  is active
:debug:main Merging existing variants '' into variants
:debug:main new fully merged portvariants: 
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/devel/readline
:debug:main OS darwin/18.5.0 (Mac OS X 10.14) arch i386
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
:debug:main Sourcing PortGroup muniversal 1.0 from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/muniversal-1.0.tcl
:debug:main universal variant already exists, so not adding the default one
:debug:main Running callback portconfigure::add_automatic_compiler_dependencies
:debug:main Finished running callback portconfigure::add_automatic_compiler_dependencies
:debug:main Running callback portbuild::add_automatic_buildsystem_dependencies
:debug:main Finished running callback portbuild::add_automatic_buildsystem_dependencies
:debug:main Running callback portstartupitem::add_notes
:debug:main Finished running callback portstartupitem::add_notes
:debug:main No need to upgrade! readline 8.0.000_0 >= readline 8.0.000_0
:debug:main epoch: in tree: 0 installed: 0
:debug:main ncurses 6.1_0 exists in the ports tree
:debug:main ncurses 6.1_0  is the latest installed
:debug:main ncurses 6.1_0  is active
:debug:main Merging existing variants '' into variants
:debug:main new fully merged portvariants: 
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/devel/ncurses
:debug:main OS darwin/18.5.0 (Mac OS X 10.14) arch i386
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf
:debug:main Running callback portconfigure::add_automatic_compiler_dependencies
:debug:main Finished running callback portconfigure::add_automatic_compiler_dependencies
:debug:main Running callback portbuild::add_automatic_buildsystem_dependencies
:debug:main Finished running callback portbuild::add_automatic_buildsystem_dependencies
:debug:main Running callback portstartupitem::add_notes
:debug:main Finished running callback portstartupitem::add_notes
:debug:main No need to upgrade! ncurses 6.1_0 >= ncurses 6.1_0
:msg:main --->  Computing dependencies for lua-luafilesystem:info:main .:debug:main lua-luafilesystem has no conflicts
:debug:main Searching for dependency: lua
:debug:main Found Dependency: receipt exists for lua
:debug:main Executing org.macports.main (lua-luafilesystem)
:debug:main dropping privileges: euid changed to 503, egid changed to 501.
:debug:archivefetch archivefetch phase started at Sun May 19 10:29:10 EDT 2019
:msg:archivefetch --->  Fetching archive for lua-luafilesystem
:debug:archivefetch Executing org.macports.archivefetch (lua-luafilesystem)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 503/501
:info:archivefetch --->  lua-luafilesystem-1.7.0-2_0.darwin_18.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch lua-luafilesystem-1.7.0-2_0.darwin_18.x86_64.tbz2 from https://packages.macports.org/lua-luafilesystem
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found
:msg:archivefetch --->  Attempting to fetch lua-luafilesystem-1.7.0-2_0.darwin_18.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/lua-luafilesystem
:debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found
:msg:archivefetch --->  Attempting to fetch lua-luafilesystem-1.7.0-2_0.darwin_18.x86_64.tbz2 from http://aus.us.packages.macports.org/macports/packages/lua-luafilesystem
: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 May 19 10:29:13 EDT 2019
:notice:fetch --->  Fetching distfiles for lua-luafilesystem
:debug:fetch Executing org.macports.fetch (lua-luafilesystem)
:debug:fetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Sun May 19 10:29:13 EDT 2019
:notice:checksum --->  Verifying checksums for lua-luafilesystem
:debug:checksum Executing org.macports.checksum (lua-luafilesystem)
:info:checksum --->  Checksumming luafilesystem-1_7_0_2.tar.gz
:debug:checksum Calculated (rmd160) is 2c1ddbe3855f8418a5b65dc935dc77edbd2cca34
:debug:checksum Correct (rmd160) checksum for luafilesystem-1_7_0_2.tar.gz
:debug:checksum Calculated (sha256) is b8884702cdf729a0de25899197e8f4f29163583fba1d9e2b1f496ad860691d42
:debug:checksum Correct (sha256) checksum for luafilesystem-1_7_0_2.tar.gz
:debug:checksum Calculated (size) is 30881
:debug:checksum Correct (size) checksum for luafilesystem-1_7_0_2.tar.gz
:debug:checksum Privilege de-escalation not attempted as not running as root.
:debug:extract extract phase started at Sun May 19 10:29:13 EDT 2019
:notice:extract --->  Extracting lua-luafilesystem
:debug:extract Executing org.macports.extract (lua-luafilesystem)
:info:extract --->  Extracting luafilesystem-1_7_0_2.tar.gz
:debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/lua-luafilesystem/luafilesystem-1_7_0_2.tar.gz'
:debug:extract Environment: 
:debug:extract CC_PRINT_OPTIONS='YES'
:debug:extract CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_lua-luafilesystem/lua-luafilesystem/work/.CC_PRINT_OPTIONS'
:debug:extract CPATH='/opt/local/include'
:debug:extract LIBRARY_PATH='/opt/local/lib'
:debug:extract MACOSX_DEPLOYMENT_TARGET='10.14'
:info:extract Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_lua-luafilesystem/lua-luafilesystem/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/lua-luafilesystem/luafilesystem-1_7_0_2.tar.gz' | /usr/bin/tar -xf - 
:debug:extract system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_lua-luafilesystem/lua-luafilesystem/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/lua-luafilesystem/luafilesystem-1_7_0_2.tar.gz' | /usr/bin/tar -xf - 
:debug:extract euid/egid changed to: 0/0
:debug:extract chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_lua-luafilesystem/lua-luafilesystem/work to macports
:debug:extract euid/egid changed to: 503/501
: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 May 19 10:29:13 EDT 2019
:debug:patch Executing org.macports.patch (lua-luafilesystem)
:notice:patch --->  Applying patches to lua-luafilesystem
:info:patch --->  Applying patch-config.diff
:debug:patch Environment: 
:debug:patch CC_PRINT_OPTIONS='YES'
:debug:patch CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_lua-luafilesystem/lua-luafilesystem/work/.CC_PRINT_OPTIONS'
:debug:patch CPATH='/opt/local/include'
:debug:patch LIBRARY_PATH='/opt/local/lib'
:debug:patch MACOSX_DEPLOYMENT_TARGET='10.14'
:info:patch Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_lua-luafilesystem/lua-luafilesystem/work/luafilesystem-1_7_0_2" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/devel/lua-luafilesystem/files/patch-config.diff'
:debug:patch system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_lua-luafilesystem/lua-luafilesystem/work/luafilesystem-1_7_0_2" && /usr/bin/patch -p0 < '/opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/devel/lua-luafilesystem/files/patch-config.diff'
:info:patch patching file config
:debug:patch Executing proc-post-org.macports.patch-patch-0
:info:patch --->  Patching config: s|@@PREFIX@@|/opt/local|g
:debug:patch Executing reinplace: /usr/bin/sed s|@@PREFIX@@|/opt/local|g </opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_lua-luafilesystem/lua-luafilesystem/work/luafilesystem-1_7_0_2/config >@file11
:debug:patch euid/egid changed to: 0/0
:debug:patch chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_lua-luafilesystem/lua-luafilesystem/work/luafilesystem-1_7_0_2/config to macports
:debug:patch euid/egid changed to: 503/501
:debug:patch euid/egid changed to: 0/0
:debug:patch setting attributes on /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_lua-luafilesystem/lua-luafilesystem/work/luafilesystem-1_7_0_2/config
:debug:patch euid/egid changed to: 503/501
:info:patch --->  Patching lfs.c: s|luaL_reg |luaL_Reg |g
:debug:patch Executing reinplace: /usr/bin/sed {s|luaL_reg |luaL_Reg |g} </opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_lua-luafilesystem/lua-luafilesystem/work/luafilesystem-1_7_0_2/src/lfs.c >@file11
:warn:patch reinplace s|luaL_reg |luaL_Reg |g didn't change anything in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_lua-luafilesystem/lua-luafilesystem/work/luafilesystem-1_7_0_2/src/lfs.c
:debug:patch euid/egid changed to: 0/0
:debug:patch chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_lua-luafilesystem/lua-luafilesystem/work/luafilesystem-1_7_0_2/src/lfs.c to macports
:debug:patch euid/egid changed to: 503/501
:debug:patch euid/egid changed to: 0/0
:debug:patch setting attributes on /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_lua-luafilesystem/lua-luafilesystem/work/luafilesystem-1_7_0_2/src/lfs.c
:debug:patch euid/egid changed to: 503/501
:info:patch --->  Patching config: /^LUA_LIBDIR=/s,lib/lua/5.1,lib/lua/5.3,
:debug:patch Executing reinplace: /usr/bin/sed /^LUA_LIBDIR=/s,lib/lua/5.1,lib/lua/5.3, </opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_lua-luafilesystem/lua-luafilesystem/work/luafilesystem-1_7_0_2/config >@file11
:debug:patch euid/egid changed to: 0/0
:debug:patch chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_lua-luafilesystem/lua-luafilesystem/work/luafilesystem-1_7_0_2/config to macports
:debug:patch euid/egid changed to: 503/501
:debug:patch euid/egid changed to: 0/0
:debug:patch setting attributes on /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_lua-luafilesystem/lua-luafilesystem/work/luafilesystem-1_7_0_2/config
:debug:patch euid/egid changed to: 503/501
:debug:patch Privilege de-escalation not attempted as not running as root.
:debug:configure configure phase started at Sun May 19 10:29:13 EDT 2019
:notice:configure --->  Configuring lua-luafilesystem
:debug:configure Preferred compilers: clang macports-clang-5.0 macports-clang-4.0
:debug:configure Using compiler 'Xcode Clang'
:debug:configure Executing org.macports.configure (lua-luafilesystem)
:debug:configure Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Sun May 19 10:29:13 EDT 2019
:notice:build --->  Building lua-luafilesystem
:debug:build Executing org.macports.build (lua-luafilesystem)
:debug:build Environment: 
:debug:build CC_PRINT_OPTIONS='YES'
:debug:build CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_lua-luafilesystem/lua-luafilesystem/work/.CC_PRINT_OPTIONS'
:debug:build CPATH='/opt/local/include'
:debug:build LIBRARY_PATH='/opt/local/lib'
:debug:build MACOSX_DEPLOYMENT_TARGET='10.14'
:info:build Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_lua-luafilesystem/lua-luafilesystem/work/luafilesystem-1_7_0_2" && /usr/bin/make -j4 -w lib CC="/usr/bin/clang" CFLAGS="-Os -I/opt/local/include -arch x86_64 -DLUA_COMPAT_MODULE" LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -llua -lm -arch x86_64" 
:debug:build system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_lua-luafilesystem/lua-luafilesystem/work/luafilesystem-1_7_0_2" && /usr/bin/make -j4 -w lib CC="/usr/bin/clang" CFLAGS="-Os -I/opt/local/include -arch x86_64 -DLUA_COMPAT_MODULE" LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -llua -lm -arch x86_64" 
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_lua-luafilesystem/lua-luafilesystem/work/luafilesystem-1_7_0_2'
:info:build /usr/bin/clang -Os -I/opt/local/include -arch x86_64 -DLUA_COMPAT_MODULE   -c -o src/lfs.o src/lfs.c
:info:build MACOSX_DEPLOYMENT_TARGET="10.3"; export MACOSX_DEPLOYMENT_TARGET; /usr/bin/clang -L/opt/local/lib -Wl,-headerpad_max_install_names -llua -lm -arch x86_64 -bundle -undefined dynamic_lookup  -o src/lfs.so src/lfs.o
:info:build ld: library not found for -lgcc_s.10.4
:info:build clang: error: linker command failed with exit code 1 (use -v to see invocation)
:info:build make: *** [src/lfs.so] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_lua-luafilesystem/lua-luafilesystem/work/luafilesystem-1_7_0_2'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_lua-luafilesystem/lua-luafilesystem/work/luafilesystem-1_7_0_2" && /usr/bin/make -j4 -w lib CC="/usr/bin/clang" CFLAGS="-Os -I/opt/local/include -arch x86_64 -DLUA_COMPAT_MODULE" LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -llua -lm -arch x86_64" 
:info:build Exit code: 2
:error:build Failed to build lua-luafilesystem: command execution failed
:debug:build Error code: CHILDSTATUS 6897 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_lua-luafilesystem/lua-luafilesystem/main.log for details.

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

Please use the "Attach file" button in future rather than pasting the log into a comment. So anyway, the problem seems to be that it's overriding MACOSX_DEPLOYMENT_TARGET to 10.3.

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

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In 0d7dd6afc0388f37b9244d598742b2b841418966/macports-ports (master):

lua-luafilesystem: respect our deployment target

Fixes: #58498

Note: See TracTickets for help on using tickets.