#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)
Change History (4)
Changed 12 years ago by macports@…
comment:1 Changed 12 years ago by neverpanic (Clemens Lang)
Owner: | changed from macports-tickets@… to css@… |
---|---|
Summary: | cmake fails to build → cmake fails to build in presence of elf.h |
comment:2 Changed 12 years ago by neverpanic (Clemens Lang)
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:3 Changed 12 years ago by neverpanic (Clemens Lang)
Cc: | cal@… added |
---|
Note: See
TracTickets for help on using
tickets.
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):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.