LibFile complains about lack of memory

Alex Waugh alex at alexwaugh.com
Thu Aug 8 14:50:06 PDT 2002


In message <200208080054.26117.T.E.Baldwin99 at members.leeds.ac.uk>
          Timothy Baldwin <T.E.Baldwin99 at members.leeds.ac.uk> wrote:

> 
> When atempting to create an empty library which already exists LibFile 
> complains about lack of memory, then exits successfully!
> 
> tim at bfg:~/sources/OSLib/!OsLib $ rm Source/OSLib.o
> tim at bfg:~/sources/OSLib/!OsLib $ arm-RISCOS-libfile -c Source/OSLib.o
> tim at bfg:~/sources/OSLib/!OsLib $ echo $?
> 0
> tim at bfg:~/sources/OSLib/!OsLib $ arm-RISCOS-libfile -c Source/OSLib.o
> Error: Operator 'new' failed (out of memory).
> tim at bfg:~/sources/OSLib/!OsLib $ echo $?
> 0
> tim at bfg:~/sources/OSLib/!OsLib $ gcc -v
> Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
> gcc version 2.95.4 20011002 (Debian prerelease)

It will also give the same error if you try to add a zero length file to
an library. I suspect it is either misreporting the error, or failing to
take account of boundary cases correctly. I might have a go at fixing it
at some point.

Alex

-- 
Alex Waugh                               alex at alexwaugh.com

PHP, Roots, WebJames and more from http://www.alexwaugh.com/



More information about the gcc mailing list