bebbo / gcc

Bebbo's gcc-6-branch for m68k-amigaos
GNU General Public License v2.0
33 stars 11 forks source link

Question: libatomic missing from amiga-gcc 13.1.1? #203

Closed isoriano1968 closed 1 year ago

isoriano1968 commented 1 year ago

Hi,

was doing some tests with cross-compilation using the recently build toolchain and received a meson error on libatomic missing:

Compiler stdout: install: /opt/amiga/lib/gcc/m68k-amigaos/13.1.1/ programs: =/opt/amiga/libexec/gcc/m68k-amigaos/13.1.1/:/opt/amiga/libexec/gcc/:/opt/amiga/lib/gcc/m68k-amigaos/13.1.1/../../../../m68k-amigaos/bin/m68k-amigaos/13.1.1/:/opt/amiga/lib/gcc/m68k-amigaos/13.1.1/../../../../m68k-amigaos/bin/ libraries: =/opt/amiga/lib/gcc/m68k-amigaos/13.1.1/:/opt/amiga/lib/gcc/:/opt/amiga/lib/gcc/m68k-amigaos/13.1.1/../../../../m68k-amigaos/lib/m68k-amigaos/13.1.1/:/opt/amiga/lib/gcc/m68k-amigaos/13.1.1/../../../../m68k-amigaos/lib/

Compiler stderr:

../meson.build:1173:4: ERROR: C shared or static library 'atomic' not found

Isn't it usually part of gcc? Because you can find it within projects/gcc/libatomic .. so it does not get build by default?

Thanks for clarifying.

bebbo commented 1 year ago

I guess it's not configured yet... checking.

Y muchas gracias por su apoyo!

isoriano1968 commented 1 year ago

A ti!

bebbo commented 1 year ago

run at least make clean-gcc update-gcc then make your goals and libatomic will be there

isoriano1968 commented 1 year ago

Muchas gracias.

libatomic now found. As we do not have glibc for AmigaOS he is now complaing on libdl ... will try to find the souce and compile myself.

bebbo commented 1 year ago

check this one: https://github.com/BSzili/libdl-hunk

isoriano1968 commented 1 year ago

And thanks again!

isoriano1968 commented 1 year ago

I honestly don't want to become a pain in .. sorry .. but

librt is the next one missing, this question thread is becoming a multiple questions thread ... sorry for that.

isoriano1968 commented 1 year ago

Sorry, just for my understanding of libc the rt functions ar usually part of it, right? I was having a look via m68k-amigaos-nm into libc.a but it looks like it is not part of it. I know that on Solaris we usually use a stub for librt .. would something like this would be possible for amiga-gcc and haing a librt.a?

Thanks