Opened 8 years ago
Closed 8 years ago
#53774 closed defect (duplicate)
coreutils @8.27_0: undefined reference to "_renameat" on x86_64 machine
Reported by: | noloader (Jeffrey Walton) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.4.1 |
Keywords: | Cc: | ||
Port: | coreutils |
Description
I'm attempting to update Macports 2.4.1 on an Intel Core2 x86_64 machine. The build fails with:
:info:build src/force-link.c:111:13: warning: implicit declaration of function 'renameat' is invalid in C99 [-Wimplicit-function-declaration] :info:build err = renameat (dstdir, dsttmp, dstdir, dstname) == 0 ? 0 : errno; :info:build ^ :info:build 1 warning generated. ... :info:build /usr/bin/clang -pipe -Os -arch x86_64 -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -o src/cp src/cp.o src/copy.o src/cp-hash.o src/extent-scan.o src/force-link.o src/selinux.o src/libver.a lib/libcoreutils.a -lintl -Wl,-framework -Wl,CoreFoundation lib/libcoreutils.a :info:build Undefined symbols for architecture x86_64: :info:build "_renameat", referenced from: :info:build _force_linkat in force-link.o :info:build _force_symlinkat in force-link.o :info:build ld: symbol(s) not found for architecture x86_64
Several of the follwoing have not helped the issue.
$ sudo find /opt/local -name '*coreutils*' -exec rm -rf {} \;
$ port version Version: 2.4.1
$ port info --maintainer coreutils maintainer:
$ cat /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_coreutils/coreutils/main.log version:1 :msg:main ---> Computing dependencies for coreutils:info:main .:debug:main Checking for conflicts against coreutils :debug:main Searching for dependency: gexpr :debug:main Didn't find receipt, going to depspec regex for: gexpr :debug:main Searching for dependency: xz :debug:main Found Dependency: receipt exists for xz :debug:main Searching for dependency: gettext :debug:main Found Dependency: receipt exists for gettext :debug:main Searching for dependency: gmp :debug:main Found Dependency: receipt exists for gmp :debug:main Searching for dependency: libiconv :debug:main Found Dependency: receipt exists for libiconv :debug:main Executing org.macports.main (coreutils) :debug:main dropping privileges: euid changed to 502, egid changed to 501. :debug:archivefetch archivefetch phase started at Fri Mar 10 09:02:44 EST 2017 :msg:archivefetch ---> Fetching archive for coreutils :debug:archivefetch Executing org.macports.archivefetch (coreutils) :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 ---> coreutils-8.27_0.darwin_13.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified :msg:archivefetch ---> Attempting to fetch coreutils-8.27_0.darwin_13.x86_64.tbz2 from https://packages.macports.org/coreutils :debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found :msg:archivefetch ---> Attempting to fetch coreutils-8.27_0.darwin_13.x86_64.tbz2 from http://sea.us.packages.macports.org/macports/packages/coreutils :debug:archivefetch Fetching archive failed: The requested URL returned error: 404 Not Found :msg:archivefetch ---> Attempting to fetch coreutils-8.27_0.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/coreutils :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 Fri Mar 10 09:02:46 EST 2017 :notice:fetch ---> Fetching distfiles for coreutils :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 (coreutils) :info:fetch ---> coreutils-8.27.tar.xz does not exist in /opt/local/var/macports/distfiles/coreutils :notice:fetch ---> Attempting to fetch coreutils-8.27.tar.xz from https://distfiles.macports.org/coreutils :debug:fetch Fetching distfile failed: The requested URL returned error: 404 Not Found :notice:fetch ---> Attempting to fetch coreutils-8.27.tar.xz from http://mirror.cc.columbia.edu/pub/software/gnu/coreutils :debug:fetch Privilege de-escalation not attempted as not running as root. :debug:checksum checksum phase started at Fri Mar 10 09:02:48 EST 2017 :notice:checksum ---> Verifying checksums for coreutils :debug:checksum Executing org.macports.checksum (coreutils) :info:checksum ---> Checksumming coreutils-8.27.tar.xz :debug:checksum Calculated (rmd160) is 51653577ab896b306af5ee7bb7552cb4c0c342de :debug:checksum Correct (rmd160) checksum for coreutils-8.27.tar.xz :debug:checksum Calculated (sha256) is 8891d349ee87b9ff7870f52b6d9312a9db672d2439d289bc57084771ca21656b :debug:checksum Correct (sha256) checksum for coreutils-8.27.tar.xz :debug:checksum Privilege de-escalation not attempted as not running as root. :debug:extract extract phase started at Fri Mar 10 09:02:48 EST 2017 :notice:extract ---> Extracting coreutils :debug:extract setting option extract.cmd to /opt/local/bin/xz :debug:extract Executing org.macports.extract (coreutils) :info:extract ---> Extracting coreutils-8.27.tar.xz :debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/coreutils/coreutils-8.27.tar.xz' :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_release_tarballs_ports_sysutils_coreutils/coreutils/work/.CC_PRINT_OPTIONS' :debug:extract CPATH='/opt/local/include' :debug:extract LIBRARY_PATH='/opt/local/lib' :debug:extract MACOSX_DEPLOYMENT_TARGET='10.9' :info:extract Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_coreutils/coreutils/work" && /opt/local/bin/xz -dc '/opt/local/var/macports/distfiles/coreutils/coreutils-8.27.tar.xz' | /usr/bin/tar -xf - :debug:extract system: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_coreutils/coreutils/work" && /opt/local/bin/xz -dc '/opt/local/var/macports/distfiles/coreutils/coreutils-8.27.tar.xz' | /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_release_tarballs_ports_sysutils_coreutils/coreutils/work to macports :debug:extract euid/egid changed to: 502/501 :debug:extract Privilege de-escalation not attempted as not running as root. :debug:patch patch phase started at Fri Mar 10 09:02:52 EST 2017 :debug:patch Executing org.macports.patch (coreutils) :debug:patch Privilege de-escalation not attempted as not running as root. :debug:configure configure phase started at Fri Mar 10 09:02:52 EST 2017 :notice:configure ---> Configuring coreutils :debug:configure Preferred compilers: clang macports-clang-3.9 macports-clang-3.8 macports-clang-3.7 macports-clang-3.4 macports-llvm-gcc-4.2 apple-gcc-4.2 :debug:configure Using compiler 'Xcode Clang' :debug:configure Executing org.macports.configure (coreutils) :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_sysutils_coreutils/coreutils/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 FORCE_UNSAFE_CONFIGURE='1' :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.9' :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_sysutils_coreutils/coreutils/work/coreutils-8.27" && ./configure --prefix=/opt/local --disable-silent-rules --program-prefix=g :debug:configure system: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_coreutils/coreutils/work/coreutils-8.27" && ./configure --prefix=/opt/local --disable-silent-rules --program-prefix=g :info:configure checking for a BSD-compatible install... /usr/bin/install -c :info:configure checking whether build environment is sane... yes :info:configure checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p :info:configure checking for gawk... gawk :info:configure checking whether make sets $(MAKE)... yes :info:configure checking whether make supports nested variables... yes :info:configure checking whether make supports nested variables... (cached) yes :info:configure checking for style of include used by make... GNU :info:configure checking for gcc... /usr/bin/clang :info:configure checking whether the C compiler works... yes :info:configure checking for C compiler default output file name... a.out :info:configure checking for suffix of executables... :info:configure checking whether we are cross compiling... no :info:configure checking for suffix of object files... o :info:configure checking whether we are using the GNU C compiler... yes :info:configure checking whether /usr/bin/clang accepts -g... yes :info:configure checking for /usr/bin/clang option to accept ISO C89... none needed :info:configure checking whether /usr/bin/clang understands -c and -o together... yes :info:configure checking dependency style of /usr/bin/clang... gcc3 :info:configure checking for /usr/bin/clang option to accept ISO C99... none needed :info:configure checking for /usr/bin/clang option to accept ISO Standard C... (cached) none needed :info:configure checking how to run the C preprocessor... /usr/bin/clang -E :info:configure checking for grep that handles long lines and -e... /opt/local/bin/grep :info:configure checking for egrep... /opt/local/bin/grep -E :info:configure checking whether /usr/bin/clang needs -traditional... no :info:configure checking for ranlib... ranlib :info:configure checking whether ln -s works... yes :info:configure checking for ANSI C header files... yes :info:configure checking for sys/types.h... yes :info:configure checking for sys/stat.h... yes :info:configure checking for stdlib.h... yes :info:configure checking for string.h... yes :info:configure checking for memory.h... yes :info:configure checking for strings.h... yes :info:configure checking for inttypes.h... yes :info:configure checking for stdint.h... yes :info:configure checking for unistd.h... yes ... a:info:build depbase=`echo src/comm.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ :info:build /usr/bin/clang -I. -I./lib -Ilib -I./lib -Isrc -I./src -I/opt/local/include -pipe -Os -arch x86_64 -MT src/comm.o -MD -MP -MF $depbase.Tpo -c -o src/comm.o src/comm.c &&\ :info:build mv -f $depbase.Tpo $depbase.Po :info:build /usr/bin/clang -pipe -Os -arch x86_64 -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -o src/comm src/comm.o src/libver.a lib/libcoreutils.a -lintl -Wl,-framework -Wl,CoreFoundation lib/libcoreutils.a :info:build depbase=`echo src/cp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ :info:build /usr/bin/clang -I. -I./lib -Ilib -I./lib -Isrc -I./src -I/opt/local/include -pipe -Os -arch x86_64 -MT src/cp.o -MD -MP -MF $depbase.Tpo -c -o src/cp.o src/cp.c &&\ :info:build mv -f $depbase.Tpo $depbase.Po :info:build depbase=`echo src/copy.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ :info:build /usr/bin/clang -I. -I./lib -Ilib -I./lib -Isrc -I./src -I/opt/local/include -pipe -Os -arch x86_64 -MT src/copy.o -MD -MP -MF $depbase.Tpo -c -o src/copy.o src/copy.c &&\ :info:build mv -f $depbase.Tpo $depbase.Po :info:build depbase=`echo src/cp-hash.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ :info:build /usr/bin/clang -I. -I./lib -Ilib -I./lib -Isrc -I./src -I/opt/local/include -pipe -Os -arch x86_64 -MT src/cp-hash.o -MD -MP -MF $depbase.Tpo -c -o src/cp-hash.o src/cp-hash.c &&\ :info:build mv -f $depbase.Tpo $depbase.Po :info:build depbase=`echo src/extent-scan.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ :info:build /usr/bin/clang -I. -I./lib -Ilib -I./lib -Isrc -I./src -I/opt/local/include -pipe -Os -arch x86_64 -MT src/extent-scan.o -MD -MP -MF $depbase.Tpo -c -o src/extent-scan.o src/extent-scan.c &&\ :info:build mv -f $depbase.Tpo $depbase.Po :info:build depbase=`echo src/force-link.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ :info:build /usr/bin/clang -I. -I./lib -Ilib -I./lib -Isrc -I./src -I/opt/local/include -pipe -Os -arch x86_64 -MT src/force-link.o -MD -MP -MF $depbase.Tpo -c -o src/force-link.o src/force-link.c &&\ :info:build mv -f $depbase.Tpo $depbase.Po :info:build src/force-link.c:111:13: warning: implicit declaration of function 'renameat' is invalid in C99 [-Wimplicit-function-declaration] :info:build err = renameat (dstdir, dsttmp, dstdir, dstname) == 0 ? 0 : errno; :info:build ^ :info:build 1 warning generated. :info:build depbase=`echo src/selinux.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ :info:build /usr/bin/clang -I. -I./lib -Ilib -I./lib -Isrc -I./src -I/opt/local/include -pipe -Os -arch x86_64 -MT src/selinux.o -MD -MP -MF $depbase.Tpo -c -o src/selinux.o src/selinux.c &&\ :info:build mv -f $depbase.Tpo $depbase.Po :info:build /usr/bin/clang -pipe -Os -arch x86_64 -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -o src/cp src/cp.o src/copy.o src/cp-hash.o src/extent-scan.o src/force-link.o src/selinux.o src/libver.a lib/libcoreutils.a -lintl -Wl,-framework -Wl,CoreFoundation lib/libcoreutils.a :info:build Undefined symbols for architecture x86_64: :info:build "_renameat", referenced from: :info:build _force_linkat in force-link.o :info:build _force_symlinkat in force-link.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 make[2]: *** [src/cp] Error 1 :info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_coreutils/coreutils/work/coreutils-8.27' :info:build make[1]: *** [all-recursive] Error 1 :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_coreutils/coreutils/work/coreutils-8.27' :info:build make: *** [all] Error 2 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_coreutils/coreutils/work/coreutils-8.27' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_coreutils/coreutils/work/coreutils-8.27" && /usr/bin/make -w all :info:build Exit code: 2 :error:build Failed to build coreutils: command execution failed :debug:build Error code: CHILDSTATUS 76168 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"
Attachments (1)
Change History (2)
Changed 8 years ago by noloader (Jeffrey Walton)
Attachment: | coreutils-build.log added |
---|
comment:1 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | coreutils x86_64 removed |
---|---|
Port: | coreutils added; coreutils-8.27_0 removed |
Resolution: | → duplicate |
Status: | new → closed |
Summary: | Coreutils and undefined reference to "_renameat" on x86_64 machine → coreutils @8.27_0: undefined reference to "_renameat" on x86_64 machine |
Note: See
TracTickets for help on using
tickets.
Duplicate of #53764 which was already fixed. Run
sudo port selfupdate
to get the fix.