Re: memory exhausted while compiling glibc2.1
<gary@singular.org> writes:
> I am trying to compile glibc2.1 on an acorn risc pc (ARM7) with 64 meg of
> ram. the make get to what seems to be about halfway through and chokes
> here:
>
> gcc -shared -Wl,-O1 -o sysdeps/../libc.so
> -Wl,-dynamic-linker=/lib/ld-linux.so.2 -Bsysdeps/../csu/
> -Wl,--version-script=sysdeps/../libc.map -Wl,-soname=libc.so.6 -nostdlib
> -nostartfiles -e __libc_main -u __register_frame -L. -Lsysdeps/../math
> -Lsysdeps/../elf -Lsysdeps/../nss -Lsysdeps/../nis -Lsysdeps/../db2
> -Lsysdeps/../rt -Lsysdeps/../resolv -Lsysdeps/../linuxthreads
> -Wl,-rpath-link=.:sysdeps/../math:sysdeps/../elf:sysdeps/../nss:sysdeps/../nis:sysdeps/../db2:sysdeps/../rt:sysdeps/../resolv:sysdeps/../linuxthreads -Wl,--whole-archive sysdeps/../elf/soinit.os sysdeps/../libc_pic.os sysdeps/../elf/sofini.os sysdeps/../elf/interp.os sysdeps/../elf/ld.so -Wl,--no-whole-archive -lgcc
>
> sysdeps/../libc_pic.os: could not read symbols: Memory exhausted
> collect2: ld returned 1 exit status
> gcc: file path prefix `sysdeps/../csu/' never used
>
>
> can someone recommend an incremental link or something that will take care
> of this? I have tried every way I know how and I can't get it to link
> libc_pic.os and libc.a ; it chokes every time. both are around 13 meg
> each... Do I need more than 64 meg to do this or is there something I am
> missing here?
I was able to build glibc on my NetWinder with 64MB of RAM (and 100MB
of swap).
Maybe you need to add some swap?
> incidentally I am using binutils-2.9.1.0.16a patched with
> ftp://ftp.netwinder.org/users/p/philb/binutils-2.9.1.0.19a-arm-diff-981230.gz
>
> and egcs-1.1.2 patched with
> ftp://ftp.netwinder.org/users/p/philb/egcs-1.1.2-arm-diff-990325.gz
I'm using the Debian packages, gcc 2.95 and binutils 2.9.4.0.5.
> Any hints?
The Debian packages should work on ARM7 - you could try installing them.
Cheers,
- Jim
Reply to: