[cmake-developers] Compiling CMake 3.6.1 fails on Raspbian Jessie

Cristian Adam cristian.adam at gmail.com
Tue Sep 6 14:39:28 EDT 2016


On 06-Sep-16 14:26, Brad King wrote:
> On 09/05/2016 04:39 PM, Cristian Adam wrote:
>> On Mon, Sep 5, 2016 at 10:33 PM, Brad King wrote:
>>> Something goes wrong with finding some of the symbols in it,
>>> such as some from `json_value.cpp`.
>> $ ar t Utilities/cmjsoncpp/libcmjsoncpp.a
>> json_reader.cpp.o
>> json_value.cpp.o
>> json_writer.cpp.o
>  From the binary you sent me:
>
> ```
> $ file Utilities/cmjsoncpp/CMakeFiles/cmjsoncpp.dir/src/lib_json/*.o
> Utilities/cmjsoncpp/CMakeFiles/cmjsoncpp.dir/src/lib_json/json_reader.cpp.o: empty
> Utilities/cmjsoncpp/CMakeFiles/cmjsoncpp.dir/src/lib_json/json_value.cpp.o:  empty
> Utilities/cmjsoncpp/CMakeFiles/cmjsoncpp.dir/src/lib_json/json_writer.cpp.o: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), not stripped
> ```
>
> Somehow two of the .o files ended up empty.  The Makefile content
> looks fine and the command line to compile is the same for all
> three sources.  Is this reproducible?  If you remove the two empty
> files and build again do they still end up empty?
>
> -Brad

Removal of the empty object files lead to a successful compilation.

In retrospect I should have cleaned my build directory after my 
Raspberry PI froze when compiling with MAKEFLAGS=-j4.
Bootstrap compiled fine with -j4, but make managed to crash the system 
with -j4 and -j3.

Who should have noticed that the two object files were empty and try a 
new compilation? CMake or make?

Cheers,
Cristian.





More information about the cmake-developers mailing list