[CMake] Regression between 2.4.8 and 2.6.2 for the macada version of the gcc compiler

Alexander Neundorf a.neundorf-work at gmx.net
Wed Jan 28 16:36:26 EST 2009


On Wednesday 28 January 2009, Alan W. Irwin wrote:
> One of the PLplot developers has been using the macada version of the gcc
> compiler on Mac OS X for a long time because that version gives him an
> integrated Ada compiler as well.  That compiler worked well for cmake-2.4,
> but he has recently run into build problems for cmake-2.6.
>
> The issue can be illustrated by a simple "hello-world" shared library
> build test project with SOVERSION and VERSION specified for the library.
> You can svn checkout that simple test from
> https://plplot.svn.sourceforge.net/svnroot/plplot/branches/test_cmake/test_
>c_library_build
>
> His platform is OS X version 10.4.11 on a ppc processor.
>
> I present three different VERBOSE=1 "make" output results that he obtained
> with the above simple test project.
>
> I) CMake-2.6.2 using the standard Apple compiler with the following gcc -v
> results:
>
> Using built-in specs.
> Target: powerpc-apple-darwin8
> Configured with: /private/var/tmp/gcc/gcc-5363.obj~28/src/configure --
> disable-checking -enable-werror --prefix=/usr --mandir=/share/man --
> enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg]
> [^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-
> slibdir=/usr/lib --build=powerpc-apple-darwin8 --host=powerpc-apple-
> darwin8 --target=powerpc-apple-darwin8
> Thread model: posix
> gcc version 4.0.1 (Apple Computer, Inc. build 5363)
>
> For this compiler all is well for CMake-2.6.2 (see the attached
> make.out_gcc_std_2.6.2). However, note he cannot use that standard compiler
> for his ordinary PLplot development that strongly focusses on Ada.
>
> II) CMake-2.4.8 using the macada gcc compiler with the following gcc -v
> results:
>
> Using built-in specs.
> Target: powerpc-apple-darwin8
> Configured with: /Users/drew/Developer/Compiler/gcc-head/configure
> --disable-checking --disable-nls --enable-static
> --prefix=/usr/local/ada-4.3 --host=powerpc-apple-darwin8
> --target=powerpc-apple-darwin8
> --build=powerpc-apple-darwin8
> --enable-languages=c,ada,c++,fortran,objc,obj-c++
> Thread model: posix
> gcc version 4.3.0 20070904 (experimental) [trunk revision 128067] (GCC)
>
> For this compiler all is well for CMake-2.4.8 (see the attached
> make.out_gcc_macada_2.4.8).  The macada compiler package also provides an
> integrated Ada compiler so this is the one he has been using for his PLplot
> development. Note, the linking for 2.4.8 is done without use of the
> -current_version flag.
>
> III) CMake-2.6.2 using the macada gcc compiler with the above
> gcc -v results.  For this compiler all is not well for CMake-2.6.2 (see the
> attached make.out_gcc_macada_2.6.2).  The -current_version
> flag used by CMake-2.6.2 is not recognized by this compiler (or probably
> more likely the linker associated with this compiler).

Is there some symbol defined which could be tested e.g. in 
Modules/CMakeCCompilerId.c.in ?
Or execute "gcc -v" and if it contains "ada" in enable-languages then don't 
set the flag ? (doesn't sound too good).

Alex


More information about the CMake mailing list