public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/14787] New: Unsatisfied symbol with using long doubles
@ 2004-03-30 21:21 bangerth at dealii dot org
2004-03-30 21:35 ` [Bug target/14787] " bangerth at dealii dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: bangerth at dealii dot org @ 2004-03-30 21:21 UTC (permalink / raw)
To: gcc-bugs
One of our users couldn't link on his hpux box, and it turned out that there were some
missing symbols for long double arithmetic. In particular, for this little program
------------------------
long double f(long double d) { return -d; }
int main () { return (int) f((long double)1.); }
------------------------
he gets an unsatisfied reference to _U_Qfneg.
Where is this symbol supposed to come from, or which library is supposed to contribute
it? None of the libraries in his /usr/ tree have it.
Luca: can you add the exact command line and output of running gcc on above example
to this report? And also please attach the output of just running "gcc -v".
Thanks
Wolfgang
--
Summary: Unsatisfied symbol with using long doubles
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bangerth at dealii dot org
CC: gcc-bugs at gcc dot gnu dot org,heltai at dimat dot
unipv dot it,law at redhat dot com
GCC target triplet: hppa2.0n-hp-hpux11.00
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14787
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/14787] Unsatisfied symbol with using long doubles
2004-03-30 21:21 [Bug target/14787] New: Unsatisfied symbol with using long doubles bangerth at dealii dot org
@ 2004-03-30 21:35 ` bangerth at dealii dot org
2004-04-04 6:32 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: bangerth at dealii dot org @ 2004-03-30 21:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-03-30 21:35 -------
OK, the information come to me directly:
--------------------
gcc -v
Reading specs from /usr/local/lib/gcc-lib/hppa2.0n-hp-hpux11.00/3.3.2/specs
Configured with: ./configure : (reconfigured) ./configure : (reconfigured)
./configure : (reconfigured) ./configure : (reconfigured) ./configure :
(reconfigured) ./configure : (reconfigured) ./configure : (reconfigured)
./configure
: (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured)
./configure : (reconfigured) ./configure : (reconfigured) ./configure :
(reconfigured) ./configure : (reconfigured) ./configure : (reconfigured)
./configure
: (reconfigured) ./configure
Thread model: single
gcc version 3.3.2
___test.cc___
long double f(long double d) { return -d; }
int main () { return f((long double)1.); }
___EOF___
gcc test.cc -o test
test.cc: In function `int main()':
test.cc:2: warning: return to `int' from `long double'
test.cc:2: warning: argument to `int' from `long double'
/usr/ccs/bin/ld: Unsatisfied symbols:
_U_Qfneg (first referenced in /var/tmp//cc0WZhba.o) (code)
collect2: ld returned 1 exit status
Hope this helps.
luca.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14787
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/14787] Unsatisfied symbol with using long doubles
2004-03-30 21:21 [Bug target/14787] New: Unsatisfied symbol with using long doubles bangerth at dealii dot org
2004-03-30 21:35 ` [Bug target/14787] " bangerth at dealii dot org
@ 2004-04-04 6:32 ` pinskia at gcc dot gnu dot org
2004-08-30 18:09 ` danglin at gcc dot gnu dot org
2004-08-30 18:33 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-04 6:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-04 06:32 -------
The symbol _U_Qfneg comes from libgcc, from the file config/pa/quadlib.c.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14787
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/14787] Unsatisfied symbol with using long doubles
2004-03-30 21:21 [Bug target/14787] New: Unsatisfied symbol with using long doubles bangerth at dealii dot org
2004-03-30 21:35 ` [Bug target/14787] " bangerth at dealii dot org
2004-04-04 6:32 ` pinskia at gcc dot gnu dot org
@ 2004-08-30 18:09 ` danglin at gcc dot gnu dot org
2004-08-30 18:33 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: danglin at gcc dot gnu dot org @ 2004-08-30 18:09 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From danglin at gcc dot gnu dot org 2004-08-30 18:09 -------
This looks like gcc has been incorrectly installed. I can't duplicate
this problem.
Would try the testcase with "-v" and determine if the linker has
been given the correct options to find libgcc. Either the linker can't
find libgcc, or libgcc has been incorrectly built. If the linker
finds libgcc, check with nm to see if the library contains the symbol
_U_Qfneg.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14787
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/14787] Unsatisfied symbol with using long doubles
2004-03-30 21:21 [Bug target/14787] New: Unsatisfied symbol with using long doubles bangerth at dealii dot org
` (2 preceding siblings ...)
2004-08-30 18:09 ` danglin at gcc dot gnu dot org
@ 2004-08-30 18:33 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-30 18:33 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-30 18:33 -------
So closing as "works for me".
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |WORKSFORME
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14787
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-08-30 18:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-30 21:21 [Bug target/14787] New: Unsatisfied symbol with using long doubles bangerth at dealii dot org
2004-03-30 21:35 ` [Bug target/14787] " bangerth at dealii dot org
2004-04-04 6:32 ` pinskia at gcc dot gnu dot org
2004-08-30 18:09 ` danglin at gcc dot gnu dot org
2004-08-30 18:33 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).