[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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.old	2016-11-19 10:35:24.000000000 +0000
+++ debian/rules	2016-11-19 10:35:29.000000000 +0000
@@ -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


Reply to: