[MacPorts] #20871: cmake failes with elf.h on 10.6
#20871: cmake failes with elf.h on 10.6 --------------------------------------+------------------------------------- Reporter: treaves@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: --------------------------------------+------------------------------------- -- Check if the system is big endian - little endian -- Looking for include files HAVE_STDARG_H -- Looking for include files HAVE_STDARG_H - found -- Looking for include files HAVE_WCHAR_H -- Looking for include files HAVE_WCHAR_H - found -- Looking for asprintf -- Looking for asprintf - found -- Looking for setgroups -- Looking for setgroups - not found. running cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/work/cmake-2.6.4/CMakeFiles/CMakeTmp" && /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/work/cmake-2.6.4/Bootstrap.cmk/cmake -E copy src2.c src.c 2>&1 -- Performing Test VA_LIST_ISNOT_ARRAY_DEFINE -- Performing Test VA_LIST_ISNOT_ARRAY_DEFINE - Failed running cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/work/cmake-2.6.4/CMakeFiles/CMakeTmp" && /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/work/cmake-2.6.4/Bootstrap.cmk/cmake -E copy src2.c src.c 2>&1 -- Performing Test HAS_VA_COPY -- Performing Test HAS_VA_COPY - Success running cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/work/cmake-2.6.4/CMakeFiles/CMakeTmp" && /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/work/cmake-2.6.4/Bootstrap.cmk/cmake -E copy src2.c src.c 2>&1 -- Performing Test ATTR_UNUSED_VAR -- Performing Test ATTR_UNUSED_VAR - Success -- Looking for elf.h -- Looking for elf.h - not found -- Configuring incomplete, errors occurred! --------------------------------------------- Error when bootstrapping CMake: Problem while running initial CMake --------------------------------------------- Error: Status 1 encountered during processing. Executing: /opt/local/bin/port install cmake +universal -- Ticket URL: <http://trac.macports.org/ticket/20871> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20871: cmake failes with elf.h on 10.6 --------------------------------------+------------------------------------- Reporter: treaves@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: cmake --------------------------------------+------------------------------------- Changes (by toby@…): * version: 1.8.0 => * port: => cmake Old description:
-- Check if the system is big endian - little endian -- Looking for include files HAVE_STDARG_H -- Looking for include files HAVE_STDARG_H - found -- Looking for include files HAVE_WCHAR_H -- Looking for include files HAVE_WCHAR_H - found -- Looking for asprintf -- Looking for asprintf - found -- Looking for setgroups -- Looking for setgroups - not found. running cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/work/cmake-2.6.4/CMakeFiles/CMakeTmp" && /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/work/cmake-2.6.4/Bootstrap.cmk/cmake -E copy src2.c src.c 2>&1 -- Performing Test VA_LIST_ISNOT_ARRAY_DEFINE -- Performing Test VA_LIST_ISNOT_ARRAY_DEFINE - Failed running cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/work/cmake-2.6.4/CMakeFiles/CMakeTmp" && /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/work/cmake-2.6.4/Bootstrap.cmk/cmake -E copy src2.c src.c 2>&1 -- Performing Test HAS_VA_COPY -- Performing Test HAS_VA_COPY - Success running cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/work/cmake-2.6.4/CMakeFiles/CMakeTmp" && /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/work/cmake-2.6.4/Bootstrap.cmk/cmake -E copy src2.c src.c 2>&1 -- Performing Test ATTR_UNUSED_VAR -- Performing Test ATTR_UNUSED_VAR - Success -- Looking for elf.h -- Looking for elf.h - not found -- Configuring incomplete, errors occurred! --------------------------------------------- Error when bootstrapping CMake: Problem while running initial CMake --------------------------------------------- Error: Status 1 encountered during processing. Executing: /opt/local/bin/port install cmake +universal
New description: {{{ -- Check if the system is big endian - little endian -- Looking for include files HAVE_STDARG_H -- Looking for include files HAVE_STDARG_H - found -- Looking for include files HAVE_WCHAR_H -- Looking for include files HAVE_WCHAR_H - found -- Looking for asprintf -- Looking for asprintf - found -- Looking for setgroups -- Looking for setgroups - not found. running cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/work/cmake-2.6.4/CMakeFiles/CMakeTmp" && /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/work/cmake-2.6.4/Bootstrap.cmk/cmake -E copy src2.c src.c 2>&1 -- Performing Test VA_LIST_ISNOT_ARRAY_DEFINE -- Performing Test VA_LIST_ISNOT_ARRAY_DEFINE - Failed running cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/work/cmake-2.6.4/CMakeFiles/CMakeTmp" && /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/work/cmake-2.6.4/Bootstrap.cmk/cmake -E copy src2.c src.c 2>&1 -- Performing Test HAS_VA_COPY -- Performing Test HAS_VA_COPY - Success running cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/work/cmake-2.6.4/CMakeFiles/CMakeTmp" && /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_cmake/work/cmake-2.6.4/Bootstrap.cmk/cmake -E copy src2.c src.c 2>&1 -- Performing Test ATTR_UNUSED_VAR -- Performing Test ATTR_UNUSED_VAR - Success -- Looking for elf.h -- Looking for elf.h - not found -- Configuring incomplete, errors occurred! --------------------------------------------- Error when bootstrapping CMake: Problem while running initial CMake --------------------------------------------- Error: Status 1 encountered during processing. Executing: /opt/local/bin/port install cmake +universal }}} -- -- Ticket URL: <http://trac.macports.org/ticket/20871#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20871: cmake failes with elf.h on 10.6 --------------------------------------+------------------------------------- Reporter: treaves@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: cmake --------------------------------------+------------------------------------- Comment(by toby@…): I don't think that (elf.h) is really the issue, it's just the last thing in the log. Can you provide a debug log? Also, there's really no need to build universal, that's probably what's causing the issue. -- Ticket URL: <http://trac.macports.org/ticket/20871#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20871: cmake failes with elf.h on 10.6 --------------------------------------+------------------------------------- Reporter: treaves@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: cmake --------------------------------------+------------------------------------- Comment(by treaves@…): Hm... running 'sudo port install -d cmake +universal' seems to have installed it fine. The last time I used Porticus. -- Ticket URL: <http://trac.macports.org/ticket/20871#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20871: cmake fails to find elf.h on 10.6 --------------------------------------+------------------------------------- Reporter: treaves@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: cmake --------------------------------------+------------------------------------- -- Ticket URL: <http://trac.macports.org/ticket/20871#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20871: cmake fails to find elf.h on 10.6 --------------------------------------+------------------------------------- Reporter: treaves@… | Owner: css@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: cmake --------------------------------------+------------------------------------- Changes (by ryandesign@…): * owner: macports-tickets@… => css@… -- Ticket URL: <http://trac.macports.org/ticket/20871#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20871: cmake fails to find elf.h on 10.6 --------------------------------------+------------------------------------- Reporter: treaves@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: cmake --------------------------------------+------------------------------------- Changes (by css@…): * status: new => assigned Comment: Just upgrading to Snow Leopard myself, so I can't verify anything yet ... maybe it's some kind of issue with Porticus. -- Ticket URL: <http://trac.macports.org/ticket/20871#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20871: cmake fails to find elf.h on 10.6 --------------------------------------+------------------------------------- Reporter: treaves@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: Keywords: | Port: cmake --------------------------------------+------------------------------------- Comment(by eric.nodwell@…): Replying to [comment:3 treaves@…]:
Hm... running 'sudo port install -d cmake +universal' seems to have installed it fine. The last time I used Porticus.
Are you sure that's '+universal'? Because the +universal build failed for me with the "Looking for elf.h - not found" error. (I have +universal as default.) However, '-universal' built fine for me. -- Ticket URL: <http://trac.macports.org/ticket/20871#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20871: cmake universal build fails to find elf.h on 10.6 --------------------------------------+------------------------------------- Reporter: treaves@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: cmake --------------------------------------+------------------------------------- Changes (by css@…): * version: => 1.8.0 Comment: I verified the error building +universal, but a non-universal build worked without any trouble. Do you have a need to build universal on Snow Leopard? -- Ticket URL: <http://trac.macports.org/ticket/20871#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20871: cmake universal build fails to find elf.h on 10.6 --------------------------------------+------------------------------------- Reporter: treaves@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: cmake --------------------------------------+------------------------------------- Comment(by treaves@…): Not a need, but that's not the issue. I have a need to build other things +Universal, and that means that everything that is built as dependencies also get the +Universal. -- Ticket URL: <http://trac.macports.org/ticket/20871#comment:9> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20871: cmake universal build fails to find elf.h on 10.6 --------------------------------------+------------------------------------- Reporter: treaves@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: cmake --------------------------------------+------------------------------------- Comment(by css@…): It looks like adding `universal_variant no` might be the easiest fix for now. -- Ticket URL: <http://trac.macports.org/ticket/20871#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20871: cmake universal build fails to find elf.h on 10.6 --------------------------------------+------------------------------------- Reporter: treaves@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: cmake --------------------------------------+------------------------------------- Comment(by vince@…): I can confirm the bug, I can confirm also that building -universal leads to the same error (elf.h not found, which is normal), but the builds carries on anyway. The best way to fix would maybe to build two different binaries and then join them via lipo, as some other ports do. -- Ticket URL: <http://trac.macports.org/ticket/20871#comment:15> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20871: cmake +universal x86_64/i386: CHECK_TYPE_SIZE found different results --------------------------------------+------------------------------------- Reporter: treaves@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: cmake --------------------------------------+------------------------------------- Comment(by ryandesign@…): [attachment:cmake.txt Attached] is the full debug output. The relevant error seems to be: {{{ -- Check size of long CMake Error at Modules/CheckTypeSize.cmake:89 (MESSAGE): CHECK_TYPE_SIZE found different results, consider setting CMAKE_OSX_ARCHITECTURES or CMAKE_TRY_COMPILE_OSX_ARCHITECTURES to one or no architecture ! }}} -- Ticket URL: <http://trac.macports.org/ticket/20871#comment:16> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20871: cmake +universal x86_64/i386: CHECK_TYPE_SIZE found different results --------------------------------------+------------------------------------- Reporter: treaves@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: cmake --------------------------------------+------------------------------------- Comment(by ryandesign@…): Simply [attachment:cmake-muniversal.diff using the muniversal portgroup] does seem to work. -- Ticket URL: <http://trac.macports.org/ticket/20871#comment:17> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20871: cmake +universal x86_64/i386: CHECK_TYPE_SIZE found different results --------------------------------------+------------------------------------- Reporter: treaves@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: cmake --------------------------------------+------------------------------------- Comment(by css@…): Replying to [comment:17 ryandesign@…]:
Simply [attachment:cmake-muniversal.diff using the muniversal portgroup] does seem to work.
That seems like an easy enough fix! treaves, could you please verify that this changes solves the problem on your system? -- Ticket URL: <http://trac.macports.org/ticket/20871#comment:18> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20871: cmake +universal x86_64/i386: CHECK_TYPE_SIZE found different results --------------------------------------+------------------------------------- Reporter: treaves@… | Owner: css@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: cmake --------------------------------------+------------------------------------- Comment(by treaves@…): It does indeed fix it for me. Thanks! -- Ticket URL: <http://trac.macports.org/ticket/20871#comment:19> MacPorts <http://www.macports.org/> Ports system for Mac OS
#20871: cmake +universal x86_64/i386: CHECK_TYPE_SIZE found different results ---------------------------------------+------------------------------------ Reporter: treaves@… | Owner: css@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Resolution: fixed | Keywords: Port: cmake | ---------------------------------------+------------------------------------ Changes (by css@…): * status: assigned => closed * resolution: => fixed Comment: Thanks for the confirmation. Committed to r58150 -- Ticket URL: <http://trac.macports.org/ticket/20871#comment:20> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts