Skip to contentSkip to conversation

toolchain-external: bump CodeSourcery AMD64 to 2016.11-19

PATCH New Romain Naour 2 participants 7 messages Dec 20, 2016 – Jan 27, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toolchain-external: bump CodeSourcery AMD64 to 2016.11-19

---
Just build tested only, I don't have this kind of hardware.

---
 .../toolchain-external-codesourcery-amd64/Config.in          | 12 ++++++------
 .../toolchain-external-codesourcery-amd64.hash               |  4 ++--
 .../toolchain-external-codesourcery-amd64.mk                 |  2 +-
 3 files changed, 9 insertions(+), 9 deletions(-)
toolchain/toolchain-external/toolchain-external-codesourcery-amd64/Config.in +6 -6
index 86486c8..32d79eb 100644
@@ -1,5 +1,5 @@
 config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_AMD64
-	bool "Sourcery CodeBench AMD64 2015.11"
+	bool "Sourcery CodeBench AMD64 2016.11"
 	depends on BR2_x86_64
 	depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
 	depends on !BR2_STATIC_LIBS
@@ -9,13 +9,13 @@ config BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_AMD64
 	select BR2_TOOLCHAIN_HAS_NATIVE_RPC
 	select BR2_INSTALL_LIBSTDCPP
 	select BR2_HOSTARCH_NEEDS_IA32_LIBS
-	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2
-	select BR2_TOOLCHAIN_GCC_AT_LEAST_5
+	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
+	select BR2_TOOLCHAIN_GCC_AT_LEAST_6
 	help
 	  Sourcery CodeBench toolchain for the amd64 (x86_64)
-	  architectures, from Mentor Graphics. It uses gcc 5.2,
-	  binutils 2.25.51, glibc 2.22, gdb 7.10.50 and kernel headers
-	  4.2. It has support for the following variants:
+	  architectures, from Mentor Graphics. It uses gcc 6.2,
+	  binutils 2.26, glibc 2.24, gdb 7.11 and kernel headers
+	  4.7. It has support for the following variants:
 	    - AMD Puma/Jaguar (family 16h), glibc
 	    Default for x86_64, nothing special to do.
 	    - AMD Steamroller (family 15h), glibc
toolchain/toolchain-external/toolchain-external-codesourcery-amd64/toolchain-external-codesourcery-amd64.hash +2 -2
index ea5f300..291e6a5 100644
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256 3c31206c8b9277f409ee00e4777ba82dfa6da2a4ca0926501cd5fb6bbd1b407e  amd-2015.11-139-x86_64-amd-linux-gnu-i686-pc-linux-gnu.tar.bz2
-sha256 0b673f5035f97d5d03c31272cddab0f117d39ad76a5ad2a3bc98c156571527de  amd-2015.11-139-x86_64-amd-linux-gnu.src.tar.bz2
+sha256 a6c23837dd45a33866c60a2fd8d7af40520cd84ff1059abda797952d7ee0fafd  amd-2016.11-19-x86_64-amd-linux-gnu-i686-pc-linux-gnu.tar.bz2
+sha256 d61ce0b5648ad63cca16fe233c82e7eaa6a3212a549d69a527e7a2d5350f7b4a  amd-2016.11-19-x86_64-amd-linux-gnu.src.tar.bz2
toolchain/toolchain-external/toolchain-external-codesourcery-amd64/toolchain-external-codesourcery-amd64.mk +1 -1
index 4b8e31c..1697e5e 100644
@@ -5,7 +5,7 @@
 ################################################################################
 
 TOOLCHAIN_EXTERNAL_CODESOURCERY_AMD64_SITE = https://sourcery.mentor.com/public/gnu_toolchain/$(TOOLCHAIN_EXTERNAL_PREFIX)
-TOOLCHAIN_EXTERNAL_CODESOURCERY_AMD64_VERSION = 2015.11-139
+TOOLCHAIN_EXTERNAL_CODESOURCERY_AMD64_VERSION = 2016.11-19
 TOOLCHAIN_EXTERNAL_CODESOURCERY_AMD64_SOURCE = amd-$(TOOLCHAIN_EXTERNAL_CODESOURCERY_AMD64_VERSION)-$(TOOLCHAIN_EXTERNAL_PREFIX)-i686-pc-linux-gnu.tar.bz2
 TOOLCHAIN_EXTERNAL_CODESOURCERY_AMD64_ACTUAL_SOURCE_TARBALL = amd-$(TOOLCHAIN_EXTERNAL_CODESOURCERY_AMD64_VERSION)-$(TOOLCHAIN_EXTERNAL_PREFIX).src.tar.bz2
 
Signature · 1 line
2.5.5
#1 lore raw

PATCH 1/1 toolchain-external: bump CodeSourcery AMD64 to 2016.11-19

Hello,

Quoted 3 lines · Romain Naour

---
Just build tested only, I don't have this kind of hardware.

You don't have qemu-system-x86_64, really ? :-)

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 toolchain-external: bump CodeSourcery AMD64 to 2016.11-19

Hi Thomas,

Le 20/12/2016 ? 21:54, Thomas Petazzoni a ?crit :

Quoted 8 lines

Hello,

Quoted 3 lines · Romain Naour

---
Just build tested only, I don't have this kind of hardware.

You don't have qemu-system-x86_64, really ? :-)

I can't use it with Qemu even with the current version or this new toolchain. It doesn't boot at all, I don't even see the first kernel line.

I'm using a Linux kernel 4.8.13 with qemu-2.4.1-11.fc23 or v2.8.0-rc2-8-gbd8ef50

Best regards,
Romain

Quoted 3 lines

Thomas

#3 lore raw

PATCH 1/1 toolchain-external: bump CodeSourcery AMD64 to 2016.11-19

Hello,

Quoted 6 lines · Romain Naour
Quoted 1 line

You don't have qemu-system-x86_64, really ? :-)

I can't use it with Qemu even with the current version or this new toolchain. It doesn't boot at all, I don't even see the first kernel line.

I'm using a Linux kernel 4.8.13 with qemu-2.4.1-11.fc23 or v2.8.0-rc2-8-gbd8ef50

Odd. What CPU variant are you using?

Maybe Gustavo has a clue?

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#4 lore raw

PATCH 1/1 toolchain-external: bump CodeSourcery AMD64 to 2016.11-19

Le 20/12/2016 ? 22:18, Thomas Petazzoni a ?crit :

Quoted 4 lines

Hello,

On Tue, 20 Dec 2016 22:15:16 +0100, Romain Naour wrote:

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

You don't have qemu-system-x86_64, really ? :-)

I can't use it with Qemu even with the current version or this new toolchain. It doesn't boot at all, I don't even see the first kernel line.

I'm using a Linux kernel 4.8.13 with qemu-2.4.1-11.fc23 or v2.8.0-rc2-8-gbd8ef50

Odd. What CPU variant are you using?

I'm using BR2_x86_steamroller, Qemu doesn't seems support it.

Romain

Quoted 5 lines

Maybe Gustavo has a clue?

Thomas

#5 lore raw

PATCH 1/1 toolchain-external: bump CodeSourcery AMD64 to 2016.11-19

Hi Thomas,

Le 20/12/2016 ? 22:27, Romain Naour a ?crit :

Quoted 7 lines

Le 20/12/2016 ? 22:18, Thomas Petazzoni a ?crit :

Quoted 6 lines

Hello,

Quoted 2 lines · Romain Naour
Quoted 1 line

You don't have qemu-system-x86_64, really ? :-)

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

I can't use it with Qemu even with the current version or this new toolchain. It doesn't boot at all, I don't even see the first kernel line.

I'm using a Linux kernel 4.8.13 with qemu-2.4.1-11.fc23 or v2.8.0-rc2-8-gbd8ef50

Odd. What CPU variant are you using?

I'm using BR2_x86_steamroller, Qemu doesn't seems support it.

I switched to BR2_x86_jaguar for testing and it still don't boot with the command line provided in board/qemu/x86_64/readme.txt

So, I tried several Qemu options (-cpu and -M) and some kernel options... Qemu 2.8.0 -cpu Opteron_G4 option seems interesting.

Finally, I had to try a strange option combination "-cpu Opteron_G4 -enable-kvm" even if my host is not an AMD64 cpu (it's an Intel(R) Core(TM) i5-4670K CPU).

And it boot completely :)

Here is the command line used:
~/git/qemu/x86_64-softmmu/qemu-system-x86_64 -M pc -kernel test/sourcery-x86-64/images/bzImage -drive file=test/sourcery-x86-64/images/rootfs.ext2,if=virtio,format=raw -append root=/dev/vda -net nic,model=virtio -net user -cpu Opteron_G4 -enable-kvm

Note: Qemu complain about some missing feature
warning: host doesn't support requested feature: CPUID.80000001H:ECX.sse4a [bit 6]
warning: host doesn't support requested feature: CPUID.80000001H:ECX.misalignsse [bit 7]
warning: host doesn't support requested feature: CPUID.80000001H:ECX.3dnowprefetch [bit 8]
warning: host doesn't support requested feature: CPUID.80000001H:ECX.xop [bit 11]
warning: host doesn't support requested feature: CPUID.80000001H:ECX.fma4 [bit 16]

It's almost the same warning without -enable-kvm option
warning: TCG doesn't support requested feature: CPUID.01H:ECX.avx [bit 28]
warning: TCG doesn't support requested feature: CPUID.80000001H:ECX.misalignsse [bit 7]
warning: TCG doesn't support requested feature: CPUID.80000001H:ECX.3dnowprefetch [bit 8]
warning: TCG doesn't support requested feature: CPUID.80000001H:ECX.xop [bit 11]
warning: TCG doesn't support requested feature: CPUID.80000001H:ECX.fma4 [bit 16]

I guess it works with --enable-kvm since my host support CPUID.01H:ECX.avx

It's amazing to see the content of cpuinfo inside Qemu VM:

# cat /proc/cpuinfo
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 21
model		: 1
model name	: AMD Opteron 62xx class CPU

So, this toolchain seems to work correctly if avx support is present :)
Tested with Qemu 2.8.0 and kernel 4.9 (using board/qemu/x86_64/linux-4.8.config) with BR2_x86_jaguar.

However, it doesn't boot with BR2_x86_steamroller.
warning: host doesn't support requested feature: CPUID.80000001H:ECX.sse4a [bit 6]
warning: host doesn't support requested feature: CPUID.80000001H:ECX.misalignsse [bit 7]
warning: host doesn't support requested feature: CPUID.80000001H:ECX.3dnowprefetch [bit 8]
warning: host doesn't support requested feature: CPUID.80000001H:ECX.xop [bit 11]
warning: host doesn't support requested feature: CPUID.80000001H:ECX.fma4 [bit 16]
warning: host doesn't support requested feature: CPUID.80000001H:ECX.tbm [bit 21]

missing CPUID.80000001H:ECX.tbm on my host it seems...

Best regards,
Romain

Quoted 9 lines

Romain

Quoted 5 lines

Maybe Gustavo has a clue?

Thomas

#6 lore raw

PATCH 1/1 toolchain-external: bump CodeSourcery AMD64 to 2016.11-19

In reply to Romain Naour

Hello,

Quoted 8 lines · Romain Naour

---
Just build tested only, I don't have this kind of hardware.

---
 .../toolchain-external-codesourcery-amd64/Config.in          | 12 ++++++------
 .../toolchain-external-codesourcery-amd64.hash               |  4 ++--
 .../toolchain-external-codesourcery-amd64.mk                 |  2 +-
 3 files changed, 9 insertions(+), 9 deletions(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com