### Description

When using the Isar SDK on Ubuntu 24.04 with GCC 12 to cross-compile a simple application, the compiler crashes with a segmentation fault.
The same process works correctly with the SDK GCC 12 on Ubuntu 22.04.
The same process works correctly when using the Ubuntu 24.04 cross compiler installed by `sudo apt-get install gcc-12-aarch64-linux-gnu`

### Build Environment
- **Kernel:** Linux 6.8.0
- **Architecture:** x86_64
- **OS:** Ubuntu 24.04.2 LTS

### Isar Version
- **Commit:** [95ec8a229afd6a42ed9990f4700becf635fa2ae3](https://github.com/ilbers/isar/commit/95ec8a229afd6a42ed9990f4700becf635fa2ae3)

### Steps to Reproduce

#### 1. Build the SDK for ARM64
```sh
bitbake -c do_populate_sdk mc:rpi-arm64-v8-bookworm:isar-image-base -vDDD
```

#### 2. Setup the SDK
```sh
mkdir isar-image-base-sdk-raspios-bookworm-rpi-arm64-v8
sudo tar --strip-components=1 -xf isar-image-base-sdk-raspios-bookworm-rpi-arm64-v8.tar.xz isar-image-base-sdk-raspios-bookworm-rpi-arm64-v8
sudo isar-image-base-sdk-raspios-bookworm-rpi-arm64-v8/relocate-sdk.sh
```

#### 3. Cross-compile a Simple Hello World Application

```sh
echo 'int main() { printf("Hello\n"); }' | \
  ./isar-image-base-sdk-raspios-bookworm-rpi-arm64-v8/usr/bin/aarch64-linux-gnu-gcc-12 -xc - -o helloworld
```

#### 4. Compiler Crash Output

```
aarch64-linux-gnu-gcc-12.bin: internal compiler error: Segmentation fault signal terminated program cc1
Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <file:///usr/share/doc/gcc-12/README.Bugs> for instructions.
```

### Expected Behavior

The compiler should successfully build the `helloworld` executable without crashing.

### Observed Behavior

GCC 12 crashes with a segmentation fault during compilation.

### Additional Information

- This issue occurs on **Ubuntu 24.04**.
- The same process works fine on **Ubuntu 22.04**.

## Questions

Any insights or workarounds to resolve this issue would be greatly appreciated.

1)) Has anyone else encountered similar problems when using Isar SDK on Ubuntu 24.04?
2)) Has anyone an idea what the issue could be when using the GCC from the SDK instead from Ubuntu 24.04?
    - Maybe some distribution clashes between the Debian Isar SDK and the host Ubuntu machine?

Thank you in advance!

Best regards,
David

--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/d9612d53-112b-4e21-b8b0-966e34c9de00n%40googlegroups.com.