adtools icon indicating copy to clipboard operation
adtools copied to clipboard

gthr-amigaos-pthread.o is missing

Open ksdhans opened this issue 6 years ago • 2 comments

Compiling with -athread=pthread results in a "cannot find gthr-amigaos-pthread.o" error (with gcc 8.1.0 build 20181211-695)

ksdhans avatar Jan 18 '19 07:01 ksdhans

Am 2019-01-18 08:25, schrieb ksdhans:

Compiling with -athread=pthread results in a "cannot find gthr-amigaos-pthread.o" error (with gcc 8.1.0 build 20181211-695)

Only native is supported for now. The pthread wrapper is already there, but not bundled yet. However, the gcc should really be 8.2.0.

sba1 avatar Jan 18 '19 07:01 sba1

@sba1

Thinking about enabling by default this pthread threading, and find out some cosmetic issue (despite just needs to bunlde compiled file) : file originally named gthr-amigaos-posix.o and not gthr-amigaos-pthread.o. While in options we have -athread=pthread.

So should we rename option to be not -athread=pthread, but instead -athread=posix. Or, rename a file from qthr-amigaos-posix.c to qthr-amigaos-pthread.c.

For the time being we of course can just rename file on compiling time when create an object, but still to have more logic in it imho worth to name all with _posix (and name of file , and option in the -athread) , or with _pthread (also and the name of file, and an option in the -athread).

kas1e avatar Jan 11 '21 07:01 kas1e