Re: mpich C++ transition status
On Wed, Oct 05, 2005 at 01:28:34AM -0700, Steve Langasek wrote:
> On Tue, Oct 04, 2005 at 11:58:11PM -0700, Russ Allbery wrote:
> > scalapack failed on powerpc with:
>
> > /usr/bin/ld: /usr/lib/gcc/powerpc-linux-gnu/4.0.2/../../../../lib/libf2c.a(lread.o)(.got2+0xbc): unresolvable R_PPC_ADDR32 relocation against symbol `f__units'
> > /usr/bin/ld: final link failed: Nonrepresentable section on output
>
> > Does this ring a bell with anyone? That looks like a gcc issue, not a
> > problem with the package. It's also in dep-wait on arm waiting for
> > libf2c2.
>
> My first guess was that scalapack was trying to link a shared library
> against non-PIC code, but that doesn't seem to be the case. It may be a
> problem with gcc, but it may be a once-removed problem with an *old* version
> of gcc that requires rebuilding libf2c to fix it. Dunno, someone will need
> to poke at this (maybe debian-powerpc?).
Hmm, still fails to build in a uptodate chroot:
make[2]: Entering directory `/tmp/buildd/scalapack-1.7/REDIST/TESTING'
gcc -c -Wall -O6 -funroll-all-loops -ffast-math -Df77IsF2C -DNO_IEEE
-DUsingMpiBlacs pigemrdrv.c
pigemrdrv.c: In function 'getparam':
pigemrdrv.c:191: warning: unused variable 'i'
pigemrdrv.c: In function 'main':
pigemrdrv.c:272: warning: implicit declaration of function 'MPI_Init'
pigemrdrv.c:315: warning: unused variable 'd'
pigemrdrv.c:315: warning: unused variable 'u'
pigemrdrv.c:469: warning: suggest explicit braces to avoid ambiguous 'else'
pigemrdrv.c:251: warning: 'fp' may be used uninitialized in this function
pigemrdrv.c:261: warning: 'blocksize0' may be used uninitialized in this function
gcc -o /tmp/buildd/scalapack-1.7/TESTING/xigemr pigemrdrv.o -L
/tmp/buildd/scalapack-1.7 -lscalapack-lam -lblacsCinit-lam -lblacs-lam -lblacsCinit-lam -lmpi -llapack -lblas -lf2c -lm
/usr/lib/gcc/powerpc-linux-gnu/4.0.2/../../../../lib/libf2c.so: undefined reference to `MAIN__'
collect2: ld returned 1 exit status
make[2]: *** [/tmp/buildd/scalapack-1.7/TESTING/xigemr] Error 1
make[2]: Leaving directory `/tmp/buildd/scalapack-1.7/REDIST/TESTING'
make[1]: *** [redistexe] Error 2
make[1]: Leaving directory `/tmp/buildd/scalapack-1.7'
make: *** [build-stamp-lam] Error 2
Gruesse,
--
Frank Lichtenheld <djpig@debian.org>
www: http://www.djpig.de/
Reply to: