Opened 10 years ago
Closed 9 years ago
#46521 closed defect (fixed)
Remove ports: xnu-headers, libc-headers, libm-headers, and CarbonHeaders
Reported by: | summers@… | Owned by: | jeremyhu (Jeremy Huddleston Sequoia) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.3 |
Keywords: | Cc: | mfeiri | |
Port: | CarbonHeaders |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
mfs:mfs-mb7> sudo port upgrade outdated ---> Computing dependencies for cctools ---> Building cctools Error: org.macports.build for port cctools returned: command execution failed
Here is the log file:
mfs:mfs-mb7> cat /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/main.log version:1 :msg:main ---> Computing dependencies for cctools:info:main .:debug:main cctools has no conflicts :debug:main Searching for dependency: libunwind-headers :debug:main Found Dependency: receipt exists for libunwind-headers :debug:main Searching for dependency: llvm-3.3 :debug:main Found Dependency: receipt exists for llvm-3.3 :msg:main :debug:main Executing org.macports.main (cctools) :debug:main changing euid/egid - current euid: 0 - current egid: 0 :debug:main egid changed to: 501 :debug:main euid changed to: 502 :debug:main Skipping completed org.macports.archivefetch (cctools) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.fetch (cctools) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.checksum (cctools) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.extract (cctools) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.patch (cctools) :debug:main Privilege de-escalation not attempted as not running as root. :debug:main Skipping completed org.macports.configure (cctools) :debug:main Privilege de-escalation not attempted as not running as root. :debug:build build phase started at Sun Jan 11 10:26:18 EST 2015 :notice:build ---> Building cctools :debug:build Executing proc-pre-org.macports.build-build-0 :debug:build Executing org.macports.build (cctools) :debug:build Environment: CC_PRINT_OPTIONS='YES' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/.CC_PRINT_OPTIONS' CPATH='/opt/local/include' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.10' :debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862" && /usr/bin/make -j8 -w all RC_OS="macos" RC_ProjectSourceVersion=862 USE_DEPENDENCY_FILE=NO BUILD_DYLIBS=NO CC="/usr/bin/clang -Os -std=gnu99" CXX="/usr/bin/clang++ -Os -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862/../ld64-236.3/src/abstraction -I/opt/local/Developer/SDKs/Darwin14.sdk/usr/include" CXXLIB="-stdlib=libc++" TRIE=-DTRIE_SUPPORT RC_ARCHS="x86_64" SDK="-I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862/../ld64-236.3/src/other" LTO=-DLTO_SUPPORT RC_CFLAGS="-arch x86_64 `llvm-config-mp-3.3 --cflags`" LLVM_MC="llvm-mc-mp-3.3"' :debug:build Executing command line: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862" && /usr/bin/make -j8 -w all RC_OS="macos" RC_ProjectSourceVersion=862 USE_DEPENDENCY_FILE=NO BUILD_DYLIBS=NO CC="/usr/bin/clang -Os -std=gnu99" CXX="/usr/bin/clang++ -Os -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862/../ld64-236.3/src/abstraction -I/opt/local/Developer/SDKs/Darwin14.sdk/usr/include" CXXLIB="-stdlib=libc++" TRIE=-DTRIE_SUPPORT RC_ARCHS="x86_64" SDK="-I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862/../ld64-236.3/src/other" LTO=-DLTO_SUPPORT RC_CFLAGS="-arch x86_64 `llvm-config-mp-3.3 --cflags`" LLVM_MC="llvm-mc-mp-3.3" :info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862' :info:build =========== /Applications/Xcode.app/Contents/Developer/usr/bin/make all for libstuff ============= :info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862/libstuff' :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862/libstuff' :info:build =========== /Applications/Xcode.app/Contents/Developer/usr/bin/make all for as ============= :info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862/as' :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862/as' :info:build =========== /Applications/Xcode.app/Contents/Developer/usr/bin/make all for gprof ============= :info:build =========== /Applications/Xcode.app/Contents/Developer/usr/bin/make all for misc ============= :info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862/misc' :info:build /usr/bin/clang++ -Os -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862/../ld64-236.3/src/abstraction -I/opt/local/Developer/SDKs/Darwin14.sdk/usr/include -arch x86_64 -I/opt/local/libexec/llvm-3.3/include -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -g -fno-common -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862/../ld64-236.3/src/other -stdlib=libc++ -c -o \ :info:build ./PruneTrie.o ./PruneTrie.cpp :info:build /usr/bin/clang -Os -std=gnu99 -arch x86_64 -I/opt/local/libexec/llvm-3.3/include -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -g -fno-common -nostdlib -r \ :info:build -o ./ctf_insert.private.o \ :info:build ./ctf_insert.o -L./../libstuff -lstuff :info:build /usr/bin/clang -Os -std=gnu99 -arch x86_64 -I/opt/local/libexec/llvm-3.3/include -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -g -fno-common -nostdlib -r -o ./libredo.o \ :info:build libredo_prebinding.o -L./../libstuff -lstuff :info:build /usr/bin/clang -Os -std=gnu99 -arch x86_64 -I/opt/local/libexec/llvm-3.3/include -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -g -fno-common -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862/../ld64-236.3/src/other -o ./ctf_insert.NEW \ :info:build ./ctf_insert.private.o :info:build libtool -static -o ./libredo_prebinding.a ./libredo.o :info:build dsymutil ./ctf_insert.NEW :info:build In file included from ./PruneTrie.cpp:24: :info:build In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/vector:265: :info:build In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__bit_reference:15: :info:build In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:627: :info:build In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:600: :info:build In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iterator:332: :info:build In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iosfwd:90: :info:build In file included from /usr/include/wchar.h:90: :info:build In file included from /usr/include/stdio.h:75: :info:build /usr/include/sys/stdio.h:39:52: error: expected function body after function declarator :info:build int renameat(int, const char *, int, const char *) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0); :info:build ^ :info:build /opt/local/Developer/SDKs/Darwin14.sdk/usr/include/Availability.h:159:50: note: expanded from macro '__OSX_AVAILABLE_STARTING' :info:build #define __OSX_AVAILABLE_STARTING(_osx, _ios) __AVAILABILITY_INTERNAL##_osx :info:build ^ :info:build <scratch space>:171:1: note: expanded from here :info:build __AVAILABILITY_INTERNAL__MAC_10_10 :info:build ^ :info:build In file included from ./PruneTrie.cpp:26: :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862/../ld64-236.3/src/abstraction/MachOFileAbstraction.hpp:248:9: warning: 'CPU_SUBTYPE_ARM64_ALL' macro redefined :info:build #define CPU_SUBTYPE_ARM64_ALL 0 :info:build ^ :info:build /usr/include/mach/machine.h:323:9: note: previous definition is here :info:build #define CPU_SUBTYPE_ARM64_ALL ((cpu_subtype_t) 0) :info:build ^ :info:build In file included from ./PruneTrie.cpp:26: :info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862/../ld64-236.3/src/abstraction/MachOFileAbstraction.hpp:249:9: warning: 'CPU_SUBTYPE_ARM64_V8' macro redefined :info:build #define CPU_SUBTYPE_ARM64_V8 1 :info:build ^ :info:build /usr/include/mach/machine.h:324:9: note: previous definition is here :info:build #define CPU_SUBTYPE_ARM64_V8 ((cpu_subtype_t) 1) :info:build ^ :info:build 2 warnings and 1 error generated. :info:build make[1]: *** [PruneTrie.o] Error 1 :info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862/misc' :info:build make: *** [all] Error 1 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862" && /usr/bin/make -j8 -w all RC_OS="macos" RC_ProjectSourceVersion=862 USE_DEPENDENCY_FILE=NO BUILD_DYLIBS=NO CC="/usr/bin/clang -Os -std=gnu99" CXX="/usr/bin/clang++ -Os -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862/../ld64-236.3/src/abstraction -I/opt/local/Developer/SDKs/Darwin14.sdk/usr/include" CXXLIB="-stdlib=libc++" TRIE=-DTRIE_SUPPORT RC_ARCHS="x86_64" SDK="-I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/work/cctools-862/../ld64-236.3/src/other" LTO=-DLTO_SUPPORT RC_CFLAGS="-arch x86_64 `llvm-config-mp-3.3 --cflags`" LLVM_MC="llvm-mc-mp-3.3" :info:build Exit code: 2 :error:build org.macports.build for port cctools returned: command execution failed :debug:build Error code: CHILDSTATUS 5089 2 :debug:build Backtrace: command execution failed while executing "system -nice 0 $fullcmdstring" ("eval" body line 1) invoked from within "eval system $notty $nice \$fullcmdstring" invoked from within "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "portbuild::build_main org.macports.build" ("eval" body line 1) invoked from within "eval $procedure $targetname" :info:build Warning: targets not executed for cctools: org.macports.install org.macports.build org.macports.destroot :notice:build Please see the log file for port cctools for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_cctools/cctools/main.log
Change History (12)
comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)
Description: | modified (diff) |
---|---|
Owner: | changed from macports-tickets@… to jeremyhu@… |
Type: | update → defect |
comment:2 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
I suspect this is because you have the CarbonHeaders port installed.
Please uninstall it, libc-headers, libm-headers, and xnu-headers.
comment:3 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Port: | CarbonHeaders added; cctools removed |
---|---|
Summary: | cctools fails to upgrade → CarbonHeaders doesn't have Yosemite macros |
comment:4 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Summary: | CarbonHeaders doesn't have Yosemite macros → Remove ports: xnu-headers, libc-headers, libm-headers, and CarbonHeaders |
---|
We really should not have these ports in our tree. They are hacks to work around bugs in other projects and only serve to cause problems building. The ports that "need" them should be fixed instead of causing problems for everyone else.
libm-headers has no dependents and should be removed now.
libc-headers has no dependents and only list ports with conflicts. Remove it and clean up the conflicts.
devel/ossp-uuid/Portfile: # avoid conflict with libc-headers editors/textmate2/Portfile:conflicts_build libc-headers net/libpftputil/Portfile:conflicts libc-headers
xnu-headers has no dependents and only list ports with conflicts. Remove it and clean up the conflicts.
devel/poll-emulator/Portfile:conflicts xnu-headers devel/virtuoso-6/Portfile: conflicts_build-append xnu-headers devel/virtuoso-7/Portfile: conflicts_build-append xnu-headers
Once xnu-headers, libm-headers, and libc-headers are removed, we can remove CarbonHeaders.
comment:5 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Cc: | mfeiri@… added |
---|
comment:6 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
comment:7 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
I've emailed macports-dev asking for feedback regarding obsoleting these ports and will do so in a week if I don't hear any convincing arguments.
comment:8 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Nobody commented. I said a week, but here it is after 4 days: r131699
comment:9 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
(keeping open to track removal)
comment:10 Changed 10 years ago by mfeiri
The summary in comment 3 was correct and this could have been fixed with a trivial update of the CarbonHeaders port.
Jeremy, I do not understand what you refer to as "hacks to work around bugs in other projects" w.r.t. these headers ports. All previous conflicts (including those mentioned here in comment 4) were fixed months ago by following upstream behavior, moving system headers to a dedicated safe location outside the default include paths. Only your ports mentioned in #42500 were still missing. Additionally we resisted to expose internal API through these ports, e.g. in #42129. The only exception was in the early days of the ld64 port, which you co-maintained at the time and which you now maintain in macports with hacks weighing 200KB in patch files.
Anyway, I will not resubmit these ports. This ticket can be closed.
comment:11 Changed 10 years ago by jeremyhu (Jeremy Huddleston Sequoia)
We should be using system headers consistently, not installing our own (possibly conflicting) versions. That has led to many problems.
Regarding ld64, I'm not sure what you mean by "with hacks weighing 200KB in patch files" ... there is unfortunately one large patchfile (ld64-97-standalone-libunwind-headers.patch) for the ancient ld64-97, but the rest are all reasonably sized, and almost all patches that have landed in newer versions of ld64 (or are a reversion of a previous change in the case of the libstdc++ support patch). If it makes you feel more comfortable, I'm happy to move the ld64-97 patches to distfiles. The only reason that version exists any more is because people still use Tiger.
comment:12 Changed 9 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Please remember to use WikiFormatting. The log you pasted is not from a clean build. Please clean and try again. If it fails again, attach (not paste) the new log. Thanks.