Bug #12288 | Build fails - can't locate file for: -lgcc_s | ||
---|---|---|---|
Submitted: | 30 Jul 2005 22:38 | Modified: | 1 Apr 2006 5:23 |
Reporter: | Matisse Enzer | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 4.1.13 | OS: | MacOS (Mac OS X 10.4.2) |
Assigned to: | Kent Boortz | CPU Architecture: | Any |
[30 Jul 2005 22:38]
Matisse Enzer
[31 Jul 2005 18:43]
Jorge del Conde
Thanks for your bug report. I was able to reproduce this bug using 10.4.2 and gcc4
[31 Jul 2005 22:38]
Matisse Enzer
A work-around is to use the Installer Package for Mac OS X 10.3, which seems to work under 10.4.2.
[10 Aug 2005 11:53]
Brian Vowell
I'm experiencing the EXACT same failure with the 5.0.10 source code. I'm compiling with GCC 4.0.1 and GNUbinutils 2.16 on Solaris 10 x86 (32-bit).
[1 Nov 2005 14:33]
Giuliano Gavazzi
the problem with ctr0 appears to stem from the use of the -static option. I got rid of that and it succeeds, albeit with some warning: ld: warning multiple definitions of symbol _qsort ../mysys/libmysys.a(mf_qsort.o) definition of _qsort in section (__TEXT,__text) /usr/lib/libm.dylib(qsort.So) definition of _qsort gcc_select Current default compiler: gcc version 3.3 20030304 (Apple Computer, Inc. build 1640) sw_vers ProductName: Mac OS X ProductVersion: 10.3.9 BuildVersion: 7W98
[1 Nov 2005 14:34]
Giuliano Gavazzi
forgot: mysql-5.0.15
[1 Nov 2005 15:20]
Giuliano Gavazzi
Solution, at least for the configuration above, seems to be to remove --with-mysqld-ldflags=-all-static from the configure options. For instance instead of: CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors \ -fno-exceptions -fno-rtti" ./configure \ --prefix=/usr/local/mysql --enable-assembler \ --with-mysqld-ldflags=-all-static use CFLAGS="-O3" CXX=gcc CXXFLAGS="-O3 -felide-constructors \ -fno-exceptions -fno-rtti" ./configure \ --prefix=/usr/local/mysql --enable-assembler
[9 Nov 2005 13:50]
Joerg Bruehe
Note that you had two changes in your last attempt: 1) Dropping "static" 2) Changing the compiler/linker front-end (for C++) from "g++" to "gcc". All MySQL release builds (which use "gcc") are done using "gcc" even for C++, not "g++". This does not have effects on the individual object module, but it changes the default library list at link time. In this way, the accidental of expensive C++ runtime functions is avoided. I propose you add "CXX=gcc" to any "configure" call you use for MySQL builds.
[1 Apr 2006 5:23]
Kent Boortz
Build works on Mac OS X 10.4, MySQL 5.0.19 and "gcc version 4.0.0 (Apple Computer, Inc. build 5026)" tar -xzf mysql-5.0.19.tar.gz cd mysql-5.0.19 export PATH=/usr/bin:/bin ./configure --prefix=/usr/local/mysql make
[9 Feb 2007 16:12]
Vladimir Kolesnikov
the problem seems to affect only intel boxes... at least I get the same problem on my mac mini as well, while ppl on ppc dont