Re: [OE-core] [PATCH 2/2] gcc: Oe-selftest failure analysis - allowing multiple ssh sessions

2024-04-18 Thread Sadineni, Harish via lists.openembedded.org
Time taken to run gcc testsuite w/o multiple ssh sessions -> 16-18 hrs
Time taken to run gcc testsuite w/ multiple ssh sessions -> 11-12 hrs
There is an improvement of ~30% in execution time.

Thanks,

Harish

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#198515): 
https://lists.openembedded.org/g/openembedded-core/message/198515
Mute This Topic: https://lists.openembedded.org/mt/105595961/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH 1/2] gcc: fix for host key verfication & kex exchange identification failures

2024-04-18 Thread Sadineni, Harish via lists.openembedded.org
testresults before applying patch for x86_64 :
|  gcc            |   g++           |  libatomic    |   libgomp  |    libitm    
  |   libstdc++ |  Total (Sum of all modules)
expected passes         |  148313     |   218545      |  27              |    
3369      |    24           |    9693     |  379971
unexpected failures     |  15             |   20              |                 
   |                  |                   |                 |  35
expected failures         |  1419         |   2052          |                   
 |    30          |                   |    6           |  3507
unresolved testcases  |  25130        |   10816       |  27              |    
1579      |     22          |    4869      |  42443
unsupported tests       |  2686          |   10420       |                    | 
   410        |     2             |    643       |  14161

testresults after applying patch for x86_64:
|  gcc          |   g++           |  libatomic    |   libgomp  |    libitm      
|   libstdc++ |  Total (Sum of all modules)
expected passes         |  177610    |   230158     |  54              |    
5033      |    24          |    13695    |  426574
unexpected failures     |  99           |   20              |                   
 |    1            |    19          |    7            |  146
expected failures         |  1422       |   2063          |                    
|    32          |    3            |    106        |  3626
unresolved testcases  |  4              |                    |                  
  |                  |                  |    1125       |  1129
unsupported tests       |  2147        |   10350       |                    |   
 429        |    2            |    805         |  13733

Unresolved cases are reduced to ~1000 (i.e., More than 41K tests are newly 
executed)
More than 45000 tests cases are passed newly.

Thanks,
Harish

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#198514): 
https://lists.openembedded.org/g/openembedded-core/message/198514
Mute This Topic: https://lists.openembedded.org/mt/105595960/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 2/2] gcc: Oe-selftest failure analysis - allowing multiple ssh sessions

2024-04-18 Thread Sadineni, Harish via lists.openembedded.org
From: Harish Sadineni 

Reusing SSH Connection to speed up remote login process using multiplexing to 
reduce time taken while running oe-selftest for gcc.

Signed-off-by: Harish Sadineni 
---
 meta/lib/oeqa/selftest/cases/gcc.py   | 10 ++
 meta/recipes-connectivity/openssh/openssh/sshd_config |  2 +-
 meta/recipes-devtools/gcc/gcc-testsuite.inc   |  3 ++-
 3 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/meta/lib/oeqa/selftest/cases/gcc.py 
b/meta/lib/oeqa/selftest/cases/gcc.py
index 4cc0894d42..992a5b74be 100644
--- a/meta/lib/oeqa/selftest/cases/gcc.py
+++ b/meta/lib/oeqa/selftest/cases/gcc.py
@@ -5,6 +5,7 @@
 #
 import os
 import time
+import subprocess
 from oeqa.core.decorator import OETestTag
 from oeqa.core.case import OEPTestResultTestCase
 from oeqa.selftest.case import OESelftestTestCase
@@ -83,6 +84,15 @@ class GccSelfTestBase(OESelftestTestCase, 
OEPTestResultTestCase):
 # validate that SSH is working
 status, _ = qemu.run("uname")
 self.assertEqual(status, 0)
+qemu_ip = qemu.ip
+ssh_command = [
+"ssh", "-o", "StrictHostKeyChecking=no",
+"-o", "UserKnownHostsFile=/dev/null",
+"-o", "ControlMaster=auto",
+"-o", "ControlPath=~/.ssh/control-%r@%h:%p",
+"-o", "Controlpersist=yes", "root@{}".format(qemu_ip),
+"exit" ]
+subprocess.run(ssh_command, check=True)
 
 return self.run_check(*args, ssh=qemu.ip, **kwargs)
 
diff --git a/meta/recipes-connectivity/openssh/openssh/sshd_config 
b/meta/recipes-connectivity/openssh/openssh/sshd_config
index b9357ef6c5..37ffe28142 100644
--- a/meta/recipes-connectivity/openssh/openssh/sshd_config
+++ b/meta/recipes-connectivity/openssh/openssh/sshd_config
@@ -34,7 +34,7 @@ Include /etc/ssh/sshd_config.d/*.conf
 #PermitRootLogin prohibit-password
 #StrictModes yes
 #MaxAuthTries 6
-#MaxSessions 10
+MaxSessions 1000
 
 #PubkeyAuthentication yes
 
diff --git a/meta/recipes-devtools/gcc/gcc-testsuite.inc 
b/meta/recipes-devtools/gcc/gcc-testsuite.inc
index 0a950b6c9e..62e9691a99 100644
--- a/meta/recipes-devtools/gcc/gcc-testsuite.inc
+++ b/meta/recipes-devtools/gcc/gcc-testsuite.inc
@@ -87,7 +87,8 @@ python check_prepare() {
 content.append("set_board_info username 
{0}".format(d.getVar("TOOLCHAIN_TEST_HOST_USER")))
 
 port = d.getVar("TOOLCHAIN_TEST_HOST_PORT")
-content.append("set_board_info rsh_prog \"/usr/bin/ssh -p {0} -o 
UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no\"".format(port))
+qemuip_address = d.getVar("TOOLCHAIN_TEST_HOST")
+content.append("set_board_info rsh_prog \"/usr/bin/ssh -S 
~/.ssh/control-root@{0}:{1} \"".format( qemuip_address, port))
 content.append("set_board_info rcp_prog \"/usr/bin/scp -P {0} -o 
UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no\"".format(port))
 
 return "\n".join(content)
-- 
2.43.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#198513): 
https://lists.openembedded.org/g/openembedded-core/message/198513
Mute This Topic: https://lists.openembedded.org/mt/105595961/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 1/2] gcc: fix for host key verfication & kex exchange identification failures

2024-04-18 Thread Sadineni, Harish via lists.openembedded.org
From: Harish Sadineni 

while runnig oe-selftest for gcc, testcases that need to be run on qemu are not 
running due to below failures.
- Executing on ssh: mkdir -p /tmp/runtest.3549641   (timeout = 300)
   spawn [open ...]
   Host key verification failed.
   ERROR: Couldn't create remote directory /tmp/runtest.3549641 on ssh
- kex_exchange_identification: read: Connection reset by peer^M
   Connection reset by 192.168.7.2 port 22^M
   ERROR: Couldn't create remote directory /tmp/runtest.3549814 on ssh

Host key verification failure is happening when ssh board config file name is 
defined as "ssh.exp" and there are multiple ssh.exp files generated during the 
build and a wrong ssh config was taken. To resolve this changed the board 
config file name to "linux-ssh.exp" which ensures correct ssh settings are used.

To resolve kex exchange identification error increased the MaxStartups.

Signed-off-by: Harish Sadineni 
---
 meta/lib/oeqa/selftest/cases/gcc.py   | 2 +-
 meta/recipes-connectivity/openssh/openssh/sshd_config | 2 +-
 meta/recipes-devtools/gcc/gcc-testsuite.inc   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/lib/oeqa/selftest/cases/gcc.py 
b/meta/lib/oeqa/selftest/cases/gcc.py
index 89360178fe..4cc0894d42 100644
--- a/meta/lib/oeqa/selftest/cases/gcc.py
+++ b/meta/lib/oeqa/selftest/cases/gcc.py
@@ -37,7 +37,7 @@ class GccSelfTestBase(OESelftestTestCase, 
OEPTestResultTestCase):
 features = []
 features.append('MAKE_CHECK_TARGETS = "{0}"'.format(" ".join(targets)))
 if ssh is not None:
-features.append('TOOLCHAIN_TEST_TARGET = "ssh"')
+features.append('TOOLCHAIN_TEST_TARGET = "linux-ssh"')
 features.append('TOOLCHAIN_TEST_HOST = "{0}"'.format(ssh))
 features.append('TOOLCHAIN_TEST_HOST_USER = "root"')
 features.append('TOOLCHAIN_TEST_HOST_PORT = "22"')
diff --git a/meta/recipes-connectivity/openssh/openssh/sshd_config 
b/meta/recipes-connectivity/openssh/openssh/sshd_config
index e9eaf93157..b9357ef6c5 100644
--- a/meta/recipes-connectivity/openssh/openssh/sshd_config
+++ b/meta/recipes-connectivity/openssh/openssh/sshd_config
@@ -100,7 +100,7 @@ ClientAliveInterval 15
 ClientAliveCountMax 4
 #UseDNS no
 #PidFile /var/run/sshd.pid
-#MaxStartups 10:30:100
+MaxStartups 75:30:100
 #PermitTunnel no
 #ChrootDirectory none
 #VersionAddendum none
diff --git a/meta/recipes-devtools/gcc/gcc-testsuite.inc 
b/meta/recipes-devtools/gcc/gcc-testsuite.inc
index f16d471478..0a950b6c9e 100644
--- a/meta/recipes-devtools/gcc/gcc-testsuite.inc
+++ b/meta/recipes-devtools/gcc/gcc-testsuite.inc
@@ -101,7 +101,7 @@ python check_prepare() {
 f.write(generate_qemu_linux_user_config(d))
 
 # write out target ssh board config
-with open(os.path.join(dejagnudir, "ssh.exp"), "w") as f:
+with open(os.path.join(dejagnudir, "linux-ssh.exp"), "w") as f:
 f.write(generate_remote_ssh_linux_config(d))
 
 # generate site.exp to provide boards
-- 
2.43.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#198512): 
https://lists.openembedded.org/g/openembedded-core/message/198512
Mute This Topic: https://lists.openembedded.org/mt/105595960/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH 2/2] gcc: Oe-selftest failure analysis - allowing multiple ssh sessions

2024-04-18 Thread Sadineni, Harish via lists.openembedded.org
Time taken to run gcc testsuite w/o multiple ssh sessions -> 16-18 hrs
Time taken to run gcc testsuite w/ multiple ssh sessions -> 11-12 hrs
There is an improvement of ~30% in execution time.

Thanks,

Harish

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#198509): 
https://lists.openembedded.org/g/openembedded-core/message/198509
Mute This Topic: https://lists.openembedded.org/mt/105595460/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH 1/2] gcc: Oe-selftest failure analysis - fix for host key verfication & kex exchange identification failures

2024-04-18 Thread Sadineni, Harish via lists.openembedded.org
testresults before applying patch for x86_64 :
|  gcc            |   g++           |  libatomic    |   libgomp  |    libitm    
  |   libstdc++ |  Total (Sum of all modules)
expected passes         |  148313     |   218545      |  27              |    
3369      |    24           |    9693     |  379971
unexpected failures     |  15             |   20              |                 
   |                  |                   |                 |  35
expected failures         |  1419         |   2052          |                   
 |    30          |                   |    6           |  3507
unresolved testcases  |  25130        |   10816       |  27              |    
1579      |     22          |    4869      |  42443
unsupported tests       |  2686          |   10420       |                    | 
   410        |     2             |    643       |  14161

testresults after applying patch for x86_64:
|  gcc          |   g++           |  libatomic    |   libgomp  |    libitm      
|   libstdc++ |  Total (Sum of all modules)
expected passes         |  177610    |   230158     |  54              |    
5033      |    24          |    13695    |  426574
unexpected failures     |  99           |   20              |                   
 |    1            |    19          |    7            |  146
expected failures         |  1422       |   2063          |                    
|    32          |    3            |    106        |  3626
unresolved testcases  |  4              |                    |                  
  |                  |                  |    1125       |  1129
unsupported tests       |  2147        |   10350       |                    |   
 429        |    2            |    805         |  13733

Unresolved cases are reduced to ~1000 (i.e., More than 41K tests are newly 
executed)
More than 45000 tests cases are passed newly.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#198508): 
https://lists.openembedded.org/g/openembedded-core/message/198508
Mute This Topic: https://lists.openembedded.org/mt/105595459/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 2/2] gcc: Oe-selftest failure analysis - allowing multiple ssh sessions

2024-04-18 Thread Sadineni, Harish via lists.openembedded.org
From: Harish Sadineni 

Reusing SSH Connection to speed up remote login process using multiplexing to 
reduce time taken while running oe-selftest for gcc.

Signed-off-by: Harish Sadineni 
---
 meta/lib/oeqa/selftest/cases/gcc.py   | 10 ++
 meta/recipes-connectivity/openssh/openssh/sshd_config |  2 +-
 meta/recipes-devtools/gcc/gcc-testsuite.inc   |  3 ++-
 3 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/meta/lib/oeqa/selftest/cases/gcc.py 
b/meta/lib/oeqa/selftest/cases/gcc.py
index 4cc0894d42..992a5b74be 100644
--- a/meta/lib/oeqa/selftest/cases/gcc.py
+++ b/meta/lib/oeqa/selftest/cases/gcc.py
@@ -5,6 +5,7 @@
 #
 import os
 import time
+import subprocess
 from oeqa.core.decorator import OETestTag
 from oeqa.core.case import OEPTestResultTestCase
 from oeqa.selftest.case import OESelftestTestCase
@@ -83,6 +84,15 @@ class GccSelfTestBase(OESelftestTestCase, 
OEPTestResultTestCase):
 # validate that SSH is working
 status, _ = qemu.run("uname")
 self.assertEqual(status, 0)
+qemu_ip = qemu.ip
+ssh_command = [
+"ssh", "-o", "StrictHostKeyChecking=no",
+"-o", "UserKnownHostsFile=/dev/null",
+"-o", "ControlMaster=auto",
+"-o", "ControlPath=~/.ssh/control-%r@%h:%p",
+"-o", "Controlpersist=yes", "root@{}".format(qemu_ip),
+"exit" ]
+subprocess.run(ssh_command, check=True)
 
 return self.run_check(*args, ssh=qemu.ip, **kwargs)
 
diff --git a/meta/recipes-connectivity/openssh/openssh/sshd_config 
b/meta/recipes-connectivity/openssh/openssh/sshd_config
index b9357ef6c5..37ffe28142 100644
--- a/meta/recipes-connectivity/openssh/openssh/sshd_config
+++ b/meta/recipes-connectivity/openssh/openssh/sshd_config
@@ -34,7 +34,7 @@ Include /etc/ssh/sshd_config.d/*.conf
 #PermitRootLogin prohibit-password
 #StrictModes yes
 #MaxAuthTries 6
-#MaxSessions 10
+MaxSessions 1000
 
 #PubkeyAuthentication yes
 
diff --git a/meta/recipes-devtools/gcc/gcc-testsuite.inc 
b/meta/recipes-devtools/gcc/gcc-testsuite.inc
index 0a950b6c9e..62e9691a99 100644
--- a/meta/recipes-devtools/gcc/gcc-testsuite.inc
+++ b/meta/recipes-devtools/gcc/gcc-testsuite.inc
@@ -87,7 +87,8 @@ python check_prepare() {
 content.append("set_board_info username 
{0}".format(d.getVar("TOOLCHAIN_TEST_HOST_USER")))
 
 port = d.getVar("TOOLCHAIN_TEST_HOST_PORT")
-content.append("set_board_info rsh_prog \"/usr/bin/ssh -p {0} -o 
UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no\"".format(port))
+qemuip_address = d.getVar("TOOLCHAIN_TEST_HOST")
+content.append("set_board_info rsh_prog \"/usr/bin/ssh -S 
~/.ssh/control-root@{0}:{1} \"".format( qemuip_address, port))
 content.append("set_board_info rcp_prog \"/usr/bin/scp -P {0} -o 
UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no\"".format(port))
 
 return "\n".join(content)
-- 
2.43.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#198507): 
https://lists.openembedded.org/g/openembedded-core/message/198507
Mute This Topic: https://lists.openembedded.org/mt/105595460/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 1/2] gcc: Oe-selftest failure analysis - fix for host key verfication & kex exchange identification failures

2024-04-18 Thread Sadineni, Harish via lists.openembedded.org
From: Harish Sadineni 

while runnig oe-selftest for gcc, testcases that need to be run on qemu are not 
running due to below failures.
- Executing on ssh: mkdir -p /tmp/runtest.3549641   (timeout = 300)
   spawn [open ...]
   Host key verification failed.
   ERROR: Couldn't create remote directory /tmp/runtest.3549641 on ssh
- kex_exchange_identification: read: Connection reset by peer^M
   Connection reset by 192.168.7.2 port 22^M
   ERROR: Couldn't create remote directory /tmp/runtest.3549814 on ssh

Host key verification failure is happening when ssh board config file name is 
defined as "ssh.exp" and there are multiple ssh.exp files generated during the 
build and a wrong ssh config was taken. To resolve this changed the board 
config file name to "linux-ssh.exp" which ensures correct ssh settings are used.

To resolve kex exchange identification error increased the MaxStartups.

Signed-off-by: Harish Sadineni 
---
 meta/lib/oeqa/selftest/cases/gcc.py   | 2 +-
 meta/recipes-connectivity/openssh/openssh/sshd_config | 2 +-
 meta/recipes-devtools/gcc/gcc-testsuite.inc   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta/lib/oeqa/selftest/cases/gcc.py 
b/meta/lib/oeqa/selftest/cases/gcc.py
index 89360178fe..4cc0894d42 100644
--- a/meta/lib/oeqa/selftest/cases/gcc.py
+++ b/meta/lib/oeqa/selftest/cases/gcc.py
@@ -37,7 +37,7 @@ class GccSelfTestBase(OESelftestTestCase, 
OEPTestResultTestCase):
 features = []
 features.append('MAKE_CHECK_TARGETS = "{0}"'.format(" ".join(targets)))
 if ssh is not None:
-features.append('TOOLCHAIN_TEST_TARGET = "ssh"')
+features.append('TOOLCHAIN_TEST_TARGET = "linux-ssh"')
 features.append('TOOLCHAIN_TEST_HOST = "{0}"'.format(ssh))
 features.append('TOOLCHAIN_TEST_HOST_USER = "root"')
 features.append('TOOLCHAIN_TEST_HOST_PORT = "22"')
diff --git a/meta/recipes-connectivity/openssh/openssh/sshd_config 
b/meta/recipes-connectivity/openssh/openssh/sshd_config
index e9eaf93157..b9357ef6c5 100644
--- a/meta/recipes-connectivity/openssh/openssh/sshd_config
+++ b/meta/recipes-connectivity/openssh/openssh/sshd_config
@@ -100,7 +100,7 @@ ClientAliveInterval 15
 ClientAliveCountMax 4
 #UseDNS no
 #PidFile /var/run/sshd.pid
-#MaxStartups 10:30:100
+MaxStartups 75:30:100
 #PermitTunnel no
 #ChrootDirectory none
 #VersionAddendum none
diff --git a/meta/recipes-devtools/gcc/gcc-testsuite.inc 
b/meta/recipes-devtools/gcc/gcc-testsuite.inc
index f16d471478..0a950b6c9e 100644
--- a/meta/recipes-devtools/gcc/gcc-testsuite.inc
+++ b/meta/recipes-devtools/gcc/gcc-testsuite.inc
@@ -101,7 +101,7 @@ python check_prepare() {
 f.write(generate_qemu_linux_user_config(d))
 
 # write out target ssh board config
-with open(os.path.join(dejagnudir, "ssh.exp"), "w") as f:
+with open(os.path.join(dejagnudir, "linux-ssh.exp"), "w") as f:
 f.write(generate_remote_ssh_linux_config(d))
 
 # generate site.exp to provide boards
-- 
2.43.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#198506): 
https://lists.openembedded.org/g/openembedded-core/message/198506
Mute This Topic: https://lists.openembedded.org/mt/105595459/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [kirkstone][PATCH] rust: add CVE_CHECK_IGNORE for CVE-2024-24576

2024-04-16 Thread Sadineni, Harish via lists.openembedded.org
From: Harish Sadineni 

CVE-2024-24576 only applies when invoking batch files (with the `bat` and `cmd` 
extensions) on Windows & No other platform or use is affected.
More details about CVE is here: https://nvd.nist.gov/vuln/detail/CVE-2024-24576

Signed-off-by: Harish Sadineni 
---
 meta/recipes-devtools/rust/rust-source.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-devtools/rust/rust-source.inc 
b/meta/recipes-devtools/rust/rust-source.inc
index ea70ad786f..c377a680a7 100644
--- a/meta/recipes-devtools/rust/rust-source.inc
+++ b/meta/recipes-devtools/rust/rust-source.inc
@@ -5,3 +5,6 @@ RUSTSRC = "${WORKDIR}/rustc-${PV}-src"
 
 UPSTREAM_CHECK_URI = 
"https://forge.rust-lang.org/infra/other-installation-methods.html;
 UPSTREAM_CHECK_REGEX = "rustc-(?P\d+(\.\d+)+)-src"
+
+#CVE-2024-24576 is specific to Microsoft Windows
+CVE_CHECK_IGNORE += "CVE-2024-24576"
-- 
2.43.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#198436): 
https://lists.openembedded.org/g/openembedded-core/message/198436
Mute This Topic: https://lists.openembedded.org/mt/105554720/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [kirkstone][PATCH] rust: set CVE_STATUS for CVE-2024-24576

2024-04-15 Thread Sadineni, Harish via lists.openembedded.org
From: Harish Sadineni 

CVE-2024-24576 only applies when invoking batch files (with the `bat` and `cmd` 
extensions) on Windows & No other platform or use is affected.
More details about CVE is here: https://nvd.nist.gov/vuln/detail/CVE-2024-24576

Signed-off-by: Harish Sadineni 
---
 meta/recipes-devtools/rust/rust-source.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-devtools/rust/rust-source.inc 
b/meta/recipes-devtools/rust/rust-source.inc
index ea70ad786f..b8dcc56482 100644
--- a/meta/recipes-devtools/rust/rust-source.inc
+++ b/meta/recipes-devtools/rust/rust-source.inc
@@ -5,3 +5,5 @@ RUSTSRC = "${WORKDIR}/rustc-${PV}-src"
 
 UPSTREAM_CHECK_URI = 
"https://forge.rust-lang.org/infra/other-installation-methods.html;
 UPSTREAM_CHECK_REGEX = "rustc-(?P\d+(\.\d+)+)-src"
+
+CVE_STATUS[CVE-2024-24576] = "not-applicable-platform: Issue only applies on 
Windows"
-- 
2.43.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#198234): 
https://lists.openembedded.org/g/openembedded-core/message/198234
Mute This Topic: https://lists.openembedded.org/mt/105534166/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH v2 1/3] binutils-cross-canadian: add gprofng package as runtime dependency

2024-04-12 Thread Sadineni, Harish via lists.openembedded.org
Hello Alex,

can you provide more details to reproduce the issue?.

Thanks,

Harish Sadineni

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#198157): 
https://lists.openembedded.org/g/openembedded-core/message/198157
Mute This Topic: https://lists.openembedded.org/mt/105216924/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] rust: set CVE_STATUS for CVE-2024-24576

2024-04-10 Thread Sadineni, Harish via lists.openembedded.org
From: Harish Sadineni 

CVE-2024-24576 only applies when invoking batch files (with the `bat` and `cmd` 
extensions) on Windows & No other platform or use is affected.
More details about CVE is here: https://nvd.nist.gov/vuln/detail/CVE-2024-24576

Signed-off-by: Harish Sadineni 
---
 meta/recipes-devtools/rust/rust-source.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-devtools/rust/rust-source.inc 
b/meta/recipes-devtools/rust/rust-source.inc
index 6bef99039d..b14221b6cb 100644
--- a/meta/recipes-devtools/rust/rust-source.inc
+++ b/meta/recipes-devtools/rust/rust-source.inc
@@ -20,3 +20,5 @@ RUSTSRC = "${WORKDIR}/rustc-${RUST_VERSION}-src"
 
 UPSTREAM_CHECK_URI = 
"https://forge.rust-lang.org/infra/other-installation-methods.html;
 UPSTREAM_CHECK_REGEX = "rustc-(?P\d+(\.\d+)+)-src"
+
+CVE_STATUS[CVE-2024-24576] = "not-applicable-platform: Issue only applies on 
Windows"
-- 
2.43.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#198090): 
https://lists.openembedded.org/g/openembedded-core/message/198090
Mute This Topic: https://lists.openembedded.org/mt/105439811/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH v2 1/3] binutils-cross-canadian: add gprofng package as runtime dependency

2024-04-05 Thread Sadineni, Harish via lists.openembedded.org
I tried with bitbake core-image-minimal -c populate_sdk build is successful and 
sdk is also installing successfully. I tried to do bitbake 
core-image-mingw-sdktest:do_populate_sdk -k got following ERROR: Nothing 
PROVIDES 'core-image-mingw-sdktest'.

Thanks,

Harish Sadineni

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#197976): 
https://lists.openembedded.org/g/openembedded-core/message/197976
Mute This Topic: https://lists.openembedded.org/mt/105216924/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH 2/3] autoconf: Add missing perl modules to RDEPENDS

2024-03-29 Thread Sadineni, Harish via lists.openembedded.org
This dependency is from autoconf itself, not from binutils.

Thanks,
Harish sadineni

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#197636): 
https://lists.openembedded.org/g/openembedded-core/message/197636
Mute This Topic: https://lists.openembedded.org/mt/105082440/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH 1/3] nativesdk-packagegroup-sdk-host: add gprofng package to RDEPENDS

2024-03-29 Thread Sadineni, Harish via lists.openembedded.org
gprofng belongs to binutils module, i tried a build by adding it in 
binutils-cross-canadian.inc and the build is sucessfully generating gprofng.rc 
in sysconf directory as expected.
we have sent a v2 patch by adding it in binutils 
(https://lists.openembedded.org/g/openembedded-core/message/197632).

Thanks,
Harish sadineni

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#197635): 
https://lists.openembedded.org/g/openembedded-core/message/197635
Mute This Topic: https://lists.openembedded.org/mt/105082439/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH v2 3/3] binutils: gprofng - change use of bignum to use of bignint

2024-03-29 Thread Sadineni, Harish via lists.openembedded.org
From: Harish Sadineni 

In SDK, The "x86_64-pokysdk-linux-gp-display-html" fails with below error while 
genearting profiling html reports from test experiment file (eg., test.1.er)
Error: Undefined subroutine ::hex called at 
.../sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-pokysdk-linux-gp-display-html 
line 4059,  line 1.

Upstream-Status: Backport 
[https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=3243d790ee32aa8eda69226d81b1e79dbd1dcd87]

Signed-off-by: Harish Sadineni 
---
 .../binutils/binutils-2.42.inc|  1 +
 ...rofng-change-use-of-bignum-to-bigint.patch | 27 +++
 2 files changed, 28 insertions(+)
 create mode 100644 
meta/recipes-devtools/binutils/binutils/0015-gprofng-change-use-of-bignum-to-bigint.patch

diff --git a/meta/recipes-devtools/binutils/binutils-2.42.inc 
b/meta/recipes-devtools/binutils/binutils-2.42.inc
index 5fcb4292b3..3b6f47d4ce 100644
--- a/meta/recipes-devtools/binutils/binutils-2.42.inc
+++ b/meta/recipes-devtools/binutils/binutils-2.42.inc
@@ -35,5 +35,6 @@ SRC_URI = "\
  file://0012-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch \
  file://0013-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch \
  file://0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch \
+ file://0015-gprofng-change-use-of-bignum-to-bigint.patch \
 "
 S  = "${WORKDIR}/git"
diff --git 
a/meta/recipes-devtools/binutils/binutils/0015-gprofng-change-use-of-bignum-to-bigint.patch
 
b/meta/recipes-devtools/binutils/binutils/0015-gprofng-change-use-of-bignum-to-bigint.patch
new file mode 100644
index 00..c23d697537
--- /dev/null
+++ 
b/meta/recipes-devtools/binutils/binutils/0015-gprofng-change-use-of-bignum-to-bigint.patch
@@ -0,0 +1,27 @@
+From: Ruud van der Pas 
+Date: Tue, 27 Feb 2024 18:29:55 + (+)
+Subject: gprofng: change use of bignum to use of bigint
+X-Git-Url: 
https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff_plain;h=3243d790ee32aa8eda69226d81b1e79dbd1dcd87
+
+gprofng: change use of bignum to use of bigint
+
+Change the statement "use bignum" to "use bigint".  This is sufficient
+for gp-display-html to work and removes the dependency on bignum.
+
+Upstream-Status: Backport 
[https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=3243d790ee32aa8eda69226d81b1e79dbd1dcd87]
+
+Signed-off-by: Harish Sadineni 
+
+diff --git a/gprofng/gp-display-html/gp-display-html.in 
b/gprofng/gp-display-html/gp-display-html.in
+index 6f37ca282e7..306c99a0ec3 100644
+--- a/gprofng/gp-display-html/gp-display-html.in
 b/gprofng/gp-display-html/gp-display-html.in
+@@ -25,7 +25,7 @@ use warnings;
+ # Disable before release
+ # use Perl::Critic;
+ 
+-use bignum;
++use bigint;
+ use List::Util qw (max);
+ use Cwd qw (abs_path cwd);
+ use File::Basename;
-- 
2.43.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#197634): 
https://lists.openembedded.org/g/openembedded-core/message/197634
Mute This Topic: https://lists.openembedded.org/mt/105216933/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH v2 2/3] autoconf: Add missing perl modules to RDEPENDS

2024-03-29 Thread Sadineni, Harish via lists.openembedded.org
From: Harish Sadineni 

In SDK, missing perl modules causes 'x86_64-wrlinuxsdk-linux-gp-display-html 
--help' to abort with below errors..
 - Can't locate bignum.pm in @INC (you may need to install the feature module).
 - Can't locate Math/BigInt.pm in @INC (you may need to install the 
Math::BigInt module)

Signed-off-by: Harish Sadineni 
---
 meta/recipes-devtools/autoconf/autoconf_2.72e.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-devtools/autoconf/autoconf_2.72e.bb 
b/meta/recipes-devtools/autoconf/autoconf_2.72e.bb
index db374373cf..2a459b7cb6 100644
--- a/meta/recipes-devtools/autoconf/autoconf_2.72e.bb
+++ b/meta/recipes-devtools/autoconf/autoconf_2.72e.bb
@@ -52,6 +52,9 @@ RDEPENDS:${PN} = "m4 gnu-config \
  perl-module-thread-queue \
  perl-module-threads \
  perl-module-feature \
+  perl-module-bignum \
+  perl-module-bigint \
+  perl-module-math-bigint \
 "
 RDEPENDS:${PN}:class-native = "m4-native gnu-config-native 
hostperl-runtime-native"
 
-- 
2.43.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#197633): 
https://lists.openembedded.org/g/openembedded-core/message/197633
Mute This Topic: https://lists.openembedded.org/mt/105216926/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH v2 1/3] binutils-cross-canadian: add gprofng package as runtime dependency

2024-03-29 Thread Sadineni, Harish via lists.openembedded.org
From: Harish Sadineni 

In SDK, while running "x86_64-poky-linux-gp-collect-app ./exe" fails to create 
'test.1.er' due to missing gprofng configure file in sysconfdir and aborting 
with below error while generating the profiling data.
- configuration error: can not find libgp-collector.so. run aborted

Signed-off-by: Harish Sadineni 
---
 meta/recipes-devtools/binutils/binutils-cross-canadian.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/binutils/binutils-cross-canadian.inc 
b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
index 62ebb3f5bc..7f2699089e 100644
--- a/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
+++ b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
@@ -30,3 +30,4 @@ do_install () {
 }
 
 BBCLASSEXTEND = ""
+RDEPENDS:${PN} = "nativesdk-gprofng"
-- 
2.43.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#197632): 
https://lists.openembedded.org/g/openembedded-core/message/197632
Mute This Topic: https://lists.openembedded.org/mt/105216924/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 3/3] binutils: gprofng - change use of bignum to use of bignint

2024-03-22 Thread Sadineni, Harish via lists.openembedded.org
From: Harish Sadineni 

In SDK, The "x86_64-pokysdk-linux-gp-display-html" fails with below error while 
genearting profiling html reports from test experiment file (eg., test.1.er)
Error: Undefined subroutine ::hex called at 
.../sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-pokysdk-linux-gp-display-html 
line 4059,  line 1.

Upstream-Status: Backport 
[https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=3243d790ee32aa8eda69226d81b1e79dbd1dcd87]

Signed-off-by: Harish Sadineni 
---
 .../recipes-devtools/binutils/binutils-2.42.inc |  1 +
 ...gprofng-change-use-of-bignum-to-bigint.patch | 17 +
 2 files changed, 18 insertions(+)
 create mode 100644 
meta/recipes-devtools/binutils/binutils/0015-gprofng-change-use-of-bignum-to-bigint.patch

diff --git a/meta/recipes-devtools/binutils/binutils-2.42.inc 
b/meta/recipes-devtools/binutils/binutils-2.42.inc
index 5fcb4292b3..3b6f47d4ce 100644
--- a/meta/recipes-devtools/binutils/binutils-2.42.inc
+++ b/meta/recipes-devtools/binutils/binutils-2.42.inc
@@ -35,5 +35,6 @@ SRC_URI = "\
  file://0012-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch \
  file://0013-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch \
  file://0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch \
+ file://0015-gprofng-change-use-of-bignum-to-bigint.patch \
 "
 S  = "${WORKDIR}/git"
diff --git 
a/meta/recipes-devtools/binutils/binutils/0015-gprofng-change-use-of-bignum-to-bigint.patch
 
b/meta/recipes-devtools/binutils/binutils/0015-gprofng-change-use-of-bignum-to-bigint.patch
new file mode 100644
index 00..0d3d289eba
--- /dev/null
+++ 
b/meta/recipes-devtools/binutils/binutils/0015-gprofng-change-use-of-bignum-to-bigint.patch
@@ -0,0 +1,17 @@
+Upstream-Status: Backport 
[https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=3243d790ee32aa8eda69226d81b1e79dbd1dcd87]
+
+Signed-off-by: Harish Sadineni 
+
+diff --git a/gprofng/gp-display-html/gp-display-html.in 
b/gprofng/gp-display-html/gp-display-html.in
+index 6f37ca282e7..306c99a0ec3 100644
+--- a/gprofng/gp-display-html/gp-display-html.in
 b/gprofng/gp-display-html/gp-display-html.in
+@@ -25,7 +25,7 @@ use warnings;
+ # Disable before release
+ # use Perl::Critic;
+ 
+-use bignum;
++use bigint;
+ use List::Util qw (max);
+ use Cwd qw (abs_path cwd);
+ use File::Basename;
-- 
2.43.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#197441): 
https://lists.openembedded.org/g/openembedded-core/message/197441
Mute This Topic: https://lists.openembedded.org/mt/105082441/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 2/3] autoconf: Add missing perl modules to RDEPENDS

2024-03-22 Thread Sadineni, Harish via lists.openembedded.org
From: Harish Sadineni 

In SDK, missing perl modules causes 'x86_64-wrlinuxsdk-linux-gp-display-html 
--help' to abort with below errors..
 - Can't locate bignum.pm in @INC (you may need to install the feature module).
 - Can't locate Math/BigInt.pm in @INC (you may need to install the 
Math::BigInt module)

Signed-off-by: Harish Sadineni 
---
 meta/recipes-devtools/autoconf/autoconf_2.72e.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-devtools/autoconf/autoconf_2.72e.bb 
b/meta/recipes-devtools/autoconf/autoconf_2.72e.bb
index db374373cf..2a459b7cb6 100644
--- a/meta/recipes-devtools/autoconf/autoconf_2.72e.bb
+++ b/meta/recipes-devtools/autoconf/autoconf_2.72e.bb
@@ -52,6 +52,9 @@ RDEPENDS:${PN} = "m4 gnu-config \
  perl-module-thread-queue \
  perl-module-threads \
  perl-module-feature \
+  perl-module-bignum \
+  perl-module-bigint \
+  perl-module-math-bigint \
 "
 RDEPENDS:${PN}:class-native = "m4-native gnu-config-native 
hostperl-runtime-native"
 
-- 
2.43.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#197440): 
https://lists.openembedded.org/g/openembedded-core/message/197440
Mute This Topic: https://lists.openembedded.org/mt/105082440/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH 1/3] nativesdk-packagegroup-sdk-host: add gprofng package to RDEPENDS

2024-03-22 Thread Sadineni, Harish via lists.openembedded.org
From: Harish Sadineni 

In SDK, while running "x86_64-poky-linux-gp-collect-app ./exe" fails to create 
'test.1.er' due to missing gprofng configure file in sysconfdir and aborting 
with below error while generating the profiling data.
- configuration error: can not find libgp-collector.so. run aborted

Signed-off-by: Harish Sadineni 
---
 .../packagegroups/nativesdk-packagegroup-sdk-host.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb 
b/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb
index c1d3c25060..5374067bab 100644
--- a/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb
+++ b/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bb
@@ -30,6 +30,7 @@ RDEPENDS:${PN} = "\
 nativesdk-bison \
 nativesdk-flex \
 nativesdk-perl-module-integer \
+nativesdk-gprofng \
 "
 
 RDEPENDS:${PN}:darwin = "\
-- 
2.43.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#197439): 
https://lists.openembedded.org/g/openembedded-core/message/197439
Mute This Topic: https://lists.openembedded.org/mt/105082439/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] binutils: gprofng - change use of bignum to use of bignint

2024-03-22 Thread Sadineni, Harish via lists.openembedded.org
From: Harish Sadineni 

In SDK, The "x86_64-pokysdk-linux-gp-display-html" fails with below error while 
genearting profiling html reports from test experiment file (eg., test.1.er)
Error: Undefined subroutine ::hex called at 
.../sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-pokysdk-linux-gp-display-html 
line 4059,  line 1.

Upstream-Status: Backport 
[https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=3243d790ee32aa8eda69226d81b1e79dbd1dcd87]

Signed-off-by: Harish Sadineni 
---
 .../recipes-devtools/binutils/binutils-2.42.inc |  1 +
 ...gprofng-change-use-of-bignum-to-bigint.patch | 17 +
 2 files changed, 18 insertions(+)
 create mode 100644 
meta/recipes-devtools/binutils/binutils/0015-gprofng-change-use-of-bignum-to-bigint.patch

diff --git a/meta/recipes-devtools/binutils/binutils-2.42.inc 
b/meta/recipes-devtools/binutils/binutils-2.42.inc
index 5fcb4292b3..3b6f47d4ce 100644
--- a/meta/recipes-devtools/binutils/binutils-2.42.inc
+++ b/meta/recipes-devtools/binutils/binutils-2.42.inc
@@ -35,5 +35,6 @@ SRC_URI = "\
  file://0012-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch \
  file://0013-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch \
  file://0014-Remove-duplicate-pe-dll.o-entry-deom-targ_extra_ofil.patch \
+ file://0015-gprofng-change-use-of-bignum-to-bigint.patch \
 "
 S  = "${WORKDIR}/git"
diff --git 
a/meta/recipes-devtools/binutils/binutils/0015-gprofng-change-use-of-bignum-to-bigint.patch
 
b/meta/recipes-devtools/binutils/binutils/0015-gprofng-change-use-of-bignum-to-bigint.patch
new file mode 100644
index 00..0d3d289eba
--- /dev/null
+++ 
b/meta/recipes-devtools/binutils/binutils/0015-gprofng-change-use-of-bignum-to-bigint.patch
@@ -0,0 +1,17 @@
+Upstream-Status: Backport 
[https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=3243d790ee32aa8eda69226d81b1e79dbd1dcd87]
+
+Signed-off-by: Harish Sadineni 
+
+diff --git a/gprofng/gp-display-html/gp-display-html.in 
b/gprofng/gp-display-html/gp-display-html.in
+index 6f37ca282e7..306c99a0ec3 100644
+--- a/gprofng/gp-display-html/gp-display-html.in
 b/gprofng/gp-display-html/gp-display-html.in
+@@ -25,7 +25,7 @@ use warnings;
+ # Disable before release
+ # use Perl::Critic;
+ 
+-use bignum;
++use bigint;
+ use List::Util qw (max);
+ use Cwd qw (abs_path cwd);
+ use File::Basename;
-- 
2.43.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#197438): 
https://lists.openembedded.org/g/openembedded-core/message/197438
Mute This Topic: https://lists.openembedded.org/mt/105082419/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH v2] gcc: Oe-selftest failure analysis - fix for vect-simd test failures

2024-03-22 Thread Sadineni, Harish via lists.openembedded.org
From: Harish Sadineni 

In gcc vect module, the vect-simd-clone-10.c & vect-simd-clone-12.c tests are 
failed with below error, due to a bug in testcase:
xgcc: fatal error: cannot specify '-o' with '-c', '-S' or '-E' with multiple 
files compilation terminated'

Detailed bug info & upstream fix is here:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113899

Upstream Status: Backport 
[https://gcc.gnu.org/g:948dbc5ee45f9ffd5f41fd6782704081cc7c8c27]

Signed-off-by: Harish Sadineni 
---
 meta/recipes-devtools/gcc/gcc-13.2.inc|  1 +
 .../0027-Fix-gcc-vect-module-testcases.patch  | 26 +++
 2 files changed, 27 insertions(+)
 create mode 100644 
meta/recipes-devtools/gcc/gcc/0027-Fix-gcc-vect-module-testcases.patch

diff --git a/meta/recipes-devtools/gcc/gcc-13.2.inc 
b/meta/recipes-devtools/gcc/gcc-13.2.inc
index 32fddd11c2..603377a49a 100644
--- a/meta/recipes-devtools/gcc/gcc-13.2.inc
+++ b/meta/recipes-devtools/gcc/gcc-13.2.inc
@@ -67,6 +67,7 @@ SRC_URI = "${BASEURI} \
file://0025-gcc-testsuite-tweaks-for-mips-OE.patch \
file://CVE-2023-4039.patch \
file://0026-aarch64-Fix-loose-ldpstp-check-PR111411.patch \
+   file://0027-Fix-gcc-vect-module-testcases.patch \
 "
 SRC_URI[sha256sum] = 
"e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da"
 
diff --git 
a/meta/recipes-devtools/gcc/gcc/0027-Fix-gcc-vect-module-testcases.patch 
b/meta/recipes-devtools/gcc/gcc/0027-Fix-gcc-vect-module-testcases.patch
new file mode 100644
index 00..4b89036814
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc/0027-Fix-gcc-vect-module-testcases.patch
@@ -0,0 +1,26 @@
+Upstream-Status: Backport 
[https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=948dbc5ee45f9ffd5f41fd6782704081cc7c8c27]
+
+Signed-off-by: Harish Sadineni 
+
+diff --git a/gcc/testsuite/gcc.dg/vect/vect-simd-clone-10.c 
b/gcc/testsuite/gcc.dg/vect/vect-simd-clone-10.c
+index ed63ff59cc0..009c849b7e7 100644
+--- a/gcc/testsuite/gcc.dg/vect/vect-simd-clone-10.c
 b/gcc/testsuite/gcc.dg/vect/vect-simd-clone-10.c
+@@ -1,3 +1,5 @@
++/* Since this uses dg-additional-sources, need to specify `dg-do run` instead 
of the default. */
++/* { dg-do run } */
+ /* { dg-require-effective-target vect_simd_clones } */
+ /* { dg-additional-options "-fopenmp-simd" } */
+ /* { dg-additional-options "-mavx" { target avx_runtime } } */
+diff --git a/gcc/testsuite/gcc.dg/vect/vect-simd-clone-12.c 
b/gcc/testsuite/gcc.dg/vect/vect-simd-clone-12.c
+index c44471e35bc..4699a3f3c80 100644
+--- a/gcc/testsuite/gcc.dg/vect/vect-simd-clone-12.c
 b/gcc/testsuite/gcc.dg/vect/vect-simd-clone-12.c
+@@ -1,3 +1,5 @@
++/* Since this uses dg-additional-sources, need to specify `dg-do run` instead 
of the default. */
++/* { dg-do run } */
+ /* { dg-require-effective-target vect_simd_clones } */
+ /* { dg-additional-options "-fopenmp-simd" } */
+ /* { dg-additional-options "-mavx" { target avx_runtime } } */
+--
+2.43.0
-- 
2.43.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#197437): 
https://lists.openembedded.org/g/openembedded-core/message/197437
Mute This Topic: https://lists.openembedded.org/mt/105080722/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] gcc: Oe-selftest failure analysis - fix for vect-simd test failures

2024-03-22 Thread Sadineni, Harish via lists.openembedded.org
From: Harish Sadineni 

In gcc vect module, the vect-simd-clone-10.c & vect-simd-clone-12.c tests are 
failed with below error, due to a bug in testcase:
xgcc: fatal error: cannot specify '-o' with '-c', '-S' or '-E' with multiple 
files compilation terminated'

Detailed bug info & upstream fix is here:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113899

Upstream Status: Backport 
[https://gcc.gnu.org/g:948dbc5ee45f9ffd5f41fd6782704081cc7c8c27]

Signed-off-by: Harish Sadineni 
---
 meta/recipes-devtools/gcc/gcc-13.2.inc|  1 +
 .../0027-Fix-gcc-vect-module-testcases.patch  | 23 +++
 2 files changed, 24 insertions(+)
 create mode 100644 
meta/recipes-devtools/gcc/gcc/0027-Fix-gcc-vect-module-testcases.patch

diff --git a/meta/recipes-devtools/gcc/gcc-13.2.inc 
b/meta/recipes-devtools/gcc/gcc-13.2.inc
index 32fddd11c2..603377a49a 100644
--- a/meta/recipes-devtools/gcc/gcc-13.2.inc
+++ b/meta/recipes-devtools/gcc/gcc-13.2.inc
@@ -67,6 +67,7 @@ SRC_URI = "${BASEURI} \
file://0025-gcc-testsuite-tweaks-for-mips-OE.patch \
file://CVE-2023-4039.patch \
file://0026-aarch64-Fix-loose-ldpstp-check-PR111411.patch \
+   file://0027-Fix-gcc-vect-module-testcases.patch \
 "
 SRC_URI[sha256sum] = 
"e275e76442a6067341a27f04c5c6b83d8613144004c0413528863dc6b5c743da"
 
diff --git 
a/meta/recipes-devtools/gcc/gcc/0027-Fix-gcc-vect-module-testcases.patch 
b/meta/recipes-devtools/gcc/gcc/0027-Fix-gcc-vect-module-testcases.patch
new file mode 100644
index 00..d81ba40a8d
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc/0027-Fix-gcc-vect-module-testcases.patch
@@ -0,0 +1,23 @@
+Upstream-Status: Backport 
[https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=948dbc5ee45f9ffd5f41fd6782704081cc7c8c27]
+diff --git a/gcc/testsuite/gcc.dg/vect/vect-simd-clone-10.c 
b/gcc/testsuite/gcc.dg/vect/vect-simd-clone-10.c
+index ed63ff59cc0..009c849b7e7 100644
+--- a/gcc/testsuite/gcc.dg/vect/vect-simd-clone-10.c
 b/gcc/testsuite/gcc.dg/vect/vect-simd-clone-10.c
+@@ -1,3 +1,5 @@
++/* Since this uses dg-additional-sources, need to specify `dg-do run` instead 
of the default. */
++/* { dg-do run } */
+ /* { dg-require-effective-target vect_simd_clones } */
+ /* { dg-additional-options "-fopenmp-simd" } */
+ /* { dg-additional-options "-mavx" { target avx_runtime } } */
+diff --git a/gcc/testsuite/gcc.dg/vect/vect-simd-clone-12.c 
b/gcc/testsuite/gcc.dg/vect/vect-simd-clone-12.c
+index c44471e35bc..4699a3f3c80 100644
+--- a/gcc/testsuite/gcc.dg/vect/vect-simd-clone-12.c
 b/gcc/testsuite/gcc.dg/vect/vect-simd-clone-12.c
+@@ -1,3 +1,5 @@
++/* Since this uses dg-additional-sources, need to specify `dg-do run` instead 
of the default. */
++/* { dg-do run } */
+ /* { dg-require-effective-target vect_simd_clones } */
+ /* { dg-additional-options "-fopenmp-simd" } */
+ /* { dg-additional-options "-mavx" { target avx_runtime } } */
+--
+2.43.0
-- 
2.43.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#197435): 
https://lists.openembedded.org/g/openembedded-core/message/197435
Mute This Topic: https://lists.openembedded.org/mt/105080483/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] gcc: Oe-selftest failure analysis - fix for tcl errors

2024-03-12 Thread Sadineni, Harish via lists.openembedded.org
From: Harish Sadineni 

gcc testsuite unable to read the value of variable $do-what-limit and causing 
below tcl errors.
ERROR: can't read "do": no such variable
while executing
"set do_what $do-what-limit"

To fix this, quote the variable using braces, as in ${do-what-limit}.

Signed-off-by: Harish Sadineni 
---
 .../gcc/gcc/0025-gcc-testsuite-tweaks-for-mips-OE.patch   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/meta/recipes-devtools/gcc/gcc/0025-gcc-testsuite-tweaks-for-mips-OE.patch 
b/meta/recipes-devtools/gcc/gcc/0025-gcc-testsuite-tweaks-for-mips-OE.patch
index c405d8d484..e4d57c27ef 100644
--- a/meta/recipes-devtools/gcc/gcc/0025-gcc-testsuite-tweaks-for-mips-OE.patch
+++ b/meta/recipes-devtools/gcc/gcc/0025-gcc-testsuite-tweaks-for-mips-OE.patch
@@ -80,8 +80,8 @@ index 9d79b9402e9..e0e5cbb1af8 100644
 +# Demote run tests to $do-what-limit if set
 +  switch $do_what {
 +  run {
-+  set do_what $do-what-limit
-+  set dg-do-what $do-what-limit
++  set do_what ${do-what-limit}
++  set dg-do-what ${do-what-limit}
 +  }
 +}
 +}
-- 
2.43.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#196998): 
https://lists.openembedded.org/g/openembedded-core/message/196998
Mute This Topic: https://lists.openembedded.org/mt/104888061/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] gcc: Oe-selftest failure analysis - fix for tcl errors

2024-03-12 Thread Sadineni, Harish via lists.openembedded.org
From: Harish Sadineni 

gcc testsuite unable to read the value of variable $do-what-limit and causing 
below tcl errors.
ERROR: can't read "do": no such variable
while executing
"set do_what $do-what-limit"

To fix this the variable changed as ${do-what-limit}

Signed-off-by: Harish Sadineni 
---
 .../gcc/gcc/0025-gcc-testsuite-tweaks-for-mips-OE.patch   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/meta/recipes-devtools/gcc/gcc/0025-gcc-testsuite-tweaks-for-mips-OE.patch 
b/meta/recipes-devtools/gcc/gcc/0025-gcc-testsuite-tweaks-for-mips-OE.patch
index c405d8d484..e4d57c27ef 100644
--- a/meta/recipes-devtools/gcc/gcc/0025-gcc-testsuite-tweaks-for-mips-OE.patch
+++ b/meta/recipes-devtools/gcc/gcc/0025-gcc-testsuite-tweaks-for-mips-OE.patch
@@ -80,8 +80,8 @@ index 9d79b9402e9..e0e5cbb1af8 100644
 +# Demote run tests to $do-what-limit if set
 +  switch $do_what {
 +  run {
-+  set do_what $do-what-limit
-+  set dg-do-what $do-what-limit
++  set do_what ${do-what-limit}
++  set dg-do-what ${do-what-limit}
 +  }
 +}
 +}
-- 
2.43.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#196994): 
https://lists.openembedded.org/g/openembedded-core/message/196994
Mute This Topic: https://lists.openembedded.org/mt/104886730/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-