Bug#844849: freewnn: FTBFS: ld: final link failed: Nonrepresentable section on output

2016-11-19 Thread Adrian Bunk
Control: tags -1 patch

On Sat, Nov 19, 2016 at 07:39:34AM +0100, Lucas Nussbaum wrote:
>...
> Relevant part (hopefully):
> > /usr/bin/ld: pod.o: relocation R_X86_64_32S against `.bss' can not be used 
> > when making a shared object; recompile with -fPIC
> > /usr/bin/ld: final link failed: Nonrepresentable section on output
> > collect2: error: ld returned 1 exit status
> 
> The full build log is available from:
>
> http://aws-logs.debian.net/2016/11/18/freewnn_1.1.1~a021+cvs20130302-5_unstable.log
>...

Thanks for your report, this is a result of the recent PIE changes in dpkg.

The following patch fixes it:

--- debian/rules.old2016-11-19 10:35:24.0 +
+++ debian/rules2016-11-19 10:35:29.0 +
@@ -2,7 +2,7 @@
 # Uncomment this to turn on verbose mode. 
 #export DH_VERBOSE=1
 
-export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
 config_option= --prefix=/usr --mandir=/usr/share/man --enable-client=yes \


cu
Adrian

-- 

   "Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
   "Only a promise," Lao Er said.
   Pearl S. Buck - Dragon Seed



Bug#844849: freewnn: FTBFS: ld: final link failed: Nonrepresentable section on output

2016-11-18 Thread Lucas Nussbaum
Source: freewnn
Version: 1.1.1~a021+cvs20130302-5
Severity: serious
Tags: stretch sid
User: debian...@lists.debian.org
Usertags: qa-ftbfs-20161118 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part (hopefully):
> /usr/bin/ld: pod.o: relocation R_X86_64_32S against `.bss' can not be used 
> when making a shared object; recompile with -fPIC
> /usr/bin/ld: final link failed: Nonrepresentable section on output
> collect2: error: ld returned 1 exit status

The full build log is available from:
   
http://aws-logs.debian.net/2016/11/18/freewnn_1.1.1~a021+cvs20130302-5_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.