Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation Error on FreeBSD #525

Closed
williamkibira opened this issue Apr 10, 2019 · 5 comments · Fixed by #986
Closed

Compilation Error on FreeBSD #525

williamkibira opened this issue Apr 10, 2019 · 5 comments · Fixed by #986

Comments

@williamkibira
Copy link

Hello, when i'm compiling the master branch on Free BSD 12 i get the following error

$ make
Scanning dependencies of target pistache
[  3%] Building CXX object src/CMakeFiles/pistache.dir/common/cookie.cc.o
In file included from /home/william/Libraries/cxx/pistache/src/common/cookie.cc:9:
In file included from /home/william/Libraries/cxx/pistache/include/pistache/stream.h:9:
/home/william/Libraries/cxx/pistache/include/pistache/os.h:48:5: error: unknown type name 'cpu_set_t'; did you mean 'cpusetid_t'?
    cpu_set_t toPosix() const;
    ^~~~~~~~~
    cpusetid_t
/usr/include/sys/types.h:86:22: note: 'cpusetid_t' declared here
typedef __cpusetid_t    cpusetid_t;
                        ^
1 error generated.
*** Error code 1

Stop.
make[2]: stopped in /home/william/Libraries/cxx/pistache/build
*** Error code 1

Stop.
make[1]: stopped in /home/william/Libraries/cxx/pistache/build
*** Error code 1

Stop.
make: stopped in /home/william/Libraries/cxx/pistache/build
$ 

Any chance this has something to do with the OS ?

@hydratim
Copy link
Contributor

Pistache currently only supports Linux (due to some of the syscalls we use).
I don't know if we will change this at some point, but there hasn't been any active effort to do so yet.

@abdbaddude
Copy link

abdbaddude commented Apr 14, 2019

Would be nice to consider it for MacOSX Darwin too. Had the same issue .

System type
Abdurrahmans-MacBook-Pro:build abdurrahmanadebiyi$ uname -a

Darwin Abdurrahmans-MacBook-Pro.local 18.5.0 Darwin Kernel Version 18.5.0: Mon Mar 11 20:40:32 PDT 2019; root:xnu-4903.251.3~3/RELEASE_X86_64 x86_64

Please see similar error below

[  3%] Building CXX object src/CMakeFiles/pistache.dir/common/cookie.cc.o
In file included from /../sw/pistache/src/common/cookie.cc:9:
In file included from /../sw/pistache/include/pistache/stream.h:9:
/../sw/pistache/include/pistache/os.h:48:5: error: unknown type name 'cpu_set_t'
    cpu_set_t toPosix() const;
    ^
1 error generated.
make[2]: *** [src/CMakeFiles/pistache.dir/common/cookie.cc.o] Error 1
make[1]: *** [src/CMakeFiles/pistache.dir/all] Error 2
make: *** [all] Error 2

@hydratim
Copy link
Contributor

As mentioned we were aware of the issue, and I'm sure we will consider possible ways to resolve this.
At the moment we're still pushing towards an 0.1 release so once we're there I'm sure we'll review cross-platform support.

@williamkibira
Copy link
Author

williamkibira commented Apr 15, 2019 via email

@dennisjenkins75
Copy link
Collaborator

Anyone is allowed to contribute a PR. If you add actual support for FreeBSD, please create the appropriate abstractions to hide the OS-level differences first. IDK if travis-ci supports FreeBSD build hosts, but if t does, please add any relevant FreeBSD test environments to our travis-ci config.

Tachi107 added a commit to Tachi107/pistache that referenced this issue Sep 27, 2021
related to pistacheio#41
related to pistacheio#183
related to pistacheio#760
closes     pistacheio#960
related to pistacheio#985

related to pistacheio#6
related to pistacheio#538
related to pistacheio#649
related to pistacheio#741
related to pistacheio#874

closes     pistacheio#525
Tachi107 added a commit to Tachi107/pistache that referenced this issue Sep 27, 2021
related to pistacheio#41
related to pistacheio#183
related to pistacheio#760
closes     pistacheio#960
related to pistacheio#985

related to pistacheio#6
related to pistacheio#538
related to pistacheio#649
related to pistacheio#741
related to pistacheio#874

closes     pistacheio#525
dennisjenkins75 pushed a commit that referenced this issue Sep 27, 2021
related to #41
related to #183
related to #760
closes     #960
related to #985

related to #6
related to #538
related to #649
related to #741
related to #874

closes     #525
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants