Opened 15 years ago

Closed 15 years ago

#20871 closed defect (fixed)

cmake +universal x86_64/i386: CHECK_TYPE_SIZE found different results

Reported by: treaves@… Owned by: cssdev
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), florian.feldhaus@…, nicos_pavlov@…, domiman@…
Port: cmake

Description (last modified by tobypeterson)

-- 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

Attachments (2)

cmake.txt (93.7 KB) - added by ryandesign (Ryan Carsten Schmidt) 15 years ago.
debug output
cmake-muniversal.diff (241 bytes) - added by ryandesign (Ryan Carsten Schmidt) 15 years ago.

Download all attachments as: .zip

Change History (22)

comment:1 Changed 15 years ago by tobypeterson

Description: modified (diff)
Port: cmake added
Version: 1.8.0

comment:2 Changed 15 years ago by tobypeterson

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.

comment:3 Changed 15 years ago by treaves@…

Hm... running 'sudo port install -d cmake +universal' seems to have installed it fine. The last time I used Porticus.

comment:4 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: cmake failes with elf.h on 10.6cmake fails to find elf.h on 10.6

comment:5 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to css@…

comment:6 Changed 15 years ago by cssdev

Status: newassigned

Just upgrading to Snow Leopard myself, so I can't verify anything yet ... maybe it's some kind of issue with Porticus.

comment:7 in reply to:  3 Changed 15 years ago by eric.nodwell@…

Replying to 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.

comment:8 Changed 15 years ago by cssdev

Summary: cmake fails to find elf.h on 10.6cmake universal build fails to find elf.h on 10.6
Version: 1.8.0

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?

comment:9 Changed 15 years ago 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.

comment:10 Changed 15 years ago by cssdev

It looks like adding universal_variant no might be the easiest fix for now.

comment:11 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Cc Me!

comment:12 Changed 15 years ago by florian.feldhaus@…

Cc: florian.feldhaus@… added

Cc Me!

comment:13 Changed 15 years ago by nicos_pavlov@…

Cc: nicos_pavlov@… added

Cc Me!

comment:14 Changed 15 years ago by domiman@…

Cc: domiman@… added

Cc Me!

comment:15 Changed 15 years ago by Veence (Vincent)

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.

Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: cmake.txt added

debug output

comment:16 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: cmake universal build fails to find elf.h on 10.6cmake +universal x86_64/i386: CHECK_TYPE_SIZE found different results

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 !

Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: cmake-muniversal.diff added

comment:17 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Simply using the muniversal portgroup does seem to work.

comment:18 in reply to:  17 Changed 15 years ago by cssdev

Replying to ryandesign@…:

Simply 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?

comment:19 Changed 15 years ago by treaves@…

It does indeed fix it for me. Thanks!

comment:20 Changed 15 years ago by cssdev

Resolution: fixed
Status: assignedclosed

Thanks for the confirmation. Committed to r58150

Note: See TracTickets for help on using tickets.