[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#130591: gcc: gcc produces broken executable big static arrays are in use



Hi!

> > > drow@nevyn:~% dpkg -l gcc-2.95 binutils
> > > Desired=Unknown/Install/Remove/Purge/Hold
> > > |Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
> > > |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
> > > ||/ Name                 Version              Description
> > > +++-====================-====================-========================================================
> > > ii  gcc-2.95             2.95.4-1             The GNU C compiler.
> > > ii  binutils             2.11.92.0.12.3-5     The GNU assembler, linker and binary utilities.
> > > drow@nevyn:~% gcc delme.c                
> > > delme.c: In function `main':
> > > delme.c:12: warning: return type of `main' is not `int'
> > > drow@nevyn:~% file a.out
> > > a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
> > > dynamically linked (uses shared libs), not stripped
> > > drow@nevyn:~% ./a.out
> > > 
> > > Please try again.
> > 
> > Notice you have different gcc version, and very different binutils
> > version.
> > 
> > I certainly tried that few times. Could you possibly update your
> > binutils and try again?
> 
> You did not tell me what your binutils version was in the bug report!
> 
> You'll also note that my versions are later than yours.  Please update
> yourself, as the problem does not exist in relatively current unstable. 

I reproduced it on another (school) machine, it seems to be running
woody:

pavel@atrey:/tmp$ gcc delme.c
delme.c: In function `main':
delme.c:13: warning: return type of `main' is not `int'
pavel@atrey:/tmp$ ldd a.out 
	not a dynamic executable
pavel@atrey:/tmp$ gcc --version
2.95.4
pavel@atrey:/tmp$ binutils --version
bash: binutils: command not found
pavel@atrey:/tmp$ dpkg -l gcc-2.95 binutils
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  gcc-2.95       2.95.4-0.01090 The GNU C compiler.
ii  binutils       2.11.90.0.31-1 The GNU assembler, linker and binaryutiliti
pavel@atrey:/tmp$ 

									Pavel
-- 
Casualities in World Trade Center: ~3k dead inside the building,
cryptography in U.S.A. and free speech in Czech Republic.



Reply to: