[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CA+rFky7hhP+=CVrxKArgrjrC6C+8=irLbNEm0PxaiidR8bvFaA@mail.gmail.com>
Date: Wed, 16 Aug 2023 06:25:30 +0300
From: Andrew Randrianasulu <randrianasulu@...il.com>
To: Bagas Sanjaya <bagasdotme@...il.com>
Cc: lkml <linux-kernel@...r.kernel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>, x86@...nel.org,
"H. Peter Anvin" <hpa@...or.com>,
Michael Kelley <mikelley@...rosoft.com>
Subject: Re: Build failure in 6.5-rcX ?
On Wed, Aug 16, 2023 at 6:27 AM Bagas Sanjaya <bagasdotme@...il.com> wrote:
>
> On Fri, Aug 11, 2023 at 11:39:06PM +0300, Andrew Randrianasulu wrote:
> > I was trying to crosscompile linux git
> >
> > 9106536c1aa37bcf60202ad93bb8b94bcd29f3f0
> >
> > Unfortunately I got this error:
> >
> > ====
> > bash-5.1$ make ARCH=x86_64 CROSS_COMPILE=x86_64-unknown-linux-gnu-
> > CALL scripts/checksyscalls.sh
> > DESCEND objtool
> > INSTALL libsubcmd_headers
> > CHK kernel/kheaders_data.tar.xz
> > UPD include/generated/utsversion.h
> > CC init/version-timestamp.o
> > LD .tmp_vmlinux.kallsyms1
> > arch/x86/kernel/irq.o: In function `__common_interrupt':
> > irq.c:(.text+0x1727): undefined reference to `irq_regs'
> > irq.c:(.text+0x172f): undefined reference to `irq_regs'
> > irq.c:(.text+0x179a): undefined reference to `irq_regs'
> > arch/x86/kernel/irq.o: In function `__sysvec_x86_platform_ipi':
> > irq.c:(.text+0x1897): undefined reference to `irq_regs'
> > irq.c:(.text+0x189f): undefined reference to `irq_regs'
> > arch/x86/kernel/irq.o:irq.c:(.text+0x194a): more undefined references
> > to `irq_regs' follow
> > make[2]: *** [scripts/Makefile.vmlinux:36: vmlinux] Ошибка 1
> > make[1]: *** [/dev/shm/linux-2.6/Makefile:1250: vmlinux] Ошибка 2
> > make: *** [Makefile:234: __sub-make] Ошибка 2
> >
> > ====
> >
> > config attached.
> >
> > I use binutils 2.25.1 and gcc 7.5.0 targeting x86_64-unknown-linux-gnu-
> >
> > so my compile line was
> >
> > make ARCH=x86_64 CROSS_COMPILE=x86_64-unknown-linux-gnu- -j8
> >
> > after adding crosscompiler into PATH
> >
> > I tried to rebuild with make clean, but issue still here.
> >
>
> What system are you running your kernel builds?
>
> And in the future, please run make with V=1. Also, try prepending it with
> LC_ALL=en_US.UTF-8 to set compilation messages to English instead of your
> language, as people here can understand what's going wrong.
This is Slackware 15.0 i586 (mostly), but I keep kernel as 64-bit.
(so, cross-compiler done by just installing binutils + gcc into /opt/
folder).
This particular failure was fixed by just deleting everything but .git
folder and re-checkout all files.
Thanks for help!
PS: gcc 7.5.0 Line I used with gcc 11.4.0:
setarch i686 .././configure --prefix=/opt/kgcc64
--target=x86_64-unknown-linux-gnu --enable-languages=c,c++
--without-headers --with-gnu-ld --with-gnu-as --disable-shared
--disable-threads --disable-libmudflap --disable-libgomp
--disable-libssp --disable-libquadmath --disable-libatomic
--disable-decimal-float --disable-libsanitizer --disable-libvtv
--disable-libitm --disable-libcilkrts --disable-multilib
--disable-libmpx --disable-libstdcxx
same --target and --prefix was used for binutils.
>
> Thanks.
>
> --
> An old man doll... just what I always wanted! - Clara
Powered by blists - more mailing lists