[CMake] Building CMake 2.8.0 on 64-bit SUSE

Bill Hoffman bill.hoffman at kitware.com
Fri Feb 19 12:36:25 EST 2010


Timothy Shead wrote:
> Folks:
> 
> I'm having trouble bootstrapping CMake 2.8.0 on 64-bit SUSE - while
> linking the "cmake" executable, I get the following:
> 
> /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:cmListFileLexer.o: 
> 
> file format not recognized; treating as linker script
> 
> I'm not familiar with SUSE or other 64-bit flavors of Linux, but some
> googling suggests that maybe there's a mismatch between 32 and 64 bit
> libs?  If anyone has any insights, I'd be grateful.  The full output
> follows.  Thanks in advance.
> 
> Cheers,
> Tim
> 
> 
> 
> cmExprParserHelper.o cmListFileLexer.o Directory.o Glob.o
> RegularExpression.o SystemTools.o ProcessUNIX.o String.o System.o -o cmake
> /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:cmListFileLexer.o: 
> 
> file format not recognized; treating as linker script
> /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld:cmListFileLexer.o:1: 
> 
I notice it is using cc and g++.  You might want to have it use gcc and 
g++.

export CC=gcc
export CXX=g++
bootstrap.

Be sure to start with a clean source/build tree.

-Bill

-- 
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoffman at kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573


More information about the CMake mailing list