Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20045 - MySQL Update Failure
Summary: MySQL Update Failure
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on: 16707
Blocks:
  Show dependency tree
 
Reported: 2003-04-27 09:35 UTC by Kurt L Vanderwater
Modified: 2003-09-27 17:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge info output (ei,1.28 KB, text/plain)
2003-04-30 22:36 UTC, Kurt L Vanderwater
Details
emerge info output (dup of 11338 - ignore!) (ei,1.28 KB, text/plain)
2003-04-30 22:36 UTC, Kurt L Vanderwater
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt L Vanderwater 2003-04-27 09:35:49 UTC
Running  emerge -u dev-db/mysql 
 
-up shows: 
# emerge -up dev-db/mysql 
 
These are the packages that I would merge, in order: 
 
Calculating dependencies ...done! 
[ebuild    U ] dev-db/mysql-3.23.56 [3.23.54a]  
 
..... 
checking if conversion of longlong to float works... no 
configure: error: Your compiler cannot convert a longlong value to a float! 
If you are using gcc 2.8.# you should upgrade to egcs 1.0.3 or newer and try 
again 
 
!!! ERROR: dev-db/mysql-3.23.56 failed. 
!!! Function econf, Line 273, Exitcode 1 
!!! econf failed 
 
 
Seems that the configure file in /var/tmp/portage/mysql-3.23.56/work/mysql-3.23.56 
is assuming at line 16914 that I need to do a check for Sparc and gcc 2.8.# 
 
gcc on this system is at version 3.2.2 
 
I don't know if this is a stupid noobe error or what? 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Actual Results:  
checking if conversion of longlong to float works... no 
configure: error: Your compiler cannot convert a longlong value to a float! 
If you are using gcc 2.8.# you should upgrade to egcs 1.0.3 or newer and try 
again 
 
!!! ERROR: dev-db/mysql-3.23.56 failed. 
!!! Function econf, Line 273, Exitcode 1 
!!! econf failed 

Expected Results:  
mysql should be upgraded 

I tried this a variety of times. failed each. some from console... nothing else running... some 
from kde... same results every time.
Comment 1 SpanKY gentoo-dev 2003-04-27 15:49:58 UTC
please post /var/tmp/portage/mysql-3.23.56/work/mysql-3.23.56/config.log as an attachment
Comment 2 SpanKY gentoo-dev 2003-04-27 17:08:05 UTC
from the user:

configure:16912: checking if conversion of longlong to float works
configure:16939: gcc -o conftest -O3 -DDBUG_OFF     -rdynamic conftest.c 
-lpthread -lz -lcrypt -lnsl -lm  -lpthread >&5
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../libpthread.a(pthread.o)(.text+
0x136): 
In function `__pthread_initialize_minimal':
: undefined reference to `_dl_cpuclock_offset'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../libpthread.a(pthread.o)(.text+
0x13b): 
In function `__pthread_initialize_minimal':
: undefined reference to `_dl_cpuclock_offset'
collect2: ld returned 1 exit status
configure:16942: $? = 1
configure: program exited with status 1
configure: failed program was:
#line 16922 "configure"
#include "confdefs.h"
#include <stdio.h>
typedef long long longlong;
main()
{
  longlong ll=1;
  float f;
  FILE *file=fopen("conftestval", "w");
  f = (float) ll;
  fprintf(file,"%g\n",f);
  close(file);
  exit (0);
}
configure:16966: result: no
configure:16973: error: Your compiler cannot convert a longlong value to a float!
If you are using gcc 2.8.# you should upgrade to egcs 1.0.3 or newer and try again
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-04-27 22:45:13 UTC
could you please post 'emerge info' ?
Comment 4 Kurt L Vanderwater 2003-04-30 22:36:07 UTC
Created attachment 11338 [details]
emerge info output

This is the requested output from "emerge info" on the failing system.
Comment 5 Kurt L Vanderwater 2003-04-30 22:36:43 UTC
Created attachment 11339 [details]
emerge info output (dup of 11338 - ignore!)

This is the requested output from "emerge info" on the failing system.
Comment 6 Kurt L Vanderwater 2003-04-30 22:39:29 UTC
Comment on attachment 11339 [details]
emerge info output (dup of 11338 - ignore!)

I would delete this if there was a "delete" buttom somewhere.
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-05 01:34:06 UTC
could you please do:
'emerge binutils glibc'
then try to emerge mysql again.
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-11 21:57:42 UTC
Kurt: any updates on this?
Comment 9 Kurt L Vanderwater 2003-05-13 08:07:28 UTC
Robin 
 
I tried the 'emerge binutils glibc'. It worked just fine... then tried both 'emerge -u 
mysql', as well as 'emerge mysql'.... Same failure. 
 
Any idea what I am suffering from? Am I the only one??? 
 
Thanks 
 
Kurt 
 
 
  
 
  
Comment 10 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-13 12:47:53 UTC
Could you please try some of the steps in bug #16707.
It seems that is the same thing.

Namely:
USE='-java' emerge gcc
Comment 11 Kurt L Vanderwater 2003-05-16 09:26:49 UTC
I went and read the 16707 bug. I don't see any similarity. 
but... 
I ran the: 
USE='-java' emerge gcc 
This worked just fine. 
then i ran 
emerge -u mysql 
same failure 
then I ran  
USE='-java' emerge -u mysql 
same failure 
 
The 16707 bug was in reference to '_dl_cpuclock_offset', mine is in reference to 
longlong. I hate to be dense, but I don't see the corelation. 
 
 
Comment 12 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-16 21:38:17 UTC
Kurt: the config.log that you posted for vapier showed that it was the '_dl_cpuclock_offset' that was causing the configure to give the weird error about longlong.
Comment 13 Kurt L Vanderwater 2003-05-17 12:38:39 UTC
Robin 
 
Thanks for the swinging a 2x4 my way <grin> 
I see that now... I was way to focused on the longlong  
anyway.... 
A bit more investigation now that I have been reminded to READ! 
 
The section that is failing has a comment that preceeds it that indicates it is a 
check for a sparc using gcc 2.8.# 
 
So, I bit reformatting so I can tell where the "if"s are closed and I comment out 
the section and re-run ./configure from the 
vartmp/portage/mysql-3.23.56/work/mysql-3.23.56 directory. This seems to 
make it all the way through the process. 
 
Problem is, if I re-run emerge, I suspect that all my modifications to configure are 
going to disappear. 
 
Also of note from reading the code a bit. The error (_dl_cpuclock_offset) seems 
to be coming from "-lpthread" which is imbedded in the gcc command twice. 
Removing this and re-running the code fragment for longlong works just fine. 
 
So, I seem to be suffering from  
	1. possession of a pthread library 
	2. having a sparc sibling that I need to check on 
	3. insufficent knowledge of the internals for the emerge process of building, 
compiling, sandboxing, upgrading, etc... 
 
I'm somewhat tempted to go find the pthread library and rename it... but I 
suspect that wouldn't really help. 
 
Oh yeah... in case you are curious what the gcc line looks like by the time it gets 
around to the longlong to float test.... here it is. 
 
gcc -o conftest -O3 -DDBUG_OFF -march=pentiumpro  -pipe 
-DHAVE_ERRNO_AS_DEFINE=1 -O3    -rdynamic conftest.c -lpthread -lz 
-lcrypt -lnsl -lm  -lpthread 
 
Curious and learning.... 
Thanks as always 
Kurt L Vanderwater 
Comment 14 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-23 13:25:09 UTC
I really can't figure out why -lpthread twice is causing problems.
Could you please try: 'emerge -D binutils gcc glibc binutils gcc', then 'emerge mysql'.

I know I have gcc/binutils in the first line twice, I want to see something about cross-linking between them.
When the mysql emerge fails, please attach the entire config.log file here again.
Comment 15 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-06-03 23:58:55 UTC
Kurt: any progess on this?
Comment 16 Kurt Hindenburg 2003-06-07 17:35:40 UTC
On bugs.gentoo.org I've seen problems with dl_cpuclock_offset for php,mysql and now I've got problems with avifile....
Comment 17 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-08-27 22:00:10 UTC
Kurt: I'm strongly inclined to suspect deeper problems with your system somewhere, and I'm not sure where.

Please try upgrading to glibc-2.3.2-r1 and recompiling, other people have seen this fix similar problems.
Comment 18 Martin Holzer (RETIRED) gentoo-dev 2003-09-16 10:54:43 UTC
is this still a problem ?
Comment 19 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-09-27 17:47:36 UTC
no response from user.