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]

egcs refuses to link when not optimizing, on DEC Unix 3.x



	
	Hello all, 

	This is on a DEC alphaStation 200 4/233 running DU 3.2

	I'm encountering a puzzling problem with egcs versions
1.02 and 1.03a (exact same problem, apparently). When compiling
a largish C++ application with debugging enabled (-g), if 
I turn the optimizer on (-02), the compiling and linking goes
alright.
	If I **DON'T*** turn the optimizer on at all (just -g),
the program refuses to link with the following errors:

c++ -DOSF1 -O2 -g -Wall -o imview imview.o menubar.o imageViewer.o imageIO.o 
my_Image.o imdebug.o readgif.o readtiff.o readZimage.o imtranslate.o 
readjpeg.o pointfile.o keyboard.o menucb.o readics.o imlines.o imDrawPoint.o 
printPrefs.o savePrefs.o imageInfo.o transferFunction.o transferBox.o 
transferHistoBox.o transferFunctionBox.o fluid/imview_ui.a io/imview_io.a  
- -lfltk_db -lGL -lX11  -lm -ljpeg -ltiff
/usr/ucb/ld:
/usr/local/egcs/lib/gcc-lib/alpha-dec-osf3.2/egcs-2.90.29/libgcc.a(exception.o)
: __cp_exception_info: multiply defined
/usr/local/egcs/lib/gcc-lib/alpha-dec-osf3.2/egcs-2.90.29/libgcc.a(exception.o)
: __cp_push_exception: multiply defined
/usr/local/egcs/lib/gcc-lib/alpha-dec-osf3.2/egcs-2.90.29/libgcc.a(exception.o)
: __cp_pop_exception: multiply defined
/usr/local/egcs/lib/gcc-lib/alpha-dec-osf3.2/egcs-2.90.29/libgcc.a(exception.o)
: __uncatch_exception: multiply defined
/usr/local/egcs/lib/gcc-lib/alpha-dec-osf3.2/egcs-2.90.29/libgcc.a(exception.o)
: exception virtual table: multiply defined
/usr/local/egcs/lib/gcc-lib/alpha-dec-osf3.2/egcs-2.90.29/libgcc.a(exception.o)
: exception type_info function: multiply defined
/usr/local/egcs/lib/gcc-lib/alpha-dec-osf3.2/egcs-2.90.29/libgcc.a(_eh.o): 
__terminate: multiply defined
/usr/local/egcs/lib/gcc-lib/alpha-dec-osf3.2/egcs-2.90.29/libgcc.a(_eh.o): 
__get_dynamic_handler_chain: multiply defined
/usr/local/egcs/lib/gcc-lib/alpha-dec-osf3.2/egcs-2.90.29/libgcc.a(_eh.o): 
__sjthrow: multiply defined
/usr/local/egcs/lib/gcc-lib/alpha-dec-osf3.2/egcs-2.90.29/libgcc.a(tinfo.o): 
__rtti_class: multiply defined
/usr/local/egcs/lib/gcc-lib/alpha-dec-osf3.2/egcs-2.90.29/libgcc.a(tinfo.o): 
__rtti_si: multiply defined
/usr/local/egcs/lib/gcc-lib/alpha-dec-osf3.2/egcs-2.90.29/libgcc.a(tinfo.o): 
__rtti_user: multiply defined


	This program compiles, links and runs fine with g++-2.7.2.2 on the
same platform. I don't know what it does with egcs on other platforms.

	Any idea what might be going on? I've had a very quick look through
the archive, Apologies if this problem is well-known.

	Please respond by e-mail as I don't subscribe to the 
mailing list. Let me know if you need more details.

	Cheers.	

  ___Hugues Talbot, CSIRO Mathematical & Information Sciences___
 /            Down under, Locked Bag 17, North Ryde  NSW  2113  \
|    ,-_|\                Ph: 61 2 9325 3224 Fax: 61 2 9325 3200 |
|   /     \               (Building E6B, Macquarie University)   |
|   \_,-._* <- There      E-mail: hugues.talbot@cmis.csiro.au    |
|        ,                WWW: http://www.dms.csiro.au/~talbot   |
+---------- Hiroshima 45, Chernobyl 86, Windows 95. -------------+





------- End of Forwarded Message





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