[MacPorts] #52142: root5 fails to build on Mac OSX 10.11.4
#52142: root5 fails to build on Mac OSX 10.11.4 --------------------------+-------------------------------- Reporter: donal.hill@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: root5 --------------------------+-------------------------------- Hi there, I believe that this issue has been discussed previously on another thread (#50998), but I am unsure whether it relates to my specific case. I am attempting to run: "sudo port install root5" and I run into errors as descried in the attached log file. I have had no problems installing root6 on the same machine. Any help would be great! Cheers, Donal -- Ticket URL: <https://trac.macports.org/ticket/52142> MacPorts <https://www.macports.org/> Ports system for OS X
#52142: root5 fails to build on Mac OSX 10.11.4 ---------------------------+---------------------- Reporter: donal.hill@… | Owner: jonesc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: root5 | ---------------------------+---------------------- Changes (by mf2k@…): * owner: macports-tickets@… => jonesc@… Comment: In the future, please use WikiFormatting and Cc the port maintainers ({{{port info --maintainers root5}}}), if any. -- Ticket URL: <https://trac.macports.org/ticket/52142#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#52142: root5 fails to build on Mac OSX 10.11.4 ---------------------------+---------------------- Reporter: donal.hill@… | Owner: jonesc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: root5 | ---------------------------+---------------------- Comment (by gnwiii@…): Your log has: {{{ :info:build /opt/local/bin/clang-mp-3.3 -O2 -m64 -pipe -Wshadow -W -Wall -fsigne d-char -fno-common -Iinclude -DR__HAVE_CONFIG -pthread -o core/clib/src/mmtr ace.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.mac ports.org_release_tarballs_ports_science_root5/root5/work/root-5-34-36/core/clib /src/mmtrace.c :info:build In file included from /opt/local/var/macports/build/_opt_local_var_m acports_sources_rsync.macports.org_release_tarballs_ports_science_root5/root5/wo rk/root-5-34-36/core/macosx/src/CocoaUtils.mm:12: :info:build In file included from include/CocoaUtils.h:17: :info:build In file included from /System/Library/Frameworks/Foundation.framewor k/Headers/Foundation.h:10: :info:build In file included from /System/Library/Frameworks/Foundation.framewor k/Headers/NSArray.h:5: :info:build /System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:19:21: error: expected a type :info:build - (id)copyWithZone:(nullable NSZone *)zone; :info:build ^ :info:build /System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:25:28: error: expected a type :info:build - (id)mutableCopyWithZone:(nullable NSZone *)zone; }}} [https://trac.macports.org/ticket/49440 Ticket 49440] reports a similar error due to using Xcode version lower than 7 on El Capitan. If you are using Xcode 7, try building without the {{{+clang33}}} option. -- Ticket URL: <https://trac.macports.org/ticket/52142#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#52142: root5 fails to build on Mac OSX 10.11.4 ---------------------------+---------------------- Reporter: donal.hill@… | Owner: jonesc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: root5 | ---------------------------+---------------------- Comment (by jonesc@…): ( hi Donal !! ) Something is fishy with your log. I don't see the configure step I would expect. Was it really from a clean build ? Please rerun {{{ sudo port clean root5 sudo port install root5 }}} and post the log. Its very strange that MacPorts clang 3.3 is being used, that should not happen, and does not for me. i.e. from my logs I see during the configure phase {{{ Checking for C compiler ... /usr/bin/clang Checking for C++ compiler ... /usr/bin/clang++ Checking for linker (LD) ... /usr/bin/clang++ }}} So it is using the system clang compiler as expected. Can you please, as has already been suggested, make sure you are running the correct and up to date Xcode for OS X 10.11 *and* that you have re- installed the command line tools correctly. See https://www.macports.org/install.php for details. root5 builds fine for me, and also in the build-bots, so it must be something up with your setup. Chris -- Ticket URL: <https://trac.macports.org/ticket/52142#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#52142: root5 fails to build on Mac OSX 10.11.4 ---------------------------+---------------------- Reporter: donal.hill@… | Owner: jonesc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: root5 | ---------------------------+---------------------- Comment (by jonesc@…): Please supply the requested information, otherwise I will recommended resolving this as INVALID. cheers Chris -- Ticket URL: <https://trac.macports.org/ticket/52142#comment:4> MacPorts <https://www.macports.org/> Ports system for macOS
#52142: root5 fails to build on Mac OSX 10.11.4 ---------------------------+---------------------- Reporter: donal.hill@… | Owner: jonesc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: root5 | ---------------------------+---------------------- Comment (by donal.hill@…): Hi Chris, Sorry for the delay, I got sidetracked and had to resort to installing root5 from source via the ROOT webpage. I did a clean install of Xcode and command line tools, and did a clean build as you suggested. I attach the new log file here. I recall sniffing around clang33 some months ago in relation to another piece of software, but I'm not sure why it's getting picked up in only the root5 build. It doesn't get used in the root6 one. Cheers, Donal -- Ticket URL: <https://trac.macports.org/ticket/52142#comment:5> MacPorts <https://www.macports.org/> Ports system for macOS
#52142: root5 fails to build on Mac OSX 10.11.4 ---------------------------+---------------------- Reporter: donal.hill@… | Owner: jonesc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: root5 | ---------------------------+---------------------- Comment (by jonesc@…): I suspect you must have changed some global setting to force the use of clang 3.3, I cannot think of another reason why ROOT5 is deciding to use this. I think you need to try and remember what exactly you did a few months back ... -- Ticket URL: <https://trac.macports.org/ticket/52142#comment:6> MacPorts <https://www.macports.org/> Ports system for macOS
#52142: root5 fails to build on Mac OSX 10.11.4 ---------------------------+---------------------- Reporter: donal.hill@… | Owner: jonesc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: root5 | ---------------------------+---------------------- Comment (by jonesc@…): {{{ :debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/_resources/port1.0/variant_descriptions.conf :debug:main universal variant already exists, so not adding the default one :debug:main Requested variant -x11 is not provided by port gcc5. :debug:main Requested variant +no_x11 is not provided by port gcc5. :debug:main Requested variant +quartz is not provided by port gcc5. :debug:main Requested variant +clang33 is not provided by port gcc5. }}} Did you by chance tweak your general configuration to force add +clang33 as a default variant in all cases in /opt/local/etc/macports/variants.conf ? If so, then don't do this. Its a bad idea. Chris -- Ticket URL: <https://trac.macports.org/ticket/52142#comment:7> MacPorts <https://www.macports.org/> Ports system for macOS
#52142: root5 fails to build on Mac OSX 10.11.4 ---------------------------+---------------------- Reporter: donal.hill@… | Owner: jonesc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: root5 | ---------------------------+---------------------- Comment (by donal.hill@…): Hi Chris, It looks like I had the following line in my variants.conf file: -x11 +no_x11 +quartz +clang33 which has clearly happened as a result of me fiddling a few months back. I just removed clang33 and did a clean build of root5, and it worked :) Thanks for the help! Donal -- Ticket URL: <https://trac.macports.org/ticket/52142#comment:8> MacPorts <https://www.macports.org/> Ports system for macOS
#52142: root5 fails to build on Mac OSX 10.11.4 ---------------------------+---------------------- Reporter: donal.hill@… | Owner: jonesc@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: root5 | ---------------------------+---------------------- Comment (by mf2k@…): You can also remove the useless {{{+no_x11}}} variant because no port uses that anymore. See #39383. -- Ticket URL: <https://trac.macports.org/ticket/52142#comment:9> MacPorts <https://www.macports.org/> Ports system for macOS
#52142: root5 fails to build on Mac OSX 10.11.4 ---------------------------+---------------------- Reporter: donal.hill@… | Owner: jonesc@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: invalid | Keywords: Port: root5 | ---------------------------+---------------------- Changes (by mf2k@…): * status: new => closed * resolution: => invalid -- Ticket URL: <https://trac.macports.org/ticket/52142#comment:10> MacPorts <https://www.macports.org/> Ports system for macOS
participants (1)
-
MacPorts