torizon / meta-toradex-torizon

Torizon OS OpenEmbedded Distro Layer
MIT License
6 stars 14 forks source link

Some rac compilation errors are observed #28

Closed MingliuYan closed 7 months ago

MingliuYan commented 7 months ago

I am trying to build torizon from a clean workspace, and observed some compilation errors:

ERROR: rac-0.0+gitAUTOINC+719afe6b829316c096b3-r0 do_compile: ExecutionError('/mnt/toradex/torizon-kirkstone/build-torizon/tmp/work/cortexa57-tdx-linux/rac/0.0+gitAUTOINC+719afe6b829316c096b3-r0/temp/run.do_compile.29496', 101, None, None)
ERROR: Logfile of failure stored in: /mnt/toradex/torizon-kirkstone/build-torizon/tmp/work/cortexa57-tdx-linux/rac/0.0+gitAUTOINC+719afe6b829316c096b3-r0/temp/log.do_compile.29496
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: Using rust targets from /mnt/toradex/torizon-kirkstone/build-torizon/tmp/work/cortexa57-tdx-linux/rac/0.0+gitAUTOINC+719afe6b829316c096b3-r0/rust-targets/
| NOTE: cargo = /mnt/toradex/torizon-kirkstone/build-torizon/tmp/work/cortexa57-tdx-linux/rac/0.0+gitAUTOINC+719afe6b829316c096b3-r0/recipe-sysroot-native/usr/bin/cargo
| NOTE: cargo build -v --offline --target aarch64-tdx-linux-gnu --release --manifest-path=/mnt/toradex/torizon-kirkstone/build-torizon/tmp/work/cortexa57-tdx-linux/rac/0.0+gitAUTOINC+719afe6b829316c096b3-r0/git//Cargo.toml
| error: could not load Cargo configuration
| 
| Caused by:
|   could not parse TOML configuration in `/mnt/toradex/torizon-kirkstone/build-torizon/tmp/work/cortexa57-tdx-linux/rac/0.0+gitAUTOINC+719afe6b829316c096b3-r0/cargo_home/config`
| 
| Caused by:
|   could not parse input as TOML
| 
| Caused by:
|   TOML parse error at line 42, column 1
|      |
|   42 | olpc-cjson = { path = "/mnt/toradex/torizon-kirkstone/build-torizon/tmp/work/cortexa57-tdx-linux/rac/0.0+gitAUTOINC+719afe6b829316c096b3-r0/tough/olpc-cjson" }
|      | ^
|   duplicate key `olpc-cjson` in table `patch.https://github.com/toradex/tough`
| WARNING: exit code 101 from a shell command.

as the error message explained, there are multiple "olpc-cjson" lines in /mnt/toradex/torizon-kirkstone/build-torizon/tmp/work/cortexa57-tdx-linux/rac/0.0+gitAUTOINC+719afe6b829316c096b3-r0/cargo_home/config:

[patch."https://github.com/toradex/tough"]
tough = { path = "/mnt/toradex/torizon-kirkstone/build-torizon/tmp/work/cortexa57-tdx-linux/rac/0.0+gitAUTOINC+719afe6b829316c096b3-r0/tough/tough" }
olpc-cjson = { path = "/mnt/toradex/torizon-kirkstone/build-torizon/tmp/work/cortexa57-tdx-linux/rac/0.0+gitAUTOINC+719afe6b829316c096b3-r0/tough/olpc-cjson" }
olpc-cjson = { path = "/mnt/toradex/torizon-kirkstone/build-torizon/tmp/work/cortexa57-tdx-linux/rac/0.0+gitAUTOINC+719afe6b829316c096b3-r0/tough/olpc-cjson" }

[patch."https://github.com/warp-tech/russh.git"]
russh = { path = "/mnt/toradex/torizon-kirkstone/build-torizon/tmp/work/cortexa57-tdx-linux/rac/0.0+gitAUTOINC+719afe6b829316c096b3-r0/russh/russh" }
    russh-keys = { path = "/mnt/toradex/torizon-kirkstone/build-torizon/tmp/work/cortexa57-tdx-linux/rac/0.0+gitAUTOINC+719afe6b829316c096b3-r0/russh/russh-keys" }
    russh-cryptovec = { path = "/mnt/toradex/torizon-kirkstone/build-torizon/tmp/work/cortexa57-tdx-linux/rac/0.0+gitAUTOINC+719afe6b829316c096b3-r0/russh/cryptovec" }
    russh-keys = { path = "/mnt/toradex/torizon-kirkstone/build-torizon/tmp/work/cortexa57-tdx-linux/rac/0.0+gitAUTOINC+719afe6b829316c096b3-r0/russh/russh-keys" }
    russh-cryptovec = { path = "/mnt/toradex/torizon-kirkstone/build-torizon/tmp/work/cortexa57-tdx-linux/rac/0.0+gitAUTOINC+719afe6b829316c096b3-r0/russh/cryptovec" }

also another compilation error was observed as follows:

| DEBUG: Executing shell function do_compile
| NOTE: Using rust targets from /mnt/toradex/torizon-kirkstone/build-torizon/tmp/work/cortexa57-tdx-linux/rac/0.0+gitAUTOINC+719afe6b829316c096b3-r0/rust-targets/
| NOTE: cargo = /mnt/toradex/torizon-kirkstone/build-torizon/tmp/work/cortexa57-tdx-linux/rac/0.0+gitAUTOINC+719afe6b829316c096b3-r0/recipe-sysroot-native/usr/bin/cargo
| NOTE: cargo build -v --offline --target aarch64-tdx-linux-gnu --release --manifest-path=/mnt/toradex/torizon-kirkstone/build-torizon/tmp/work/cortexa57-tdx-linux/rac/0.0+gitAUTOINC+719afe6b829316c096b3-r0/git//Cargo.toml
| error: failed to get `tough` as a dependency of package `rac v0.1.0 (/mnt/toradex/torizon-kirkstone/build-torizon/tmp/work/cortexa57-tdx-linux/rac/0.0+gitAUTOINC+719afe6b829316c096b3-r0/git)`
| 
| Caused by:
|   failed to load source for dependency `tough`
| 
| Caused by:
|   Unable to update https://github.com/toradex/tough?branch=rac#28c2deb2
| 
| Caused by:
|   can't checkout from 'https://github.com/toradex/tough': you are in the offline mode (--offline)
| WARNING: exit code 101 from a shell command.

these errors could be reproduced by the following steps:

bitbake rac -c cleanall
bitbake rac