relocation truncated to fit error on alpha

Brad Lucier lucier@math.purdue.edu
Fri Apr 4 19:35:00 GMT 2003


I'm trying to build deal.II CVS with gcc-3.4 on alphaev6-unknown-linux-gnu
and in trying to run the first test, I get the error messages:

============================ Linking step-1
/export/home/lucier/programs/deal.II/lib/liblac.g.a(sparse_matrix.float.g.o)(.rodata+0x2e00): relocation truncated to fit: GPREL32 *UND*
/export/home/lucier/programs/deal.II/lib/liblac.g.a(sparse_matrix.float.g.o)(.rodata+0x2e04): relocation truncated to fit: GPREL32 *UND*
/export/home/lucier/programs/deal.II/lib/liblac.g.a(sparse_matrix.float.g.o)(.rodata+0x2e08): relocation truncated to fit: GPREL32 *UND*
/export/home/lucier/programs/deal.II/lib/liblac.g.a(sparse_matrix.float.g.o)(.rodata+0x2e0c): relocation truncated to fit: GPREL32 *UND*
/export/home/lucier/programs/deal.II/lib/liblac.g.a(sparse_matrix.float.g.o)(.rodata+0x2e10): relocation truncated to fit: GPREL32 *UND*
/export/home/lucier/programs/deal.II/lib/liblac.g.a(sparse_matrix.float.g.o)(.rodata+0x2e14): relocation truncated to fit: GPREL32 *UND*
/export/home/lucier/programs/deal.II/lib/liblac.g.a(sparse_matrix.float.g.o)(.rodata+0x2e18): relocation truncated to fit: GPREL32 *UND*
/export/home/lucier/programs/deal.II/lib/liblac.g.a(sparse_matrix.float.g.o)(.rodata+0x2e1c): relocation truncated to fit: GPREL32 *UND*
/export/home/lucier/programs/deal.II/lib/liblac.g.a(sparsity_pattern.g.o):ExcInvalidIndex/source/sparsity_pattern.cc:99: relocation truncated to fit: GPREL32 *UND*
/export/home/lucier/programs/deal.II/lib/liblac.g.a(sparsity_pattern.g.o):ExcInvalidIndex/source/sparsity_pattern.cc:99: relocation truncated to fit: GPREL32 *UND*
/export/home/lucier/programs/deal.II/lib/liblac.g.a(sparsity_pattern.g.o):ExcInvalidIndex/source/sparsity_pattern.cc:99: relocation truncated to fit: GPREL32 *UND*
/export/home/lucier/programs/deal.II/lib/liblac.g.a(sparsity_pattern.g.o):ExcInvalidIndex/source/sparsity_pattern.cc:99: relocation truncated to fit: GPREL32 *UND*
/export/home/lucier/programs/deal.II/lib/liblac.g.a(sparsity_pattern.g.o):ExcInvalidIndex/source/sparsity_pattern.cc:99: relocation truncated to fit: GPREL32 *UND*
/export/home/lucier/programs/deal.II/lib/liblac.g.a(sparsity_pattern.g.o):ExcInvalidIndex/source/sparsity_pattern.cc:99: relocation truncated to fit: GPREL32 *UND*
/export/home/lucier/programs/deal.II/lib/liblac.g.a(sparsity_pattern.g.o):ExcInvalidIndex/source/sparsity_pattern.cc:99: relocation truncated to fit: GPREL32 *UND*
/export/home/lucier/programs/deal.II/lib/liblac.g.a(sparsity_pattern.g.o):ExcInvalidIndex/source/sparsity_pattern.cc:99: relocation truncated to fit: GPREL32 *UND*
collect2: ld returned 1 exit status
make[1]: *** [step-1] Error 1

Now, this is the same as PR6999, which you, Wolfgang, recently closed; it's
somewhat ironic now that it comes up again when I'm trying to use your
deal.II package.

There have been several threads about this problem in the mail lists over
the years, for example beginning at

http://gcc.gnu.org/ml/gcc/2001-09/msg00645.html

and

http://gcc.gnu.org/ml/gcc/2001-09/msg00645.html

which leads to Richard Henderson proposing a patch in

http://gcc.gnu.org/ml/gcc/2001-11/msg00413.html

which may not have been followed up.

So, does anyone have any suggestions about how to fix the build process of
deal.II (which I find somewhat opaque) or how to fix this once and for all
with gcc?

Brad



More information about the Gcc mailing list