AmigaLabs / clib4

Clib4 for AmigaOS4
Other
14 stars 7 forks source link

sem_t is not defined in semaphore.h #180

Closed 3246251196 closed 4 months ago

3246251196 commented 4 months ago

In a cloned clib4 (master) cd test_programs/threads && ppc-amigaos-gcc -o sem semaphore_test.c -mcrt=clib4 Leads to:

semaphore_test.c:8:7: error: storage size of ‘mutex’ isn’t known
    8 | sem_t mutex;
      |       ^~~~~

Said header file shall define this type.

afxgroup commented 4 months ago

Did you forgot -mcrt=clib4? :P

3246251196 commented 4 months ago

@afxgroup Hi. No. I have now fixed it in my initial post.

afxgroup commented 4 months ago

Well, i've tried with beta10 and it is working. Maybe it is time to merge it into master?

3246251196 commented 4 months ago

@afxgroup yep. It is in beta10. Any reason why not to merge? Is it worth running a full build of adtools x compiler to ensure clib4 does not cause any build issues first?

3246251196 commented 4 months ago

beta10 has fixed this. We await for it to be merged into master.