[CMake] CHECK_TYPE_SIZE works incorrectly with LDFLAGS="-Wl, --gc-sections"

Arfrever Frehtes Taifersar Arahesis arfrever.fta at gmail.com
Tue Aug 5 22:45:32 EDT 2008


2008-08-06 02:56:52 Bill Hoffman napisał(a):
> Arfrever Frehtes Taifersar Arahesis wrote:
> > 2008-08-05 00:01:51 Bill Hoffman napisał(a):
> >> Arfrever Frehtes Taifersar Arahesis wrote:
> >>> CHECK_TYPE_SIZE returns incorrect (empty) values of types sizes when
> >>> the LDFLAGS variable contains "-Wl,--gc-sections".
> >>>
> >>> This bug causes compilation failures in probably all packages which
> >>> use CHECK_TYPE_SIZE.
> >>>
> >>> I'm attaching 2 files which help to reproduce this bug.
> >>>
> >>> Steps to reproduce:
> >>> 1. Save the attachments to ${PROJECT_SOURCE_DIR}
> >>> 2. Run: export LDFLAGS="-Wl,--gc-sections"
> >>> 3. Run: cmake ${PROJECT_SOURCE_DIR}
> >>> 4. Read ${PROJECT_BINARY_DIR}/config.h
> >>>
> >>> I use CMake 2.6.0.
> >>>
> >> What is in the CMakeError.log?
> > 
> > CMakeFiles/CMakeError.log doesn't exist.
> > 
> >> Why is it failing?
> > 
> > Maybe CMake uses wrong way of checking type sizes which relies on
> > incorrect assumptions.
> > I wrote steps to reproduce this bug so you should be able to confirm it.
> > 
> Can you do a find in your build tree and find CMakeError.log?

`find -name CMakeError.log` doesn't return anything.

-- 
Arfrever Frehtes Taifersar Arahesis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080806/9b82d3ef/attachment.pgp>


More information about the CMake mailing list