[Beowulf] broken binutils (was: Redmond is at it, again)
siegert at sfu.ca
Fri Jun 18 16:40:13 EDT 2004
On Thu, Jun 17, 2004 at 10:34:28PM -0700, Greg Lindahl wrote:
> ... until the day that it actually is a kernel or glibc bug. "Oh, we
> don't really support that OS, you have to upgrade to something
> different." "I'm sorry, but that distro has a broken binutils, so
> programs with large common blocks simply can't be compiled, and we
> aren't going to even think about doing a workaround because not enough
> of our users use that distro." And it goes downhill from there.
> -- greg
Since you mentioned this: I am struggling with binutils right now.
Basically I am considering the following program:
gdb tells me that &a is at 0x3ffffff8 and ldd tells me
that ld-linux.so.2 is at 0x40000000 (as always).
Thus, when I compile
ldd and a.out segfault because &a overwrites the address
of the run-time linker (on your system you may have to change 117403096
a little bit). Arrgh. This means that you can only use about 1GB of
memory in programs with statically allocated arrays (which is mostly
a problem with old fashioned F77 programs). The workaround is to compile
with the -static flag so that you actually can safely overwrite the
Now on a SuSE-9.1 box (with binutils-188.8.131.52.1.1, gcc-3.3.3, 2.6.4 kernel)
This problem disappears: When I compile
and the run "ldd a.out" it says "not a dynamic executable" even when
compiling without the -static flag. My first guess was that I just
have to upgrade ld to the 2.15 version, but after upgrading binutils
on a SuSE-9.0 box (gcc-3.3.1, 2.4.26 kernel) to exactly the same 184.108.40.206.1.1
version this does not fix the problem, i.e., ldd and a.out still segfault.
Thus: what is broken here? Do I need to upgrade gcc and/or the kernel
Beowulf mailing list, Beowulf at beowulf.org
To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf
More information about the Beowulf