[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [PATCH] tar: Fix build error when CONFIG_UNCOMPRESS is not selected
From: Abdoulaye Walsimou GAYE <awg () embtoolkit ! org>
Date: 2013-01-28 21:50:13
Message-ID: 5106F295.5050708 () embtoolkit ! org
[Download RAW message or body]
On 01/28/2013 08:48 AM, Denys Vlasenko wrote:
> Hello,
> See attached .config file and see below the build link error,
>
> /home/walsimou/embtoolkit.git/build/packages_build-mipsel-linux-mips32/busybox-1.20.2/archival/tar.c:1065: \
> undefined reference to `unpack_Z_stream'
> /home/walsimou/embtoolkit.git/build/packages_build-mipsel-linux-mips32/busybox-1.20.2/archival/tar.c:1065: \
> undefined reference to `unpack_Z_stream'
> /home/walsimou/embtoolkit.git/tools-mipsel-linux-mips32/bin/mipsisa32el-unknown-linux-uclibc-ld: \
> busybox_unstripped: hidden symbol `unpack_Z_stream' isn't defined
> /home/walsimou/embtoolkit.git/tools-mipsel-linux-mips32/bin/mipsisa32el-unknown-linux-uclibc-ld: \
> final link failed: Bad value
> mipsisa32el-unknown-linux-uclibc-clang: error: linker command failed with exit code \
> 1 (use -v to see invocation)
> I was able to build busybox-1.20.2 with this .config
> without errors.
>
> Looks like your compiler did not optimize this out:
>
> if (opt & OPT_COMPRESS)
> USE_FOR_MMU(xformer = unpack_Z_stream;)
> USE_FOR_NOMMU(xformer_prog = "uncompress";)
>
>
> even though OPT_COMPRESS is a constant zero.
Hello,
You're absolutely right, I was compiling with -O0 and llvm at this optimization level
seems to disable dead code elimination . The same .config even with -O1 links without \
error. Huummm well, sorry for the noise!
Thanks,
AWG
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic