* [Buildroot] [PATCH v4 01/10] package/llvm-project: new group for llvm packages
2023-06-15 13:43 [Buildroot] [PATCH v4 00/10] group llvm projects and bump to version 15.0.3 Sebastian Weyer
@ 2023-06-15 13:43 ` Sebastian Weyer
2023-07-20 17:30 ` Adam Duskett
2023-06-15 13:43 ` [Buildroot] [PATCH v4 02/10] package/llvm: move to llvm-project folder Sebastian Weyer
` (10 subsequent siblings)
11 siblings, 1 reply; 26+ messages in thread
From: Sebastian Weyer @ 2023-06-15 13:43 UTC (permalink / raw)
To: buildroot; +Cc: Lang Daniel, Romain Naour, Sebastian Weyer
From: Lang Daniel <d.lang@abatec.at>
To make updating easier in the future, group all llvm projects in
one subfolder and define some variables for all of them.
Introduce LLVM_PROJECT_VERSION_MAJOR to be used by the clang package
in a followup change.
Signed-off-by: Daniel Lang <d.lang@abatec.at>
Reviewed-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
---
v3: Add LLVM_PROJECT_VERSION_MAJOR
---
package/llvm-project/llvm-project.mk | 11 +++++++++++
1 file changed, 11 insertions(+)
create mode 100644 package/llvm-project/llvm-project.mk
diff --git a/package/llvm-project/llvm-project.mk b/package/llvm-project/llvm-project.mk
new file mode 100644
index 0000000000..747a6f5647
--- /dev/null
+++ b/package/llvm-project/llvm-project.mk
@@ -0,0 +1,11 @@
+################################################################################
+#
+# llvm-project
+#
+################################################################################
+
+LLVM_PROJECT_VERSION_MAJOR = 11
+LLVM_PROJECT_VERSION = $(LLVM_PROJECT_VERSION_MAJOR).1.0
+LLVM_PROJECT_SITE = https://github.com/llvm/llvm-project/releases/download/llvmorg-$(LLVM_PROJECT_VERSION)
+
+include $(sort $(wildcard package/llvm-project/*/*.mk))
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [Buildroot] [PATCH v4 01/10] package/llvm-project: new group for llvm packages
2023-06-15 13:43 ` [Buildroot] [PATCH v4 01/10] package/llvm-project: new group for llvm packages Sebastian Weyer
@ 2023-07-20 17:30 ` Adam Duskett
0 siblings, 0 replies; 26+ messages in thread
From: Adam Duskett @ 2023-07-20 17:30 UTC (permalink / raw)
To: Sebastian Weyer; +Cc: Lang Daniel, Romain Naour, buildroot
[-- Attachment #1.1: Type: text/plain, Size: 1761 bytes --]
Tested-by: Adam Duskett <adam.duskett@amarulasolutions.com>
On Thu, Jun 15, 2023 at 6:44 AM Sebastian Weyer <sebastian.weyer@smile.fr>
wrote:
> From: Lang Daniel <d.lang@abatec.at>
>
> To make updating easier in the future, group all llvm projects in
> one subfolder and define some variables for all of them.
>
> Introduce LLVM_PROJECT_VERSION_MAJOR to be used by the clang package
> in a followup change.
>
> Signed-off-by: Daniel Lang <d.lang@abatec.at>
> Reviewed-by: Romain Naour <romain.naour@smile.fr>
> Signed-off-by: Romain Naour <romain.naour@smile.fr>
> Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
> ---
> v3: Add LLVM_PROJECT_VERSION_MAJOR
> ---
> package/llvm-project/llvm-project.mk | 11 +++++++++++
> 1 file changed, 11 insertions(+)
> create mode 100644 package/llvm-project/llvm-project.mk
>
> diff --git a/package/llvm-project/llvm-project.mk b/package/llvm-project/
> llvm-project.mk
> new file mode 100644
> index 0000000000..747a6f5647
> --- /dev/null
> +++ b/package/llvm-project/llvm-project.mk
> @@ -0,0 +1,11 @@
>
> +################################################################################
> +#
> +# llvm-project
> +#
>
> +################################################################################
> +
> +LLVM_PROJECT_VERSION_MAJOR = 11
> +LLVM_PROJECT_VERSION = $(LLVM_PROJECT_VERSION_MAJOR).1.0
> +LLVM_PROJECT_SITE =
> https://github.com/llvm/llvm-project/releases/download/llvmorg-$(LLVM_PROJECT_VERSION)
> +
> +include $(sort $(wildcard package/llvm-project/*/*.mk))
> --
> 2.34.1
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
>
[-- Attachment #1.2: Type: text/html, Size: 3156 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Buildroot] [PATCH v4 02/10] package/llvm: move to llvm-project folder
2023-06-15 13:43 [Buildroot] [PATCH v4 00/10] group llvm projects and bump to version 15.0.3 Sebastian Weyer
2023-06-15 13:43 ` [Buildroot] [PATCH v4 01/10] package/llvm-project: new group for llvm packages Sebastian Weyer
@ 2023-06-15 13:43 ` Sebastian Weyer
2023-07-20 17:31 ` Adam Duskett
2023-06-15 13:43 ` [Buildroot] [PATCH v4 03/10] package/lld: move to llvm-project subfolder Sebastian Weyer
` (9 subsequent siblings)
11 siblings, 1 reply; 26+ messages in thread
From: Sebastian Weyer @ 2023-06-15 13:43 UTC (permalink / raw)
To: buildroot
Cc: Joseph Kogut, Sebastian Weyer, Lang Daniel, Romain Naour,
Romain Naour, Valentin Korenblit
From: Lang Daniel <d.lang@abatec.at>
To make updating easier, move llvm into the llvm-project folder
and use the defined information.
Signed-off-by: Daniel Lang <d.lang@abatec.at>
Reviewed-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
---
DEVELOPERS | 6 +++---
package/Config.in | 2 +-
.../llvm/0001-nfc-Fix-missing-include.patch | 0
package/{ => llvm-project}/llvm/Config.in | 0
package/{ => llvm-project}/llvm/llvm.hash | 0
package/{ => llvm-project}/llvm/llvm.mk | 5 ++---
6 files changed, 6 insertions(+), 7 deletions(-)
rename package/{ => llvm-project}/llvm/0001-nfc-Fix-missing-include.patch (100%)
rename package/{ => llvm-project}/llvm/Config.in (100%)
rename package/{ => llvm-project}/llvm/llvm.hash (100%)
rename package/{ => llvm-project}/llvm/llvm.mk (98%)
diff --git a/DEVELOPERS b/DEVELOPERS
index 56316201af..c4273c5f85 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1639,7 +1639,7 @@ F: package/earlyoom/
F: package/gconf/
F: package/libnss/
F: package/lld/
-F: package/llvm/
+F: package/llvm-project/llvm/
F: package/python-cython/
F: package/python-pycups/
F: package/python-raven/
@@ -2538,7 +2538,7 @@ F: package/libgta/
F: package/libiec61850/
F: package/libspatialindex/
F: package/linux-syscall-support/
-F: package/llvm/
+F: package/llvm-project/llvm/
F: package/lugaru/
F: package/mcelog/
F: package/mesa3d/
@@ -2949,7 +2949,7 @@ N: Valentin Korenblit <valentinkorenblit@gmail.com>
F: package/clang/
F: package/clinfo/
F: package/libclc/
-F: package/llvm/
+F: package/llvm-project/llvm/
N: Vanya Sergeev <vsergeev@gmail.com>
F: package/lua-periphery/
diff --git a/package/Config.in b/package/Config.in
index bff090a661..dffffc195b 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -2128,7 +2128,7 @@ comment "linux-pam plugins"
source "package/libpam-tacplus/Config.in"
endif
source "package/liquid-dsp/Config.in"
- source "package/llvm/Config.in"
+ source "package/llvm-project/llvm/Config.in"
source "package/lttng-libust/Config.in"
source "package/matio/Config.in"
source "package/mpc/Config.in"
diff --git a/package/llvm/0001-nfc-Fix-missing-include.patch b/package/llvm-project/llvm/0001-nfc-Fix-missing-include.patch
similarity index 100%
rename from package/llvm/0001-nfc-Fix-missing-include.patch
rename to package/llvm-project/llvm/0001-nfc-Fix-missing-include.patch
diff --git a/package/llvm/Config.in b/package/llvm-project/llvm/Config.in
similarity index 100%
rename from package/llvm/Config.in
rename to package/llvm-project/llvm/Config.in
diff --git a/package/llvm/llvm.hash b/package/llvm-project/llvm/llvm.hash
similarity index 100%
rename from package/llvm/llvm.hash
rename to package/llvm-project/llvm/llvm.hash
diff --git a/package/llvm/llvm.mk b/package/llvm-project/llvm/llvm.mk
similarity index 98%
rename from package/llvm/llvm.mk
rename to package/llvm-project/llvm/llvm.mk
index 977c0a08c2..1adad17b16 100644
--- a/package/llvm/llvm.mk
+++ b/package/llvm-project/llvm/llvm.mk
@@ -4,9 +4,8 @@
#
################################################################################
-# LLVM, Clang and lld should be version bumped together
-LLVM_VERSION = 11.1.0
-LLVM_SITE = https://github.com/llvm/llvm-project/releases/download/llvmorg-$(LLVM_VERSION)
+LLVM_VERSION = $(LLVM_PROJECT_VERSION)
+LLVM_SITE = $(LLVM_PROJECT_SITE)
LLVM_SOURCE = llvm-$(LLVM_VERSION).src.tar.xz
LLVM_LICENSE = Apache-2.0 with exceptions
LLVM_LICENSE_FILES = LICENSE.TXT
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [Buildroot] [PATCH v4 02/10] package/llvm: move to llvm-project folder
2023-06-15 13:43 ` [Buildroot] [PATCH v4 02/10] package/llvm: move to llvm-project folder Sebastian Weyer
@ 2023-07-20 17:31 ` Adam Duskett
0 siblings, 0 replies; 26+ messages in thread
From: Adam Duskett @ 2023-07-20 17:31 UTC (permalink / raw)
To: Sebastian Weyer
Cc: Joseph Kogut, Lang Daniel, buildroot, Romain Naour, Romain Naour,
Valentin Korenblit
[-- Attachment #1.1: Type: text/plain, Size: 4509 bytes --]
Tested-by: Adam Duskett <adam.duskett@amarulasolutions.com>
On Thu, Jun 15, 2023 at 6:44 AM Sebastian Weyer <sebastian.weyer@smile.fr>
wrote:
> From: Lang Daniel <d.lang@abatec.at>
>
> To make updating easier, move llvm into the llvm-project folder
> and use the defined information.
>
> Signed-off-by: Daniel Lang <d.lang@abatec.at>
> Reviewed-by: Romain Naour <romain.naour@smile.fr>
> Signed-off-by: Romain Naour <romain.naour@smile.fr>
> Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
> ---
> DEVELOPERS | 6 +++---
> package/Config.in | 2 +-
> .../llvm/0001-nfc-Fix-missing-include.patch | 0
> package/{ => llvm-project}/llvm/Config.in | 0
> package/{ => llvm-project}/llvm/llvm.hash | 0
> package/{ => llvm-project}/llvm/llvm.mk | 5 ++---
> 6 files changed, 6 insertions(+), 7 deletions(-)
> rename package/{ => llvm-project}/llvm/0001-nfc-Fix-missing-include.patch
> (100%)
> rename package/{ => llvm-project}/llvm/Config.in (100%)
> rename package/{ => llvm-project}/llvm/llvm.hash (100%)
> rename package/{ => llvm-project}/llvm/llvm.mk (98%)
>
> diff --git a/DEVELOPERS b/DEVELOPERS
> index 56316201af..c4273c5f85 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -1639,7 +1639,7 @@ F: package/earlyoom/
> F: package/gconf/
> F: package/libnss/
> F: package/lld/
> -F: package/llvm/
> +F: package/llvm-project/llvm/
> F: package/python-cython/
> F: package/python-pycups/
> F: package/python-raven/
> @@ -2538,7 +2538,7 @@ F: package/libgta/
> F: package/libiec61850/
> F: package/libspatialindex/
> F: package/linux-syscall-support/
> -F: package/llvm/
> +F: package/llvm-project/llvm/
> F: package/lugaru/
> F: package/mcelog/
> F: package/mesa3d/
> @@ -2949,7 +2949,7 @@ N: Valentin Korenblit <
> valentinkorenblit@gmail.com>
> F: package/clang/
> F: package/clinfo/
> F: package/libclc/
> -F: package/llvm/
> +F: package/llvm-project/llvm/
>
> N: Vanya Sergeev <vsergeev@gmail.com>
> F: package/lua-periphery/
> diff --git a/package/Config.in b/package/Config.in
> index bff090a661..dffffc195b 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -2128,7 +2128,7 @@ comment "linux-pam plugins"
> source "package/libpam-tacplus/Config.in"
> endif
> source "package/liquid-dsp/Config.in"
> - source "package/llvm/Config.in"
> + source "package/llvm-project/llvm/Config.in"
> source "package/lttng-libust/Config.in"
> source "package/matio/Config.in"
> source "package/mpc/Config.in"
> diff --git a/package/llvm/0001-nfc-Fix-missing-include.patch
> b/package/llvm-project/llvm/0001-nfc-Fix-missing-include.patch
> similarity index 100%
> rename from package/llvm/0001-nfc-Fix-missing-include.patch
> rename to package/llvm-project/llvm/0001-nfc-Fix-missing-include.patch
> diff --git a/package/llvm/Config.in b/package/llvm-project/llvm/Config.in
> similarity index 100%
> rename from package/llvm/Config.in
> rename to package/llvm-project/llvm/Config.in
> diff --git a/package/llvm/llvm.hash b/package/llvm-project/llvm/llvm.hash
> similarity index 100%
> rename from package/llvm/llvm.hash
> rename to package/llvm-project/llvm/llvm.hash
> diff --git a/package/llvm/llvm.mk b/package/llvm-project/llvm/llvm.mk
> similarity index 98%
> rename from package/llvm/llvm.mk
> rename to package/llvm-project/llvm/llvm.mk
> index 977c0a08c2..1adad17b16 100644
> --- a/package/llvm/llvm.mk
> +++ b/package/llvm-project/llvm/llvm.mk
> @@ -4,9 +4,8 @@
> #
>
> ################################################################################
>
> -# LLVM, Clang and lld should be version bumped together
> -LLVM_VERSION = 11.1.0
> -LLVM_SITE =
> https://github.com/llvm/llvm-project/releases/download/llvmorg-$(LLVM_VERSION)
> +LLVM_VERSION = $(LLVM_PROJECT_VERSION)
> +LLVM_SITE = $(LLVM_PROJECT_SITE)
> LLVM_SOURCE = llvm-$(LLVM_VERSION).src.tar.xz
> LLVM_LICENSE = Apache-2.0 with exceptions
> LLVM_LICENSE_FILES = LICENSE.TXT
> --
> 2.34.1
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
>
[-- Attachment #1.2: Type: text/html, Size: 6632 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Buildroot] [PATCH v4 03/10] package/lld: move to llvm-project subfolder
2023-06-15 13:43 [Buildroot] [PATCH v4 00/10] group llvm projects and bump to version 15.0.3 Sebastian Weyer
2023-06-15 13:43 ` [Buildroot] [PATCH v4 01/10] package/llvm-project: new group for llvm packages Sebastian Weyer
2023-06-15 13:43 ` [Buildroot] [PATCH v4 02/10] package/llvm: move to llvm-project folder Sebastian Weyer
@ 2023-06-15 13:43 ` Sebastian Weyer
2023-07-20 17:31 ` Adam Duskett
2023-06-15 13:43 ` [Buildroot] [PATCH v4 04/10] package/clang: " Sebastian Weyer
` (8 subsequent siblings)
11 siblings, 1 reply; 26+ messages in thread
From: Sebastian Weyer @ 2023-06-15 13:43 UTC (permalink / raw)
To: buildroot; +Cc: Joseph Kogut, Lang Daniel, Romain Naour, Sebastian Weyer
From: Lang Daniel <d.lang@abatec.at>
To make version bumping easier, move lld to a new llvm-project subfolder
and specify site and version for the project.
Signed-off-by: Daniel Lang <d.lang@abatec.at>
Reviewed-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
---
v4: change inaccuracy in commit message (move llvm -> move lld)
---
DEVELOPERS | 2 +-
package/Config.in.host | 2 +-
package/{ => llvm-project}/lld/Config.in.host | 0
package/{ => llvm-project}/lld/lld.hash | 0
package/{ => llvm-project}/lld/lld.mk | 5 ++---
5 files changed, 4 insertions(+), 5 deletions(-)
rename package/{ => llvm-project}/lld/Config.in.host (100%)
rename package/{ => llvm-project}/lld/lld.hash (100%)
rename package/{ => llvm-project}/lld/lld.mk (87%)
diff --git a/DEVELOPERS b/DEVELOPERS
index c4273c5f85..befafff1d0 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1638,7 +1638,7 @@ F: package/clang/
F: package/earlyoom/
F: package/gconf/
F: package/libnss/
-F: package/lld/
+F: package/llvm-project/lld/
F: package/llvm-project/llvm/
F: package/python-cython/
F: package/python-pycups/
diff --git a/package/Config.in.host b/package/Config.in.host
index dcadbfdfc1..9addc88522 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -51,7 +51,7 @@ menu "Host utilities"
source "package/jsmin/Config.in.host"
source "package/kmod/Config.in.host"
source "package/libp11/Config.in.host"
- source "package/lld/Config.in.host"
+ source "package/llvm-project/lld/Config.in.host"
source "package/lpc3250loader/Config.in.host"
source "package/lttng-babeltrace/Config.in.host"
source "package/lzma-alone/Config.in.host"
diff --git a/package/lld/Config.in.host b/package/llvm-project/lld/Config.in.host
similarity index 100%
rename from package/lld/Config.in.host
rename to package/llvm-project/lld/Config.in.host
diff --git a/package/lld/lld.hash b/package/llvm-project/lld/lld.hash
similarity index 100%
rename from package/lld/lld.hash
rename to package/llvm-project/lld/lld.hash
diff --git a/package/lld/lld.mk b/package/llvm-project/lld/lld.mk
similarity index 87%
rename from package/lld/lld.mk
rename to package/llvm-project/lld/lld.mk
index 4bf903cda0..46ec3b13ff 100644
--- a/package/lld/lld.mk
+++ b/package/llvm-project/lld/lld.mk
@@ -4,9 +4,8 @@
#
################################################################################
-# LLVM, Clang and lld should be version bumped together
-LLD_VERSION = 11.1.0
-LLD_SITE = https://github.com/llvm/llvm-project/releases/download/llvmorg-$(LLD_VERSION)
+LLD_VERSION = $(LLVM_PROJECT_VERSION)
+LLD_SITE = $(LLVM_PROJECT_SITE)
LLD_SOURCE = lld-$(LLD_VERSION).src.tar.xz
LLD_LICENSE = Apache-2.0 with exceptions
LLD_LICENSE_FILES = LICENSE.TXT
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [Buildroot] [PATCH v4 03/10] package/lld: move to llvm-project subfolder
2023-06-15 13:43 ` [Buildroot] [PATCH v4 03/10] package/lld: move to llvm-project subfolder Sebastian Weyer
@ 2023-07-20 17:31 ` Adam Duskett
0 siblings, 0 replies; 26+ messages in thread
From: Adam Duskett @ 2023-07-20 17:31 UTC (permalink / raw)
To: Sebastian Weyer; +Cc: Joseph Kogut, Lang Daniel, Romain Naour, buildroot
[-- Attachment #1.1: Type: text/plain, Size: 3545 bytes --]
Tested-by: Adam Duskett <adam.duskett@amarulasolutions.com>
On Thu, Jun 15, 2023 at 6:44 AM Sebastian Weyer <sebastian.weyer@smile.fr>
wrote:
> From: Lang Daniel <d.lang@abatec.at>
>
> To make version bumping easier, move lld to a new llvm-project subfolder
> and specify site and version for the project.
>
> Signed-off-by: Daniel Lang <d.lang@abatec.at>
> Reviewed-by: Romain Naour <romain.naour@smile.fr>
> Signed-off-by: Romain Naour <romain.naour@smile.fr>
> Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
> ---
> v4: change inaccuracy in commit message (move llvm -> move lld)
> ---
> DEVELOPERS | 2 +-
> package/Config.in.host | 2 +-
> package/{ => llvm-project}/lld/Config.in.host | 0
> package/{ => llvm-project}/lld/lld.hash | 0
> package/{ => llvm-project}/lld/lld.mk | 5 ++---
> 5 files changed, 4 insertions(+), 5 deletions(-)
> rename package/{ => llvm-project}/lld/Config.in.host (100%)
> rename package/{ => llvm-project}/lld/lld.hash (100%)
> rename package/{ => llvm-project}/lld/lld.mk (87%)
>
> diff --git a/DEVELOPERS b/DEVELOPERS
> index c4273c5f85..befafff1d0 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -1638,7 +1638,7 @@ F: package/clang/
> F: package/earlyoom/
> F: package/gconf/
> F: package/libnss/
> -F: package/lld/
> +F: package/llvm-project/lld/
> F: package/llvm-project/llvm/
> F: package/python-cython/
> F: package/python-pycups/
> diff --git a/package/Config.in.host b/package/Config.in.host
> index dcadbfdfc1..9addc88522 100644
> --- a/package/Config.in.host
> +++ b/package/Config.in.host
> @@ -51,7 +51,7 @@ menu "Host utilities"
> source "package/jsmin/Config.in.host"
> source "package/kmod/Config.in.host"
> source "package/libp11/Config.in.host"
> - source "package/lld/Config.in.host"
> + source "package/llvm-project/lld/Config.in.host"
> source "package/lpc3250loader/Config.in.host"
> source "package/lttng-babeltrace/Config.in.host"
> source "package/lzma-alone/Config.in.host"
> diff --git a/package/lld/Config.in.host
> b/package/llvm-project/lld/Config.in.host
> similarity index 100%
> rename from package/lld/Config.in.host
> rename to package/llvm-project/lld/Config.in.host
> diff --git a/package/lld/lld.hash b/package/llvm-project/lld/lld.hash
> similarity index 100%
> rename from package/lld/lld.hash
> rename to package/llvm-project/lld/lld.hash
> diff --git a/package/lld/lld.mk b/package/llvm-project/lld/lld.mk
> similarity index 87%
> rename from package/lld/lld.mk
> rename to package/llvm-project/lld/lld.mk
> index 4bf903cda0..46ec3b13ff 100644
> --- a/package/lld/lld.mk
> +++ b/package/llvm-project/lld/lld.mk
> @@ -4,9 +4,8 @@
> #
>
> ################################################################################
>
> -# LLVM, Clang and lld should be version bumped together
> -LLD_VERSION = 11.1.0
> -LLD_SITE =
> https://github.com/llvm/llvm-project/releases/download/llvmorg-$(LLD_VERSION)
> +LLD_VERSION = $(LLVM_PROJECT_VERSION)
> +LLD_SITE = $(LLVM_PROJECT_SITE)
> LLD_SOURCE = lld-$(LLD_VERSION).src.tar.xz
> LLD_LICENSE = Apache-2.0 with exceptions
> LLD_LICENSE_FILES = LICENSE.TXT
> --
> 2.34.1
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
>
[-- Attachment #1.2: Type: text/html, Size: 5387 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Buildroot] [PATCH v4 04/10] package/clang: move to llvm-project subfolder
2023-06-15 13:43 [Buildroot] [PATCH v4 00/10] group llvm projects and bump to version 15.0.3 Sebastian Weyer
` (2 preceding siblings ...)
2023-06-15 13:43 ` [Buildroot] [PATCH v4 03/10] package/lld: move to llvm-project subfolder Sebastian Weyer
@ 2023-06-15 13:43 ` Sebastian Weyer
2023-07-20 17:31 ` Adam Duskett
2023-06-15 13:43 ` [Buildroot] [PATCH v4 05/10] package/compiler-rt: " Sebastian Weyer
` (7 subsequent siblings)
11 siblings, 1 reply; 26+ messages in thread
From: Sebastian Weyer @ 2023-06-15 13:43 UTC (permalink / raw)
To: buildroot
Cc: Joseph Kogut, Sebastian Weyer, Lang Daniel, Romain Naour,
Romain Naour, Valentin Korenblit
From: Lang Daniel <d.lang@abatec.at>
To make version bumping easier, move clang to a new llvm-project subfolder
and specify site and version for the project.
Signed-off-by: Daniel Lang <d.lang@abatec.at>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
---
v4: change inaccuracy in commit message (move llvm -> move clang)
v3: move "package/llvm-project/clang/Config.in" entry in package/Config.in
---
DEVELOPERS | 6 +++---
package/Config.in | 2 +-
...-Driver-ToolChains-Gnu-Use-GCC_INSTALL_PREFIX-in-.patch | 0
package/{ => llvm-project}/clang/Config.in | 0
package/{ => llvm-project}/clang/clang.hash | 0
package/{ => llvm-project}/clang/clang.mk | 7 +++----
6 files changed, 7 insertions(+), 8 deletions(-)
rename package/{ => llvm-project}/clang/0001-lib-Driver-ToolChains-Gnu-Use-GCC_INSTALL_PREFIX-in-.patch (100%)
rename package/{ => llvm-project}/clang/Config.in (100%)
rename package/{ => llvm-project}/clang/clang.hash (100%)
rename package/{ => llvm-project}/clang/clang.mk (96%)
diff --git a/DEVELOPERS b/DEVELOPERS
index befafff1d0..1fb8295a7a 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1634,10 +1634,10 @@ F: support/testing/tests/package/test_python_aexpect.py
N: Joseph Kogut <joseph.kogut@gmail.com>
F: package/at-spi2-core/
-F: package/clang/
F: package/earlyoom/
F: package/gconf/
F: package/libnss/
+F: package/llvm-project/clang/
F: package/llvm-project/lld/
F: package/llvm-project/llvm/
F: package/python-cython/
@@ -2519,7 +2519,6 @@ F: package/alure/
F: package/aubio/
F: package/binutils/
F: package/bullet/
-F: package/clang/
F: package/clinfo/
F: package/efl/
F: package/enet/
@@ -2538,6 +2537,7 @@ F: package/libgta/
F: package/libiec61850/
F: package/libspatialindex/
F: package/linux-syscall-support/
+F: package/llvm-project/clang/
F: package/llvm-project/llvm/
F: package/lugaru/
F: package/mcelog/
@@ -2946,9 +2946,9 @@ F: package/gettext-tiny/
F: package/tinyssh/
N: Valentin Korenblit <valentinkorenblit@gmail.com>
-F: package/clang/
F: package/clinfo/
F: package/libclc/
+F: package/llvm-project/clang/
F: package/llvm-project/llvm/
N: Vanya Sergeev <vsergeev@gmail.com>
diff --git a/package/Config.in b/package/Config.in
index dffffc195b..7f2f045c87 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -2023,7 +2023,6 @@ menu "Other"
source "package/catch2/Config.in"
source "package/cctz/Config.in"
source "package/cereal/Config.in"
- source "package/clang/Config.in"
source "package/cmocka/Config.in"
source "package/compiler-rt/Config.in"
source "package/cppcms/Config.in"
@@ -2128,6 +2127,7 @@ comment "linux-pam plugins"
source "package/libpam-tacplus/Config.in"
endif
source "package/liquid-dsp/Config.in"
+ source "package/llvm-project/clang/Config.in"
source "package/llvm-project/llvm/Config.in"
source "package/lttng-libust/Config.in"
source "package/matio/Config.in"
diff --git a/package/clang/0001-lib-Driver-ToolChains-Gnu-Use-GCC_INSTALL_PREFIX-in-.patch b/package/llvm-project/clang/0001-lib-Driver-ToolChains-Gnu-Use-GCC_INSTALL_PREFIX-in-.patch
similarity index 100%
rename from package/clang/0001-lib-Driver-ToolChains-Gnu-Use-GCC_INSTALL_PREFIX-in-.patch
rename to package/llvm-project/clang/0001-lib-Driver-ToolChains-Gnu-Use-GCC_INSTALL_PREFIX-in-.patch
diff --git a/package/clang/Config.in b/package/llvm-project/clang/Config.in
similarity index 100%
rename from package/clang/Config.in
rename to package/llvm-project/clang/Config.in
diff --git a/package/clang/clang.hash b/package/llvm-project/clang/clang.hash
similarity index 100%
rename from package/clang/clang.hash
rename to package/llvm-project/clang/clang.hash
diff --git a/package/clang/clang.mk b/package/llvm-project/clang/clang.mk
similarity index 96%
rename from package/clang/clang.mk
rename to package/llvm-project/clang/clang.mk
index 3c75f8d6b1..0943e21a8c 100644
--- a/package/clang/clang.mk
+++ b/package/llvm-project/clang/clang.mk
@@ -4,10 +4,9 @@
#
################################################################################
-# LLVM, Clang and lld should be version bumped together
-CLANG_VERSION_MAJOR = 11
-CLANG_VERSION = $(CLANG_VERSION_MAJOR).1.0
-CLANG_SITE = https://github.com/llvm/llvm-project/releases/download/llvmorg-$(CLANG_VERSION)
+CLANG_VERSION_MAJOR = $(LLVM_PROJECT_VERSION_MAJOR)
+CLANG_VERSION = $(LLVM_PROJECT_VERSION)
+CLANG_SITE = $(LLVM_PROJECT_SITE)
CLANG_SOURCE = clang-$(CLANG_VERSION).src.tar.xz
CLANG_LICENSE = Apache-2.0 with exceptions
CLANG_LICENSE_FILES = LICENSE.TXT
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [Buildroot] [PATCH v4 04/10] package/clang: move to llvm-project subfolder
2023-06-15 13:43 ` [Buildroot] [PATCH v4 04/10] package/clang: " Sebastian Weyer
@ 2023-07-20 17:31 ` Adam Duskett
0 siblings, 0 replies; 26+ messages in thread
From: Adam Duskett @ 2023-07-20 17:31 UTC (permalink / raw)
To: Sebastian Weyer
Cc: Joseph Kogut, Lang Daniel, buildroot, Romain Naour, Romain Naour,
Valentin Korenblit
[-- Attachment #1.1: Type: text/plain, Size: 5664 bytes --]
Tested-by: Adam Duskett <adam.duskett@amarulasolutions.com>
On Thu, Jun 15, 2023 at 6:45 AM Sebastian Weyer <sebastian.weyer@smile.fr>
wrote:
> From: Lang Daniel <d.lang@abatec.at>
>
> To make version bumping easier, move clang to a new llvm-project subfolder
> and specify site and version for the project.
>
> Signed-off-by: Daniel Lang <d.lang@abatec.at>
> Signed-off-by: Romain Naour <romain.naour@smile.fr>
> Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
> ---
> v4: change inaccuracy in commit message (move llvm -> move clang)
>
> v3: move "package/llvm-project/clang/Config.in" entry in package/Config.in
> ---
> DEVELOPERS | 6 +++---
> package/Config.in | 2 +-
> ...-Driver-ToolChains-Gnu-Use-GCC_INSTALL_PREFIX-in-.patch | 0
> package/{ => llvm-project}/clang/Config.in | 0
> package/{ => llvm-project}/clang/clang.hash | 0
> package/{ => llvm-project}/clang/clang.mk | 7 +++----
> 6 files changed, 7 insertions(+), 8 deletions(-)
> rename package/{ =>
> llvm-project}/clang/0001-lib-Driver-ToolChains-Gnu-Use-GCC_INSTALL_PREFIX-in-.patch
> (100%)
> rename package/{ => llvm-project}/clang/Config.in (100%)
> rename package/{ => llvm-project}/clang/clang.hash (100%)
> rename package/{ => llvm-project}/clang/clang.mk (96%)
>
> diff --git a/DEVELOPERS b/DEVELOPERS
> index befafff1d0..1fb8295a7a 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -1634,10 +1634,10 @@ F:
> support/testing/tests/package/test_python_aexpect.py
>
> N: Joseph Kogut <joseph.kogut@gmail.com>
> F: package/at-spi2-core/
> -F: package/clang/
> F: package/earlyoom/
> F: package/gconf/
> F: package/libnss/
> +F: package/llvm-project/clang/
> F: package/llvm-project/lld/
> F: package/llvm-project/llvm/
> F: package/python-cython/
> @@ -2519,7 +2519,6 @@ F: package/alure/
> F: package/aubio/
> F: package/binutils/
> F: package/bullet/
> -F: package/clang/
> F: package/clinfo/
> F: package/efl/
> F: package/enet/
> @@ -2538,6 +2537,7 @@ F: package/libgta/
> F: package/libiec61850/
> F: package/libspatialindex/
> F: package/linux-syscall-support/
> +F: package/llvm-project/clang/
> F: package/llvm-project/llvm/
> F: package/lugaru/
> F: package/mcelog/
> @@ -2946,9 +2946,9 @@ F: package/gettext-tiny/
> F: package/tinyssh/
>
> N: Valentin Korenblit <valentinkorenblit@gmail.com>
> -F: package/clang/
> F: package/clinfo/
> F: package/libclc/
> +F: package/llvm-project/clang/
> F: package/llvm-project/llvm/
>
> N: Vanya Sergeev <vsergeev@gmail.com>
> diff --git a/package/Config.in b/package/Config.in
> index dffffc195b..7f2f045c87 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -2023,7 +2023,6 @@ menu "Other"
> source "package/catch2/Config.in"
> source "package/cctz/Config.in"
> source "package/cereal/Config.in"
> - source "package/clang/Config.in"
> source "package/cmocka/Config.in"
> source "package/compiler-rt/Config.in"
> source "package/cppcms/Config.in"
> @@ -2128,6 +2127,7 @@ comment "linux-pam plugins"
> source "package/libpam-tacplus/Config.in"
> endif
> source "package/liquid-dsp/Config.in"
> + source "package/llvm-project/clang/Config.in"
> source "package/llvm-project/llvm/Config.in"
> source "package/lttng-libust/Config.in"
> source "package/matio/Config.in"
> diff --git
> a/package/clang/0001-lib-Driver-ToolChains-Gnu-Use-GCC_INSTALL_PREFIX-in-.patch
> b/package/llvm-project/clang/0001-lib-Driver-ToolChains-Gnu-Use-GCC_INSTALL_PREFIX-in-.patch
> similarity index 100%
> rename from
> package/clang/0001-lib-Driver-ToolChains-Gnu-Use-GCC_INSTALL_PREFIX-in-.patch
> rename to
> package/llvm-project/clang/0001-lib-Driver-ToolChains-Gnu-Use-GCC_INSTALL_PREFIX-in-.patch
> diff --git a/package/clang/Config.in b/package/llvm-project/clang/Config.in
> similarity index 100%
> rename from package/clang/Config.in
> rename to package/llvm-project/clang/Config.in
> diff --git a/package/clang/clang.hash
> b/package/llvm-project/clang/clang.hash
> similarity index 100%
> rename from package/clang/clang.hash
> rename to package/llvm-project/clang/clang.hash
> diff --git a/package/clang/clang.mk b/package/llvm-project/clang/clang.mk
> similarity index 96%
> rename from package/clang/clang.mk
> rename to package/llvm-project/clang/clang.mk
> index 3c75f8d6b1..0943e21a8c 100644
> --- a/package/clang/clang.mk
> +++ b/package/llvm-project/clang/clang.mk
> @@ -4,10 +4,9 @@
> #
>
> ################################################################################
>
> -# LLVM, Clang and lld should be version bumped together
> -CLANG_VERSION_MAJOR = 11
> -CLANG_VERSION = $(CLANG_VERSION_MAJOR).1.0
> -CLANG_SITE =
> https://github.com/llvm/llvm-project/releases/download/llvmorg-$(CLANG_VERSION)
> +CLANG_VERSION_MAJOR = $(LLVM_PROJECT_VERSION_MAJOR)
> +CLANG_VERSION = $(LLVM_PROJECT_VERSION)
> +CLANG_SITE = $(LLVM_PROJECT_SITE)
> CLANG_SOURCE = clang-$(CLANG_VERSION).src.tar.xz
> CLANG_LICENSE = Apache-2.0 with exceptions
> CLANG_LICENSE_FILES = LICENSE.TXT
> --
> 2.34.1
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
>
[-- Attachment #1.2: Type: text/html, Size: 7970 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Buildroot] [PATCH v4 05/10] package/compiler-rt: move to llvm-project subfolder
2023-06-15 13:43 [Buildroot] [PATCH v4 00/10] group llvm projects and bump to version 15.0.3 Sebastian Weyer
` (3 preceding siblings ...)
2023-06-15 13:43 ` [Buildroot] [PATCH v4 04/10] package/clang: " Sebastian Weyer
@ 2023-06-15 13:43 ` Sebastian Weyer
2023-07-20 17:31 ` Adam Duskett
2023-06-15 13:43 ` [Buildroot] [PATCH v4 06/10] package/libclc: " Sebastian Weyer
` (6 subsequent siblings)
11 siblings, 1 reply; 26+ messages in thread
From: Sebastian Weyer @ 2023-06-15 13:43 UTC (permalink / raw)
To: buildroot; +Cc: Lang Daniel, Romain Naour, Sebastian Weyer
From: Lang Daniel <d.lang@abatec.at>
To make version bumping easier, move compiler-rt to a new llvm-project
subfolder and specify site and version for the project.
Signed-off-by: Daniel Lang <d.lang@abatec.at>
Reviewed-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
---
v4:
- change inaccuracy in commit message (move llvm -> move compiler-rt)
- remove change in DEVELOPERS file because the person removed their
name from the file
v3: move compiler-rt entry in package/Config.in
---
package/Config.in | 2 +-
package/{ => llvm-project}/compiler-rt/Config.in | 0
package/{ => llvm-project}/compiler-rt/compiler-rt.hash | 0
package/{ => llvm-project}/compiler-rt/compiler-rt.mk | 6 ++----
4 files changed, 3 insertions(+), 5 deletions(-)
rename package/{ => llvm-project}/compiler-rt/Config.in (100%)
rename package/{ => llvm-project}/compiler-rt/compiler-rt.hash (100%)
rename package/{ => llvm-project}/compiler-rt/compiler-rt.mk (85%)
diff --git a/package/Config.in b/package/Config.in
index 7f2f045c87..17343a8e86 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -2024,7 +2024,6 @@ menu "Other"
source "package/cctz/Config.in"
source "package/cereal/Config.in"
source "package/cmocka/Config.in"
- source "package/compiler-rt/Config.in"
source "package/cppcms/Config.in"
source "package/cracklib/Config.in"
source "package/dawgdic/Config.in"
@@ -2128,6 +2127,7 @@ comment "linux-pam plugins"
endif
source "package/liquid-dsp/Config.in"
source "package/llvm-project/clang/Config.in"
+ source "package/llvm-project/compiler-rt/Config.in"
source "package/llvm-project/llvm/Config.in"
source "package/lttng-libust/Config.in"
source "package/matio/Config.in"
diff --git a/package/compiler-rt/Config.in b/package/llvm-project/compiler-rt/Config.in
similarity index 100%
rename from package/compiler-rt/Config.in
rename to package/llvm-project/compiler-rt/Config.in
diff --git a/package/compiler-rt/compiler-rt.hash b/package/llvm-project/compiler-rt/compiler-rt.hash
similarity index 100%
rename from package/compiler-rt/compiler-rt.hash
rename to package/llvm-project/compiler-rt/compiler-rt.hash
diff --git a/package/compiler-rt/compiler-rt.mk b/package/llvm-project/compiler-rt/compiler-rt.mk
similarity index 85%
rename from package/compiler-rt/compiler-rt.mk
rename to package/llvm-project/compiler-rt/compiler-rt.mk
index c8ea86e899..84add60801 100644
--- a/package/compiler-rt/compiler-rt.mk
+++ b/package/llvm-project/compiler-rt/compiler-rt.mk
@@ -4,11 +4,9 @@
#
################################################################################
-# Compiler-RT should be bumped together with LLVM and Clang as the run-time is
-# tied to the version of those tools
-COMPILER_RT_VERSION = 11.1.0
+COMPILER_RT_VERSION = $(LLVM_PROJECT_VERSION)
COMPILER_RT_SOURCE = compiler-rt-$(COMPILER_RT_VERSION).src.tar.xz
-COMPILER_RT_SITE = https://github.com/llvm/llvm-project/releases/download/llvmorg-$(COMPILER_RT_VERSION)
+COMPILER_RT_SITE = $(LLVM_PROJECT_SITE)
COMPILER_RT_LICENSE = NCSA MIT
COMPILER_RT_LICENSE_FILES = LICENSE.TXT
COMPILER_RT_DEPENDENCIES = host-clang llvm
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [Buildroot] [PATCH v4 05/10] package/compiler-rt: move to llvm-project subfolder
2023-06-15 13:43 ` [Buildroot] [PATCH v4 05/10] package/compiler-rt: " Sebastian Weyer
@ 2023-07-20 17:31 ` Adam Duskett
0 siblings, 0 replies; 26+ messages in thread
From: Adam Duskett @ 2023-07-20 17:31 UTC (permalink / raw)
To: Sebastian Weyer; +Cc: Lang Daniel, Romain Naour, buildroot
[-- Attachment #1.1: Type: text/plain, Size: 3937 bytes --]
Tested-by: Adam Duskett <adam.duskett@amarulasolutions.com>
On Thu, Jun 15, 2023 at 6:45 AM Sebastian Weyer <sebastian.weyer@smile.fr>
wrote:
> From: Lang Daniel <d.lang@abatec.at>
>
> To make version bumping easier, move compiler-rt to a new llvm-project
> subfolder and specify site and version for the project.
>
> Signed-off-by: Daniel Lang <d.lang@abatec.at>
> Reviewed-by: Romain Naour <romain.naour@smile.fr>
> Signed-off-by: Romain Naour <romain.naour@smile.fr>
> Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
> ---
> v4:
> - change inaccuracy in commit message (move llvm -> move compiler-rt)
> - remove change in DEVELOPERS file because the person removed their
> name from the file
>
> v3: move compiler-rt entry in package/Config.in
> ---
> package/Config.in | 2 +-
> package/{ => llvm-project}/compiler-rt/Config.in | 0
> package/{ => llvm-project}/compiler-rt/compiler-rt.hash | 0
> package/{ => llvm-project}/compiler-rt/compiler-rt.mk | 6 ++----
> 4 files changed, 3 insertions(+), 5 deletions(-)
> rename package/{ => llvm-project}/compiler-rt/Config.in (100%)
> rename package/{ => llvm-project}/compiler-rt/compiler-rt.hash (100%)
> rename package/{ => llvm-project}/compiler-rt/compiler-rt.mk (85%)
>
> diff --git a/package/Config.in b/package/Config.in
> index 7f2f045c87..17343a8e86 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -2024,7 +2024,6 @@ menu "Other"
> source "package/cctz/Config.in"
> source "package/cereal/Config.in"
> source "package/cmocka/Config.in"
> - source "package/compiler-rt/Config.in"
> source "package/cppcms/Config.in"
> source "package/cracklib/Config.in"
> source "package/dawgdic/Config.in"
> @@ -2128,6 +2127,7 @@ comment "linux-pam plugins"
> endif
> source "package/liquid-dsp/Config.in"
> source "package/llvm-project/clang/Config.in"
> + source "package/llvm-project/compiler-rt/Config.in"
> source "package/llvm-project/llvm/Config.in"
> source "package/lttng-libust/Config.in"
> source "package/matio/Config.in"
> diff --git a/package/compiler-rt/Config.in
> b/package/llvm-project/compiler-rt/Config.in
> similarity index 100%
> rename from package/compiler-rt/Config.in
> rename to package/llvm-project/compiler-rt/Config.in
> diff --git a/package/compiler-rt/compiler-rt.hash
> b/package/llvm-project/compiler-rt/compiler-rt.hash
> similarity index 100%
> rename from package/compiler-rt/compiler-rt.hash
> rename to package/llvm-project/compiler-rt/compiler-rt.hash
> diff --git a/package/compiler-rt/compiler-rt.mk
> b/package/llvm-project/compiler-rt/compiler-rt.mk
> similarity index 85%
> rename from package/compiler-rt/compiler-rt.mk
> rename to package/llvm-project/compiler-rt/compiler-rt.mk
> index c8ea86e899..84add60801 100644
> --- a/package/compiler-rt/compiler-rt.mk
> +++ b/package/llvm-project/compiler-rt/compiler-rt.mk
> @@ -4,11 +4,9 @@
> #
>
> ################################################################################
>
> -# Compiler-RT should be bumped together with LLVM and Clang as the
> run-time is
> -# tied to the version of those tools
> -COMPILER_RT_VERSION = 11.1.0
> +COMPILER_RT_VERSION = $(LLVM_PROJECT_VERSION)
> COMPILER_RT_SOURCE = compiler-rt-$(COMPILER_RT_VERSION).src.tar.xz
> -COMPILER_RT_SITE =
> https://github.com/llvm/llvm-project/releases/download/llvmorg-$(COMPILER_RT_VERSION)
> +COMPILER_RT_SITE = $(LLVM_PROJECT_SITE)
> COMPILER_RT_LICENSE = NCSA MIT
> COMPILER_RT_LICENSE_FILES = LICENSE.TXT
> COMPILER_RT_DEPENDENCIES = host-clang llvm
> --
> 2.34.1
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
>
[-- Attachment #1.2: Type: text/html, Size: 5884 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Buildroot] [PATCH v4 06/10] package/libclc: move to llvm-project subfolder
2023-06-15 13:43 [Buildroot] [PATCH v4 00/10] group llvm projects and bump to version 15.0.3 Sebastian Weyer
` (4 preceding siblings ...)
2023-06-15 13:43 ` [Buildroot] [PATCH v4 05/10] package/compiler-rt: " Sebastian Weyer
@ 2023-06-15 13:43 ` Sebastian Weyer
2023-07-20 17:31 ` Adam Duskett
2023-06-15 13:43 ` [Buildroot] [PATCH v4 07/10] package/llvm-project/llvm-cmake: new package Sebastian Weyer
` (5 subsequent siblings)
11 siblings, 1 reply; 26+ messages in thread
From: Sebastian Weyer @ 2023-06-15 13:43 UTC (permalink / raw)
To: buildroot
Cc: Lang Daniel, Romain Naour, Romain Naour, Sebastian Weyer,
Valentin Korenblit
From: Lang Daniel <d.lang@abatec.at>
To make version bumping easier, move libclc to a new llvm-project subfolder
and specify site for the project. Since the version of libclc is more
recent than the version specified in LLVM_PROJECT_VERSION, don't change
it for now until a later update.
Signed-off-by: Daniel Lang <d.lang@abatec.at>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
---
v4: change inaccuracies in commit message
- move llvm -> move libclc
- libclc version is not specified through LLVM_PROJECT_VERSION since
it is already at version 13.0.1 as opposed to version 11.1.0
v3: move libclc before llvm 15.0.3 version bump commit
move libclc entry in package/Config.in
---
DEVELOPERS | 4 ++--
package/Config.in | 2 +-
.../libclc/0001-support-out-of-tree-build.patch | 0
package/{ => llvm-project}/libclc/Config.in | 0
package/{ => llvm-project}/libclc/libclc.hash | 0
package/{ => llvm-project}/libclc/libclc.mk | 2 +-
6 files changed, 4 insertions(+), 4 deletions(-)
rename package/{ => llvm-project}/libclc/0001-support-out-of-tree-build.patch (100%)
rename package/{ => llvm-project}/libclc/Config.in (100%)
rename package/{ => llvm-project}/libclc/libclc.hash (100%)
rename package/{ => llvm-project}/libclc/libclc.mk (93%)
diff --git a/DEVELOPERS b/DEVELOPERS
index 1fb8295a7a..48907a5cd8 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2532,12 +2532,12 @@ F: package/irrlicht/
F: package/liblinear/
F: package/lensfun/
F: package/libbpf/
-F: package/libclc/
F: package/libgta/
F: package/libiec61850/
F: package/libspatialindex/
F: package/linux-syscall-support/
F: package/llvm-project/clang/
+F: package/llvm-project/libclc/
F: package/llvm-project/llvm/
F: package/lugaru/
F: package/mcelog/
@@ -2947,8 +2947,8 @@ F: package/tinyssh/
N: Valentin Korenblit <valentinkorenblit@gmail.com>
F: package/clinfo/
-F: package/libclc/
F: package/llvm-project/clang/
+F: package/llvm-project/libclc/
F: package/llvm-project/llvm/
N: Vanya Sergeev <vsergeev@gmail.com>
diff --git a/package/Config.in b/package/Config.in
index 17343a8e86..42cf0b170e 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -2065,7 +2065,6 @@ menu "Other"
source "package/libcap/Config.in"
source "package/libcap-ng/Config.in"
source "package/libcgroup/Config.in"
- source "package/libclc/Config.in"
source "package/libcofi/Config.in"
source "package/libcorrect/Config.in"
source "package/libcrossguid/Config.in"
@@ -2128,6 +2127,7 @@ endif
source "package/liquid-dsp/Config.in"
source "package/llvm-project/clang/Config.in"
source "package/llvm-project/compiler-rt/Config.in"
+ source "package/llvm-project/libclc/Config.in"
source "package/llvm-project/llvm/Config.in"
source "package/lttng-libust/Config.in"
source "package/matio/Config.in"
diff --git a/package/libclc/0001-support-out-of-tree-build.patch b/package/llvm-project/libclc/0001-support-out-of-tree-build.patch
similarity index 100%
rename from package/libclc/0001-support-out-of-tree-build.patch
rename to package/llvm-project/libclc/0001-support-out-of-tree-build.patch
diff --git a/package/libclc/Config.in b/package/llvm-project/libclc/Config.in
similarity index 100%
rename from package/libclc/Config.in
rename to package/llvm-project/libclc/Config.in
diff --git a/package/libclc/libclc.hash b/package/llvm-project/libclc/libclc.hash
similarity index 100%
rename from package/libclc/libclc.hash
rename to package/llvm-project/libclc/libclc.hash
diff --git a/package/libclc/libclc.mk b/package/llvm-project/libclc/libclc.mk
similarity index 93%
rename from package/libclc/libclc.mk
rename to package/llvm-project/libclc/libclc.mk
index 5d246cf4f8..406adfdb53 100644
--- a/package/libclc/libclc.mk
+++ b/package/llvm-project/libclc/libclc.mk
@@ -5,7 +5,7 @@
################################################################################
LIBCLC_VERSION = 13.0.1
-LIBCLC_SITE = https://github.com/llvm/llvm-project/releases/download/llvmorg-$(LIBCLC_VERSION)
+LIBCLC_SITE = $(LLVM_PROJECT_SITE)
LIBCLC_SOURCE = libclc-$(LIBCLC_VERSION).src.tar.xz
LIBCLC_LICENSE = Apache-2.0 with exceptions or MIT
LIBCLC_LICENSE_FILES = LICENSE.TXT
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [Buildroot] [PATCH v4 06/10] package/libclc: move to llvm-project subfolder
2023-06-15 13:43 ` [Buildroot] [PATCH v4 06/10] package/libclc: " Sebastian Weyer
@ 2023-07-20 17:31 ` Adam Duskett
0 siblings, 0 replies; 26+ messages in thread
From: Adam Duskett @ 2023-07-20 17:31 UTC (permalink / raw)
To: Sebastian Weyer
Cc: Lang Daniel, Romain Naour, Valentin Korenblit, Romain Naour,
buildroot
[-- Attachment #1.1: Type: text/plain, Size: 5239 bytes --]
Tested-by: Adam Duskett <adam.duskett@amarulasolutions.com>
On Thu, Jun 15, 2023 at 6:45 AM Sebastian Weyer <sebastian.weyer@smile.fr>
wrote:
> From: Lang Daniel <d.lang@abatec.at>
>
> To make version bumping easier, move libclc to a new llvm-project subfolder
> and specify site for the project. Since the version of libclc is more
> recent than the version specified in LLVM_PROJECT_VERSION, don't change
> it for now until a later update.
>
> Signed-off-by: Daniel Lang <d.lang@abatec.at>
> Signed-off-by: Romain Naour <romain.naour@smile.fr>
> Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
> ---
> v4: change inaccuracies in commit message
> - move llvm -> move libclc
> - libclc version is not specified through LLVM_PROJECT_VERSION since
> it is already at version 13.0.1 as opposed to version 11.1.0
>
> v3: move libclc before llvm 15.0.3 version bump commit
> move libclc entry in package/Config.in
> ---
> DEVELOPERS | 4 ++--
> package/Config.in | 2 +-
> .../libclc/0001-support-out-of-tree-build.patch | 0
> package/{ => llvm-project}/libclc/Config.in | 0
> package/{ => llvm-project}/libclc/libclc.hash | 0
> package/{ => llvm-project}/libclc/libclc.mk | 2 +-
> 6 files changed, 4 insertions(+), 4 deletions(-)
> rename package/{ =>
> llvm-project}/libclc/0001-support-out-of-tree-build.patch (100%)
> rename package/{ => llvm-project}/libclc/Config.in (100%)
> rename package/{ => llvm-project}/libclc/libclc.hash (100%)
> rename package/{ => llvm-project}/libclc/libclc.mk (93%)
>
> diff --git a/DEVELOPERS b/DEVELOPERS
> index 1fb8295a7a..48907a5cd8 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -2532,12 +2532,12 @@ F: package/irrlicht/
> F: package/liblinear/
> F: package/lensfun/
> F: package/libbpf/
> -F: package/libclc/
> F: package/libgta/
> F: package/libiec61850/
> F: package/libspatialindex/
> F: package/linux-syscall-support/
> F: package/llvm-project/clang/
> +F: package/llvm-project/libclc/
> F: package/llvm-project/llvm/
> F: package/lugaru/
> F: package/mcelog/
> @@ -2947,8 +2947,8 @@ F: package/tinyssh/
>
> N: Valentin Korenblit <valentinkorenblit@gmail.com>
> F: package/clinfo/
> -F: package/libclc/
> F: package/llvm-project/clang/
> +F: package/llvm-project/libclc/
> F: package/llvm-project/llvm/
>
> N: Vanya Sergeev <vsergeev@gmail.com>
> diff --git a/package/Config.in b/package/Config.in
> index 17343a8e86..42cf0b170e 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -2065,7 +2065,6 @@ menu "Other"
> source "package/libcap/Config.in"
> source "package/libcap-ng/Config.in"
> source "package/libcgroup/Config.in"
> - source "package/libclc/Config.in"
> source "package/libcofi/Config.in"
> source "package/libcorrect/Config.in"
> source "package/libcrossguid/Config.in"
> @@ -2128,6 +2127,7 @@ endif
> source "package/liquid-dsp/Config.in"
> source "package/llvm-project/clang/Config.in"
> source "package/llvm-project/compiler-rt/Config.in"
> + source "package/llvm-project/libclc/Config.in"
> source "package/llvm-project/llvm/Config.in"
> source "package/lttng-libust/Config.in"
> source "package/matio/Config.in"
> diff --git a/package/libclc/0001-support-out-of-tree-build.patch
> b/package/llvm-project/libclc/0001-support-out-of-tree-build.patch
> similarity index 100%
> rename from package/libclc/0001-support-out-of-tree-build.patch
> rename to package/llvm-project/libclc/0001-support-out-of-tree-build.patch
> diff --git a/package/libclc/Config.in
> b/package/llvm-project/libclc/Config.in
> similarity index 100%
> rename from package/libclc/Config.in
> rename to package/llvm-project/libclc/Config.in
> diff --git a/package/libclc/libclc.hash
> b/package/llvm-project/libclc/libclc.hash
> similarity index 100%
> rename from package/libclc/libclc.hash
> rename to package/llvm-project/libclc/libclc.hash
> diff --git a/package/libclc/libclc.mk b/package/llvm-project/libclc/
> libclc.mk
> similarity index 93%
> rename from package/libclc/libclc.mk
> rename to package/llvm-project/libclc/libclc.mk
> index 5d246cf4f8..406adfdb53 100644
> --- a/package/libclc/libclc.mk
> +++ b/package/llvm-project/libclc/libclc.mk
> @@ -5,7 +5,7 @@
>
> ################################################################################
>
> LIBCLC_VERSION = 13.0.1
> -LIBCLC_SITE =
> https://github.com/llvm/llvm-project/releases/download/llvmorg-$(LIBCLC_VERSION)
> +LIBCLC_SITE = $(LLVM_PROJECT_SITE)
> LIBCLC_SOURCE = libclc-$(LIBCLC_VERSION).src.tar.xz
> LIBCLC_LICENSE = Apache-2.0 with exceptions or MIT
> LIBCLC_LICENSE_FILES = LICENSE.TXT
> --
> 2.34.1
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
>
[-- Attachment #1.2: Type: text/html, Size: 7428 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Buildroot] [PATCH v4 07/10] package/llvm-project/llvm-cmake: new package
2023-06-15 13:43 [Buildroot] [PATCH v4 00/10] group llvm projects and bump to version 15.0.3 Sebastian Weyer
` (5 preceding siblings ...)
2023-06-15 13:43 ` [Buildroot] [PATCH v4 06/10] package/libclc: " Sebastian Weyer
@ 2023-06-15 13:43 ` Sebastian Weyer
2023-07-20 17:31 ` Adam Duskett
2023-06-15 13:43 ` [Buildroot] [PATCH v4 08/10] package/llvm-project/llvm-libunwind: " Sebastian Weyer
` (4 subsequent siblings)
11 siblings, 1 reply; 26+ messages in thread
From: Sebastian Weyer @ 2023-06-15 13:43 UTC (permalink / raw)
To: buildroot; +Cc: Lang Daniel, Romain Naour, Sebastian Weyer, Thomas Petazzoni
From: Lang Daniel <d.lang@abatec.at>
This is a small host package containing shared cmake modules
that are needed by various projects during configuration.
For example llvm 15 needs it.
Signed-off-by: Daniel Lang <d.lang@abatec.at>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
---
v3: - force llvm-cmake version to 15.0.3 since LLVM_PROJECT_VERSION is
still at 11.1.0
- Keep cp as install command since there is no CMakefiles.txt
- Add License information sinec it come from llvm-project
---
package/llvm-project/llvm-cmake/llvm-cmake.hash | 2 ++
package/llvm-project/llvm-cmake/llvm-cmake.mk | 17 +++++++++++++++++
2 files changed, 19 insertions(+)
create mode 100644 package/llvm-project/llvm-cmake/llvm-cmake.hash
create mode 100644 package/llvm-project/llvm-cmake/llvm-cmake.mk
diff --git a/package/llvm-project/llvm-cmake/llvm-cmake.hash b/package/llvm-project/llvm-cmake/llvm-cmake.hash
new file mode 100644
index 0000000000..862c5d92e8
--- /dev/null
+++ b/package/llvm-project/llvm-cmake/llvm-cmake.hash
@@ -0,0 +1,2 @@
+# locally calculated
+sha256 21cf3f52c53dc8b8972122ae35a5c18de09c7df693b48b5cd8553c3e3fed090d cmake-15.0.3.src.tar.xz
diff --git a/package/llvm-project/llvm-cmake/llvm-cmake.mk b/package/llvm-project/llvm-cmake/llvm-cmake.mk
new file mode 100644
index 0000000000..b305797891
--- /dev/null
+++ b/package/llvm-project/llvm-cmake/llvm-cmake.mk
@@ -0,0 +1,17 @@
+################################################################################
+#
+# llvm-cmake
+#
+################################################################################
+
+LLVM_CMAKE_VERSION = 15.0.3
+LLVM_CMAKE_SITE = $(LLVM_PROJECT_SITE)
+LLVM_CMAKE_SOURCE = cmake-$(LLVM_CMAKE_VERSION).src.tar.xz
+LLVM_CMAKE_LICENSE = Apache-2.0 with exceptions
+
+define HOST_LLVM_CMAKE_INSTALL_CMDS
+ mkdir -p $(HOST_DIR)/lib/cmake/llvm
+ cp -Rv $(@D)/Modules/* $(HOST_DIR)/lib/cmake/llvm
+endef
+
+$(eval $(host-generic-package))
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [Buildroot] [PATCH v4 07/10] package/llvm-project/llvm-cmake: new package
2023-06-15 13:43 ` [Buildroot] [PATCH v4 07/10] package/llvm-project/llvm-cmake: new package Sebastian Weyer
@ 2023-07-20 17:31 ` Adam Duskett
0 siblings, 0 replies; 26+ messages in thread
From: Adam Duskett @ 2023-07-20 17:31 UTC (permalink / raw)
To: Sebastian Weyer; +Cc: Lang Daniel, Romain Naour, Thomas Petazzoni, buildroot
[-- Attachment #1.1: Type: text/plain, Size: 2527 bytes --]
Tested-by: Adam Duskett <adam.duskett@amarulasolutions.com>
On Thu, Jun 15, 2023 at 6:46 AM Sebastian Weyer <sebastian.weyer@smile.fr>
wrote:
> From: Lang Daniel <d.lang@abatec.at>
>
> This is a small host package containing shared cmake modules
> that are needed by various projects during configuration.
> For example llvm 15 needs it.
>
> Signed-off-by: Daniel Lang <d.lang@abatec.at>
> Signed-off-by: Romain Naour <romain.naour@smile.fr>
> Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
> ---
> v3: - force llvm-cmake version to 15.0.3 since LLVM_PROJECT_VERSION is
> still at 11.1.0
> - Keep cp as install command since there is no CMakefiles.txt
> - Add License information sinec it come from llvm-project
> ---
> package/llvm-project/llvm-cmake/llvm-cmake.hash | 2 ++
> package/llvm-project/llvm-cmake/llvm-cmake.mk | 17 +++++++++++++++++
> 2 files changed, 19 insertions(+)
> create mode 100644 package/llvm-project/llvm-cmake/llvm-cmake.hash
> create mode 100644 package/llvm-project/llvm-cmake/llvm-cmake.mk
>
> diff --git a/package/llvm-project/llvm-cmake/llvm-cmake.hash
> b/package/llvm-project/llvm-cmake/llvm-cmake.hash
> new file mode 100644
> index 0000000000..862c5d92e8
> --- /dev/null
> +++ b/package/llvm-project/llvm-cmake/llvm-cmake.hash
> @@ -0,0 +1,2 @@
> +# locally calculated
> +sha256 21cf3f52c53dc8b8972122ae35a5c18de09c7df693b48b5cd8553c3e3fed090d
> cmake-15.0.3.src.tar.xz
> diff --git a/package/llvm-project/llvm-cmake/llvm-cmake.mk
> b/package/llvm-project/llvm-cmake/llvm-cmake.mk
> new file mode 100644
> index 0000000000..b305797891
> --- /dev/null
> +++ b/package/llvm-project/llvm-cmake/llvm-cmake.mk
> @@ -0,0 +1,17 @@
>
> +################################################################################
> +#
> +# llvm-cmake
> +#
>
> +################################################################################
> +
> +LLVM_CMAKE_VERSION = 15.0.3
> +LLVM_CMAKE_SITE = $(LLVM_PROJECT_SITE)
> +LLVM_CMAKE_SOURCE = cmake-$(LLVM_CMAKE_VERSION).src.tar.xz
> +LLVM_CMAKE_LICENSE = Apache-2.0 with exceptions
> +
> +define HOST_LLVM_CMAKE_INSTALL_CMDS
> + mkdir -p $(HOST_DIR)/lib/cmake/llvm
> + cp -Rv $(@D)/Modules/* $(HOST_DIR)/lib/cmake/llvm
> +endef
> +
> +$(eval $(host-generic-package))
> --
> 2.34.1
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
>
[-- Attachment #1.2: Type: text/html, Size: 3774 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Buildroot] [PATCH v4 08/10] package/llvm-project/llvm-libunwind: new package
2023-06-15 13:43 [Buildroot] [PATCH v4 00/10] group llvm projects and bump to version 15.0.3 Sebastian Weyer
` (6 preceding siblings ...)
2023-06-15 13:43 ` [Buildroot] [PATCH v4 07/10] package/llvm-project/llvm-cmake: new package Sebastian Weyer
@ 2023-06-15 13:43 ` Sebastian Weyer
2023-07-20 17:32 ` Adam Duskett
2023-06-15 13:43 ` [Buildroot] [PATCH v4 09/10] package/llvm-project: bump to version 15.0.3 Sebastian Weyer
` (3 subsequent siblings)
11 siblings, 1 reply; 26+ messages in thread
From: Sebastian Weyer @ 2023-06-15 13:43 UTC (permalink / raw)
To: buildroot; +Cc: Lang Daniel, Romain Naour, Samuel Martin, Sebastian Weyer
From: Lang Daniel <d.lang@abatec.at>
Starting with version 15, lld needs the llvm implementation
of libunwind, therefore it is added as a host package.
Signed-off-by: Daniel Lang <d.lang@abatec.at>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
---
v3: force llvm-libunwind version to 15.0.3 since LLVM_PROJECT_VERSION
is still at 11.1.0
---
.../llvm-libunwind/llvm-libunwind.hash | 3 +++
.../llvm-libunwind/llvm-libunwind.mk | 18 ++++++++++++++++++
2 files changed, 21 insertions(+)
create mode 100644 package/llvm-project/llvm-libunwind/llvm-libunwind.hash
create mode 100644 package/llvm-project/llvm-libunwind/llvm-libunwind.mk
diff --git a/package/llvm-project/llvm-libunwind/llvm-libunwind.hash b/package/llvm-project/llvm-libunwind/llvm-libunwind.hash
new file mode 100644
index 0000000000..86775f5dba
--- /dev/null
+++ b/package/llvm-project/llvm-libunwind/llvm-libunwind.hash
@@ -0,0 +1,3 @@
+# locally computed
+sha256 0ab6e07bf05359e242e9ea80e4089b819914867fa997a715e324e584bcfdf114 libunwind-15.0.3.src.tar.xz
+sha256 b5efebcaca80879234098e52d1725e6d9eb8fb96a19fce625d39184b705f7b6d LICENSE.TXT
diff --git a/package/llvm-project/llvm-libunwind/llvm-libunwind.mk b/package/llvm-project/llvm-libunwind/llvm-libunwind.mk
new file mode 100644
index 0000000000..825e1beac0
--- /dev/null
+++ b/package/llvm-project/llvm-libunwind/llvm-libunwind.mk
@@ -0,0 +1,18 @@
+################################################################################
+#
+# llvm-libunwind
+#
+################################################################################
+
+LLVM_LIBUNWIND_VERSION = 15.0.3
+LLVM_LIBUNWIND_SITE = $(LLVM_PROJECT_SITE)
+LLVM_LIBUNWIND_SOURCE = libunwind-$(LLVM_LIBUNWIND_VERSION).src.tar.xz
+LLVM_LIBUNWIND_LICENSE = Apache-2.0 with exceptions
+LLVM_LIBUNWIND_LICENSE_FILES = LICENSE.TXT
+LLVM_LIBUNWIND_SUPPORTS_IN_SOURCE_BUILD = NO
+
+HOST_LLVM_LIBUNWIND_CONF_OPTS += \
+ -DCMAKE_MODULE_PATH="$(HOST_DIR)/lib/cmake/llvm" \
+ -DLIBUNWIND_INSTALL_HEADERS=ON
+
+$(eval $(host-cmake-package))
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [Buildroot] [PATCH v4 08/10] package/llvm-project/llvm-libunwind: new package
2023-06-15 13:43 ` [Buildroot] [PATCH v4 08/10] package/llvm-project/llvm-libunwind: " Sebastian Weyer
@ 2023-07-20 17:32 ` Adam Duskett
0 siblings, 0 replies; 26+ messages in thread
From: Adam Duskett @ 2023-07-20 17:32 UTC (permalink / raw)
To: Sebastian Weyer; +Cc: Lang Daniel, Romain Naour, Samuel Martin, buildroot
[-- Attachment #1.1: Type: text/plain, Size: 2621 bytes --]
Tested-by: Adam Duskett <adam.duskett@amarulasolutions.com>
On Thu, Jun 15, 2023 at 6:46 AM Sebastian Weyer <sebastian.weyer@smile.fr>
wrote:
> From: Lang Daniel <d.lang@abatec.at>
>
> Starting with version 15, lld needs the llvm implementation
> of libunwind, therefore it is added as a host package.
>
> Signed-off-by: Daniel Lang <d.lang@abatec.at>
> Signed-off-by: Romain Naour <romain.naour@smile.fr>
> Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
> ---
> v3: force llvm-libunwind version to 15.0.3 since LLVM_PROJECT_VERSION
> is still at 11.1.0
> ---
> .../llvm-libunwind/llvm-libunwind.hash | 3 +++
> .../llvm-libunwind/llvm-libunwind.mk | 18 ++++++++++++++++++
> 2 files changed, 21 insertions(+)
> create mode 100644 package/llvm-project/llvm-libunwind/llvm-libunwind.hash
> create mode 100644 package/llvm-project/llvm-libunwind/llvm-libunwind.mk
>
> diff --git a/package/llvm-project/llvm-libunwind/llvm-libunwind.hash
> b/package/llvm-project/llvm-libunwind/llvm-libunwind.hash
> new file mode 100644
> index 0000000000..86775f5dba
> --- /dev/null
> +++ b/package/llvm-project/llvm-libunwind/llvm-libunwind.hash
> @@ -0,0 +1,3 @@
> +# locally computed
> +sha256 0ab6e07bf05359e242e9ea80e4089b819914867fa997a715e324e584bcfdf114
> libunwind-15.0.3.src.tar.xz
> +sha256 b5efebcaca80879234098e52d1725e6d9eb8fb96a19fce625d39184b705f7b6d
> LICENSE.TXT
> diff --git a/package/llvm-project/llvm-libunwind/llvm-libunwind.mk
> b/package/llvm-project/llvm-libunwind/llvm-libunwind.mk
> new file mode 100644
> index 0000000000..825e1beac0
> --- /dev/null
> +++ b/package/llvm-project/llvm-libunwind/llvm-libunwind.mk
> @@ -0,0 +1,18 @@
>
> +################################################################################
> +#
> +# llvm-libunwind
> +#
>
> +################################################################################
> +
> +LLVM_LIBUNWIND_VERSION = 15.0.3
> +LLVM_LIBUNWIND_SITE = $(LLVM_PROJECT_SITE)
> +LLVM_LIBUNWIND_SOURCE = libunwind-$(LLVM_LIBUNWIND_VERSION).src.tar.xz
> +LLVM_LIBUNWIND_LICENSE = Apache-2.0 with exceptions
> +LLVM_LIBUNWIND_LICENSE_FILES = LICENSE.TXT
> +LLVM_LIBUNWIND_SUPPORTS_IN_SOURCE_BUILD = NO
> +
> +HOST_LLVM_LIBUNWIND_CONF_OPTS += \
> + -DCMAKE_MODULE_PATH="$(HOST_DIR)/lib/cmake/llvm" \
> + -DLIBUNWIND_INSTALL_HEADERS=ON
> +
> +$(eval $(host-cmake-package))
> --
> 2.34.1
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
>
[-- Attachment #1.2: Type: text/html, Size: 3900 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Buildroot] [PATCH v4 09/10] package/llvm-project: bump to version 15.0.3
2023-06-15 13:43 [Buildroot] [PATCH v4 00/10] group llvm projects and bump to version 15.0.3 Sebastian Weyer
` (7 preceding siblings ...)
2023-06-15 13:43 ` [Buildroot] [PATCH v4 08/10] package/llvm-project/llvm-libunwind: " Sebastian Weyer
@ 2023-06-15 13:43 ` Sebastian Weyer
2023-07-12 13:06 ` Romain Naour
2023-06-15 13:43 ` [Buildroot] [PATCH v4 10/10] DEVELOPERS: add Daniel Lang for llvm-project Sebastian Weyer
` (2 subsequent siblings)
11 siblings, 1 reply; 26+ messages in thread
From: Sebastian Weyer @ 2023-06-15 13:43 UTC (permalink / raw)
To: buildroot
Cc: Joseph Kogut, Bernd Kuhls, Sebastian Weyer, Lang Daniel,
Romain Naour, Romain Naour, Valentin Korenblit
From: Lang Daniel <d.lang@abatec.at>
- Add new build dependencies to lld and llvm
- Add host-gcc and gcc >= 7.x dependency since clang doesn't build with gcc 6.3
[ 28%] Building CXX object utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/TableGen.cpp.o
output/build/host-clang-15.0.3/utils/TableGen/RISCVVEmitter.cpp: In instantiation of ‘{anonymous}::SemaSignatureTable::init(llvm::ArrayRef<{anonymous}::SemaRecord>)::<lambda(auto:2&)> [with auto:2 = const llvm::SmallVector<clang::RISCV::PrototypeDescriptor>]’:
/usr/include/c++/6/bits/stl_algo.h:3769:5: required from ‘_Funct std::for_each(_IIter, _IIter, _Funct) [with _IIter = std::_Rb_tree_const_iterator<llvm::SmallVector<clang::RISCV::PrototypeDescriptor> >; _Funct = {anonymous}::SemaSignatureTable::init(llvm::ArrayRef<{anonymous}::SemaRecord>)::<lambda(auto:2&)>]’
output/host/include/llvm/ADT/STLExtras.h:1611:23: required from ‘UnaryFunction llvm::for_each(R&&, UnaryFunction) [with R = std::set<llvm::SmallVector<clang::RISCV::PrototypeDescriptor>, {anonymous}::SemaSignatureTable::init(llvm::ArrayRef<{anonymous}::SemaRecord>)::Compare>&; UnaryFunction = {anonymous}::SemaSignatureTable::init(llvm::ArrayRef<{anonymous}::SemaRecord>)::<lambda(auto:2&)>]’
output/build/host-clang-15.0.3/utils/TableGen/RISCVVEmitter.cpp:249:64: required from here
output/build/host-clang-15.0.3/utils/TableGen/RISCVVEmitter.cpp:249:50: error: cannot call member function ‘void {anonymous}::SemaSignatureTable::insert(llvm::ArrayRef<clang::RISCV::PrototypeDescriptor>)’ without object
llvm::for_each(Signatures, [this](auto &Sig) { insert(Sig); });
^~~~~~
utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/build.make:313: recipe for target 'utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/RISCVVEmitter.cpp.o' failed
make[4]: *** [utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/RISCVVEmitter.cpp.o] Error 1
Indeed LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN is OFF, the CheckCompilerVersion.cmake
trigger an error if gcc < 7.x. Indded since llvm 15 this option check for C++17 [1]
The last gcc 7.x version (7.5) has been released in 2019.
Fixing llvm/clang issues for old compiler maybe it's not worth it.
- Remove LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN since
gcc >= 7 is mendatory.
When updating LLVM, we also need to update the version of
SPIRV_LLVM_TRANSLATOR because its CMakeLists.txt verifies the LLVM
base version [2].
The patch
package/llvm/0002-Add-missing-cstdint-header-to-Signals.h.patch has
been included in tag llvmorg-15.0.0 of llvm-project.
[1] https://github.com/llvm/llvm-project/commit/4c72deb613d9d8838785b431facb3eb480fb2f51
[2] https://github.com/KhronosGroup/SPIRV-LLVM-Translator/blob/5be08b8bb91fc6ca62857792c177bc7479e5e3db/CMakeLists.txt#LL82C6-L82C6
Signed-off-by: Daniel Lang <d.lang@abatec.at>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
---
v4: - update spirv-llvm-translator version as well
- remove package/llvm/0002-Add-missing-cstdint-header-to-Signals.h.patch
v3: - add libclc bump
- llvm, clang, lld, mesa3d (llvm): add gcc >= 7.x dependency
Changes v1 -> v2:
- Bump to 15.0.3 instead of 15.0.1
- llvm: use CMAKE_HOST_C_COMPILER instead of HOSTCC
---
package/llvm-project/clang/Config.in | 10 +++---
package/llvm-project/clang/clang.hash | 2 +-
package/llvm-project/clang/clang.mk | 8 +----
package/llvm-project/compiler-rt/Config.in | 6 ++--
.../llvm-project/compiler-rt/compiler-rt.hash | 2 +-
.../llvm-project/compiler-rt/compiler-rt.mk | 3 +-
package/llvm-project/libclc/Config.in | 6 ++--
package/llvm-project/libclc/libclc.hash | 2 +-
package/llvm-project/libclc/libclc.mk | 2 +-
package/llvm-project/lld/Config.in.host | 6 ++--
package/llvm-project/lld/lld.hash | 2 +-
package/llvm-project/lld/lld.mk | 8 +----
package/llvm-project/llvm-cmake/llvm-cmake.mk | 2 +-
.../llvm-libunwind/llvm-libunwind.mk | 2 +-
package/llvm-project/llvm-project.mk | 4 +--
.../llvm/0001-nfc-Fix-missing-include.patch | 24 -------------
package/llvm-project/llvm/Config.in | 10 +++---
package/llvm-project/llvm/llvm.hash | 2 +-
package/llvm-project/llvm/llvm.mk | 22 ++++++------
| 34 -------------------
package/mesa3d/Config.in | 10 +++---
.../spirv-llvm-translator.hash | 2 +-
.../spirv-llvm-translator.mk | 4 +--
23 files changed, 54 insertions(+), 119 deletions(-)
delete mode 100644 package/llvm-project/llvm/0001-nfc-Fix-missing-include.patch
delete mode 100644 package/llvm/0002-Add-missing-cstdint-header-to-Signals.h.patch
diff --git a/package/llvm-project/clang/Config.in b/package/llvm-project/clang/Config.in
index e4d455781e..2e23888720 100644
--- a/package/llvm-project/clang/Config.in
+++ b/package/llvm-project/clang/Config.in
@@ -1,13 +1,13 @@
config BR2_PACKAGE_CLANG
bool "clang"
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
- depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
+ depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_INSTALL_LIBSTDCPP
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # std::shared_future
depends on !BR2_STATIC_LIBS
depends on BR2_USE_WCHAR # std::wstring
- depends on BR2_HOST_GCC_AT_LEAST_5
+ depends on BR2_HOST_GCC_AT_LEAST_7
select BR2_PACKAGE_LLVM
help
Clang is a C/C++, Objective C/C++ and OpenCL C front-end
@@ -15,12 +15,12 @@ config BR2_PACKAGE_CLANG
http://clang.llvm.org
-comment "clang needs a toolchain w/ wchar, threads, C++, gcc >= 5, dynamic library, host gcc >= 5"
+comment "clang needs a toolchain w/ wchar, threads, C++, gcc >= 7, dynamic library, host gcc >= 7"
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || \
- !BR2_TOOLCHAIN_GCC_AT_LEAST_5 \
+ !BR2_TOOLCHAIN_GCC_AT_LEAST_7 \
|| BR2_STATIC_LIBS || !BR2_USE_WCHAR \
- || !BR2_HOST_GCC_AT_LEAST_5
+ || !BR2_HOST_GCC_AT_LEAST_7
comment "clang needs a toolchain not affected by GCC bug 64735"
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
diff --git a/package/llvm-project/clang/clang.hash b/package/llvm-project/clang/clang.hash
index 0136b80664..52c755cfb3 100644
--- a/package/llvm-project/clang/clang.hash
+++ b/package/llvm-project/clang/clang.hash
@@ -1,3 +1,3 @@
# locally calculated
-sha256 0a8288f065d1f57cb6d96da4d2965cbea32edc572aa972e466e954d17148558b clang-11.1.0.src.tar.xz
+sha256 96036052694e703d159c995bda203b59d1ff185c6879189b9eba837726e1738c clang-15.0.3.src.tar.xz
sha256 ebcd9bbf783a73d05c53ba4d586b8d5813dcdf3bbec50265860ccc885e606f47 LICENSE.TXT
diff --git a/package/llvm-project/clang/clang.mk b/package/llvm-project/clang/clang.mk
index 0943e21a8c..0bafd6461b 100644
--- a/package/llvm-project/clang/clang.mk
+++ b/package/llvm-project/clang/clang.mk
@@ -17,13 +17,6 @@ CLANG_INSTALL_STAGING = YES
HOST_CLANG_DEPENDENCIES = host-llvm host-libxml2
CLANG_DEPENDENCIES = llvm host-clang
-# LLVM >= 9.0 will soon require C++14 support, building llvm 8.x using a
-# toolchain using gcc < 5.1 gives an error but actually still works. Setting
-# this option makes it still build with gcc >= 4.8.
-# https://reviews.llvm.org/D57264
-HOST_CLANG_CONF_OPTS += -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON
-CLANG_CONF_OPTS += -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON
-
# This option is needed, otherwise multiple shared libs
# (libclangAST.so, libclangBasic.so, libclangFrontend.so, etc.) will
# be generated. As a final shared lib containing all these components
@@ -62,6 +55,7 @@ CLANG_CONF_OPTS += \
HOST_CLANG_CONF_OPTS += -DLLVM_DIR=$(HOST_DIR)/lib/cmake/llvm \
-DCLANG_DEFAULT_LINKER=$(TARGET_LD)
CLANG_CONF_OPTS += -DLLVM_DIR=$(STAGING_DIR)/usr/lib/cmake/llvm \
+ -DCMAKE_MODULE_PATH=$(HOST_DIR)/lib/cmake/llvm \
-DCLANG_TABLEGEN:FILEPATH=$(HOST_DIR)/bin/clang-tblgen \
-DLLVM_TABLEGEN_EXE:FILEPATH=$(HOST_DIR)/bin/llvm-tblgen
diff --git a/package/llvm-project/compiler-rt/Config.in b/package/llvm-project/compiler-rt/Config.in
index 02169b66c0..e8f2ac4201 100644
--- a/package/llvm-project/compiler-rt/Config.in
+++ b/package/llvm-project/compiler-rt/Config.in
@@ -2,7 +2,7 @@ config BR2_PACKAGE_COMPILER_RT
bool "compiler-rt"
depends on BR2_PACKAGE_LLVM
depends on BR2_TOOLCHAIN_USES_GLIBC # asan lib requires
- depends on BR2_HOST_GCC_AT_LEAST_5 # host-clang
+ depends on BR2_HOST_GCC_AT_LEAST_7 # host-clang
help
A collection of runtime libraries primarily used by clang and
llvm to provide builtins, sanitizer runtimes, and profiling
@@ -10,6 +10,6 @@ config BR2_PACKAGE_COMPILER_RT
https://compiler-rt.llvm.org/
-comment "compiler-rt requires llvm to be enabled, a glibc toolchain, host gcc >= 5"
+comment "compiler-rt requires llvm to be enabled, a glibc toolchain, host gcc >= 7"
depends on !BR2_PACKAGE_LLVM
- depends on !BR2_TOOLCHAIN_USES_GLIBC || !BR2_HOST_GCC_AT_LEAST_5
+ depends on !BR2_TOOLCHAIN_USES_GLIBC || !BR2_HOST_GCC_AT_LEAST_7
diff --git a/package/llvm-project/compiler-rt/compiler-rt.hash b/package/llvm-project/compiler-rt/compiler-rt.hash
index 8ee010ac5a..fe4e98164b 100644
--- a/package/llvm-project/compiler-rt/compiler-rt.hash
+++ b/package/llvm-project/compiler-rt/compiler-rt.hash
@@ -1,3 +1,3 @@
# Locally computed:
-sha256 def1fc00c764cd3abbba925c712ac38860a756a43b696b291f46fee09e453274 compiler-rt-11.1.0.src.tar.xz
+sha256 db958eee92d1571d8b7f76c1be8513817f1a888dcf6ced88aca871acfb0eeddd compiler-rt-15.0.3.src.tar.xz
sha256 1a8f1058753f1ba890de984e48f0242a3a5c29a6a8f2ed9fd813f36985387e8d LICENSE.TXT
diff --git a/package/llvm-project/compiler-rt/compiler-rt.mk b/package/llvm-project/compiler-rt/compiler-rt.mk
index 84add60801..026650c7c8 100644
--- a/package/llvm-project/compiler-rt/compiler-rt.mk
+++ b/package/llvm-project/compiler-rt/compiler-rt.mk
@@ -17,7 +17,8 @@ COMPILER_RT_INSTALL_TARGET = NO
COMPILER_RT_CONF_OPTS=-DCOMPILER_RT_STANDALONE_BUILD=OFF \
-DCOMPILER_RT_STANDALONE_BUILD=ON \
-DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=$(GNU_TARGET_NAME) \
- -DLLVM_CONFIG_PATH=$(HOST_DIR)/bin/llvm-config
+ -DLLVM_CONFIG_PATH=$(HOST_DIR)/bin/llvm-config \
+ -DCMAKE_MODULE_PATH=$(HOST_DIR)/lib/cmake/llvm
# The installation of the target runtime libraries defaults to DESTDIR, however
# host-clang resources directory needs a link so Clang can find the runtime
diff --git a/package/llvm-project/libclc/Config.in b/package/llvm-project/libclc/Config.in
index 938933fdd3..85eb888578 100644
--- a/package/llvm-project/libclc/Config.in
+++ b/package/llvm-project/libclc/Config.in
@@ -1,7 +1,7 @@
config BR2_PACKAGE_LIBCLC
bool "libclc"
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
- depends on BR2_HOST_GCC_AT_LEAST_5 # host-llvm
+ depends on BR2_HOST_GCC_AT_LEAST_7 # host-llvm
help
libclc is an open source, BSD licensed implementation of
the library requirements of the OpenCL C programming language,
@@ -9,6 +9,6 @@ config BR2_PACKAGE_LIBCLC
http://libclc.llvm.org/
-comment "libclc needs host gcc >= 5"
+comment "libclc needs host gcc >= 7"
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
- depends on !BR2_HOST_GCC_AT_LEAST_5
+ depends on !BR2_HOST_GCC_AT_LEAST_7
diff --git a/package/llvm-project/libclc/libclc.hash b/package/llvm-project/libclc/libclc.hash
index c496291d81..7140884f6c 100644
--- a/package/llvm-project/libclc/libclc.hash
+++ b/package/llvm-project/libclc/libclc.hash
@@ -1,3 +1,3 @@
# locally calculated
-sha256 8f0213e52e2fcaca3dfcc438f05d0e15e9b3c96fd6b0994a802b267dc1047a1d libclc-13.0.1.src.tar.xz
+sha256 07e8a2b31e07a8cc8a976a6bfd87797d2543d5a9530f449755bf5119acbdbe8e libclc-15.0.3.src.tar.xz
sha256 3c536c052db9afd997809e38785c9f2a9e54e2892330fa7c5b438e18a7413479 LICENSE.TXT
diff --git a/package/llvm-project/libclc/libclc.mk b/package/llvm-project/libclc/libclc.mk
index 406adfdb53..9f303d6d2f 100644
--- a/package/llvm-project/libclc/libclc.mk
+++ b/package/llvm-project/libclc/libclc.mk
@@ -4,7 +4,7 @@
#
################################################################################
-LIBCLC_VERSION = 13.0.1
+LIBCLC_VERSION = $(LLVM_PROJECT_VERSION)
LIBCLC_SITE = $(LLVM_PROJECT_SITE)
LIBCLC_SOURCE = libclc-$(LIBCLC_VERSION).src.tar.xz
LIBCLC_LICENSE = Apache-2.0 with exceptions or MIT
diff --git a/package/llvm-project/lld/Config.in.host b/package/llvm-project/lld/Config.in.host
index d015fdd520..3bed364a79 100644
--- a/package/llvm-project/lld/Config.in.host
+++ b/package/llvm-project/lld/Config.in.host
@@ -1,7 +1,7 @@
config BR2_PACKAGE_HOST_LLD
bool "host lld"
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS # llvm
- depends on BR2_HOST_GCC_AT_LEAST_5 # host-llvm
+ depends on BR2_HOST_GCC_AT_LEAST_7 # host-llvm
help
LLD is a linker from the LLVM project that is a drop-in
replacement for system linkers, and runs much faster than
@@ -10,6 +10,6 @@ config BR2_PACKAGE_HOST_LLD
https://lld.llvm.org/
-comment "host lld needs host gcc >= 5"
+comment "host lld needs host gcc >= 7"
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
- depends on !BR2_HOST_GCC_AT_LEAST_5
+ depends on !BR2_HOST_GCC_AT_LEAST_7
diff --git a/package/llvm-project/lld/lld.hash b/package/llvm-project/lld/lld.hash
index 6d56ffcaab..2d2598dbeb 100644
--- a/package/llvm-project/lld/lld.hash
+++ b/package/llvm-project/lld/lld.hash
@@ -1,3 +1,3 @@
# locally calculated
-sha256 017a788cbe1ecc4a949abf10755870519086d058a2e99f438829aef24f0c66ce lld-11.1.0.src.tar.xz
+sha256 cd5d0894a74b957ce78d62212c1df0b3876a7297593aaece6b0512285e3b8732 lld-15.0.3.src.tar.xz
sha256 f7891568956e34643eb6a0db1462db30820d40d7266e2a78063f2fe233ece5a0 LICENSE.TXT
diff --git a/package/llvm-project/lld/lld.mk b/package/llvm-project/lld/lld.mk
index 46ec3b13ff..539dd0bd71 100644
--- a/package/llvm-project/lld/lld.mk
+++ b/package/llvm-project/lld/lld.mk
@@ -10,13 +10,7 @@ LLD_SOURCE = lld-$(LLD_VERSION).src.tar.xz
LLD_LICENSE = Apache-2.0 with exceptions
LLD_LICENSE_FILES = LICENSE.TXT
LLD_SUPPORTS_IN_SOURCE_BUILD = NO
-HOST_LLD_DEPENDENCIES = host-llvm
-
-# LLVM > 9.0 will soon require C++14 support, building llvm <= 9.0 using a
-# toolchain using gcc < 5.1 gives an error but actually still works. Setting
-# this option makes it still build with gcc >= 4.8.
-# https://reviews.llvm.org/D57264
-HOST_LLD_CONF_OPTS += -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON
+HOST_LLD_DEPENDENCIES = host-llvm host-llvm-libunwind
# build as static libs as is done in llvm & clang
HOST_LLD_CONF_OPTS += -DBUILD_SHARED_LIBS=OFF
diff --git a/package/llvm-project/llvm-cmake/llvm-cmake.mk b/package/llvm-project/llvm-cmake/llvm-cmake.mk
index b305797891..33b6ba8339 100644
--- a/package/llvm-project/llvm-cmake/llvm-cmake.mk
+++ b/package/llvm-project/llvm-cmake/llvm-cmake.mk
@@ -4,7 +4,7 @@
#
################################################################################
-LLVM_CMAKE_VERSION = 15.0.3
+LLVM_CMAKE_VERSION = $(LLVM_PROJECT_VERSION)
LLVM_CMAKE_SITE = $(LLVM_PROJECT_SITE)
LLVM_CMAKE_SOURCE = cmake-$(LLVM_CMAKE_VERSION).src.tar.xz
LLVM_CMAKE_LICENSE = Apache-2.0 with exceptions
diff --git a/package/llvm-project/llvm-libunwind/llvm-libunwind.mk b/package/llvm-project/llvm-libunwind/llvm-libunwind.mk
index 825e1beac0..be9965a49a 100644
--- a/package/llvm-project/llvm-libunwind/llvm-libunwind.mk
+++ b/package/llvm-project/llvm-libunwind/llvm-libunwind.mk
@@ -4,7 +4,7 @@
#
################################################################################
-LLVM_LIBUNWIND_VERSION = 15.0.3
+LLVM_LIBUNWIND_VERSION = $(LLVM_PROJECT_VERSION)
LLVM_LIBUNWIND_SITE = $(LLVM_PROJECT_SITE)
LLVM_LIBUNWIND_SOURCE = libunwind-$(LLVM_LIBUNWIND_VERSION).src.tar.xz
LLVM_LIBUNWIND_LICENSE = Apache-2.0 with exceptions
diff --git a/package/llvm-project/llvm-project.mk b/package/llvm-project/llvm-project.mk
index 747a6f5647..5859ff7cfc 100644
--- a/package/llvm-project/llvm-project.mk
+++ b/package/llvm-project/llvm-project.mk
@@ -4,8 +4,8 @@
#
################################################################################
-LLVM_PROJECT_VERSION_MAJOR = 11
-LLVM_PROJECT_VERSION = $(LLVM_PROJECT_VERSION_MAJOR).1.0
+LLVM_PROJECT_VERSION_MAJOR = 15
+LLVM_PROJECT_VERSION = $(LLVM_PROJECT_VERSION_MAJOR).0.3
LLVM_PROJECT_SITE = https://github.com/llvm/llvm-project/releases/download/llvmorg-$(LLVM_PROJECT_VERSION)
include $(sort $(wildcard package/llvm-project/*/*.mk))
diff --git a/package/llvm-project/llvm/0001-nfc-Fix-missing-include.patch b/package/llvm-project/llvm/0001-nfc-Fix-missing-include.patch
deleted file mode 100644
index 62111ca138..0000000000
--- a/package/llvm-project/llvm/0001-nfc-Fix-missing-include.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-From b498303066a63a203d24f739b2d2e0e56dca70d1 Mon Sep 17 00:00:00 2001
-From: serge-sans-paille <sguelton@redhat.com>
-Date: Tue, 10 Nov 2020 14:55:25 +0100
-Subject: [PATCH] [nfc] Fix missing include
-
-[Retrieved (and backported) from:
-https://github.com/llvm/llvm-project/commit/b498303066a63a203d24f739b2d2e0e56dca70d1]
-Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
----
- llvm/utils/benchmark/src/benchmark_register.h | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/utils/benchmark/src/benchmark_register.h b/utils/benchmark/src/benchmark_register.h
-index 0705e219f2fa2..4caa5ad4da079 100644
---- a/utils/benchmark/src/benchmark_register.h
-+++ b/utils/benchmark/src/benchmark_register.h
-@@ -1,6 +1,7 @@
- #ifndef BENCHMARK_REGISTER_H
- #define BENCHMARK_REGISTER_H
-
-+#include <limits>
- #include <vector>
-
- #include "check.h"
diff --git a/package/llvm-project/llvm/Config.in b/package/llvm-project/llvm/Config.in
index d9d30a5ba5..ebb0fca66a 100644
--- a/package/llvm-project/llvm/Config.in
+++ b/package/llvm-project/llvm/Config.in
@@ -17,13 +17,13 @@ config BR2_PACKAGE_LLVM_TARGET_ARCH
config BR2_PACKAGE_LLVM
bool "llvm"
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
- depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
+ depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_INSTALL_LIBSTDCPP
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # std::shared_future
depends on !BR2_STATIC_LIBS
depends on BR2_USE_WCHAR # std::wstring
- depends on BR2_HOST_GCC_AT_LEAST_5 # host-llvm
+ depends on BR2_HOST_GCC_AT_LEAST_7 # host-llvm
help
The LLVM Project is a collection of modular and reusable
compiler and toolchain technologies.
@@ -59,12 +59,12 @@ config BR2_PACKAGE_LLVM_BPF
endif
-comment "llvm needs a toolchain w/ wchar, threads, C++, gcc >= 5, dynamic library, host gcc >= 5"
+comment "llvm needs a toolchain w/ wchar, threads, C++, gcc >= 7, dynamic library, host gcc >= 7"
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || \
- !BR2_TOOLCHAIN_GCC_AT_LEAST_5 \
+ !BR2_TOOLCHAIN_GCC_AT_LEAST_7 \
|| BR2_STATIC_LIBS || !BR2_USE_WCHAR \
- || !BR2_HOST_GCC_AT_LEAST_5
+ || !BR2_HOST_GCC_AT_LEAST_7
comment "llvm needs a toolchain not affected by GCC bug 64735"
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
diff --git a/package/llvm-project/llvm/llvm.hash b/package/llvm-project/llvm/llvm.hash
index e7f79492de..df9aa88411 100644
--- a/package/llvm-project/llvm/llvm.hash
+++ b/package/llvm-project/llvm/llvm.hash
@@ -1,3 +1,3 @@
# locally calculated
-sha256 ce8508e318a01a63d4e8b3090ab2ded3c598a50258cc49e2625b9120d4c03ea5 llvm-11.1.0.src.tar.xz
+sha256 c39aec729662416dcbf0bfe53a9786b34e7d93d02908a0779a2f6d83ad0a4a27 llvm-15.0.3.src.tar.xz
sha256 8d85c1057d742e597985c7d4e6320b015a9139385cff4cbae06ffc0ebe89afee LICENSE.TXT
diff --git a/package/llvm-project/llvm/llvm.mk b/package/llvm-project/llvm/llvm.mk
index 1adad17b16..556a2f8c35 100644
--- a/package/llvm-project/llvm/llvm.mk
+++ b/package/llvm-project/llvm/llvm.mk
@@ -13,16 +13,16 @@ LLVM_CPE_ID_VENDOR = llvm
LLVM_SUPPORTS_IN_SOURCE_BUILD = NO
LLVM_INSTALL_STAGING = YES
-# LLVM >= 9.0 can use python3 to build.
-HOST_LLVM_DEPENDENCIES = host-python3
+HOST_LLVM_DEPENDENCIES = host-python3 host-llvm-cmake
LLVM_DEPENDENCIES = host-llvm
-# LLVM >= 9.0 will soon require C++14 support, building llvm 8.x using a
-# toolchain using gcc < 5.1 gives an error but actually still works. Setting
-# this option makes it still build with gcc >= 4.8.
-# https://reviews.llvm.org/D57264
-HOST_LLVM_CONF_OPTS += -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON
-LLVM_CONF_OPTS += -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON
+# Path to cmake modules from host-llvm-cmake
+HOST_LLVM_CONF_OPTS += -DCMAKE_MODULE_PATH=$(HOST_DIR)/lib/cmake/llvm
+LLVM_CONF_OPTS += -DCMAKE_MODULE_PATH=$(HOST_DIR)/lib/cmake/llvm
+
+# Assembly files for x64 in lib/Support/BLAKE3 need to be compiled
+# by a C compiler
+HOST_LLVM_CONF_OPTS += -DCMAKE_ASM_COMPILER="$(CMAKE_HOST_C_COMPILER)"
# Don't build clang libcxx libcxxabi lldb compiler-rt lld polly as llvm subprojects
# This flag assumes that projects are checked out side-by-side and not nested
@@ -259,7 +259,8 @@ HOST_LLVM_CONF_OPTS += \
-DLLVM_INCLUDE_EXAMPLES=OFF \
-DLLVM_INCLUDE_DOCS=OFF \
-DLLVM_INCLUDE_GO_TESTS=OFF \
- -DLLVM_INCLUDE_TESTS=OFF
+ -DLLVM_INCLUDE_TESTS=OFF \
+ -DLLVM_INCLUDE_BENCHMARKS=OFF
LLVM_CONF_OPTS += \
-DLLVM_BUILD_EXAMPLES=OFF \
-DLLVM_BUILD_DOCS=OFF \
@@ -270,7 +271,8 @@ LLVM_CONF_OPTS += \
-DLLVM_INCLUDE_EXAMPLES=OFF \
-DLLVM_INCLUDE_DOCS=OFF \
-DLLVM_INCLUDE_GO_TESTS=OFF \
- -DLLVM_INCLUDE_TESTS=OFF
+ -DLLVM_INCLUDE_TESTS=OFF \
+ -DLLVM_INCLUDE_BENCHMARKS=OFF
# Copy llvm-config (host variant) to STAGING_DIR
# llvm-config (host variant) returns include and lib directories
diff --git a/package/llvm/0002-Add-missing-cstdint-header-to-Signals.h.patch b/package/llvm/0002-Add-missing-cstdint-header-to-Signals.h.patch
deleted file mode 100644
index c798f585d6..0000000000
--- a/package/llvm/0002-Add-missing-cstdint-header-to-Signals.h.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From c6c71ab47d658ab8f84e6a6066d476fd9632bbca Mon Sep 17 00:00:00 2001
-From: Sergei Trofimovich <slyich@gmail.com>
-Date: Mon, 23 May 2022 08:03:23 +0100
-Subject: [PATCH] Add missing <cstdint> header to Signals.h
-
-Without the change llvm build fails on this week's gcc-13 snapshot as:
-
- [ 0%] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/Signals.cpp.o
- In file included from llvm/lib/Support/Signals.cpp:14:
- llvm/include/llvm/Support/Signals.h:119:8: error: variable or field 'CleanupOnSignal' declared void
- 119 | void CleanupOnSignal(uintptr_t Context);
- | ^~~~~~~~~~~~~~~
-
-Upstream: https://github.com/llvm/llvm-project/commit/ff1681ddb303223973653f7f5f3f3435b48a1983.patch
-Signed-off-by: Peter Seiderer <ps.report@gmx.net>
----
- include/llvm/Support/Signals.h | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/include/llvm/Support/Signals.h b/include/llvm/Support/Signals.h
-index e0a18e72..148216b8 100644
---- a/include/llvm/Support/Signals.h
-+++ b/include/llvm/Support/Signals.h
-@@ -14,6 +14,7 @@
- #ifndef LLVM_SUPPORT_SIGNALS_H
- #define LLVM_SUPPORT_SIGNALS_H
-
-+#include <cstdint>
- #include <string>
-
- namespace llvm {
---
-2.40.1
-
diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
index dfd0dc105d..c7ee2a8db0 100644
--- a/package/mesa3d/Config.in
+++ b/package/mesa3d/Config.in
@@ -24,19 +24,21 @@ config BR2_PACKAGE_MESA3D_NEEDS_ELFUTILS
config BR2_PACKAGE_MESA3D_LLVM
bool "llvm support"
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
+ depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_INSTALL_LIBSTDCPP
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # std::shared_future
depends on !BR2_STATIC_LIBS
depends on BR2_USE_WCHAR # std::wstring
- depends on BR2_HOST_GCC_AT_LEAST_5 # host-llvm
+ depends on BR2_HOST_GCC_AT_LEAST_7 # host-llvm
select BR2_PACKAGE_LLVM
-comment "llvm support needs a toolchain w/ wchar, threads, C++, dynamic library, host gcc >= 5"
+comment "llvm support needs a toolchain w/ wchar, threads, C++, gcc >= 7, dynamic library, host gcc >= 7"
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
- depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP \
+ depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || \
+ !BR2_TOOLCHAIN_GCC_AT_LEAST_7 \
|| BR2_STATIC_LIBS || !BR2_USE_WCHAR \
- || !BR2_HOST_GCC_AT_LEAST_5
+ || !BR2_HOST_GCC_AT_LEAST_7
comment "llvm support needs a toolchain not affected by GCC bug 64735"
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
diff --git a/package/spirv-llvm-translator/spirv-llvm-translator.hash b/package/spirv-llvm-translator/spirv-llvm-translator.hash
index edfca1ea02..4500fc4f62 100644
--- a/package/spirv-llvm-translator/spirv-llvm-translator.hash
+++ b/package/spirv-llvm-translator/spirv-llvm-translator.hash
@@ -1,3 +1,3 @@
# locally calculated
-sha256 bdd7cb677b9fcaaff1cce2153de9d69298f136edecaef3631915614bb5db09a1 spirv-llvm-translator-v11.0.0-297-ga619b34bce55360d79fea9058a93ded04919f2b2.tar.gz
+sha256 0a00a72a5b004eeb73f9c96c9c6ba2d6de232cbf3c22a7b322047604d24402ba spirv-llvm-translator-v15.0.0-46-ge82ecc2bd7295604fcf1824e47c95fa6a09c6e63.tar.gz
sha256 e3bc36440fc927c62d5cc24efeefe225a14d4e34ffeb0c92e430625cce9ee444 LICENSE.TXT
diff --git a/package/spirv-llvm-translator/spirv-llvm-translator.mk b/package/spirv-llvm-translator/spirv-llvm-translator.mk
index 159f7d3b52..37db47340e 100644
--- a/package/spirv-llvm-translator/spirv-llvm-translator.mk
+++ b/package/spirv-llvm-translator/spirv-llvm-translator.mk
@@ -5,8 +5,8 @@
################################################################################
# Generate version string using:
-# git describe --tags --match 'v11*' --abbrev=40 origin/llvm_release_110
-SPIRV_LLVM_TRANSLATOR_VERSION = v11.0.0-297-ga619b34bce55360d79fea9058a93ded04919f2b2
+# git describe --tags --match 'v15*' --abbrev=40 origin/llvm_release_150
+SPIRV_LLVM_TRANSLATOR_VERSION = v15.0.0-46-ge82ecc2bd7295604fcf1824e47c95fa6a09c6e63
SPIRV_LLVM_TRANSLATOR_SITE = $(call github,KhronosGroup,SPIRV-LLVM-Translator,$(SPIRV_LLVM_TRANSLATOR_VERSION))
SPIRV_LLVM_TRANSLATOR_LICENSE = NCSA
SPIRV_LLVM_TRANSLATOR_LICENSE_FILES = LICENSE.TXT
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [Buildroot] [PATCH v4 09/10] package/llvm-project: bump to version 15.0.3
2023-06-15 13:43 ` [Buildroot] [PATCH v4 09/10] package/llvm-project: bump to version 15.0.3 Sebastian Weyer
@ 2023-07-12 13:06 ` Romain Naour
2023-07-20 17:36 ` Adam Duskett
0 siblings, 1 reply; 26+ messages in thread
From: Romain Naour @ 2023-07-12 13:06 UTC (permalink / raw)
To: Sebastian Weyer, buildroot
Cc: Joseph Kogut, Lang Daniel, Romain Naour, Bernd Kuhls,
Valentin Korenblit
Hello,
Le 15/06/2023 à 15:43, Sebastian Weyer a écrit :
> From: Lang Daniel <d.lang@abatec.at>
>
> - Add new build dependencies to lld and llvm
> - Add host-gcc and gcc >= 7.x dependency since clang doesn't build with gcc 6.3
>
> [ 28%] Building CXX object utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/TableGen.cpp.o
> output/build/host-clang-15.0.3/utils/TableGen/RISCVVEmitter.cpp: In instantiation of ‘{anonymous}::SemaSignatureTable::init(llvm::ArrayRef<{anonymous}::SemaRecord>)::<lambda(auto:2&)> [with auto:2 = const llvm::SmallVector<clang::RISCV::PrototypeDescriptor>]’:
> /usr/include/c++/6/bits/stl_algo.h:3769:5: required from ‘_Funct std::for_each(_IIter, _IIter, _Funct) [with _IIter = std::_Rb_tree_const_iterator<llvm::SmallVector<clang::RISCV::PrototypeDescriptor> >; _Funct = {anonymous}::SemaSignatureTable::init(llvm::ArrayRef<{anonymous}::SemaRecord>)::<lambda(auto:2&)>]’
> output/host/include/llvm/ADT/STLExtras.h:1611:23: required from ‘UnaryFunction llvm::for_each(R&&, UnaryFunction) [with R = std::set<llvm::SmallVector<clang::RISCV::PrototypeDescriptor>, {anonymous}::SemaSignatureTable::init(llvm::ArrayRef<{anonymous}::SemaRecord>)::Compare>&; UnaryFunction = {anonymous}::SemaSignatureTable::init(llvm::ArrayRef<{anonymous}::SemaRecord>)::<lambda(auto:2&)>]’
> output/build/host-clang-15.0.3/utils/TableGen/RISCVVEmitter.cpp:249:64: required from here
> output/build/host-clang-15.0.3/utils/TableGen/RISCVVEmitter.cpp:249:50: error: cannot call member function ‘void {anonymous}::SemaSignatureTable::insert(llvm::ArrayRef<clang::RISCV::PrototypeDescriptor>)’ without object
> llvm::for_each(Signatures, [this](auto &Sig) { insert(Sig); });
> ^~~~~~
> utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/build.make:313: recipe for target 'utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/RISCVVEmitter.cpp.o' failed
> make[4]: *** [utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/RISCVVEmitter.cpp.o] Error 1
>
> Indeed LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN is OFF, the CheckCompilerVersion.cmake
> trigger an error if gcc < 7.x. Indded since llvm 15 this option check for C++17 [1]
>
> The last gcc 7.x version (7.5) has been released in 2019.
> Fixing llvm/clang issues for old compiler maybe it's not worth it.
>
> - Remove LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN since
> gcc >= 7 is mendatory.
>
> When updating LLVM, we also need to update the version of
> SPIRV_LLVM_TRANSLATOR because its CMakeLists.txt verifies the LLVM
> base version [2].
>
> The patch
> package/llvm/0002-Add-missing-cstdint-header-to-Signals.h.patch has
> been included in tag llvmorg-15.0.0 of llvm-project.
>
> [1] https://github.com/llvm/llvm-project/commit/4c72deb613d9d8838785b431facb3eb480fb2f51
> [2] https://github.com/KhronosGroup/SPIRV-LLVM-Translator/blob/5be08b8bb91fc6ca62857792c177bc7479e5e3db/CMakeLists.txt#LL82C6-L82C6
>
> Signed-off-by: Daniel Lang <d.lang@abatec.at>
> Signed-off-by: Romain Naour <romain.naour@smile.fr>
> Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
> ---
> v4: - update spirv-llvm-translator version as well
> - remove package/llvm/0002-Add-missing-cstdint-header-to-Signals.h.patch
>
> v3: - add libclc bump
> - llvm, clang, lld, mesa3d (llvm): add gcc >= 7.x dependency
>
> Changes v1 -> v2:
> - Bump to 15.0.3 instead of 15.0.1
> - llvm: use CMAKE_HOST_C_COMPILER instead of HOSTCC
> ---
I noticed a new runtime issue [1] with the ClangCompilerRT test:
# fuzz_me
==74==ERROR: AddressSanitizer failed to allocate 0x0 (0) bytes of
SetAlternateSignalStack (error code: 22)
The issue is due to the recent ARM aarch64 toolchain bump that provide a glibc
>= 2.34.
See bug reports [2] [3].
The issue has been fixed in llvm 13.0.0 [4] and it's fixed in Buildroot as soon
as the llvm/clang version bump to 15.0.x patch series is applied [5].
[1] https://gitlab.com/buildroot.org/buildroot/-/jobs/4621046299
[2] https://github.com/llvm/llvm-project/issues/55785
[3] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100114
[4]
https://github.com/llvm/llvm-project/commit/82150606fb11d28813ae6da1101f5bda638165fe
[5] http://patchwork.ozlabs.org/project/buildroot/list/?series=359890
Best regards,
Romain
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 26+ messages in thread* Re: [Buildroot] [PATCH v4 09/10] package/llvm-project: bump to version 15.0.3
2023-07-12 13:06 ` Romain Naour
@ 2023-07-20 17:36 ` Adam Duskett
0 siblings, 0 replies; 26+ messages in thread
From: Adam Duskett @ 2023-07-20 17:36 UTC (permalink / raw)
To: Romain Naour
Cc: Joseph Kogut, Bernd Kuhls, Sebastian Weyer, Lang Daniel,
buildroot, Romain Naour, Valentin Korenblit
[-- Attachment #1.1: Type: text/plain, Size: 4906 bytes --]
Tested-by: Adam Duskett <adam.duskett@amarulasolutions.com>
On Wed, Jul 12, 2023 at 6:06 AM Romain Naour <romain.naour@smile.fr> wrote:
> Hello,
>
> Le 15/06/2023 à 15:43, Sebastian Weyer a écrit :
> > From: Lang Daniel <d.lang@abatec.at>
> >
> > - Add new build dependencies to lld and llvm
> > - Add host-gcc and gcc >= 7.x dependency since clang doesn't build with
> gcc 6.3
> >
> > [ 28%] Building CXX object
> utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/TableGen.cpp.o
> > output/build/host-clang-15.0.3/utils/TableGen/RISCVVEmitter.cpp: In
> instantiation of
> ‘{anonymous}::SemaSignatureTable::init(llvm::ArrayRef<{anonymous}::SemaRecord>)::<lambda(auto:2&)>
> [with auto:2 = const llvm::SmallVector<clang::RISCV::PrototypeDescriptor>]’:
> > /usr/include/c++/6/bits/stl_algo.h:3769:5: required from ‘_Funct
> std::for_each(_IIter, _IIter, _Funct) [with _IIter =
> std::_Rb_tree_const_iterator<llvm::SmallVector<clang::RISCV::PrototypeDescriptor>
> >; _Funct =
> {anonymous}::SemaSignatureTable::init(llvm::ArrayRef<{anonymous}::SemaRecord>)::<lambda(auto:2&)>]’
> > output/host/include/llvm/ADT/STLExtras.h:1611:23: required from
> ‘UnaryFunction llvm::for_each(R&&, UnaryFunction) [with R =
> std::set<llvm::SmallVector<clang::RISCV::PrototypeDescriptor>,
> {anonymous}::SemaSignatureTable::init(llvm::ArrayRef<{anonymous}::SemaRecord>)::Compare>&;
> UnaryFunction =
> {anonymous}::SemaSignatureTable::init(llvm::ArrayRef<{anonymous}::SemaRecord>)::<lambda(auto:2&)>]’
> >
> output/build/host-clang-15.0.3/utils/TableGen/RISCVVEmitter.cpp:249:64:
> required from here
> >
> output/build/host-clang-15.0.3/utils/TableGen/RISCVVEmitter.cpp:249:50:
> error: cannot call member function ‘void
> {anonymous}::SemaSignatureTable::insert(llvm::ArrayRef<clang::RISCV::PrototypeDescriptor>)’
> without object
> > llvm::for_each(Signatures, [this](auto &Sig) { insert(Sig); });
> > ^~~~~~
> > utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/build.make:313: recipe
> for target
> 'utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/RISCVVEmitter.cpp.o' failed
> > make[4]: ***
> [utils/TableGen/CMakeFiles/obj.clang-tblgen.dir/RISCVVEmitter.cpp.o] Error 1
> >
> > Indeed LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN is OFF, the
> CheckCompilerVersion.cmake
> > trigger an error if gcc < 7.x. Indded since llvm 15 this option check
> for C++17 [1]
> >
> > The last gcc 7.x version (7.5) has been released in 2019.
> > Fixing llvm/clang issues for old compiler maybe it's not worth it.
> >
> > - Remove LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN since
> > gcc >= 7 is mendatory.
> >
> > When updating LLVM, we also need to update the version of
> > SPIRV_LLVM_TRANSLATOR because its CMakeLists.txt verifies the LLVM
> > base version [2].
> >
> > The patch
> > package/llvm/0002-Add-missing-cstdint-header-to-Signals.h.patch has
> > been included in tag llvmorg-15.0.0 of llvm-project.
> >
> > [1]
> https://github.com/llvm/llvm-project/commit/4c72deb613d9d8838785b431facb3eb480fb2f51
> > [2]
> https://github.com/KhronosGroup/SPIRV-LLVM-Translator/blob/5be08b8bb91fc6ca62857792c177bc7479e5e3db/CMakeLists.txt#LL82C6-L82C6
> >
> > Signed-off-by: Daniel Lang <d.lang@abatec.at>
> > Signed-off-by: Romain Naour <romain.naour@smile.fr>
> > Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
> > ---
> > v4: - update spirv-llvm-translator version as well
> > - remove
> package/llvm/0002-Add-missing-cstdint-header-to-Signals.h.patch
> >
> > v3: - add libclc bump
> > - llvm, clang, lld, mesa3d (llvm): add gcc >= 7.x dependency
> >
> > Changes v1 -> v2:
> > - Bump to 15.0.3 instead of 15.0.1
> > - llvm: use CMAKE_HOST_C_COMPILER instead of HOSTCC
> > ---
>
> I noticed a new runtime issue [1] with the ClangCompilerRT test:
>
> # fuzz_me
> ==74==ERROR: AddressSanitizer failed to allocate 0x0 (0) bytes of
> SetAlternateSignalStack (error code: 22)
>
> The issue is due to the recent ARM aarch64 toolchain bump that provide a
> glibc
> >= 2.34.
>
> See bug reports [2] [3].
>
> The issue has been fixed in llvm 13.0.0 [4] and it's fixed in Buildroot as
> soon
> as the llvm/clang version bump to 15.0.x patch series is applied [5].
>
> [1] https://gitlab.com/buildroot.org/buildroot/-/jobs/4621046299
> [2] https://github.com/llvm/llvm-project/issues/55785
> [3] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100114
> [4]
>
> https://github.com/llvm/llvm-project/commit/82150606fb11d28813ae6da1101f5bda638165fe
> [5] http://patchwork.ozlabs.org/project/buildroot/list/?series=359890
>
> Best regards,
> Romain
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
>
[-- Attachment #1.2: Type: text/html, Size: 7003 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 26+ messages in thread
* [Buildroot] [PATCH v4 10/10] DEVELOPERS: add Daniel Lang for llvm-project
2023-06-15 13:43 [Buildroot] [PATCH v4 00/10] group llvm projects and bump to version 15.0.3 Sebastian Weyer
` (8 preceding siblings ...)
2023-06-15 13:43 ` [Buildroot] [PATCH v4 09/10] package/llvm-project: bump to version 15.0.3 Sebastian Weyer
@ 2023-06-15 13:43 ` Sebastian Weyer
2023-07-20 17:32 ` Adam Duskett
2023-07-18 0:01 ` [Buildroot] [PATCH v4 00/10] group llvm projects and bump to version 15.0.3 Adam Duskett
2023-07-20 21:05 ` Thomas Petazzoni via buildroot
11 siblings, 1 reply; 26+ messages in thread
From: Sebastian Weyer @ 2023-06-15 13:43 UTC (permalink / raw)
To: buildroot; +Cc: Lang Daniel, Romain Naour, Sebastian Weyer
From: Lang Daniel <d.lang@abatec.at>
Signed-off-by: Daniel Lang <d.lang@abatec.at>
Signed-off-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
---
DEVELOPERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/DEVELOPERS b/DEVELOPERS
index 48907a5cd8..a9987ce1e6 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -654,6 +654,7 @@ F: package/glibmm2_66/
F: package/gtkmm3/
F: package/libsigc/
F: package/libsigc2/
+F: package/llvm-project/
F: package/paho-mqtt-cpp/
F: package/pangomm/
F: package/pangomm2_46/
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 26+ messages in thread* Re: [Buildroot] [PATCH v4 10/10] DEVELOPERS: add Daniel Lang for llvm-project
2023-06-15 13:43 ` [Buildroot] [PATCH v4 10/10] DEVELOPERS: add Daniel Lang for llvm-project Sebastian Weyer
@ 2023-07-20 17:32 ` Adam Duskett
0 siblings, 0 replies; 26+ messages in thread
From: Adam Duskett @ 2023-07-20 17:32 UTC (permalink / raw)
To: Sebastian Weyer; +Cc: Lang Daniel, Romain Naour, buildroot
[-- Attachment #1.1: Type: text/plain, Size: 986 bytes --]
Tested-by: Adam Duskett <adam.duskett@amarulasolutions.com>
On Thu, Jun 15, 2023 at 6:46 AM Sebastian Weyer <sebastian.weyer@smile.fr>
wrote:
> From: Lang Daniel <d.lang@abatec.at>
>
> Signed-off-by: Daniel Lang <d.lang@abatec.at>
> Signed-off-by: Romain Naour <romain.naour@smile.fr>
> Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
> ---
> DEVELOPERS | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/DEVELOPERS b/DEVELOPERS
> index 48907a5cd8..a9987ce1e6 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -654,6 +654,7 @@ F: package/glibmm2_66/
> F: package/gtkmm3/
> F: package/libsigc/
> F: package/libsigc2/
> +F: package/llvm-project/
> F: package/paho-mqtt-cpp/
> F: package/pangomm/
> F: package/pangomm2_46/
> --
> 2.34.1
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
>
[-- Attachment #1.2: Type: text/html, Size: 1849 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [Buildroot] [PATCH v4 00/10] group llvm projects and bump to version 15.0.3
2023-06-15 13:43 [Buildroot] [PATCH v4 00/10] group llvm projects and bump to version 15.0.3 Sebastian Weyer
` (9 preceding siblings ...)
2023-06-15 13:43 ` [Buildroot] [PATCH v4 10/10] DEVELOPERS: add Daniel Lang for llvm-project Sebastian Weyer
@ 2023-07-18 0:01 ` Adam Duskett
2023-07-20 21:05 ` Thomas Petazzoni via buildroot
11 siblings, 0 replies; 26+ messages in thread
From: Adam Duskett @ 2023-07-18 0:01 UTC (permalink / raw)
To: Sebastian Weyer; +Cc: buildroot
[-- Attachment #1.1: Type: text/plain, Size: 5903 bytes --]
Hey Sebastian!
Thanks for the patch series! I can't see anything wrong with it so:
Tested-by: Adam Duskett <aduskett@gmail.com>
On Thu, Jun 15, 2023 at 6:44 AM Sebastian Weyer <sebastian.weyer@smile.fr>
wrote:
> This series attempts two things:
> - Move the different llvm subprojects into one folder
> and share version and site information.
>
> - Bump the version to the latest 15.0.3
>
> Starting with version 12 different subprojects added
> dependencies or sources that would be available when
> building from the "monorepo". These have been added
> as new host packages.
>
> This update is needed in order to be able to use some packages in the
> future as for example mesa3d's RustiCL.
>
> v4:
> - change some inaccurate commit messages
> - bump spirv-llvm-translator version at the same time as other llvm
> packages
> - remove package/llvm/0002-Add-missing-cstdint-header-to-Signals.h.patch
> as it has been integrated in the newer version
>
> v3:
> - move libclc before llvm 15.0.3 version bump commit
> - force llvm-cmake and llvm-libunwind version to 15.0.3 since
> LLVM_PROJECT_VERSION is still at 11.1.0
> - Keep cp as install command since there is no CMakefiles.txt
> - llvm, clang, lld: keep LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN since
> this option is still used to check C++17 compiler support:
> llvm/cmake/modules/CheckCompilerVersion.cmake
>
>
> Changes v1 -> v2:
> - Rebased onto current master
> - Bump to 15.0.3 instead of 15.0.1
> - llvm: use CMAKE_HOST_C_COMPILER instead of HOSTCC
> - libclc: Add missing change to package/Config.in
>
> Lang Daniel (10):
> package/llvm-project: new group for llvm packages
> package/llvm: move to llvm-project folder
> package/lld: move to llvm-project subfolder
> package/clang: move to llvm-project subfolder
> package/compiler-rt: move to llvm-project subfolder
> package/libclc: move to llvm-project subfolder
> package/llvm-project/llvm-cmake: new package
> package/llvm-project/llvm-libunwind: new package
> package/llvm-project: bump to version 15.0.3
> DEVELOPERS: add Daniel Lang for llvm-project
>
> DEVELOPERS | 19 ++++++-----
> package/Config.in | 8 ++---
> package/Config.in.host | 2 +-
> ...hains-Gnu-Use-GCC_INSTALL_PREFIX-in-.patch | 0
> package/{ => llvm-project}/clang/Config.in | 10 +++---
> package/{ => llvm-project}/clang/clang.hash | 2 +-
> package/{ => llvm-project}/clang/clang.mk | 15 +++-----
> .../{ => llvm-project}/compiler-rt/Config.in | 6 ++--
> .../compiler-rt/compiler-rt.hash | 2 +-
> .../compiler-rt/compiler-rt.mk | 9 +++--
> .../0001-support-out-of-tree-build.patch | 0
> package/{ => llvm-project}/libclc/Config.in | 6 ++--
> package/{ => llvm-project}/libclc/libclc.hash | 2 +-
> package/{ => llvm-project}/libclc/libclc.mk | 4 +--
> package/{ => llvm-project}/lld/Config.in.host | 6 ++--
> package/{ => llvm-project}/lld/lld.hash | 2 +-
> package/{ => llvm-project}/lld/lld.mk | 13 ++-----
> .../llvm-project/llvm-cmake/llvm-cmake.hash | 2 ++
> package/llvm-project/llvm-cmake/llvm-cmake.mk | 17 ++++++++++
> .../llvm-libunwind/llvm-libunwind.hash | 3 ++
> .../llvm-libunwind/llvm-libunwind.mk | 18 ++++++++++
> package/llvm-project/llvm-project.mk | 11 ++++++
> package/{ => llvm-project}/llvm/Config.in | 10 +++---
> package/{ => llvm-project}/llvm/llvm.hash | 2 +-
> package/{ => llvm-project}/llvm/llvm.mk | 27 ++++++++-------
> .../llvm/0001-nfc-Fix-missing-include.patch | 24 -------------
> ...-missing-cstdint-header-to-Signals.h.patch | 34 -------------------
> package/mesa3d/Config.in | 10 +++---
> .../spirv-llvm-translator.hash | 2 +-
> .../spirv-llvm-translator.mk | 4 +--
> 30 files changed, 126 insertions(+), 144 deletions(-)
> rename package/{ =>
> llvm-project}/clang/0001-lib-Driver-ToolChains-Gnu-Use-GCC_INSTALL_PREFIX-in-.patch
> (100%)
> rename package/{ => llvm-project}/clang/Config.in (82%)
> rename package/{ => llvm-project}/clang/clang.hash (52%)
> rename package/{ => llvm-project}/clang/clang.mk (89%)
> rename package/{ => llvm-project}/compiler-rt/Config.in (87%)
> rename package/{ => llvm-project}/compiler-rt/compiler-rt.hash (50%)
> rename package/{ => llvm-project}/compiler-rt/compiler-rt.mk (82%)
> rename package/{ =>
> llvm-project}/libclc/0001-support-out-of-tree-build.patch (100%)
> rename package/{ => llvm-project}/libclc/Config.in (73%)
> rename package/{ => llvm-project}/libclc/libclc.hash (51%)
> rename package/{ => llvm-project}/libclc/libclc.mk (92%)
> rename package/{ => llvm-project}/lld/Config.in.host (74%)
> rename package/{ => llvm-project}/lld/lld.hash (52%)
> rename package/{ => llvm-project}/lld/lld.mk (61%)
> create mode 100644 package/llvm-project/llvm-cmake/llvm-cmake.hash
> create mode 100644 package/llvm-project/llvm-cmake/llvm-cmake.mk
> create mode 100644 package/llvm-project/llvm-libunwind/llvm-libunwind.hash
> create mode 100644 package/llvm-project/llvm-libunwind/llvm-libunwind.mk
> create mode 100644 package/llvm-project/llvm-project.mk
> rename package/{ => llvm-project}/llvm/Config.in (88%)
> rename package/{ => llvm-project}/llvm/llvm.hash (52%)
> rename package/{ => llvm-project}/llvm/llvm.mk (94%)
> delete mode 100644 package/llvm/0001-nfc-Fix-missing-include.patch
> delete mode 100644
> package/llvm/0002-Add-missing-cstdint-header-to-Signals.h.patch
>
> --
> 2.34.1
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
>
[-- Attachment #1.2: Type: text/html, Size: 8492 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 26+ messages in thread* Re: [Buildroot] [PATCH v4 00/10] group llvm projects and bump to version 15.0.3
2023-06-15 13:43 [Buildroot] [PATCH v4 00/10] group llvm projects and bump to version 15.0.3 Sebastian Weyer
` (10 preceding siblings ...)
2023-07-18 0:01 ` [Buildroot] [PATCH v4 00/10] group llvm projects and bump to version 15.0.3 Adam Duskett
@ 2023-07-20 21:05 ` Thomas Petazzoni via buildroot
11 siblings, 0 replies; 26+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-07-20 21:05 UTC (permalink / raw)
To: Sebastian Weyer; +Cc: Lang Daniel, Romain Naour, Adam Duskett, buildroot
Hello Sebastian,
On Thu, 15 Jun 2023 15:43:04 +0200
Sebastian Weyer <sebastian.weyer@smile.fr> wrote:
> Lang Daniel (10):
> package/llvm-project: new group for llvm packages
> package/llvm: move to llvm-project folder
> package/lld: move to llvm-project subfolder
> package/clang: move to llvm-project subfolder
> package/compiler-rt: move to llvm-project subfolder
> package/libclc: move to llvm-project subfolder
> package/llvm-project/llvm-cmake: new package
> package/llvm-project/llvm-libunwind: new package
> package/llvm-project: bump to version 15.0.3
> DEVELOPERS: add Daniel Lang for llvm-project
Thanks a lot, I have applied the entire patch series, with some fairly
small changes:
- I have squashed the patch touching the DEVELOPERS file into the first
patch adding package/llvm-project in the first place. This ensures
this directory isn't introduced as an "orphan" directory.
- I have taken care of updating the .checkpackageignore file throughout
the patch series, which was not taken into account here.
- The final patch doing the big bump forgot the case of
BR2_PACKAGE_QT5TOOLS_QDOC_TOOL which has a dependency on host-clang
and therefore now depends on host gcc >= 7. And I see I forgot to
also update the dependency on gcc >= 7. I'll fix that up.
In fact, as noted in the definition of this option, there is still
something wrong here: this qt5tools option only needs host-clang, but
for some reason, we can only build host-clang when the target
architecture is supported, which doesn't make much sense. It would be
nice to look into this.
Thanks a lot for your efforts on this, and sorry for the long delay to
review and merge this.
Best regards,
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 26+ messages in thread