Source: r-base
Version: 4.1.2-1
Severity: normal
User: [email protected]
Usertags: alpha
X-Debbugs-Cc: [email protected],[email protected]

Hi!

r-base currently FTBFS on alpha with:

gfortran -fno-optimize-sibling-calls -fpic  -g -O2 
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -c xxxpr.f -o xxxpr.o
gcc -std=gnu99 -shared -fopenmp -Wl,-z,relro  -o libR.so CommandLineArgs.o 
Rdynload.o Renviron.o RNG.o agrep.o altclasses.o altrep.o apply.o arithmetic.o 
array.o attrib.o bind.o builtin.o character.o coerce.o colors.o complex.o 
connections.o context.o cum.o dcf.o datetime.o debug.o deparse.o devices.o 
dotcode.o dounzip.o dstruct.o duplicate.o edit.o engine.o envir.o errors.o 
eval.o format.o gevents.o gram.o gram-ex.o graphics.o grep.o identical.o 
inlined.o inspect.o internet.o iosupport.o lapack.o list.o localecharset.o 
logic.o main.o mapply.o match.o memory.o names.o objects.o options.o paste.o 
patterns.o platform.o plot.o plot3d.o plotmath.o print.o printarray.o 
printvector.o printutils.o qsort.o radixsort.o random.o raw.o registration.o 
relop.o rlocale.o saveload.o scan.o seq.o serialize.o sort.o source.o split.o 
sprintf.o startup.o subassign.o subscript.o subset.o summary.o sysutils.o 
times.o unique.o util.o version.o g_alab_her.o g_cntrlify.o g_fontdb.o 
g_her_glyph.o xxxpr.o   `ls ../unix/*.o ../appl/*.o ../nmath/*.o` 
../extra/tre/libtre.a    -lblas -lgfortran -lm   -lreadline  -lpcre2-8 -llzma 
-lbz2 -lz -ltirpc -lrt -ldl -lm -licuuc -licui18n  
platform.o: in function `machar':
./src/main/machar.c:128:(.text+0x21dc): relocation truncated to fit: GPREL16 
against `.rodata.cst16'
../nmath/pnchisq.o: in function `Rf_pnchisq_raw':
./src/nmath/pnchisq.c:125:(.text+0x48c): relocation truncated to fit: GPREL16 
against `.rodata.cst16'
./src/nmath/pnchisq.c:230:(.text+0x818): relocation truncated to fit: GPREL16 
against `.rodata.cst16'
./src/nmath/pnchisq.c:230:(.text+0xb08): relocation truncated to fit: GPREL16 
against `.rodata.cst16'
collect2: error: ld returned 1 exit status

Adrian Bunk found out that this is an issue of linking with -fpic instead of 
-fPIC. Adjusting the
flags fixes the linker error. Attaching a patch which patches both configure.ac 
and configure. The
latter is necessary since the package currently doesn't regenerate the 
configure before build auto-
matically.

Thanks,
Adrian

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - [email protected]
`. `'   Freie Universitaet Berlin - [email protected]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
Index: r-base-4.1.2/configure.ac
===================================================================
--- r-base-4.1.2.orig/configure.ac
+++ r-base-4.1.2/configure.ac
@@ -1316,7 +1316,7 @@ if test "${GCC}" = yes; then
 ## has 32k and so can use -fpic.
 ## However, although the gcc docs do not mention it, it seems s390/s390x
 ## also supports and needs -fPIC
-    sparc*|ppc64*|powerpc64*|s390*)
+    alpha*|sparc*|ppc64*|powerpc64*|s390*)
       cpicflags="-fPIC"
       ;;
     *)
@@ -1327,7 +1327,7 @@ if test "${GCC}" = yes; then
 fi
 if test "${ac_cv_fc_compiler_gnu}" = yes; then
   case "${host_cpu}" in
-    sparc*|ppc64*|powerpc64*|s390*)
+    alpha*|sparc*|ppc64*|powerpc64*|s390*)
       fpicflags="-fPIC"
       ;;
     *)
@@ -1343,7 +1343,7 @@ case "${FC}" in
 esac
 if test "${GXX}" = yes; then
   case "${host_cpu}" in
-    sparc*|ppc64*|powerpc64*|s390*)
+    alpha*|sparc*|ppc64*|powerpc64*|s390*)
       cxxpicflags="-fPIC"
       ;;
     *)
Index: r-base-4.1.2/configure
===================================================================
--- r-base-4.1.2.orig/configure
+++ r-base-4.1.2/configure
@@ -28883,7 +28883,7 @@ if test "${GCC}" = yes; then
 ## has 32k and so can use -fpic.
 ## However, although the gcc docs do not mention it, it seems s390/s390x
 ## also supports and needs -fPIC
-    sparc*|ppc64*|powerpc64*|s390*)
+    alpha*|sparc*|ppc64*|powerpc64*|s390*)
       cpicflags="-fPIC"
       ;;
     *)
@@ -28894,7 +28894,7 @@ if test "${GCC}" = yes; then
 fi
 if test "${ac_cv_fc_compiler_gnu}" = yes; then
   case "${host_cpu}" in
-    sparc*|ppc64*|powerpc64*|s390*)
+    alpha*|sparc*|ppc64*|powerpc64*|s390*)
       fpicflags="-fPIC"
       ;;
     *)
@@ -28910,7 +28910,7 @@ case "${FC}" in
 esac
 if test "${GXX}" = yes; then
   case "${host_cpu}" in
-    sparc*|ppc64*|powerpc64*|s390*)
+    alpha*|sparc*|ppc64*|powerpc64*|s390*)
       cxxpicflags="-fPIC"
       ;;
     *)

Reply via email to