Bug #68884 | CMake on OpenIndiana userland can't compile 64 bit | ||
---|---|---|---|
Submitted: | 8 Apr 2013 4:01 | Modified: | 21 Apr 2018 20:24 |
Reporter: | Adam Stylinski | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: Compiling | Severity: | S3 (Non-critical) |
Version: | 5.6.16 | OS: | Other (OpenIndiana 151a7) |
Assigned to: | Tor Didriksen | CPU Architecture: | Any |
[8 Apr 2013 4:01]
Adam Stylinski
[2 May 2013 10:45]
Tor Didriksen
how did you invoke cmake? On sparc I do: cmake -DCMAKE_C_FLAGS=-m64 -DCMAKE_CXX_FLAGS=-m64 which works for both sun studio, and gcc.
[3 Jun 2013 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[4 Jun 2013 19:17]
Paul den Rooijen
Having the same on Solaris 10 server when compiling 5.6.11 build: [ 18%] Building C object mysys/CMakeFiles/mysys.dir/my_atomic.c.o "/udir/rooijenp/ams_wc/ams_perl/src/shlibs/mysql-5.6.11/mysys/my_atomic.c", line 30: zero or negative subscript cc: acomp failed for /udir/rooijenp/ams_wc/ams_perl/src/shlibs/mysql-5.6.11/mysys/my_atomic.c *** Error code 2 The following command caused the error: cd /udir/rooijenp/ams_wc/ams_perl/src/shlibs/mysql-5.6.11/mysys && /opt/SolarisStudio12.3-solaris-sparc-bin/solarisstudio12.3/bin/cc -DHAVE_RWLOCK_T -DHAVE_CONFIG_H -m64 -xO3 -g -Xa -xstrconst -mt -xarch=sparc -DDBUG_OFF -I/udir/rooijenp/ams_wc/ams_perl/src/shlibs/mysql-5.6.11/include -I/udir/rooijenp/ams_wc/ams_perl/src/shlibs/mysql-5.6.11/zlib -I/udir/rooijenp/ams_wc/ams_perl/src/shlibs/mysql-5.6.11/mysys -KPIC -o CMakeFiles/mysys.dir/my_atomic.c.o -c /udir/rooijenp/ams_wc/ams_perl/src/shlibs/mysql-5.6.11/mysys/my_atomic.c make: Fatal error: Command failed for target `mysys/CMakeFiles/mysys.dir/my_atomic.c.o' Current working directory /udir/rooijenp/ams_wc/ams_perl/src/shlibs/mysql-5.6.11
[23 Feb 2014 17:15]
Adam Stylinski
Still having this issue with 5.6.16. I'm setting the CMAKE_C_FLAGS and CMAKE_CXX_FLAGS via the "advanced" toggle in the curses based CMake dialog (ccmake). It should also be noted that this same issue occurs for me while trying to build a 64 bit build for x86 (using OpenIndiana and Solaris Studio). Manually fixing the compiler preprocessor statements in the one header that seems to affect the memory sizes seems to fix it, but obvious modifying autogenerated headers is probably at best a band-aid and at worst results in incorrect code if I'm missing other autogenerated files.
[21 Mar 2018 20:24]
MySQL Verification Team
Wonder if currently it is still an issue?. Thanks.
[22 Apr 2018 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".