[MDEV-4940] cmake on AIX fails for 5.5.32 (but works for 5.5.31) Created: 2013-08-23  Updated: 2013-10-29  Resolved: 2013-10-29

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 5.5.32
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Michael Felt Assignee: Sergei Golubchik
Resolution: Cannot Reproduce Votes: 0
Labels: None
Environment:

AIX 5.3 TL07 (5300-07-01-0748) - old to be more backwards compatible;
IBM XL C/C++ for AIX, V11.1 (5724-X13)
Version: 11.01.0000.0013



 Description   

cannot run cmake because of error - does not do a successful compiler test

from 5.5.31:

-- Running cmake version 2.8.11.2
-- The C compiler identification is XL 11.1.0
-- The CXX compiler identification is XL 11.1.0
-- Check for working C compiler: /usr/vac/bin/cc
-- Check for working C compiler: /usr/vac/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/vacpp/bin/xlC
-- Check for working CXX compiler: /usr/vacpp/bin/xlC -- works
...
-- Performing Test HAVE_PEERCRED
-- Performing Test HAVE_PEERCRED - Failed
-- Performing Test HAVE_SOCKPEERCRED
-- Performing Test HAVE_SOCKPEERCRED - Failed
-- Looking for event.h
-- Looking for event.h - not found
-- Configuring done
-- Generating done
-- Build files have been written to: /data/prj/mariadb/mariadb-5.5.31

from 5.5.32:

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

It fails with the following output:

   Change Dir: /data/prj/mariadb/mariadb-5.5.32/CMakeFiles/CMakeTmp
 
  Run Build Command:/opt/bin/make "cmTryCompileExec2323280062/fast"
 
  No such file or directory
 
  Generator: execution of make failed.  Make command was: /opt/bin/make
  "cmTryCompileExec2323280062/fast"
 
  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:71 (PROJECT)
 
-- Configuring incomplete, errors occurred!
root@x093:[/data/prj/mariadb/mariadb-5.5.32]



 Comments   
Comment by Sergei Golubchik [ 2013-08-30 ]

how do you invoke cmake?

Comment by Michael Felt [ 2013-08-31 ]

in both cases, in the 'current' directory, and as root,

  1. cmake .
Comment by Sergei Golubchik [ 2013-09-09 ]

Sorry, we don't have AIX in our build farm and we don't support MariaDB on AIX.
But if you provide a patch that fixes this, I'll be happy to apply it.

Hint: look at the CMakeFiles/CMakeTmp/ directory, there you'll find the sources of this test program and a makefile. You can try to compile it manually and see what fails.

Comment by Michael Felt [ 2013-09-09 ]

bah tablets.
your comment does not show atm.

in short, i would like to rely on mariadb because oracle has dropped support on AIX. I shall look into setting up a system as a build farm, if that helps. Just not this week. Vacation this week.

Comment by Michael Felt [ 2013-10-24 ]

I am still here, but been side-tracked by work.

Comment by Michael Felt [ 2013-10-25 ]

since cmake is "completing" with version 5.5.33 and 5.5.33a - whatever was not working for me is working now, so this can be closed.

Either it never was an error - and I have stopped making a mistake, or it is fixed.

note: I am using the following command sequence:

gzip -dc mariadb-5.5.33a.tar.gz | tar xf -
mv mariadb-5.5.33a mariadb-5.5.33.1
cd mariadb-5.5.33.1
cmake . -DWITH_JEMALLOC=no
make

Generated at Thu Feb 08 07:00:25 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.