Open Juke34 opened 2 years ago
adding
#if defined(__APPLE__) || defined(__NetBSD__)
#define st_atim st_atimespec
#define st_ctim st_ctimespec
#define st_mtim st_mtimespec
#endif
in the header of ReadSequence.c solve the problem but now I have another problem
Consolidate compiler generated dependencies of target SYSTEM
[ 36%] Building C object src/C/utils/CMakeFiles/SYSTEM.dir/system.c.o
In file included from /Users/jacda119/git/pftools3/src/C/utils/system.c:11:
/Users/jacda119/git/pftools3/src/C/include/system.h:90:32: error: unknown type name 'cpu_set_t'
typedef struct Affinity_Mask { cpu_set_t data; } Affinity_Mask_t;
^
1 error generated.
make[2]: *** [src/C/utils/CMakeFiles/SYSTEM.dir/system.c.o] Error 1
make[1]: *** [src/C/utils/CMakeFiles/SYSTEM.dir/all] Error 2
make: *** [all] Error 2
From what I remember, OSX should be recognized and Affinity deactivated. I will have a look at this and come back to you.
Thierry
Sent from MailDroid
-----Original Message----- From: Jacques Dainat @.> To: sib-swiss/pftools3 @.> Cc: Subscribed @.***> Sent: Tue, 12 Oct 2021 10:50 AM Subject: Re: [sib-swiss/pftools3] Error compiling on OSX (#24)
adding
#if defined(__APPLE__) || defined(__NetBSD__)
#define st_atim st_atimespec
#define st_ctim st_ctimespec
#define st_mtim st_mtimespec
#endif
in the header of ReadSequence.c solve the problem but now I have another problem
Consolidate compiler generated dependencies of target SYSTEM
[ 36%] Building C object src/C/utils/CMakeFiles/SYSTEM.dir/system.c.o
In file included from /Users/jacda119/git/pftools3/src/C/utils/system.c:11:
/Users/jacda119/git/pftools3/src/C/include/system.h:90:32: error: unknown type name 'cpu_set_t'
typedef struct Affinity_Mask { cpu_set_t data; } Affinity_Mask_t;
^
1 error generated.
make[2]: *** [src/C/utils/CMakeFiles/SYSTEM.dir/system.c.o] Error 1
make[1]: *** [src/C/utils/CMakeFiles/SYSTEM.dir/all] Error 2
make: *** [all] Error 2
-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/sib-swiss/pftools3/issues/24#issuecomment-940802494
building info:
compiling with make: