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

Bug#842710: marked as done (nmu: zlib_1:1.2.8.dfsg-2)



Your message dated Tue, 01 Nov 2016 07:02:00 +0000
with message-id <ac2c4839-82a5-d034-9c00-915d4a422e2b@thykier.net>
and subject line Re: [gcc-6] Fails to compile OpenWrt/LEDE prereq-build
has caused the Debian Bug report #842710,
regarding nmu: zlib_1:1.2.8.dfsg-2
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
842710: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=842710
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: gcc-6
Version: 6.2.0-10
Severity: serious
X-Debbugs-CC: lede-dev@lists.infradead.org

There is a regression after gcc-6 6.2.0-6. I get following output when
trying to compile LEDE/OpenWrt "Please install a static zlib"

This is wrong

$ ls -ltr /usr/lib/x86_64-linux-gnu/libz.a
-rw-r--r-- 1 root root 149834 Nov 27  2014 /usr/lib/x86_64-linux-gnu/libz.a

Following can be found in their include/prereq-build.mk

ifeq ($(HOST_OS),Linux)
  zlib_link_flags := -Wl,-Bstatic -lz -Wl,-Bdynamic
else
  zlib_link_flags := -lz
endif

$(eval $(call TestHostCommand,zlib, \
Please install a static zlib. (Missing libz.a or zlib.h), \
echo 'int main(int argc, char **argv) { gzdopen(0, "rb"); return 0; }' | \
gcc -include zlib.h -x c -o $(TMP_DIR)/a.out - $(zlib_link_flags)))

Testing it with gcc-6 6.2.0-6 works:

$ echo 'int main(int argc, char **argv) { gzdopen(0, "rb"); return 0;
}' | gcc -include zlib.h -x c -o a.out - -Wl,-Bstatic -lz
-Wl,-Bdynamic
$ echo $?
0

with gcc-6 6.2.0-10 fails:

$ echo 'int main(int argc, char **argv) { gzdopen(0, "rb"); return 0;
}' | gcc -include zlib.h -x c -o a.out - -Wl,-Bstatic -lz
-Wl,-Bdynamic
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libz.a(gzlib.o):
relocation R_X86_64_32S against `.rodata' 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
$ echo $?
1

--- End Message ---
--- Begin Message ---
On Mon, 31 Oct 2016 22:43:01 +0200 Adrian Bunk <bunk@stusta.de> wrote:
> Control: reassign -1 release.debian.org
> Control: severity -1 normal
> Control: retitle -1 nmu: zlib_1:1.2.8.dfsg-2
> Control: affects -1 src:zlib
> 
> [...]
> 
> Thanks for your bug report.
> 
> [...]
> 
> I am reassigning this bug to the release team to schedule a binNMU
> of zlib:
> nmu zlib_1:1.2.8.dfsg-2 . ANY . unstable . -m "Recompile static libraries with PIE"
> 
> cu
> Adrian
> 
> [...]

binNMU scheduled.

Thakns,
~Niels

--- End Message ---

Reply to: