Building STLport with gcc on aix 4.3

Building STLport with gcc on aix 4.3

Post by Mike » Sat, 06 Apr 2002 11:26:55



Greetings:

I've been attempting to build STLport ( see http://www.stlport.org ) v.
4.5.3 on aix v 4.3 using g++ version 2.9-aix43-010414.  'Problem is, the
generic make file included with STLport fails (there is no aix-specific gcc
make file, that I can see, other than the one for the xlC compiler).  The
command in the makefile is:

c++ -pthread -fexceptions

but -pthread is not a valid option for this version of c++ (or g++),
apparently.  Omitting the option causes failures as well.

Has anyone got any ideas?

Thanks,
Mike

 
 
 

Building STLport with gcc on aix 4.3

Post by David Edelsoh » Tue, 16 Apr 2002 12:25:23


Quote:>>>>> MikeO  writes:

Mike> I've been attempting to build STLport ( see http://www.stlport.org ) v.
Mike> 4.5.3 on aix v 4.3 using g++ version 2.9-aix43-010414.  'Problem is, the
Mike> generic make file included with STLport fails (there is no aix-specific gcc
Mike> make file, that I can see, other than the one for the xlC compiler).  The
Mike> command in the makefile is:

Mike> c++ -pthread -fexceptions

Mike> but -pthread is not a valid option for this version of c++ (or g++),
Mike> apparently.  Omitting the option causes failures as well.

Mike> Has anyone got any ideas?

        For gcc-2.95, use

g++ -mthreads -fexceptions

        For gcc-3.0 and beyond, use

g++ -pthread -fexceptions

        (Actually, -fexceptions is implicit in current g++.)

David
--
===============================================================================
David Edelsohn                                      T.J. Watson Research Center

+1 914 945 4364 (TL 862)                            Yorktown Heights, NY 10598

 
 
 

1. Core in 2nd map::insert STLport 4.5.0/ AIX 4.3.3 / gcc 2.95.x

I had a problem similar to the problem described in

http://www.stlport.com/dcforum/DCForumID5/579.html

In my program a method of a large global object is called.
The method creates dynamic local instance (via new) of class
X and call its initialization method where a sequence of
insertions into private map of X defined as map<string, string>
takes place. At the 2nd insertion the program aborts with
segmentation fault.

The problem is VERY hot for me.
My ideas about this:
- bug in my program (wrong work with memory),
- compiler bug during optimization of STL code,
- bug of STL code (low possibility),

I will try to
- use gcc 3.2,
- disable optimization,
- make debug build and try debugging,
 (I expect that in debug build the problem will disappear),
- switch to another STL allocator (USE_MALLOC etc.),
- use the latest build of STLport,
- use GNU libstd++ STL.

Folk, any other ideas what can I do?
The problem is very HOT for me.

Sincerely, az.

2. Change Of Password From A Batch Job

3. AIX 4.3.x - 'adeinv' tool for building installer packages

4. Sockets, RPC or Corba: Unix server - Win client; Your experience...

5. GCC PROBLEM on AIX 4.3

6. PowerCenter Pro Booting Problems

7. gcc 3.2/aix 4.3 core dump on exception???

8. size of linux

9. Latest GCC for AIX 4.3

10. I cam't install gcc on AIX 4.3....

11. gcc on AIX 4.3, __malloc_postfork... symbol not defined

12. AIX 4.3 and GCC 2.8.1

13. GCC FOR AIX 4.3