Skip to content

Finding error ['/usr/include/time.h' file not found] while compiling WRF 3.7.1 on Mac #1

@ThisIsTian

Description

@ThisIsTian

Hi. While installing WRF 3.7.1 on my Macbook pro, I got this error:

read_grib.c:48:10: fatal error: '/usr/include/time.h' file not found

include "/usr/include/time.h"

    ^

gcc -I. -I../MEL_grib1 -w -O3 -c -DMACOS -DDM_PARALLEL -DSTUBMPI -DMAX_HISTORY=25 ->DNMM_CORE=0 -c write_grib.c
1 error generated.
make[5]: [read_grib.o] Error 1 (ignored)
ar ru ../libio_grib1.a alloc_2d.o read_grib.o write_grib.o
ar: read_grib.o: No such file or directory
make[5]: [thisdir_archive] Error 1 (ignored)

It could be fixed by removing the macro of MACOS

//#ifdef MACOS
//#include "/usr/include/time.h"
//#else

include 'time.h'

//#endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions