Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Core dump before reaching main with CXX!
@ 2001-04-30 22:36 Ram Viswanadha
  2001-04-30 22:52 ` Uncle George
  2001-04-30 23:33 ` jeff.sturm
  0 siblings, 2 replies; 14+ messages in thread
From: Ram Viswanadha @ 2001-04-30 22:36 UTC (permalink / raw)
  To: axp-list

[-- Attachment #1: Type: text/plain, Size: 406 bytes --]

Hi all,
Trying to compile our library with cxx and ccc is turning out to big a
nightmare. The programs compile and run fine with
GCC.

1) I could not get -ieee option working. The compiler found  undefined
symbols.

2)So compiled and built the libraries without -ieee option, but most of
our tools are core dumping even before reaching main(). So I am lost.

Any help is greatly appreciated.

Thanks,

Ram

[-- Attachment #2: Card for Ram Viswanadha --]
[-- Type: text/x-vcard, Size: 190 bytes --]

begin:vcard 
n:Viswanadha;Ram
x-mozilla-html:FALSE
org:IBM;International Components for Unicode
adr:;;;;;;
version:2.1
email;internet:ram@jtcsv.com
title:Unicode Software Engineer
end:vcard

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Core dump before reaching main with CXX!
  2001-04-30 22:36 Core dump before reaching main with CXX! Ram Viswanadha
@ 2001-04-30 22:52 ` Uncle George
  2001-04-30 22:53   ` Ram Viswanadha
  2001-04-30 22:54   ` T. Daniel Crawford
  2001-04-30 23:33 ` jeff.sturm
  1 sibling, 2 replies; 14+ messages in thread
From: Uncle George @ 2001-04-30 22:52 UTC (permalink / raw)
  To: axp-list, Ram Viswanadha

U also need the bin-utils from the compaq web site. There is something
wrong with 'normal' bin-utils. i'd like to know what it is, so ccc & cxx
can be used with RH70
/gat

BTW did u also get libots ? from the compaq web site ?


Ram Viswanadha wrote:

> Hi all,
> Trying to compile our library with cxx and ccc is turning out to big a
> nightmare. The programs compile and run fine with
> GCC.
>
> 1) I could not get -ieee option working. The compiler found  undefined
> symbols.
>
> 2)So compiled and built the libraries without -ieee option, but most of
> our tools are core dumping even before reaching main(). So I am lost.
>
> Any help is greatly appreciated.
>
> Thanks,
>
> Ram




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Core dump before reaching main with CXX!
  2001-04-30 22:52 ` Uncle George
@ 2001-04-30 22:53   ` Ram Viswanadha
  2001-04-30 23:21     ` Uncle George
  2001-04-30 22:54   ` T. Daniel Crawford
  1 sibling, 1 reply; 14+ messages in thread
From: Ram Viswanadha @ 2001-04-30 22:53 UTC (permalink / raw)
  To: Uncle George; +Cc: axp-list

[-- Attachment #1: Type: text/plain, Size: 936 bytes --]

Uncle George,
I am running RedHat Linux 6.2 with compaq_rh62_binutils-2_9_5_0_22-8_alpha
binary utilities and libots-2.2.7. Any idea what I should do to get it to
work?

Thanks

Ram


Uncle George wrote:

> U also need the bin-utils from the compaq web site. There is something
> wrong with 'normal' bin-utils. i'd like to know what it is, so ccc & cxx
> can be used with RH70
> /gat
>
> BTW did u also get libots ? from the compaq web site ?
>
> Ram Viswanadha wrote:
>
> > Hi all,
> > Trying to compile our library with cxx and ccc is turning out to big a
> > nightmare. The programs compile and run fine with
> > GCC.
> >
> > 1) I could not get -ieee option working. The compiler found  undefined
> > symbols.
> >
> > 2)So compiled and built the libraries without -ieee option, but most of
> > our tools are core dumping even before reaching main(). So I am lost.
> >
> > Any help is greatly appreciated.
> >
> > Thanks,
> >
> > Ram

[-- Attachment #2: Card for Ram Viswanadha --]
[-- Type: text/x-vcard, Size: 190 bytes --]

begin:vcard 
n:Viswanadha;Ram
x-mozilla-html:FALSE
org:IBM;International Components for Unicode
adr:;;;;;;
version:2.1
email;internet:ram@jtcsv.com
title:Unicode Software Engineer
end:vcard

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Core dump before reaching main with CXX!
  2001-04-30 22:52 ` Uncle George
  2001-04-30 22:53   ` Ram Viswanadha
@ 2001-04-30 22:54   ` T. Daniel Crawford
  1 sibling, 0 replies; 14+ messages in thread
From: T. Daniel Crawford @ 2001-04-30 22:54 UTC (permalink / raw)
  To: axp-list

On Mon, 30 Apr 2001, Uncle George wrote:

> U also need the bin-utils from the compaq web site. There is something
> wrong with 'normal' bin-utils. i'd like to know what it is, so ccc & cxx
> can be used with RH70
> /gat
>
> BTW did u also get libots ? from the compaq web site ?

Are Compaq's ccc and cxx supposed to be broken for RH7.0?  I've used them
quite a bit with no problems (that is, no problems specific to those
compilers).

-Daniel

-- 
T. Daniel Crawford                           Department of Chemistry
crawdad@vt.edu                                    Virginia Tech
www.chem.vt.edu/chem-dept/crawford    Voice: 540-231-7760  FAX: 540-231-3255
                            --------------------
 PGP Public Key at: http://www.chem.vt.edu/chem-dept/crawford/publickey.txt




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Core dump before reaching main with CXX!
  2001-04-30 23:33 ` jeff.sturm
@ 2001-04-30 23:17   ` Ram Viswanadha
  2001-05-01 17:49     ` jeff.sturm
  0 siblings, 1 reply; 14+ messages in thread
From: Ram Viswanadha @ 2001-04-30 23:17 UTC (permalink / raw)
  To: axp-list

[-- Attachment #1: Type: text/plain, Size: 5170 bytes --]



jeff.sturm@appnet.com wrote:

> On Mon, 30 Apr 2001, Ram Viswanadha wrote:
> > 1) I could not get -ieee option working. The compiler found  undefined
> > symbols.
>
> Such as?

cxx -D_LP64 -DHAVE_CONFIG_H -I. -D_REENTRANT -D_REENTRANT -I. -I.
-DICU_DATA_DIR=\"/usr/local/lib/icu/1.8/\" -DUDATA_SO_SUFFIX=\".so\"
-DU_COMMON_LIBNAME=\"libicuuc.so.18.0\" -DUDATA_DLL -g  -std gnu -c
-D__USE_STD_IOSTREAM -ieee  -DPIC -fPIC -o normlzr.o normlzr.cpp
cxx: Error: /usr/lib/compaq/cxx-6.3.9.7/alpha-linux/include/cxx/limits,
line 837:
          identifier "FLT_INFINITY" is undefined
      inline static float infinity() _RWSTD_THROW_SPEC_NULL {return
FLT_INFINITY;}
--------------------------------------------------------------------^
cxx: Error: /usr/lib/compaq/cxx-6.3.9.7/alpha-linux/include/cxx/limits,
line 838:
          identifier "FLT_QNAN" is undefined
      inline static float quiet_NaN() _RWSTD_THROW_SPEC_NULL {return
FLT_QNAN;}
---------------------------------------------------------------------^
cxx: Error: /usr/lib/compaq/cxx-6.3.9.7/alpha-linux/include/cxx/limits,
line 839:
          identifier "FLT_SNAN" is undefined
      inline static float signaling_NaN() _RWSTD_THROW_SPEC_NULL {return
FLT_SNAN;}
-------------------------------------------------------------------------^

cxx: Error: /usr/lib/compaq/cxx-6.3.9.7/alpha-linux/include/cxx/limits,
line 909:
          identifier "DBL_INFINITY" is undefined
      inline static double infinity() _RWSTD_THROW_SPEC_NULL {return
DBL_INFINITY;}
---------------------------------------------------------------------^
cxx: Error: /usr/lib/compaq/cxx-6.3.9.7/alpha-linux/include/cxx/limits,
line 910:
          identifier "DBL_QNAN" is undefined
      inline static double quiet_NaN() _RWSTD_THROW_SPEC_NULL {return
DBL_QNAN;}
----------------------------------------------------------------------^
cxx: Error: /usr/lib/compaq/cxx-6.3.9.7/alpha-linux/include/cxx/limits,
line 911:
          identifier "DBL_SNAN" is undefined
      inline static double signaling_NaN() _RWSTD_THROW_SPEC_NULL
{return DBL_SNAN;}
--------------------------------------------------------------------------^

cxx: Error: /usr/lib/compaq/cxx-6.3.9.7/alpha-linux/include/cxx/limits,
line 981:
          identifier "LDBL_INFINITY" is undefined
      inline static long double infinity() _RWSTD_THROW_SPEC_NULL
{return LDBL_INFINITY;}
--------------------------------------------------------------------------^

cxx: Error: /usr/lib/compaq/cxx-6.3.9.7/alpha-linux/include/cxx/limits,
line 986:
          identifier "DBL_QNAN" is undefined
      inline static long double quiet_NaN() _RWSTD_THROW_SPEC_NULL
{return DBL_QNAN;}
---------------------------------------------------------------------------^

cxx: Error: /usr/lib/compaq/cxx-6.3.9.7/alpha-linux/include/cxx/limits,
line 987:
          identifier "DBL_SNAN" is undefined
      inline static long double signaling_NaN() _RWSTD_THROW_SPEC_NULL
{return DBL_SNAN;}
-------------------------------------------------------------------------------^

cxx: Info: 9 errors detected in the compilation of "normlzr.cpp".

>
>
> > 2)So compiled and built the libraries without -ieee option, but most of
> > our tools are core dumping even before reaching main(). So I am lost.
>
> Did you get a backtrace from gdb?
>
> You've left out a lot of critical details that would make it easier to
> help you.

GNU gdb 4.17.0.11 with Linux support
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.

Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "alpha-redhat-linux"...
(gdb) br main
Breakpoint 1 at 0x2bf4: file genrb.c, line 84.
(gdb) r
Starting program: /home/raghu/work/icu/source/tools/genrb/genrb
Cannot insert breakpoint 1:
Temporarily disabling shared library breakpoints:
1 -2

Program received signal SIGSEGV, Segmentation fault.
warning: Hit heuristic-fence-post without finding
warning: enclosing function for address 0x20001002aac
This warning occurs if you are debugging a function without any symbols
(for example, in a stripped executable).  In that case, you may wish to
increase the size of the search with the `set heuristic-fence-post' command.

Otherwise, you told GDB there was a function where there isn't one, or
(more likely) you have encountered a bug in GDB.
0x20001002aac in ?? ()
(gdb) bt
#0  0x20001002aac in ?? ()
warning: Hit heuristic-fence-post without finding
warning: enclosing function for address 0x20000524400
(gdb) set heuristic-fence-post 300
(gdb) bt
#0  0x20001002aac in ?? ()
Cannot access memory at address 0x200005243fc.
(gdb) quit
The program is running.  Exit anyway? (y or n) y

The program was compiled using -gall switch which, supposedly,includes all
the debug information.

Regards,

Ram

>
> --
> Jeff Sturm
> jeff.sturm@commerceone.com
>
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list

[-- Attachment #2: Card for Ram Viswanadha --]
[-- Type: text/x-vcard, Size: 190 bytes --]

begin:vcard 
n:Viswanadha;Ram
x-mozilla-html:FALSE
org:IBM;International Components for Unicode
adr:;;;;;;
version:2.1
email;internet:ram@jtcsv.com
title:Unicode Software Engineer
end:vcard

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Core dump before reaching main with CXX!
  2001-04-30 22:53   ` Ram Viswanadha
@ 2001-04-30 23:21     ` Uncle George
  2001-05-01 16:17       ` Ram Viswanadha
  0 siblings, 1 reply; 14+ messages in thread
From: Uncle George @ 2001-04-30 23:21 UTC (permalink / raw)
  To: Ram Viswanadha; +Cc: axp-list

Sorry, thats all that i know. I tried to use ccc, but was not able to get it
to go without coredumping. That is until I installed the bin-utils, which was
ment to fix something in cxx . Then things worked.

If u still have missing symbols, maybe one of the *.o 's from the GNU crowd is
around.  I think u should also link using ccc/cxx to make sure that that the
'proper' ccc libs are included.

I would reinstall the pieces ( with -U --force )  ( libots for the proper cpu
( ev5 should work everywhere ), libcpml, ccc, cxx, and then bin utils ).
rebuild ur src from scratch.  There is not much more that I can help with.
I'd suggest the 'help' from the university of NH, but their website has been
moved, or changed. :-{

/gat



Ram Viswanadha wrote:

> Uncle George,
> I am running RedHat Linux 6.2 with compaq_rh62_binutils-2_9_5_0_22-8_alpha
> binary utilities and libots-2.2.7. Any idea what I should do to get it to
> work?
>
> Thanks
>
> Ram
>
> Uncle George wrote:
>
> > U also need the bin-utils from the compaq web site. There is something
> > wrong with 'normal' bin-utils. i'd like to know what it is, so ccc & cxx
> > can be used with RH70
> > /gat
> >
> > BTW did u also get libots ? from the compaq web site ?
> >
> > Ram Viswanadha wrote:
> >
> > > Hi all,
> > > Trying to compile our library with cxx and ccc is turning out to big a
> > > nightmare. The programs compile and run fine with
> > > GCC.
> > >
> > > 1) I could not get -ieee option working. The compiler found  undefined
> > > symbols.
> > >
> > > 2)So compiled and built the libraries without -ieee option, but most of
> > > our tools are core dumping even before reaching main(). So I am lost.
> > >
> > > Any help is greatly appreciated.
> > >
> > > Thanks,
> > >
> > > Ram




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Core dump before reaching main with CXX!
  2001-04-30 22:36 Core dump before reaching main with CXX! Ram Viswanadha
  2001-04-30 22:52 ` Uncle George
@ 2001-04-30 23:33 ` jeff.sturm
  2001-04-30 23:17   ` Ram Viswanadha
  1 sibling, 1 reply; 14+ messages in thread
From: jeff.sturm @ 2001-04-30 23:33 UTC (permalink / raw)
  To: axp-list

On Mon, 30 Apr 2001, Ram Viswanadha wrote:
> 1) I could not get -ieee option working. The compiler found  undefined
> symbols.

Such as?

> 2)So compiled and built the libraries without -ieee option, but most of
> our tools are core dumping even before reaching main(). So I am lost.

Did you get a backtrace from gdb?

You've left out a lot of critical details that would make it easier to
help you.

--
Jeff Sturm
jeff.sturm@commerceone.com




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Core dump before reaching main with CXX!
  2001-04-30 23:21     ` Uncle George
@ 2001-05-01 16:17       ` Ram Viswanadha
  0 siblings, 0 replies; 14+ messages in thread
From: Ram Viswanadha @ 2001-05-01 16:17 UTC (permalink / raw)
  To: axp-list

[-- Attachment #1: Type: text/plain, Size: 2157 bytes --]

Thanks for your help Uncle George, I have tried all your suggestions, but still
having the same error :-(.

Regards

Ram

Uncle George wrote:

> Sorry, thats all that i know. I tried to use ccc, but was not able to get it
> to go without coredumping. That is until I installed the bin-utils, which was
> ment to fix something in cxx . Then things worked.
>
> If u still have missing symbols, maybe one of the *.o 's from the GNU crowd is
> around.  I think u should also link using ccc/cxx to make sure that that the
> 'proper' ccc libs are included.

>
>
> I would reinstall the pieces ( with -U --force )  ( libots for the proper cpu
> ( ev5 should work everywhere ), libcpml, ccc, cxx, and then bin utils ).
> rebuild ur src from scratch.  There is not much more that I can help with.
> I'd suggest the 'help' from the university of NH, but their website has been
> moved, or changed. :-{
>
> /gat
>
> Ram Viswanadha wrote:
>
> > Uncle George,
> > I am running RedHat Linux 6.2 with compaq_rh62_binutils-2_9_5_0_22-8_alpha
> > binary utilities and libots-2.2.7. Any idea what I should do to get it to
> > work?
> >
> > Thanks
> >
> > Ram
> >
> > Uncle George wrote:
> >
> > > U also need the bin-utils from the compaq web site. There is something
> > > wrong with 'normal' bin-utils. i'd like to know what it is, so ccc & cxx
> > > can be used with RH70
> > > /gat
> > >
> > > BTW did u also get libots ? from the compaq web site ?
> > >
> > > Ram Viswanadha wrote:
> > >
> > > > Hi all,
> > > > Trying to compile our library with cxx and ccc is turning out to big a
> > > > nightmare. The programs compile and run fine with
> > > > GCC.
> > > >
> > > > 1) I could not get -ieee option working. The compiler found  undefined
> > > > symbols.
> > > >
> > > > 2)So compiled and built the libraries without -ieee option, but most of
> > > > our tools are core dumping even before reaching main(). So I am lost.
> > > >
> > > > Any help is greatly appreciated.
> > > >
> > > > Thanks,
> > > >
> > > > Ram
>
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list

[-- Attachment #2: Card for Ram Viswanadha --]
[-- Type: text/x-vcard, Size: 190 bytes --]

begin:vcard 
n:Viswanadha;Ram
x-mozilla-html:FALSE
org:IBM;International Components for Unicode
adr:;;;;;;
version:2.1
email;internet:ram@jtcsv.com
title:Unicode Software Engineer
end:vcard

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Core dump before reaching main with CXX!
  2001-04-30 23:17   ` Ram Viswanadha
@ 2001-05-01 17:49     ` jeff.sturm
  2001-05-01 21:57       ` W Bauske
  0 siblings, 1 reply; 14+ messages in thread
From: jeff.sturm @ 2001-05-01 17:49 UTC (permalink / raw)
  To: axp-list

On Mon, 30 Apr 2001, Ram Viswanadha wrote:
> cxx: Error: /usr/lib/compaq/cxx-6.3.9.7/alpha-linux/include/cxx/limits,
> line 837:
>           identifier "FLT_INFINITY" is undefined
>       inline static float infinity() _RWSTD_THROW_SPEC_NULL {return
> FLT_INFINITY;}

This doesn't happen when you remove -ieee?  Now that is strange.  I
assumed you meant the linker was complaining about undefined symbols.  No
version of binutils can help here.

It sure looks like a bug in cxx to me.

> 0x20001002aac in ?? ()
> (gdb) bt
> #0  0x20001002aac in ?? ()
> warning: Hit heuristic-fence-post without finding
> warning: enclosing function for address 0x20000524400

Ugh.  Gdb is behaving badly.  This is a shared library address,
however.  The output of "ldd genrp" will tell you which library.

> The program was compiled using -gall switch which, supposedly,includes all
> the debug information.

Right.  However gdb didn't stop in your code.  The shared library may
not have been compiled with -g.

--
Jeff Sturm
jeff.sturm@commerceone.com




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Core dump before reaching main with CXX!
  2001-05-01 17:49     ` jeff.sturm
@ 2001-05-01 21:57       ` W Bauske
  2001-05-01 22:26         ` jeff.sturm
  0 siblings, 1 reply; 14+ messages in thread
From: W Bauske @ 2001-05-01 21:57 UTC (permalink / raw)
  To: axp-list

jeff.sturm@appnet.com wrote:
> 
> On Mon, 30 Apr 2001, Ram Viswanadha wrote:
> > cxx: Error: /usr/lib/compaq/cxx-6.3.9.7/alpha-linux/include/cxx/limits,
> > line 837:
> >           identifier "FLT_INFINITY" is undefined
> >       inline static float infinity() _RWSTD_THROW_SPEC_NULL {return
> > FLT_INFINITY;}
> 
> This doesn't happen when you remove -ieee?  Now that is strange.  
> 

Not necessarily. If -ieee turns on defines, the code may only activate
if -ieee is turned on.

Wes




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Core dump before reaching main with CXX!
  2001-05-01 21:57       ` W Bauske
@ 2001-05-01 22:26         ` jeff.sturm
  2001-05-02  2:28           ` W Bauske
  0 siblings, 1 reply; 14+ messages in thread
From: jeff.sturm @ 2001-05-01 22:26 UTC (permalink / raw)
  To: axp-list

Wes> Not necessarily. If -ieee turns on defines, the code may only
Wes> activate if -ieee is turned on.

Right, that may help to explain the failures, but doesn't change the
outcome that CXX appears broken.  There's no blaming binutils in this
case.

--
Jeff Sturm
jeff.sturm@commerceone.com




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Core dump before reaching main with CXX!
  2001-05-02  2:28           ` W Bauske
@ 2001-05-02  2:15             ` Ram Viswanadha
  2001-05-02  3:00               ` W Bauske
  0 siblings, 1 reply; 14+ messages in thread
From: Ram Viswanadha @ 2001-05-02  2:15 UTC (permalink / raw)
  To: axp-list

[-- Attachment #1: Type: text/plain, Size: 2090 bytes --]


Well the code in limits  says:

#if !defined(_IEEE_FP)
      static const bool has_infinity = false;
      static const bool has_quiet_NaN = false;
      static const bool has_signaling_NaN = false;
      static const float_denorm_style has_denorm = denorm_absent;
      static const bool has_denorm_loss = false;
      inline static float infinity() _RWSTD_THROW_SPEC_NULL {return 0;}
      inline static float quiet_NaN() _RWSTD_THROW_SPEC_NULL {return 0;}
      inline static float signaling_NaN() _RWSTD_THROW_SPEC_NULL {return
0;}
      inline static float denorm_min() _RWSTD_THROW_SPEC_NULL {return 0;}
      static const bool is_iec559 = false;
#else // IEEE Conformant Floats
      static const bool has_infinity = true;
      static const bool has_quiet_NaN = true;
      static const bool has_signaling_NaN = true;
      static const float_denorm_style has_denorm = denorm_present;
      static const bool has_denorm_loss = false;
      inline static float infinity() _RWSTD_THROW_SPEC_NULL {return
FLT_INFINITY;}
      inline static float quiet_NaN() _RWSTD_THROW_SPEC_NULL {return
FLT_QNAN;}
      inline static float signaling_NaN() _RWSTD_THROW_SPEC_NULL {return
FLT_SNAN;}
      inline static float denorm_min() _RWSTD_THROW_SPEC_NULL {
      const unsigned short pos_denorm[2] = {0x0001, 0x0000};
          return *(float *)pos_denorm;
      }
      static const bool is_iec559 = true;
#endif

So I think it is certainly compilation.

Ram

W Bauske wrote:

> jeff.sturm@appnet.com wrote:
> >
> > Wes> Not necessarily. If -ieee turns on defines, the code may only
> > Wes> activate if -ieee is turned on.
> >
> > Right, that may help to explain the failures, but doesn't change the
> > outcome that CXX appears broken.  There's no blaming binutils in this
> > case.
> >
>
> I'm more inclined to believe something went wrong in the link
> from the description of the problem, like the wrong libs/order
> of libs.
>
> Wes
>
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list

[-- Attachment #2: Card for Ram Viswanadha --]
[-- Type: text/x-vcard, Size: 190 bytes --]

begin:vcard 
n:Viswanadha;Ram
x-mozilla-html:FALSE
org:IBM;International Components for Unicode
adr:;;;;;;
version:2.1
email;internet:ram@jtcsv.com
title:Unicode Software Engineer
end:vcard

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Core dump before reaching main with CXX!
  2001-05-01 22:26         ` jeff.sturm
@ 2001-05-02  2:28           ` W Bauske
  2001-05-02  2:15             ` Ram Viswanadha
  0 siblings, 1 reply; 14+ messages in thread
From: W Bauske @ 2001-05-02  2:28 UTC (permalink / raw)
  To: axp-list

jeff.sturm@appnet.com wrote:
> 
> Wes> Not necessarily. If -ieee turns on defines, the code may only
> Wes> activate if -ieee is turned on.
> 
> Right, that may help to explain the failures, but doesn't change the
> outcome that CXX appears broken.  There's no blaming binutils in this
> case.
> 

I'm more inclined to believe something went wrong in the link
from the description of the problem, like the wrong libs/order
of libs. 

Wes




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Core dump before reaching main with CXX!
  2001-05-02  2:15             ` Ram Viswanadha
@ 2001-05-02  3:00               ` W Bauske
  0 siblings, 0 replies; 14+ messages in thread
From: W Bauske @ 2001-05-02  3:00 UTC (permalink / raw)
  To: axp-list

I wasn't clear. You are correct about the -ieee problem.
Has to be a compile issue. You can run something like:

find /usr/lib/compaq -print -exec grep FLT_INFINITY {} \;

If it's not there, then run the same search thru /usr/include
and see what you find.

I was referring to the failure before entering main. I've
only seen that before due to link errors.

I don't have ccc/cxx installed so I can't do it on my systems.

Wes

Ram Viswanadha wrote:
> 
> Well the code in limits  says:
> 
> #if !defined(_IEEE_FP)
>       static const bool has_infinity = false;
>       static const bool has_quiet_NaN = false;
>       static const bool has_signaling_NaN = false;
>       static const float_denorm_style has_denorm = denorm_absent;
>       static const bool has_denorm_loss = false;
>       inline static float infinity() _RWSTD_THROW_SPEC_NULL {return 0;}
>       inline static float quiet_NaN() _RWSTD_THROW_SPEC_NULL {return 0;}
>       inline static float signaling_NaN() _RWSTD_THROW_SPEC_NULL {return
> 0;}
>       inline static float denorm_min() _RWSTD_THROW_SPEC_NULL {return 0;}
>       static const bool is_iec559 = false;
> #else // IEEE Conformant Floats
>       static const bool has_infinity = true;
>       static const bool has_quiet_NaN = true;
>       static const bool has_signaling_NaN = true;
>       static const float_denorm_style has_denorm = denorm_present;
>       static const bool has_denorm_loss = false;
>       inline static float infinity() _RWSTD_THROW_SPEC_NULL {return
> FLT_INFINITY;}
>       inline static float quiet_NaN() _RWSTD_THROW_SPEC_NULL {return
> FLT_QNAN;}
>       inline static float signaling_NaN() _RWSTD_THROW_SPEC_NULL {return
> FLT_SNAN;}
>       inline static float denorm_min() _RWSTD_THROW_SPEC_NULL {
>       const unsigned short pos_denorm[2] = {0x0001, 0x0000};
>           return *(float *)pos_denorm;
>       }
>       static const bool is_iec559 = true;
> #endif
> 
> So I think it is certainly compilation.
> 
> Ram
> 
> W Bauske wrote:
> 
> > jeff.sturm@appnet.com wrote:
> > >
> > > Wes> Not necessarily. If -ieee turns on defines, the code may only
> > > Wes> activate if -ieee is turned on.
> > >
> > > Right, that may help to explain the failures, but doesn't change the
> > > outcome that CXX appears broken.  There's no blaming binutils in this
> > > case.
> > >
> >
> > I'm more inclined to believe something went wrong in the link
> > from the description of the problem, like the wrong libs/order
> > of libs.
> >
> > Wes
> >
> > _______________________________________________
> > Axp-list mailing list
> > Axp-list@redhat.com
> > https://listman.redhat.com/mailman/listinfo/axp-list




^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2001-05-02  2:42 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-30 22:36 Core dump before reaching main with CXX! Ram Viswanadha
2001-04-30 22:52 ` Uncle George
2001-04-30 22:53   ` Ram Viswanadha
2001-04-30 23:21     ` Uncle George
2001-05-01 16:17       ` Ram Viswanadha
2001-04-30 22:54   ` T. Daniel Crawford
2001-04-30 23:33 ` jeff.sturm
2001-04-30 23:17   ` Ram Viswanadha
2001-05-01 17:49     ` jeff.sturm
2001-05-01 21:57       ` W Bauske
2001-05-01 22:26         ` jeff.sturm
2001-05-02  2:28           ` W Bauske
2001-05-02  2:15             ` Ram Viswanadha
2001-05-02  3:00               ` W Bauske

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox