Bug 33577

Summary: Compile failing for xpdf 3.02
Product: gcc Reporter: cabanasg
Component: driverAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED INVALID    
Severity: normal CC: gcc-bugs
Priority: P3    
Version: unknown   
Target Milestone: ---   
Host: Target:
Build: Known to work:
Known to fail: Last reconfirmed:

Description cabanasg 2007-09-27 22:14:02 UTC
I am trying to install xpdf 3.02 on a AIX 5.3.0.5 machine.  The following is the information I have at hand:

the exact version of GCC; 
Reading specs from /opt/freeware/lib/gcc-lib/powerpc-ibm-aix5.2.0.0/3.3.2/specs
Configured with: ../configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld --disable-nls --enable-languages=c,c++ --prefix=/opt/free
ware --enable-threads --enable-version-specific-runtime-libs --host=powerpc-ibm-aix5.2.0.0
Thread model: aix
gcc version 3.3.2

the system type; 
AIX 5.3.0.5

the options given when GCC was configured/built;
 rpm -Uvv gcc-3.3.2-5.aix5.2.ppc.rpm

the complete command line that triggers the bug; 
make or gmake

the compiler output (error messages, warnings, etc.); 
 root@fisprd10:/fis70_patches/xpdf/xpdf-3.02 ==>make
        cd goo; make
Target "all" is up to date.
        cd fofi; make
Target "all" is up to date.
        cd splash; make
Target "all" is up to date.
        cd xpdf; make all
        g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/local/include/freetype2       

   -c CoreOut
putDev.cc
        g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/local/include/freetype2       

   -c Gfx.cc
g++: Internal error: Segmentation fault (program as)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 2.


Stop.
root@fisprd10:/fis70_patches/xpdf/xpdf-3.02 ==>which gmake

With 'gmake'
-----------

root@fisprd10:/fis70_patches/xpdf/xpdf-3.02 ==>gmake

cd goo; gmake
gmake[1]: Entering directory `/fis70_patches/xpdf/xpdf-3.02/goo'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/fis70_patches/xpdf/xpdf-3.02/goo'
cd fofi; gmake
gmake[1]: Entering directory `/fis70_patches/xpdf/xpdf-3.02/fofi'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/fis70_patches/xpdf/xpdf-3.02/fofi'
cd splash; gmake
gmake[1]: Entering directory `/fis70_patches/xpdf/xpdf-3.02/splash'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/fis70_patches/xpdf/xpdf-3.02/splash'
cd xpdf; gmake all
gmake[1]: Entering directory `/fis70_patches/xpdf/xpdf-3.02/xpdf'
g++ -g -O2 -DHAVE_CONFIG_H -I.. -I./../goo -I./../fofi -I./../splash -I. -I/usr/local/include/freetype2          -c 

Gfx.cc
g++: Internal error: Segmentation fault (program as)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
gmake[1]: *** [Gfx.o] Error 1
gmake[1]: Leaving directory `/fis70_patches/xpdf/xpdf-3.02/xpdf'
gmake: *** [all] Error 2
Comment 1 Andrew Pinski 2007-09-27 22:46:01 UTC
>g++: Internal error: Segmentation fault (program as)

as is crashing so I am assuming you don't have an updated as from IBM.
Comment 2 cabanasg 2007-09-27 23:35:52 UTC
(In reply to comment #1)
> >g++: Internal error: Segmentation fault (program as)
> as is crashing so I am assuming you don't have an updated as from IBM.

You mean I should upgrade my GNU++ compiler?  I have version 3.3.2-5
Comment 3 Paolo Carlini 2007-09-28 00:10:54 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > >g++: Internal error: Segmentation fault (program as)
> > as is crashing so I am assuming you don't have an updated as from IBM.
> 
> You mean I should upgrade my GNU++ compiler?  I have version 3.3.2-5

No, he means that the error message says that the program *as*, *not* the compiler proper, is crashing. To be clear, that program is not part of GCC, you took it from IBM, together with the operating system (and you can of course collect more info about it via "as -v" or something very similar)

Comment 4 Richard Biener 2007-09-28 09:40:19 UTC
as is crashing.  (also, 3.3.x is no longer maintained)
Comment 5 cabanasg 2007-10-17 23:51:43 UTC
I upgraded my gcc and g++ compilers to version 4.0.0.  Tried to install xpdf-3.02 again, the ./configure part goes well, but the make or gmake faile with the following error message:  (Any help will be greatly appreciated)

ld: 0711-317 ERROR: Undefined symbol: vtable for __cxxabiv1::__class_type_info
ld: 0711-317 ERROR: Undefined symbol: vtable for __cxxabiv1::__si_class_type_info
ld: 0711-317 ERROR: Undefined symbol: .SplashFontEngine::SplashFontEngine(int, int)
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
make: 1254-004 The error code from the last command is 1.

Comment 6 Andrew Pinski 2007-10-18 00:56:05 UTC
>with the following error message:  (Any help will be greatly appreciated)

>ld: 0711-317 ERROR: Undefined symbol: vtable for __cxxabiv1::__class_type_info

Yes you are not linking with the correct libstdc++ or not linking with it at all.

Link with g++ and not gcc directly.
Comment 7 cabanasg 2007-10-18 16:13:38 UTC
Subject: RE:  Compile failing for xpdf 3.02

My problem occurs during the 'make' step, after the './configure' step.
How can I use 'g++' for linking during the 'make' step?

Thanks. 

-----Original Message-----
From: pinskia at gcc dot gnu dot org [mailto:gcc-bugzilla@gcc.gnu.org] 
Sent: Wednesday, October 17, 2007 5:56 PM
To: Cabanas, Gilberto
Subject: [Bug driver/33577] Compile failing for xpdf 3.02



------- Comment #6 from pinskia at gcc dot gnu dot org  2007-10-18 00:56
-------
>with the following error message:  (Any help will be greatly
appreciated)

>ld: 0711-317 ERROR: Undefined symbol: vtable for
__cxxabiv1::__class_type_info

Yes you are not linking with the correct libstdc++ or not linking with
it at
all.

Link with g++ and not gcc directly.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
------------------------------------------------------------------------
----
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33577

------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.