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 $SOF_CC_BASE variable for building XTOS with clang-based, Cadence toolchains #9358

Merged
merged 5 commits into from
Aug 14, 2024

Conversation

marc-hb
Copy link
Collaborator

@marc-hb marc-hb commented Aug 9, 2024

As required by ACP_7_0 addition submitted in #9351

Other related cleanups, see commit messages.

Switch rebuild-testbench.sh to new variable.

We can't have a shebang and of course all variables are unused.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
"COMPILER" is a very common name with a high risk of collision. Don't
use it for a minor, local variable. This also reduces confusion.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
If the user requested the Cadence toolchain by defining
$XTENSA_TOOLS_ROOT, then do not "correct" the user and fallback on gcc
when that variable is wrong. Fail and point at the problem instead. No
one ever pays attention to build logs; as shown by new warnings being
submitted on a regular basis.

This also removes the local variable "XCC", the name of which was
collision-prone and confusingly capitalized.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@marc-hb marc-hb marked this pull request as ready for review August 10, 2024 00:47
@marc-hb marc-hb requested review from andyross, singalsu and a team August 10, 2024 00:49
@marc-hb
Copy link
Collaborator Author

marc-hb commented Aug 10, 2024

There is a synchronization outage following some VM migration (internal issue DIO 18204) but I checked the test results on the internal site and they are all fine, just the known LNL failures and that's it.

This is required to allow building XTOS with newer, clang-based, Cadence
toolchains as just submitted for ACP_7_0 in thesofproject#9351

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
It was awkward to depend on ZEPHYR_TOOLCHAIN_VARIANT when the testbench
has absolutely nothing to do with it.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
@marc-hb
Copy link
Collaborator Author

marc-hb commented Aug 11, 2024

@lrudyX , @wszypelt there was some network problem in https://sof-ci.01.org/sof-pr-viewer/#/build/PR9358/build14153658 for "Copy build to DUT?DUT_CONFIG=LNL)"

15:31:01,392 INFO  -   Started : Sunday, August 11, 2024 12:30:39 AM
15:31:01,392 INFO  - 2024/08/11 00:31:01 ERROR 53 (0x00000035) Getting File System Type of Destination \\10.B.C.D\Builds\pull-9358-merge_2209331\
15:31:01,392 INFO  - The network path was not found.
15:31:01,392 INFO  -
15:31:01,392 INFO  -    Source : D:\qba1\workspace\44988\pull-9358-merge_2209331\INSTALL\
15:31:01,392 INFO  -      Dest - \\10.B.C.D\Builds\pull-9358-merge_2209331\

The LNL build was fine so that failure was not related to this PR:

15:25:08,967 INFO  - in current dir: /buildagent/workspace/24733; running command:
15:25:08,967 INFO  -     /root/xtensa/XtDevTools/install/tools/RI-2022.10-linux/XtensaTools/bin/xt-objcopy --remove-section .comment /buildagent/workspace/24733/build-lnl/zephyr/main-stripped.mod /buildagent/workspace/24733/build-sof-staging/sof-info/lnl/stripped-main.elf
15:25:10,526 INFO  - build-sof-staging  
15:25:10,526 INFO  - |-- sof  
15:25:10,526 INFO  - |   +-- intel  
15:25:10,526 INFO  - |       |-- sof-ipc4  
15:25:10,526 INFO  - |       |   +-- lnl  
15:25:10,526 INFO  - |       |       +-- community  
15:25:10,526 INFO  - |       |           +-- sof-lnl.ri      sha256=4951abf4024a2ead52d85579844439c90cd83831058ea3db9770dd852a1ad787
15:25:10,526 INFO  - |       +-- sof-ipc4-lib  
15:25:10,526 INFO  - |           +-- lnl  
15:25:10,526 INFO  - |               +-- community  
15:25:10,526 INFO  - |                   |-- B36EE4DA-006F-47F9-A06D-FECBE2D8B6CE.bin  -> drc.llext 
15:25:10,526 INFO  - |                   +-- drc.llext      sha256=45ec1eb6e0dd2827424505e9c46bbe6c89079a67d14ced5605867a715cd72a97

@saisurya-ch saisurya-ch self-requested a review August 12, 2024 07:45
@wszypelt
Copy link

@marc-hb Unfortunately, there was an error with the LNL machine, the tests are being repeated now

@marc-hb
Copy link
Collaborator Author

marc-hb commented Aug 12, 2024

Copy link
Member

@saisurya-ch saisurya-ch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works fine with all compilers for AMD platforms.
Thanks @marc-hb

@kv2019i kv2019i merged commit 72aaf78 into thesofproject:main Aug 14, 2024
45 of 47 checks passed
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.

4 participants