From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Tue, 18 Mar 2025 15:46:15 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-qk1-f191.google.com (mail-qk1-f191.google.com [209.85.222.191]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 52IEkDLG023121 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 18 Mar 2025 15:46:14 +0100 Received: by mail-qk1-f191.google.com with SMTP id af79cd13be357-7c543ab40d3sf1011686385a.2 for ; Tue, 18 Mar 2025 07:46:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1742309168; x=1742913968; darn=ilbers.de; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=wjNKuji0ZsQbIYSzfanC4wAXgMp5awuCLlIyVQt5gk0=; b=txf9Cv7c1OWK2IgTqHbldZQ7OwdpynHN5D6hKKXQk64c3+KJ/2/nf0n3amkEkqIX1F 414mugYCHyPZkslE+calVXV2G6oXQmB1wGbahA+nFqjWo2G4Xyisf0ZV4WViIec7iKTX sj09ZFJd7rSMGcEpulEvIhg1A90VV9GrrA7aEWaMHEf7bSJ7ESTiztcl4+q5twgZNyWe aUQ0qgotiKpuR2SoYGxwRSJN9NJNNtfnRHId8h9JNGy1CWpgrQtAjwnlDsU0fdIjnj8l 6XDX4K5rR1hY8h6i4eUc6B9NRjz7QXoYSCX4/1NBrjFQ1zZakxDq8t+3YXtuHlj02Brb IxAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742309168; x=1742913968; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:message-id:to:from:date :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wjNKuji0ZsQbIYSzfanC4wAXgMp5awuCLlIyVQt5gk0=; b=mqLxP7ACDgzVHirADNDG6jb/0AH5yVTqdIQrBGo40q/P0sg1n3u6cnd2nfki3K9uT8 A5g0lFmjGAyaoa1lf94ZHykAX71vRzJGkWJ5m0Gr64T3dVHFBwWxRicdCR6vLC0WmK6S CF6FFOXqo6wU2qJavNs1wsfukJEZm7U8jcPMhEthHyTYcZ+H2zdVl4xBu/JnOC8J4tMC /aKpuAP2q10ruOHIC2P9B4NysysQzwx310KnERlk+PpUBborLfB0AfOyHnTx8qBmK49T RRUtTEPJNwHCPFJ3eA6YRZUP6oh75V3b5JkYC1sI/P/a4V9fSJjNgGic83MqDMU76gg8 yang== X-Forwarded-Encrypted: i=1; AJvYcCVsLdW5BUNHUI0VLhMyFH7zCDh3agjCD1US60FmRFzWvZ9CWwsMi22Kk2ibL52j1oNeqEs/@ilbers.de X-Gm-Message-State: AOJu0Yx5UTpWqPbrPP6cCOecU1tFyCDrbUwniVPUiCB9ca3kEN4uG9hA 6cV1xCC2Xf7/4lCQkhIENWw6fK3T0SKWRk9/8tGShIBJpxbCOMul X-Google-Smtp-Source: AGHT+IHK/hvF2POCWYBjAlsUosOfCItHwljZg/cR76s0UfjaqHNXn1TG54PceN/sWBvBlEKDS1kG6A== X-Received: by 2002:ad4:5dca:0:b0:6e8:f4c6:6813 with SMTP id 6a1803df08f44-6eb1b83f886mr52392436d6.13.1742309167815; Tue, 18 Mar 2025 07:46:07 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com; h=ARLLPAKxsuxXP0g6FDY6Bi6y9PWq+ANaZxiywyb056sBpzMSpQ== Received: by 2002:a0c:c489:0:b0:6e8:ea1c:4db2 with SMTP id 6a1803df08f44-6eadbbaedb2ls1086866d6.0.-pod-prod-05-us; Tue, 18 Mar 2025 07:46:06 -0700 (PDT) X-Received: by 2002:a05:620a:404d:b0:7c0:b523:e1b6 with SMTP id af79cd13be357-7c57c764effmr2458465185a.11.1742309166510; Tue, 18 Mar 2025 07:46:06 -0700 (PDT) Date: Tue, 18 Mar 2025 07:46:05 -0700 (PDT) From: "'David Kauschke' via isar-users" To: isar-users Message-Id: Subject: Using Isar SDK on Ubuntu 24.04 with GCC 12 Causes Segmentation Fault MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_63812_187848732.1742309165641" X-Original-Sender: D.Kauschke154@googlemail.com X-Original-From: David Kauschke Reply-To: David Kauschke Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-4.7 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_REPLYTO_END_DIGIT, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: hGgSlZDdD3k5 ------=_Part_63812_187848732.1742309165641 Content-Type: multipart/alternative; boundary="----=_Part_63813_610486756.1742309165641" ------=_Part_63813_610486756.1742309165641 Content-Type: text/plain; charset="UTF-8" ### 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 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. ------=_Part_63813_610486756.1742309165641 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
### Description

When using the Isar SDK on Ubunt= u 24.04 with GCC 12 to cross-compile a simple application, the compiler cra= shes 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 gc= c-12-aarch64-linux-gnu`

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

### Isar Version
- **Commit:** [95ec8a229afd6a42ed9990f= 4700becf635fa2ae3](https://github.com/ilbers/isar/commit/95ec8a229afd6a42ed= 9990f4700becf635fa2ae3)

### 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-arm6= 4-v8
sudo tar --strip-components=3D1 -xf isar-image-base-sdk-raspios-b= ookworm-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 Applicat= ion

```sh
echo 'int main() { printf("Hello\n"); }' | \
=C2=A0 ./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 com= piler error: Segmentation fault signal terminated program cc1
Please s= ubmit a full bug report, with preprocessed source (by using -freport-bug).<= br />See <file:///usr/share/doc/gcc-12/README.Bugs> for instructions.=
```

### Expected Behavior

The compiler should s= uccessfully build the `helloworld` executable without crashing.

= ### Observed Behavior

GCC 12 crashes with a segmentation fault d= uring compilation.

### Additional Information

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

## Questions

Any insights or workaroun= ds to resolve this issue would be greatly appreciated.

1)) Has a= nyone 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 fr= om the SDK instead from Ubuntu 24.04?
=C2=A0 =C2=A0 - Maybe some distr= ibution 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 &= quot;isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to isar-use= rs+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-use= rs/d9612d53-112b-4e21-b8b0-966e34c9de00n%40googlegroups.com.
------=_Part_63813_610486756.1742309165641-- ------=_Part_63812_187848732.1742309165641--