* What are the results of "make VERBOSE=1" (starting from a clean build,
again)?

* What are your OS X and gcc versions?

Here is my script this time:

cmake \
-DCMAKE_INSTALL_PREFIX=/Users/me/Documents/Programs/Ada/Code/Bindings/ PLplot/plplot_svn/temp \ /Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/ test_c_library_build
make VERBOSE=1


There are two sets of results here using two different compiler versions.

To answer the easy question:
  OS X version is 10.4.11.
  Processor is PPC.


-bash-2.05b$ gcc -v
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)


This is the compiler from macada.org that I have used for a long time. Using it results in the text in the attached file, output.txt.
-- The C compiler identification is GNU
-- Check for working C compiler: /usr/local/ada-4.3/bin/gcc
-- Check for working C compiler: /usr/local/ada-4.3/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp
Running make.
"/Applications/CMake 2.6-2.app/Contents/bin/cmake" 
-H/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/test_c_library_build
 -B/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp 
--check-build-system CMakeFiles/Makefile.cmake 0
"/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E cmake_progress_start 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/CMakeFiles
 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/CMakeFiles/progress.make
make -f CMakeFiles/Makefile2 all
make -f Hello/CMakeFiles/Hello.dir/build.make Hello/CMakeFiles/Hello.dir/depend
cd /Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp && 
"/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E cmake_depends "Unix 
Makefiles" 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/test_c_library_build
 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/test_c_library_build/Hello
 /Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/Hello 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/Hello/CMakeFiles/Hello.dir/DependInfo.cmake
 --color=
Dependee 
"/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/Hello/CMakeFiles/Hello.dir/DependInfo.cmake"
 is newer than depender 
"/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/Hello/CMakeFiles/Hello.dir/depend.internal".
Scanning dependencies of target Hello
make -f Hello/CMakeFiles/Hello.dir/build.make Hello/CMakeFiles/Hello.dir/build
"/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E cmake_progress_report 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/CMakeFiles
 1
[ 50%] Building C object Hello/CMakeFiles/Hello.dir/hello.c.o
cd /Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/Hello 
&& /usr/local/ada-4.3/bin/gcc   -DHello_EXPORTS -fPIC   -o 
CMakeFiles/Hello.dir/hello.c.o   -c 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/test_c_library_build/Hello/hello.c
Linking C shared library libHello.dylib
cd /Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/Hello 
&& "/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E cmake_link_script 
CMakeFiles/Hello.dir/link.txt --verbose=1
/usr/local/ada-4.3/bin/gcc   -dynamiclib -headerpad_max_install_names 
-Wl,-current_version,0.0.1 -o libHello.0.0.1.dylib -install_name 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/Hello/libHello.0.0.dylib
 CMakeFiles/Hello.dir/hello.c.o 
/usr/bin/ld: unknown flag: -current_version
collect2: ld returned 1 exit status
make[2]: *** [Hello/libHello.0.0.1.dylib] Error 1
make[1]: *** [Hello/CMakeFiles/Hello.dir/all] Error 2
make: *** [all] Error 2
Done


In my profile file, if I comment out this:

PATH=/usr/local/ada-4.3/bin:$PATH
export PATH

then I get this version info

-bash-2.05b$ gcc -v
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)

and the text in attached output1.txt.
-- The C compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp
Running make.
"/Applications/CMake 2.6-2.app/Contents/bin/cmake" 
-H/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/test_c_library_build
 -B/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp 
--check-build-system CMakeFiles/Makefile.cmake 0
"/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E cmake_progress_start 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/CMakeFiles
 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/CMakeFiles/progress.make
make -f CMakeFiles/Makefile2 all
make -f Hello/CMakeFiles/Hello.dir/build.make Hello/CMakeFiles/Hello.dir/depend
cd /Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp && 
"/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E cmake_depends "Unix 
Makefiles" 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/test_c_library_build
 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/test_c_library_build/Hello
 /Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/Hello 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/Hello/CMakeFiles/Hello.dir/DependInfo.cmake
 --color=
Dependee 
"/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/Hello/CMakeFiles/Hello.dir/DependInfo.cmake"
 is newer than depender 
"/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/Hello/CMakeFiles/Hello.dir/depend.internal".
Scanning dependencies of target Hello
make -f Hello/CMakeFiles/Hello.dir/build.make Hello/CMakeFiles/Hello.dir/build
"/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E cmake_progress_report 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/CMakeFiles
 1
[ 50%] Building C object Hello/CMakeFiles/Hello.dir/hello.c.o
cd /Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/Hello 
&& /usr/bin/gcc   -DHello_EXPORTS -fPIC   -o CMakeFiles/Hello.dir/hello.c.o   
-c 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/test_c_library_build/Hello/hello.c
Linking C shared library libHello.dylib
cd /Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/Hello 
&& "/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E cmake_link_script 
CMakeFiles/Hello.dir/link.txt --verbose=1
/usr/bin/gcc   -dynamiclib -headerpad_max_install_names 
-Wl,-current_version,0.0.1 -o libHello.0.0.1.dylib -install_name 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/Hello/libHello.0.0.dylib
 CMakeFiles/Hello.dir/hello.c.o 
cd /Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/Hello 
&& "/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E cmake_symlink_library 
libHello.0.0.1.dylib libHello.0.0.dylib libHello.dylib
"/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E cmake_progress_report 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/CMakeFiles
  1
[ 50%] Built target Hello
make -f Demo/CMakeFiles/helloDemo.dir/build.make 
Demo/CMakeFiles/helloDemo.dir/depend
cd /Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp && 
"/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E cmake_depends "Unix 
Makefiles" 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/test_c_library_build
 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/test_c_library_build/Demo
 /Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/Demo 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/Demo/CMakeFiles/helloDemo.dir/DependInfo.cmake
 --color=
Dependee 
"/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/Demo/CMakeFiles/helloDemo.dir/DependInfo.cmake"
 is newer than depender 
"/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/Demo/CMakeFiles/helloDemo.dir/depend.internal".
Scanning dependencies of target helloDemo
make -f Demo/CMakeFiles/helloDemo.dir/build.make 
Demo/CMakeFiles/helloDemo.dir/build
"/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E cmake_progress_report 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/CMakeFiles
 2
[100%] Building C object Demo/CMakeFiles/helloDemo.dir/demo.c.o
cd /Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/Demo 
&& /usr/bin/gcc   
-I/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/test_c_library_build/Hello
   -o CMakeFiles/helloDemo.dir/demo.c.o   -c 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/test_c_library_build/Demo/demo.c
Linking C executable helloDemo
cd /Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/Demo 
&& "/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E cmake_link_script 
CMakeFiles/helloDemo.dir/link.txt --verbose=1
/usr/bin/gcc   -Wl,-search_paths_first -headerpad_max_install_names -fPIC 
CMakeFiles/helloDemo.dir/demo.c.o  -o helloDemo  
-L/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/Hello 
../Hello/libHello.0.0.1.dylib 
"/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E cmake_progress_report 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/CMakeFiles
  2
[100%] Built target helloDemo
"/Applications/CMake 2.6-2.app/Contents/bin/cmake" -E cmake_progress_start 
/Users/me/Documents/Programs/Ada/Code/Bindings/PLplot/plplot_svn/temp/CMakeFiles
 0
Done


The second case builds and the executable runs correctly. Note that the second compiler does not do Ada.

Jerry
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to