Bug #52457 cross compiling GCC atomic builtins are available error

Submitted: 30 Mar 2010 3:33 Modified: 31 Mar 2010 17:23
Reporter: guo ruidong Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.1.45 OS:Linux (FC8)
Assigned to: CPU Architecture:Any

[30 Mar 2010 3:33] guo ruidong
Description:
#CC=/eldk/usr/bin/ppc_82xx-gcc CXX=/eldk/usr/bin/ppc_82xx-g++  ./configure  --with-extra-charsets='all' --host='powerpc' ac_cv_sys_restartable_syscalls='no' 

checking for aio_read in -lrt... yes
checking aio.h usability... yes
checking aio.h presence... yes
checking for aio.h... yes
checking for sched.h... (cached) yes
checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of void*... 4
checking for sched_yield... yes
checking for fdatasync... (cached) yes
checking for localtime_r... (cached) yes
checking whether byte ordering is bigendian... (cached) yes
checking for sched.h... (cached) yes
checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of void*... (cached) 4
checking for sched_yield... (cached) yes
checking for fdatasync... (cached) yes
checking for localtime_r... (cached) yes
checking whether byte ordering is bigendian... (cached) yes
checking whether GCC atomic builtins are available... configure: error: in `/home/guo/mysql/mysql-5.1.45':
configure: error: cannot run test program while cross compiling
See `config.log' for more details.

How to repeat:
version:mysql-5.145
compiler:ppc_82xx-gcc
configure:#CC=/eldk/usr/bin/ppc_82xx-gcc CXX=/eldk/usr/bin/ppc_82xx-g++  ./configure  --with-extra-charsets='all' --host='powerpc' ac_cv_sys_restartable_syscalls='no'
[30 Mar 2010 8:12] Sveta Smirnova
Thank you for the report.

Please send us config.log file.
[30 Mar 2010 8:44] guo ruidong
This includes the confi.log

Attachment: config.rar (application/octet-stream, text), 29.23 KiB.

[30 Mar 2010 8:44] guo ruidong
This includes the confi.log

Attachment: config.rar (application/octet-stream, text), 29.23 KiB.

[30 Mar 2010 8:56] Sveta Smirnova
Thank you for the feedback.

Which version of gcc do you use?
[30 Mar 2010 9:00] guo ruidong
Here is my gcc version:
gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)
[30 Mar 2010 9:51] Sveta Smirnova
Thank you for the feedback.

Could you please try with newer version of gcc: 4.3 or newer. I saw reports about same error like you got (" size of array `test_array' is negative".) with gcc 4.2.2 and earlier.
[31 Mar 2010 0:53] guo ruidong
Sveta Smirnova:

Thank you for help,but the error continues。

I config it again on FC10,the gcc version is 4.3.2,but the error can't remove 。Here is my gcc version:

gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC)

Now,what can I do?
[31 Mar 2010 17:23] Sveta Smirnova
Thank you for the feedback.

Unfortunately build fails not because obvious reason and we neither support cross-compiling, not PowerPC platforms except for some versions of AIX. Please see http://mysql.com/support/supportedplatforms/enterprise.html for details.

So I close the report as "Not a Bug".

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.041 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.