This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: HPUX10.20 with egcs1.0.1: global variable bug (class string ...)


On Mon, 9 March 1998, 11:26:05, ruff@comsys.dofn.de wrote:

 > HPUX10.20 with egcs1.0.1 doen't run, there is a global variable bug.
 > 
 > Has anybody out there ever got egcs running properly on HPUX 10.20?
 > 
 > This answer would help me much!
 > Please respond to
 >        ruff@comsys.dofn.de
 > (i havn't subscribed egcs-bugs)
 > 
 > 
 > I egcs runs fine on your HPUX 10.20 perhaps you can give me a hint:

No problems here with egcs-1.0.2 prerelease.

 > 
 > Bug example:
 > ------------g++ -o hello hello.C -----------------
 > #include <iostream.h>
 > #include <string>
 > string strGlob = "Hello world";
 > main()
 > {
 >    cout << strGlob << endl;
 > }
 > ---------------------------------------------
 > 
 > 
 > ------------gdb hello ----------------------
 > Program received signal SIGSEGV, Segmentation fault.
 > 
 > (gdb) where
 > #0  0x7ae35724 in
 > __ls__H2ZcZt18string_char_traits1Zc_R7ostreamRCt12basic_string2ZX01ZX11_R7ostream
 > (o=@0x7ae0705c, s=@0x0)
 >     at /opt/WIAS_Entw/egcs-1.0.1/libstdc++/std/bastring.cc:450
 > Cannot access memory at address 0x0.
 > ------------------------------------------
 > 
 > 
 > ------------my installation -------------------
 > as -v        GNU assembler version 2.8.1.0.21 (hppa1.1-hp-hpux10.20),
 > using BFD version 2.8.1.0.21
 > 
 > g++ -v     gcc version egcs-2.90.23
 > 980102 (egcs-1.0.1 release)
 > -------------------------------------------
 > 
 > ------------how i built egcs--------------------
 > binutils-2.8.1.0.21:   setenv CC cc
 >    ./configure --prefix=/opt/WIAS_Entw/egcs_and_binutils
 > --without-gnu-ld

I guess, that's the culprit, --without-anything doesn't actually do what it's
supposed to. Since you don't have GNU ld, simply omit this parameter.
Another hint, you shouldn't configure and build directly inside the sources;
create an ancestor directory `egcs-1.0.2-hppa1.1-hp-hpux10.20' and work
there using the --srcdir=../egcs-1.0.2 stuff. It's much easier then to
build for more than one system in parallel, to figure out what you'd needed
to change in the sources, to really clean the directory, ... ; and, it's
actually safe (there are bugs in the configuration mechanism which are fixed
in the latest snapshots).

 >    gmake
 >    gmake install
 > 
 > egcs-1.0.1:
 >    setenv CC cc
 >    /configure --prefix=/opt/WIAS_Entw/egcs_and_binutils --enable-shared
 > --enable-haifa --with-gnu-as --without-gnu-ld
 >    gmake bootstrap
 >    gmake install
 > ---------------------------------------------
 > 
 > thanks, Marcel
 > 
 > Please respond directly to ruff@comsys.dofn.de
 > 
 > (i havn't subscribed egcs-bugs, too many emails ...)
 > 
 > --
 > ------------------------------------------------------------------
 > 
 >     _/_/_/   _/    _/  _/_/_/  _/_/_/  Dipl.-Ing. Marcel Ruff
 >    _/   _/  _/    _/  _/      _/       Frequentis Network Systems
 >   _/_/_/   _/    _/  _/_/_/  _/_/_/
 >  _/   _/  _/    _/  _/      _/         An der Bundesstrasse 31
 > _/    _/   _/_/_/  _/      _/          D-88090 Immenstaad/Bodensee
 >                              P.O. Box: D-88039 Friedrichshafen
 > -------------------------------------------------------------------
 > Tel.:  +49/7545/8-2437                 Fax :  +49/7545/8-5811
 > email: ruff@comsys.dofn.de             http://saidev.ga-ais.de/ATC/
 > email: Marcel.Ruff@t-online.de (priv)  Tel.:  +49/7556/96780 (priv)
 > -------------------------------------------------------------------
 > 
 > 
 > 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]