Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add back older clang versions: 15, 16 and 17 (master) #990

Closed
wants to merge 26 commits into from

Conversation

zboszor
Copy link
Contributor

@zboszor zboszor commented Aug 1, 2024

See #988

Contributor checklist

Fixes: #869

@zboszor zboszor requested a review from kraj as a code owner August 1, 2024 09:27
@zboszor zboszor force-pushed the master-add-clang15 branch 5 times, most recently from 0dd6f7b to b992008 Compare August 5, 2024 10:30
The recipes have the major version in their names:
llvm15-project-source, clang15, clang15-cross, etc.

libcxx was renamed to libcxx15-initial because it would conflict
with the main libcxx recipe/package, due to shipping the same
library name.

Added missing Upstream-Status to patches.

Added EXCLUDE_FROM_WORLD = "1" to clang.inc as this package set
conflicts with the versionless clang packages.

Signed-off-by: Zoltán Böszörményi <[email protected]>
…dore

Split llvm-spirv into its own subpackage.

Added EXCLUDE_FROM_WORLD = "1" as the binary package conflicts
with the versionless spirv-llvm-translator package.

Signed-off-by: Zoltán Böszörményi <[email protected]>
Signed-off-by: Zoltán Böszörményi <[email protected]>
… oe-core

Signed-off-by: Khem Raj <[email protected]>
Signed-off-by: Zoltán Böszörményi <[email protected]>
this will simplify things with UNPACKDIR and shared sources for all llvm
derived recipes

Signed-off-by: Khem Raj <[email protected]>
Signed-off-by: Zoltán Böszörményi <[email protected]>
So far when using toolchain = clang would punt gcc from native-sysroot
but its beneficial to keep both compilers since they can co-exist its
not a big problem to have both in sysroot. This helps in debugging
issues as well.

Signed-off-by: Khem Raj <[email protected]>
Signed-off-by: Zoltán Böszörményi <[email protected]>
This avoids qtwebengine crashes on rpi4/rpi3

Signed-off-by: Khem Raj <[email protected]>
Signed-off-by: Zoltán Böszörményi <[email protected]>
…g.LITTLE mcpu

Currently, clang options lose the qualifiers like +crc+crypto which are in TUNE_CCARGS_MARCH_OPTS
when options like -mcpu=big.little are transformed to -mcpu=little as clang
does not understand -mcpu=big.little while gcc does. Here we append TUNE_CCARGS_MARCH_OPTS
after the rewrite

Signed-off-by: Khem Raj <[email protected]>
Signed-off-by: Zoltán Böszörményi <[email protected]>
… core

Currently, only the '-mcpu=octeontx2' option is removed, and any
-mcpu parameters with qualifiers (such as +crc+crypto) are not
removed, e.g., '-mcpu=octeontx2+crypto'. Remove these mcpu parameters
with qualifiers by using '-mcpu=octeontx2${TUNE_CCARGS_MARCH_OPTS}'.

Signed-off-by: Ruiqiang Hao <[email protected]>
Signed-off-by: Zoltán Böszörményi <[email protected]>
Same treatment as for clang15:

* versioned recipe names: clang16, etc.
* libcxx was renamed to libcxx16-initial
* EXCLUDE_FROM_WORLD = "1" added to clang.inc so the recipes
  are not included for "bitbake world"

Signed-off-by: Zoltán Böszörményi <[email protected]>
Signed-off-by: Zoltán Böszörményi <[email protected]>
This avoids qtwebengine crashes on rpi4/rpi3

Signed-off-by: Khem Raj <[email protected]>
Signed-off-by: Zoltán Böszörményi <[email protected]>
…g.LITTLE mcpu

Currently, clang options lose the qualifiers like +crc+crypto which are in TUNE_CCARGS_MARCH_OPTS
when options like -mcpu=big.little are transformed to -mcpu=little as clang
does not understand -mcpu=big.little while gcc does. Here we append TUNE_CCARGS_MARCH_OPTS
after the rewrite

Signed-off-by: Khem Raj <[email protected]>
Signed-off-by: Zoltán Böszörményi <[email protected]>
… core

Currently, only the '-mcpu=octeontx2' option is removed, and any
-mcpu parameters with qualifiers (such as +crc+crypto) are not
removed, e.g., '-mcpu=octeontx2+crypto'. Remove these mcpu parameters
with qualifiers by using '-mcpu=octeontx2${TUNE_CCARGS_MARCH_OPTS}'.

Signed-off-by: Ruiqiang Hao <[email protected]>
Signed-off-by: Zoltán Böszörményi <[email protected]>
this will simplify things with UNPACKDIR and shared sources for all llvm
derived recipes

Signed-off-by: Khem Raj <[email protected]>
Signed-off-by: Zoltán Böszörményi <[email protected]>
TC_CXX_RUNTIME is now defined in OE-core

Signed-off-by: Khem Raj <[email protected]>
Signed-off-by: Zoltán Böszörményi <[email protected]>
TC_CXX_RUNTIME is now defined in OE-core

Signed-off-by: Khem Raj <[email protected]>
Signed-off-by: Zoltán Böszörményi <[email protected]>
Same treatment as CLANG 15.x and 16.x

Signed-off-by: Zoltán Böszörményi <[email protected]>
Signed-off-by: Zoltán Böszörményi <[email protected]>
@zboszor zboszor changed the title Add clang15 (master) Add back older clang versions: 15, 16 and 17 (master) Aug 14, 2024
@zboszor
Copy link
Contributor Author

zboszor commented Aug 15, 2024

@zboszor zboszor closed this Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request for nanbield branch variant with LLVM 15.x
1 participant