Re: decompress.c:undefined reference to `__decompress'

From: Christophe Leroy
Date: Mon Aug 30 2021 - 01:46:27 EST




Le 30/08/2021 à 04:30, Randy Dunlap a écrit :
On 5/21/21 1:20 AM, kernel test robot wrote:
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   79a106fc6585979022012e65a1e45e3d2d28b77b
commit: 665d8d58761cba41147fe7e98e2ceed1cbf603a2 powerpc/akebono: Fix unmet dependency errors
date:   3 months ago
config: powerpc64-randconfig-r023-20210521 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
         chmod +x ~/bin/make.cross
         # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=665d8d58761cba41147fe7e98e2ceed1cbf603a2
         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
         git fetch --no-tags linus master
         git checkout 665d8d58761cba41147fe7e98e2ceed1cbf603a2
         # save the attached .config to linux build tree
         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc64

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

    powerpc-linux-ld: arch/powerpc/boot/wrapper.a(decompress.o): in function `partial_decompress':
decompress.c:(.text+0x1f0): undefined reference to `__decompress'

---

Hi Christophe,

Didn't you have a patch that adds boot support in Powerpc for
LZMA and LZO?  What happened to that patch?


Yes it is still there

https://patchwork.ozlabs.org/project/linuxppc-dev/patch/a74fce4dfc9fa32da6ce3470bbedcecf795de1ec.1591189069.git.christophe.leroy@xxxxxxxxxx/

But as far as I remember it didn't pass CI build tests. Need to have a new look at it.