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

2008-08-07 Thread Brad King
Arfrever Frehtes Taifersar Arahesis wrote: 2008-08-06 21:05:50 Brad King napisa?(a): The trick is to convince the compiler to put the string in the final binary. Getting this to happen on all compilers has required a few iterations. Basically we have to make sure the program return value

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

2008-08-06 Thread Bill Hoffman
Arfrever Frehtes Taifersar Arahesis wrote: Can you do a find in your build tree and find CMakeError.log? `find -name CMakeError.log` doesn't return anything. Can you do this: cmake --debug-trycompile Then tar up and zip the whole thing and email it to me off the list. Thanks. -- Bill

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

2008-08-06 Thread Arfrever Frehtes Taifersar Arahesis
2008-08-06 14:06:47 Bill Hoffman napisał(a): Arfrever Frehtes Taifersar Arahesis wrote: Can you do a find in your build tree and find CMakeError.log? `find -name CMakeError.log` doesn't return anything. Can you do this: cmake --debug-trycompile Then tar up and zip the whole

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

2008-08-06 Thread Brad King
Arfrever Frehtes Taifersar Arahesis wrote: 2008-08-06 14:06:47 Bill Hoffman napisał(a): Arfrever Frehtes Taifersar Arahesis wrote: Can you do a find in your build tree and find CMakeError.log? `find -name CMakeError.log` doesn't return anything. Can you do this: cmake --debug-trycompile

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

2008-08-06 Thread Arfrever Frehtes Taifersar Arahesis
2008-08-06 21:05:50 Brad King napisał(a): Arfrever Frehtes Taifersar Arahesis wrote: 2008-08-06 14:06:47 Bill Hoffman napisał(a): Arfrever Frehtes Taifersar Arahesis wrote: Can you do a find in your build tree and find CMakeError.log? `find -name CMakeError.log` doesn't return anything.

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

2008-08-05 Thread Arfrever Frehtes Taifersar Arahesis
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

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

2008-08-05 Thread Bill Hoffman
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

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

2008-08-05 Thread Arfrever Frehtes Taifersar Arahesis
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

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

2008-08-04 Thread Arfrever Frehtes Taifersar Arahesis
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

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

2008-08-04 Thread Bill Hoffman
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