Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#36241 closed defect (invalid)

cmake fails to build in presence of elf.h

Reported by: macports@… Owned by: cssdev
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: neverpanic (Clemens Lang)
Port: cmake

Description

cmake fails to build, even after cleaning and trying to install again. Log is attached.

Attachments (1)

main.log (208.8 KB) - added by macports@… 12 years ago.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by macports@…

Attachment: main.log added

comment:1 Changed 12 years ago by neverpanic (Clemens Lang)

Owner: changed from macports-tickets@… to css@…
Summary: cmake fails to buildcmake fails to build in presence of elf.h

Please remember to Cc (or assign to) the maintainer, if any.

It seems the build fails, because you have /usr/include/elf.h on your system, but that file doesn't contain what CMake expects it to contain. Since Apple systems do not use ELF as binary format, building ELF support into CMake is probably wrong. On my system, the relevant test fails (because /usr/include/elf.h doesn't exist):

:) clemens@cSchlepptop:/opt/dports/devel/cmake$ port log | grep elf.h
-- Looking for elf.h
-- Looking for elf.h - not found

So, who- or whatever put this file in /usr/include should not have done so. /usr/include is Apple land and should not be modified by anybody but Apple. Move the file aside or delete it, clean and retry.

comment:2 Changed 12 years ago by neverpanic (Clemens Lang)

Resolution: invalid
Status: newclosed

comment:3 Changed 12 years ago by neverpanic (Clemens Lang)

Cc: cal@… added
Note: See TracTickets for help on using tickets.