Mac OS libpioc.a requires ranlib -c

Aperta
#1,866 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@edwardhartnett ci sta già lavorando.

Dal 12/5/2021.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

build

In building PIO (using configure) for testing on MacOS Mojave I have discovered that, in addition to fixes necessary to overcome #1862, the Mac OS linker requires the inclusion of common symbols as definitions with respect to the table of contents. This is achieved by adding the -c flag to the ranlib command. The entry from the ranlib man page is as follows:

-c     Include common symbols as definitions with respect to the table of contents.  This is seldom the intended behavior
       for linking from a library,  as  it  forces  the  linking  of  a library member just because it uses an
       uninitialized global that is undefined at that point in the linking.  This option is included only because this was
       the original behavior of ranlib.  This option is not the default.

One can either edit libtool changing RANLIB to "ranlib -c" after configure completes or run ranlib -c src/clib/.libs/libpioc.a after make completes. Otherwise, make check will fail to compile because of undefined references to _err_buffer.

I am using the Intel 19 compilers and Open MPI 2.1.6 on an iMac Pro. On a side note, I also have to disable the pio_file_fail general test because it hangs with my configuration.

Lingua principale
C
Stelle
162
Fork
60
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NCAR/ParallelIO

Tutte le issue di NCAR/ParallelIO

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.