From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933367AbcHDKlY (ORCPT ); Thu, 4 Aug 2016 06:41:24 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:49601 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750753AbcHDKlR (ORCPT ); Thu, 4 Aug 2016 06:41:17 -0400 From: Arnd Bergmann To: linuxppc-dev@lists.ozlabs.org Cc: Stephen Rothwell , "linux-kernel@vger.kernel.org" , Nicholas Piggin , "Luis R. Rodriguez" , linux-next@vger.kernel.org, Paul Mackerras , Fengguang Wu , Guenter Roeck Subject: Re: powerpc allyesconfig / allmodconfig linux-next next-20160729 - next-20160729 build failures Date: Thu, 04 Aug 2016 12:37:41 +0200 Message-ID: <1880505.MpH3ISbtMJ@wuerfel> User-Agent: KMail/5.1.3 (Linux/4.4.0-31-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: <10480058.bD2uPUOBSy@wuerfel> References: <20160804101051.39ca1e26@canb.auug.org.au> <10480058.bD2uPUOBSy@wuerfel> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:H/csPCtB9Qq25EdigIcNvV6v3kvkxVp3hNyGNZ6r9oGwBp/h38E mJhQ6mSxgvQzmrwYJFdOlJ8gedY5DxN3+UvEDlsV8uWi1lJc73mrHoFBK3Q6n4iYc+KkbNv f6B2rZihzOqYt0hMI+s8nJ2v9+sxu6dfoqvA5Omp7hZ/BJtCksqA+TEfW0eoFe7Hct26C6E w6OY30rHatn+1qajaKpwQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:pM6NeE3mCto=:8Q4S0YDHnY9WnkLT6003f3 IjLLqDLygLCCo3agd28SM+MCj2tjLE8XnJlp0rvLUODzU1ysRFRA4ThaveUZ38XZ52+3VZBO7 tXKtxV0qlfnurlKLvQMKvFr9+B5kd30dH00jqQOPVATQePNTlqF0+h2nBOxOqh8ClYNjhmk0s OxKYEL+t72WmKoQYVdC9hcuNNRcCSGOvIBU6cU69QusrbatybrLNQ7uvVf2CLx2g0oooYqW0v MOWDsnO0dmW5X1oCw0vC5ZN3wVKhngoXROivs1M592x7bYfQHDazS+IFOMsahGXyoQFj+w+vN NN3CGF3q6rY8IXfeW93mI+JVI/C21x0wRUiOFn50BpTsWZIlYqZgjduF5MhxSwFWuOsrzMUlo tF0cMxt7c4sXLrPAJwbaHz/iThMnUDM3eOjoy58CkO26SfB7w7gkk78590KbqHeevI79YLOi+ px/MeHJFTB9YTq3Gariwe+sm8U0FILw5erZC+9Xo7zlbrxY7bwF8cGgwdvCDn7u/DqNSUntm5 tHB5G6sp5cbWg5h+EGnCLuo4LgI7R/q0nfnS7HzUXzOMhM6n4LW8Bls1iTAK+8LoGepgeKbj6 kPPlVR8NHWCIXBwkSmQupaV+P4fpYinVv2YZAgUq4e7Y1cVthNKMcwZwBuz4KpoN0YEPaHqlz M/iW4zxJsOR43VGxPzckRz9vkxvE8g38NHMnZqna/fN/a3jadwFmCAZw2I19nhH+ziFJ6bU7L GZTh2Fa/QqY0kECw Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, August 4, 2016 11:00:49 AM CEST Arnd Bergmann wrote: > I tried this > > diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh > index b5e40ed86e60..89bca1a25916 100755 > --- a/scripts/link-vmlinux.sh > +++ b/scripts/link-vmlinux.sh > @@ -44,7 +44,7 @@ modpost_link() > local objects > > if [ -n "${CONFIG_THIN_ARCHIVES}" ]; then > - objects="--whole-archive ${KBUILD_VMLINUX_INIT} ${KBUILD_VMLINUX_MAIN} --no-whole-archive" > + objects="${KBUILD_VMLINUX_INIT} ${KBUILD_VMLINUX_MAIN}" > else > objects="${KBUILD_VMLINUX_INIT} --start-group ${KBUILD_VMLINUX_MAIN} --end-group" > fi > > but that did not seem to change anything, the extra symbols are > still there. I have not tried to understand what that actually > does, so maybe I misunderstood your suggestion. > On a second attempt, I did the same change for vmlinux instead of the module (d'oh), and got a link failure instead: arch/arm/mm/proc-xscale.o: In function `cpu_xscale_do_resume': (.text+0x3d4): undefined reference to `cpu_resume_mmu' arch/arm/kernel/setup.o: In function `setup_arch': setup.c:(.init.text+0x910): undefined reference to `init_uts_ns' kernel/nsproxy.o:(.data+0x4): undefined reference to `init_uts_ns' kernel/sched/core.o: In function `update_rq_clock': core.c:(.text+0x6d8): undefined reference to `paravirt_steal_rq_enabled' core.c:(.text+0x6dc): undefined reference to `pv_time_ops' kernel/sched/cputime.o: In function `account_process_tick': cputime.c:(.text+0x794): undefined reference to `paravirt_steal_enabled' cputime.c:(.text+0x7a0): undefined reference to `pv_time_ops' kernel/locking/lockdep.o: In function `save_trace': lockdep.c:(.text+0xfe8): undefined reference to `save_stack_trace' kernel/module.o: In function `load_module': module.c:(.text+0x1b54): undefined reference to `elf_check_arch' module.c:(.text+0x2024): undefined reference to `apply_relocate' kernel/debug/debug_core.o: In function `kgdb_unregister_io_module': debug_core.c:(.text+0x2e4): undefined reference to `kgdb_arch_exit' kernel/debug/debug_core.o: In function `kgdb_arch_set_breakpoint': debug_core.c:(.text+0x3bc): undefined reference to `arch_kgdb_ops' kernel/debug/debug_core.o: In function `dbg_remove_all_break': debug_core.c:(.text+0x6d0): undefined reference to `arch_kgdb_ops' ... However, I also see a link failure in some rare configurations with just your patch: arch/arm/lib/lib.a(io-acorn.o): In function `outsl': (.text+0x38): undefined reference to `printk' The problem being a file in a library object that is not referenced, but that references another symbol that is not defined (CONFIG_PRINTK=n). Arnd