Bug #24792 | compile-pentium-gcov fails while trying to compile bdb | ||
---|---|---|---|
Submitted: | 4 Dec 2006 10:51 | Modified: | 31 Jan 2008 17:02 |
Reporter: | Sergey Vojtovich | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | MySQL Server: Compiling | Severity: | S3 (Non-critical) |
Version: | 4.1 | OS: | Linux (Debian (Sarge)) |
Assigned to: | Daniel Fischer | CPU Architecture: | Any |
[4 Dec 2006 10:51]
Sergey Vojtovich
[4 Dec 2006 21:00]
Sveta Smirnova
Thank you for the report. Verified as described on Linux using last BK sources.
[7 Dec 2006 7:08]
Kristian Nielsen
I think this might be solved by backporting relevant fixes to BUILD/compile-pentium-gcov from 5.0: +# GCC4 needs -fprofile-arcs -ftest-coverage on the linker command line (as well +# as on the compiler command line), and this requires setting LDFLAGS for BDB. +export LDFLAGS="-fprofile-arcs -ftest-coverage" Might also be good to include some other fixes: +# Need to disable ccache, or we loose the gcov-needed compiler output files. +CCACHE_DISABLE=1 +export CCACHE_DISABLE -extra_flags="$pentium_cflags -fprofile-arcs -ftest-coverage" +# The -fprofile-arcs and -ftest-coverage options cause GCC to instrument the +# code with profiling information used by gcov. +# the -DDISABLE_TAO_ASM is needed to avoid build failures in Yassl. +extra_flags="$pentium_cflags -fprofile-arcs -ftest-coverage -DDISABLE_TAO_ASM"