opensuse 的 zlib 有个补丁:
#PATCH-FIX-UPSTREAM https://github.com/madler/zlib/pull/335
Patch3: zlib-power8-fate325307.patch
这个补丁在 mips64el 下面,会导致 make check 报错:
+ make check
hello world
zlib version 1.2.11 = 0x12b0, compile flags = 0xa9
uncompress (): hello, hello!
gzread (): hello, hello!
gzgets () after gzseek: hello!
inflate (): hello, hello!
large_inflate (): OK
after inflateSync (): hello, hello!
inflate with dictionary: hello, hello!
*** zlib test OK ***
./minigzipsh: fd:0: incorrect data check
*** zlib shared test FAILED ***
hello world
zlib version 1.2.11 = 0x12b0, compile flags = 0xa9
uncompress (): hello, hello!
gzread (): hello, hello!
gzgets () after gzseek: hello!
inflate (): hello, hello!
large_inflate (): OK
after inflateSync (): hello, hello!
inflate with dictionary: hello, hello!
*** zlib 64-bit test OK ***
+ exit 0
而且编译 gcc 目前出现:
[ 4806s] Fatal Error: File ‘openacc_kinds.mod’ opened at (1) is not a GNU Fortran module file
这个文件我检查了,编译 GCC 时生成的,file 是一个 gzip 文件,但是解压缩提示 crc 错误。
我替换成旧版本的 zlib 就没这个错误。目前我正在尝试去掉这个补丁后重新编译看看 GCC 是不是还报错。
我去 GitHub 上看了这个推送,似乎有很多讨论。
哪位能帮忙看一下是不是确实有问题?合并后的 patch 是不是已经修正了?