public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
To: gcc-help@gcc.gnu.org
Subject: Info about libatomic not automatically linked with C11 code
Date: Tue, 6 Feb 2024 19:37:40 +0100	[thread overview]
Message-ID: <CAKy8djQp2ptMrUjNqUCZHtUv8=s2McJyLSAF4igs=A8x3E_-_g@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 864 bytes --]

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.

                 reply	other threads:[~2024-02-06 18:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKy8djQp2ptMrUjNqUCZHtUv8=s2McJyLSAF4igs=A8x3E_-_g@mail.gmail.com' \
    --to=vincenzopalazzodev@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).