[openal] Questioning about linking to OS X 10.4 SDK

Lubo Diakov lubodiakov at gmail.com
Wed Nov 5 20:47:49 EST 2014


Chris Robinson

Good to know it should work with gcc 4.2 (including PPC targets).
When it fails, I suspect that is kind of misconfiguration/wrong shell
env. variable on my system most likely. Essentially it complains it
can't use gcc-4.2 even though I've used it to compile things from
source, and also when compiling within MacPorts.

Here is the output of cmake /path/to/openal-soft/source (Only the part
that failed, I left out the part which had no errors, plus the
CMakeError.log (Partial, because the mail list won't accept it in full
without modeartion. Long!)
If you need the full CMakeError.log I can send it off list perhaps?

-- Check for working C compiler: /usr/bin/gcc-4.2
CMake Error: Generator: execution of make failed. Make command was:
"/opt/local/bin/gmake" "cmTryCompileExec3822271557/fast"
-- Check for working C compiler: /usr/bin/gcc-4.2 -- broken
CMake Error at /opt/local/share/cmake-3.0/Modules/CMakeTestCCompiler.cmake:61
(message):
  The C compiler "/usr/bin/gcc-4.2" is not able to compile a simple test
  program.

  It fails with the following output:

   Change Dir: /Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp



  Run Build Command:"/opt/local/bin/gmake" "cmTryCompileExec3822271557/fast"

  No such file or directory

  Generator: execution of make failed.  Make command was:
  "/opt/local/bin/gmake" "cmTryCompileExec3822271557/fast"





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:5 (PROJECT)


-- Configuring incomplete, errors occurred!
See also "/Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeOutput.log".
See also "/Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeError.log".

/Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeError.log

Performing C SOURCE FILE Test HAVE_C11_STATIC_ASSERT failed with the
following output:
Change Dir: /Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp

Run Build Command:"/opt/local/bin/gmake" "cmTryCompileExec1098272437/fast"
/opt/local/bin/gmake -f
CMakeFiles/cmTryCompileExec1098272437.dir/build.make
CMakeFiles/cmTryCompileExec1098272437.dir/build
gmake[1]: Entering directory
'/Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp'
/opt/local/bin/cmake -E cmake_progress_report
/Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp/CMakeFiles
1
Building C object CMakeFiles/cmTryCompileExec1098272437.dir/src.c.o
/usr/bin/gcc-4.2   -std=c99  -DHAVE_C11_STATIC_ASSERT  -D_GNU_SOURCE=1
-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_LARGEFILE_SOURCE
-D_LARGE_FILES   -o CMakeFiles/cmTryCompileExec1098272437.dir/src.c.o
 -c /Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp/src.c
/Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp/src.c:
In function ‘main’:
/Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp/src.c:3:
warning: implicit declaration of function ‘_Static_assert’
Linking C executable cmTryCompileExec1098272437
/opt/local/bin/cmake -E cmake_link_script
CMakeFiles/cmTryCompileExec1098272437.dir/link.txt --verbose=1
/usr/bin/gcc-4.2  -std=c99  -DHAVE_C11_STATIC_ASSERT  -D_GNU_SOURCE=1
-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_LARGEFILE_SOURCE
-D_LARGE_FILES -Wl,-search_paths_first
-Wl,-headerpad_max_install_names
CMakeFiles/cmTryCompileExec1098272437.dir/src.c.o  -o
cmTryCompileExec1098272437
Undefined symbols:
  "__Static_assert", referenced from:
      _main in src.c.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
CMakeFiles/cmTryCompileExec1098272437.dir/build.make:88: recipe for
target 'cmTryCompileExec1098272437' failed
gmake[1]: Leaving directory
'/Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec1098272437] Error 1
Makefile:118: recipe for target 'cmTryCompileExec1098272437/fast' failed
gmake: *** [cmTryCompileExec1098272437/fast] Error 2

Source file was:
int main()
 {
     _Static_assert(sizeof(int) == sizeof(int), "What");
     return 0;
 }
Performing C SOURCE FILE Test HAVE_C11_ALIGNAS failed with the following output:
Change Dir: /Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp

Run Build Command:"/opt/local/bin/gmake" "cmTryCompileExec2966780581/fast"
/opt/local/bin/gmake -f
CMakeFiles/cmTryCompileExec2966780581.dir/build.make
CMakeFiles/cmTryCompileExec2966780581.dir/build
gmake[1]: Entering directory
'/Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp'
/opt/local/bin/cmake -E cmake_progress_report
/Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp/CMakeFiles
1
Building C object CMakeFiles/cmTryCompileExec2966780581.dir/src.c.o
/usr/bin/gcc-4.2   -std=c99  -DHAVE_C11_ALIGNAS  -D_GNU_SOURCE=1
-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_LARGEFILE_SOURCE
-D_LARGE_FILES   -o CMakeFiles/cmTryCompileExec2966780581.dir/src.c.o
 -c /Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp/src.c
/Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp/src.c:1:
error: expected declaration specifiers or ‘...’ before numeric
constant
/Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp/src.c:1:
warning: return type defaults to ‘int’
/Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp/src.c:
In function ‘_Alignas’:
/Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp/src.c:3:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘{’ token
/Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp/src.c:1:
error: declaration for parameter ‘foo’ but no such parameter
/Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp/src.c:5:
error: expected ‘{’ at end of input
CMakeFiles/cmTryCompileExec2966780581.dir/build.make:57: recipe for
target 'CMakeFiles/cmTryCompileExec2966780581.dir/src.c.o' failed
gmake[1]: *** [CMakeFiles/cmTryCompileExec2966780581.dir/src.c.o] Error 1
gmake[1]: Leaving directory
'/Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp'
Makefile:118: recipe for target 'cmTryCompileExec2966780581/fast' failed
gmake: *** [cmTryCompileExec2966780581/fast] Error 2

Source file was:
_Alignas(16) int foo;
 int main()
 {
     return 0;
 }
Performing C SOURCE FILE Test HAVE_C11_ATOMIC failed with the following output:
Change Dir: /Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp

Run Build Command:"/opt/local/bin/gmake" "cmTryCompileExec1184648261/fast"
/opt/local/bin/gmake -f
CMakeFiles/cmTryCompileExec1184648261.dir/build.make
CMakeFiles/cmTryCompileExec1184648261.dir/build
gmake[1]: Entering directory
'/Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp'
/opt/local/bin/cmake -E cmake_progress_report
/Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp/CMakeFiles
1
Building C object CMakeFiles/cmTryCompileExec1184648261.dir/src.c.o
/usr/bin/gcc-4.2   -std=c99  -DHAVE_C11_ATOMIC  -D_GNU_SOURCE=1
-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -D_LARGEFILE_SOURCE
-D_LARGE_FILES   -o CMakeFiles/cmTryCompileExec1184648261.dir/src.c.o
 -c /Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp/src.c
/Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp/src.c:1:23:
error: stdatomic.h: No such file or directory
/Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp/src.c:2:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘foo’
/Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp/src.c:
In function ‘main’:
/Users/lubod/Downloads/openal-soft-1.16.0/CMakeFiles/CMakeTmp/src.c:5:
warning: implicit declaration of function ‘ato


More information about the openal mailing list