From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by sourceware.org (Postfix) with ESMTPS id DAAE83858C60 for ; Tue, 6 Feb 2024 18:37:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DAAE83858C60 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DAAE83858C60 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::22e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707244675; cv=none; b=geHbNEPeVdwW97BqlimWzqV6QnY2kYA+/no+pqHRR84XPxCl6I2JD6nBuifRO1j0djNr71m8rfcYt5qypkLf8x5FZL80cxXKVLC1DVtQn9uFSSfRka5uHs/qwtepmtQOwm2y9lBprNp0PULEPwRW9gJjLIfl5cFktYDZ0kSYzL0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707244675; c=relaxed/simple; bh=b4C6m2yRXqOgwpook9hE8DfhwRVmiE3XmuXuFyC9hPU=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=Wo/J2HeKO6r5Q8e9DUpdGEj8jf4oepXVctENRDP6fk3t7+7a3kklaGo3JulkkDN5BtwvD7q4DhFfprAl646WIVJcVHWLdAdNRAzqJ5pfR7qjeDwpiq7RVGoqiJv7ReVXORHyLMkctDBiMt9OHWOGJl3GJ8zMnEYZuFkxkek4JN4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2d073b54359so76567901fa.0 for ; Tue, 06 Feb 2024 10:37:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707244672; x=1707849472; darn=gcc.gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=bZFbSAG7VV5GVltlARrJvEjS1uL6odtETo1PSmtvFUU=; b=Yw+MOfDuxBKikF4V13GJKeSD9kLhCane0xP5/gRYS3QUhTPMn2BBRXMNMxo6nQoKKl WFgamqLzmXRkEzldIjQZGrhU1eJFNwJ2Rb3PoTZ1WKKhZGOG3zQC12zxfF5eWOElrsGU 8BFzwXFiY03Ojso1RkTOS7Unbi/RL3t/AMJPq8A8qOokwXwtchdxz1B8wF/HODRGJ4SL T8KnaksICp9lUgSJPyhN5YndGQ7qAMoHjuQlmgJjavqVDt0xaBh6da/SQi1fgYGLb0wQ R/Jz/9gQ8LfSBTRHNCYsrbbQvOwQnlirh24ObjnpdxeGvbxAX8ivlohv8G3XnpZwVYpA Ktig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707244672; x=1707849472; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=bZFbSAG7VV5GVltlARrJvEjS1uL6odtETo1PSmtvFUU=; b=CI99yNRTVJnh833N+/BI8KOu2vyFUodmwXFVkVwl0Yi/BN8fjcKDyserg7anvTzaGp fTnHVkGErecP453tYZkjpFx+CU7mSKtXE26upRAjACq+hFW4Hf1anwfiwSeKIhWhwLsq rmtJvAD9YXmu0L3/13Rn7bynb/VO9M90DYVAK2JplSdMdCVz10C4VV1vViyLIP+nNdeZ jiFfA5X25FpPEAV0AcIQBTT9uP3lLr9yvL+SGzRMA6Yt0qVcEA1UphRmHDXZ/FgLb/m+ LcgOE32jNa/ZKQItlUC4uJb0ZPgHVDty+chohbNObjXs330qsBd7aDqZ8zSiq6zTJmP3 5axw== X-Gm-Message-State: AOJu0Yynp9WTJMQ+XpomTNt/ZEbKm2haEKlNksAx2jQAyY9cbuLT0Zsn WUhidhWTeXOl/LlCO4QezDmJO00kl+YdxLM8UcBVyaPalMDV6ujG62oebGEo/VDMbOZOrOfplAb NohHmUitHogFhlwNPikyrOyoJN9kH/X+HcCqpAcnb X-Google-Smtp-Source: AGHT+IFQQE0oqsv0657blvjKX9O/0dbw1S3oTK5wd+Dmb1K1sS38+ZOwg3OnhAaynnRBHagy1Z0KxhPRpMm0PyFoJXo= X-Received: by 2002:a2e:b527:0:b0:2d0:ac11:43c2 with SMTP id z7-20020a2eb527000000b002d0ac1143c2mr1697065ljm.50.1707244671669; Tue, 06 Feb 2024 10:37:51 -0800 (PST) MIME-Version: 1.0 From: Vincenzo Palazzo Date: Tue, 6 Feb 2024 19:37:40 +0100 Message-ID: Subject: Info about libatomic not automatically linked with C11 code To: gcc-help@gcc.gnu.org Content-Type: multipart/alternative; boundary="0000000000003318b70610bae055" X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --0000000000003318b70610bae055 Content-Type: text/plain; charset="UTF-8" Hi, I was looking to contribute to GCC, and I think the best way to contribute to it is to patch some problems that I have on my codebase. The error that I am debugging is the following one tmp.c:(.text+0x68): undefined reference to `__atomic_load' /bin/ld: tmp.c:(.text+0xfa): undefined reference to `__atomic_compare_exchange' /bin/ld: tmp.c:(.text+0x13e): undefined reference to `__atomic_feraiseexcept' /bin/ld: tmp.c:(.text+0x172): undefined reference to `__atomic_load' /bin/ld: tmp.c:(.text+0x198): undefined reference to `__atomic_load' collect2: error: ld returned 1 exit status I also found an older report [1] and I was looking to discuss it with someone that can you help me find a way to patch this currently I have no idea why this is happening at the compiler level. [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81358 Thanks, Vincent. --0000000000003318b70610bae055--