Bug #44861 Falcon does not compile on Solaris 8 on x86 using the Sun Studio compiler
Submitted: 14 May 2009 8:35 Modified: 29 Sep 2009 7:03
Reporter: Olav Sandstå Email Updates:
Status: Won't fix Impact on me:
None 
Category:Tools: Pushbuild Severity:S3 (Non-critical)
Version:6.0.12-alpha OS:Solaris (Solaris 8 on x86)
Assigned to: Olav Sandstå CPU Architecture:Any

[14 May 2009 8:35] Olav Sandstå
Description:
When trying to compile MySQL 6.0 with Falcon using Sun Studio compiler on Solaris 8 on an x86 machine, the following compile error occurs:

/opt/studio12/SUNWspro/bin/CC -DHAVE_CONFIG_H -D_REENTRANT -D_PTHREADS -DFALCONDB -DSTORAGE_ENGINE -DNAMESPACE=Nfs -I. -I../../include  -I../../include -I../../regex -I../../sql -I./TransformLib -I../../zlib    -g  -DSAFE_MUTEX -m32 -mt   -D_FILE_OFFSET_BITS=64 -DHAVE_CURSES_H -I/home/os136802/mysql/develop/repo/falcon-sol8-x86/include -DHAVE_RWLOCK_T -features=except -D_DEBUG -c -o BackLog.o BackLog.cpp
"MemoryManager.h", line 51: Warning (Anachronism): The prior declaration for operator new(unsigned) has an exception specification.
"MemoryManager.h", line 60: Warning (Anachronism): The prior declaration for operator new[](unsigned) has an exception specification.
"HdrState.h", line 23: Warning: Identifier expected instead of "}".
"HdrState.h", line 29: Warning: Identifier expected instead of "}".
"Interlock.h", line 159: Error: #error inline_cas not defined for this platform.
make[3]: *** [BackLog.o] Error 1

How to repeat:
Compile MySQL 6.0 using Sun Studio 12 on a x86 machine running Solaris 8.

Suggested fix:
Either make the compile succeed or disable support for Falcon on Solaris 8 on x86.
[14 May 2009 11:15] Olav Sandstå
Possible work-around for this problem:

Use gcc instead of Sun Studio compiler.
[14 May 2009 11:43] Vladislav Vaintroub
another possible workaround: officially remove Solaris 8 from the list of supported platforms and from PB2:)
[29 Sep 2009 6:54] Daniel Fischer
Olav, can we just close this? It appears that Sol8 is not a supported platform and the only pb2 branches configured to run solaris 8 tests are mysql-5.0 and mysql-5.1 (mysql-6.0 still has some old results listed).
[29 Sep 2009 7:03] Olav Sandstå
Daniel, I agree with you. This can be closed as there are no PB2 test running on this platform longer and Solaris 8 is not intended to be a supported platform for Falcon. I am changing the status to "Won't fix". If that is not the right status feel free to change it.