Package: flexpart Version: 9.02-9 Severity: normal Tags: patch X-Debbugs-Cc: bren...@br.ibm.com User: debian-powe...@lists.debian.org Usertags: ppc64el
Dear Maintainer, The flexpart package FTBFS on ppc64el with the ... flexpart-9.02/partoutput_short.f90:145:(.text+0x6f0): relocation truncated to fit: R_PPC64_TOC16_HA against `.bss' plumetraj.o: In function `plumetraj_': flexpart-9.02/plumetraj.f90:98:(.text+0x114): additional relocation overflows omitted from the output collect2: error: ld returned 1 exit status The patch includes the -mcmodel=large option to be enabled to get the package to build properly. Thanks for considering the patch! Thanks and regards, Brahadambal -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: ppc64el (ppc64le) Kernel: Linux 3.16-trunk-powerpc64le (SMP w/32 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash
--- flexpart-9.02.orig/makefile.ecmwf_gfortran +++ flexpart-9.02/makefile.ecmwf_gfortran @@ -6,7 +6,7 @@ FC = gfortran INCPATH = /usr/include LIBPATH1 = /usr/lib LIBPATH2 = -FFLAGS = $(FCFLAGS) -O2 -fdefault-real-8 -fconvert=little-endian -frecord-marker=4 -I$(INCPATH) +FFLAGS = $(FCFLAGS) -O2 -fdefault-real-8 -fconvert=little-endian -frecord-marker=4 -I$(INCPATH) -mcmodel=large LFLAGS = $(LDFLAGS) $(FFLAGS) -Wl,--as-needed -L$(LIBPATH2) -L$(LIBPATH1) -lgrib_api_f90 -lgrib_api -lm -ljasper MODPATH = /usr/include # --- flexpart-9.02.orig/makefile.gfs_gfortran +++ flexpart-9.02/makefile.gfs_gfortran @@ -7,7 +7,7 @@ FC = gfortran INCPATH = /usr/include LIBPATH1 = /usr/lib LIBPATH2 = -FFLAGS = $(FCFLAGS) -O2 -fdefault-real-8 -fconvert=little-endian -frecord-marker=4 -I$(INCPATH) +FFLAGS = $(FCFLAGS) -O2 -fdefault-real-8 -fconvert=little-endian -frecord-marker=4 -I$(INCPATH) -mcmodel=large LFLAGS:= $(LDFLAGS) $(FFLAGS) -L$(LIBPATH1) -Wl,--as-needed -lgrib_api_f90 -lgrib_api -lm -ljasper #