* [Buildroot] [Buildroot 2020.02.1] Problems with x86_64-jaguar buildroot-toolchain-built kernel
[not found] <BL0PR10MB2866A594CDE0E5FD74BC767BFFAE0@BL0PR10MB2866.namprd10.prod.outlook.com>
@ 2020-04-27 6:49 ` Olivier, Alain
2020-04-27 19:35 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Olivier, Alain @ 2020-04-27 6:49 UTC (permalink / raw)
To: buildroot
Hello there,
I am experiencing the following problem when building a basic environment for a board running on a AMD GX-222GC (should be Jaguar subarch).
The default external toolchain is amd-2016.11-19 from CodeBench. Kernel built with that toolchain boots correctly.
Instead, if I build the same kernel, same configuration, with the toolchain built by buildroot, the kernel doen not boot! Not even a kernel panic, machine just resets.
These are the results of gcc -v
CodeBench:
$ output/host/usr/bin/x86_64-amd-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/media/alain/9977d84d-11ba-45b3-8fec-87ae51a7c338/tmp/buildroot_toolchain/output/host/opt/ext-toolchain/bin/x86_64-amd-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/media/alain/9977d84d-11ba-45b3-8fec-87ae51a7c338/tmp/buildroot_toolchain/output/host/opt/ext-toolchain/bin/../libexec/gcc/x86_64-amd-linux-gnu/6.2.0/lto-wrapper
Target: x86_64-amd-linux-gnu
Configured with: /scratch/jmyers/amd-lite/src/gcc-6-2016.11/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=x86_64-amd-linux-gnu --enable-threads --disable-libmudflap --disable-libstdcxx-pch --enable-extra-sgxxlite-multilibs --with-arch=btver2 --with-cpu=btver2 --with-gnu-as --with-gnu-ld --with-specs='-D__CS_SOURCERYGXX_MAJ__=2016 -D__CS_SOURCERYGXX_MIN__=11 -D__CS_SOURCERYGXX_REV__=19' --enable-languages=c,c++ --enable-shared --enable-lto --enable-symvers=gnu --enable-__cxa_atexit --with-glibc-version=2.24 --with-pkgversion='Sourcery CodeBench Lite 2016.11-19' --with-bugurl=https://sourcery.mentor.com/GNUToolchain/<https://urldefense.proofpoint.com/v2/url?u=https-3A__sourcery.mentor.com_GNUToolchain_&d=DwQFAw&c=jOURTkCZzT8tVB5xPEYIm3YJGoxoTaQsQPzPKJGaWbo&r=GRglAZYePosf_lPzwVu-TAr6NhBHNTaO44HwSmVR9cw&m=hjFUodgGyWKtnZNKi8G_JNXNrbX-j8sNfEfnL3zkxJg&s=28lkkdJ_0LP0mdZ2YX7Hr7EiAH9NpZ4yep5s6PhHcSI&e=> --disable-nls --prefix=/opt/codesourcery --with-sysroot=/opt/codesourcery/x86_64-amd-linux-gnu/libc --with-build-sysroot=/scratch/jmyers/amd-lite/install/opt/codesourcery/x86_64-amd-linux-gnu/libc --with-gmp=/scratch/jmyers/amd-lite/obj/pkg-2016.11-19-x86_64-amd-linux-gnu/amd-2016.11-19-x86_64-amd-linux-gnu.extras/host-libs-i686-pc-linux-gnu/usr --with-mpfr=/scratch/jmyers/amd-lite/obj/pkg-2016.11-19-x86_64-amd-linux-gnu/amd-2016.11-19-x86_64-amd-linux-gnu.extras/host-libs-i686-pc-linux-gnu/usr --with-mpc=/scratch/jmyers/amd-lite/obj/pkg-2016.11-19-x86_64-amd-linux-gnu/amd-2016.11-19-x86_64-amd-linux-gnu.extras/host-libs-i686-pc-linux-gnu/usr --with-isl=/scratch/jmyers/amd-lite/obj/pkg-2016.11-19-x86_64-amd-linux-gnu/amd-2016.11-19-x86_64-amd-linux-gnu.extras/host-libs-i686-pc-linux-gnu/usr --enable-libgomp --enable-libitm --enable-libatomic --disable-libssp --disable-libcc1 --enable-poison-system-directories --with-python-dir=x86_64-amd-linux-gnu/share/gdb/python --with-build-time-tools=/scratch/jmyers/amd-lite/install/opt/codesourcery/x86_64-amd-linux-gnu/bin --with-build-time-tools=/scratch/jmyers/amd-lite/install/opt/codesourcery/x86_64-amd-linux-gnu/bin SED=sed
Thread model: posix
gcc version 6.2.0 (Sourcery CodeBench Lite 2016.11-19)
Buildroot:
Using built-in specs.
COLLECT_GCC=/media/alain/9977d84d-11ba-45b3-8fec-87ae51a7c338/tmp/buildroot_toolchain/output/host/opt/ext-toolchain/bin/x86_64-linux-gcc.br_real
COLLECT_LTO_WRAPPER=/media/alain/9977d84d-11ba-45b3-8fec-87ae51a7c338/tmp/buildroot_toolchain/output/host/opt/ext-toolchain/bin/../libexec/gcc/x86_64-buildroot-linux-gnu/7.5.0/lto-wrapper
Target: x86_64-buildroot-linux-gnu
Configured with: ./configure --prefix=/media/alain/9977d84d-11ba-45b3-8fec-87ae51a7c338/tmp/buildroot_toolchain/output/host --sysconfdir=/media/alain/9977d84d-11ba-45b3-8fec-87ae51a7c338/tmp/buildroot_toolchain/output/host/etc --enable-static --target=x86_64-buildroot-linux-gnu --with-sysroot=/media/alain/9977d84d-11ba-45b3-8fec-87ae51a7c338/tmp/buildroot_toolchain/output/host/x86_64-buildroot-linux-gnu/sysroot --enable-__cxa_atexit --with-gnu-ld --disable-libssp --disable-multilib --disable-decimal-float --with-gmp=/media/alain/9977d84d-11ba-45b3-8fec-87ae51a7c338/tmp/buildroot_toolchain/output/host --with-mpc=/media/alain/9977d84d-11ba-45b3-8fec-87ae51a7c338/tmp/buildroot_toolchain/output/host --with-mpfr=/media/alain/9977d84d-11ba-45b3-8fec-87ae51a7c338/tmp/buildroot_toolchain/output/host --with-pkgversion='Buildroot 2020.02.1-00007-g345f377da1-dirty' --with-bugurl=http://bugs.buildroot.net/<https://urldefense.proofpoint.com/v2/url?u=http-3A__bugs.buildroot.net_&d=DwQFAw&c=jOURTkCZzT8tVB5xPEYIm3YJGoxoTaQsQPzPKJGaWbo&r=GRglAZYePosf_lPzwVu-TAr6NhBHNTaO44HwSmVR9cw&m=hjFUodgGyWKtnZNKi8G_JNXNrbX-j8sNfEfnL3zkxJg&s=PlQ707PIhSCbmNL2wUQH7xHm7hYzsvgHCkXG6xJg2Hw&e=> --enable-libquadmath --enable-tls --enable-threads --without-isl --without-cloog --with-arch=btver2 --enable-languages=c,c++ --with-build-time-tools=/media/alain/9977d84d-11ba-45b3-8fec-87ae51a7c338/tmp/buildroot_toolchain/output/host/x86_64-buildroot-linux-gnu/bin --enable-shared --disable-libgomp
Thread model: posix
gcc version 7.5.0 (Buildroot 2020.02.1-00007-g345f377da1-dirty)
I even tried gcc 8 without resolving.
Thanks in advance.
Alain.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200427/8b4b3ea4/attachment.html>
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] [Buildroot 2020.02.1] Problems with x86_64-jaguar buildroot-toolchain-built kernel
2020-04-27 6:49 ` [Buildroot] [Buildroot 2020.02.1] Problems with x86_64-jaguar buildroot-toolchain-built kernel Olivier, Alain
@ 2020-04-27 19:35 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2020-04-27 19:35 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 27 Apr 2020 06:49:35 +0000
"Olivier, Alain [COMRES/EUR/BLU]" <Alain.Olivier@Emerson.com> wrote:
> I am experiencing the following problem when building a basic environment for a board running on a AMD GX-222GC (should be Jaguar subarch).
> The default external toolchain is amd-2016.11-19 from CodeBench. Kernel built with that toolchain boots correctly.
> Instead, if I build the same kernel, same configuration, with the toolchain built by buildroot, the kernel doen not boot! Not even a kernel panic, machine just resets.
I assume you are the person who also asked the same question on StackOverflow:
https://stackoverflow.com/questions/61457023/why-is-my-kernel-resetting-my-machine-immediately
The critical bit of information missing in your e-mail, but that you
gave as a reply on stack overflow is that you are testing on 4.4.57.
However, there was an issue in Linux where using a toolchain that uses
binutils >= 2.31 would generate a non-bootable kernel. This was fixed
upstream, and then backported to the 4.4.x stable branch in commit:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=073bb7ddd35ca8f17a170258dacbe384935a43c8
This commit is available in the 4.4.x branch as of 4.4.124.
How do I immediately know that? I debugged exactly this issue last
week, where a Linux 4.4.39 built with Buildroot 2019.11 was booting
fine, but not built with Buildroot 2020.02 :-)
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-04-27 19:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <BL0PR10MB2866A594CDE0E5FD74BC767BFFAE0@BL0PR10MB2866.namprd10.prod.outlook.com>
2020-04-27 6:49 ` [Buildroot] [Buildroot 2020.02.1] Problems with x86_64-jaguar buildroot-toolchain-built kernel Olivier, Alain
2020-04-27 19:35 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox