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

Can I compile only omake? #1034

Open
ghost opened this issue May 17, 2024 · 6 comments
Open

Can I compile only omake? #1034

ghost opened this issue May 17, 2024 · 6 comments

Comments

@ghost
Copy link

ghost commented May 17, 2024

I'm only interested in omake at the moment. I want to compile omake in Cygwin and have it work in this POSIX environment.

@LADSoft
Copy link
Owner

LADSoft commented May 17, 2024

omake has its own repository outside the compiler project, but the sources are likely to lag just a little in that repository as I don't keep it up to date except when I do a release....

https://github.com/LADSoft/OMAKE

I think that might have a separate make file that will build the project.

basically if you want to snag it from the compiler project rather than from there you have to grab the 'omake' and 'util' directories, it doesn't need anything else.

The problem is going to be, that while it will compile in a linux environment, it doesn't actually have certain functionality it needs in that environment as we haven't finished porting it. Unfortunately, omake is the one project out of the suite that is heavily dependent on WIN32 functionality.... we've been updating it slowly but that hasn't been a focus.

The windows functionality is mostly encapsulated in os.cpp... if interested in seeing the scope of the problem you can look for the #define TARGET_OS_WINDOWS. Additionally though we made a semaphore implementation for the jobserver portion and we did port that to linux, however it has never been tested in that environment.. so it may be broken.

note that the 'util' directory also has some dependencies on windows, but, for your purposes possibly the only one that would bite you at this point is missing functionality for wildcard file names, and I'm not sure but I don't think omake uses even that....

@ghost
Copy link
Author

ghost commented May 18, 2024

The problem is going to be, that while it will compile in a linux environment, it doesn't actually have certain functionality it needs in that environment as we haven't finished porting it.

Please go away from using semaphores on Linux. GNU Make uses named pipes on Linux:

https://www.gnu.org/software/make/manual/html_node/POSIX-Jobserver.html

@LADSoft
Copy link
Owner

LADSoft commented May 20, 2024

Im not sure what exactly the rational was for not putting posix named semaphores in from the beginning, as I didn't write the code. When I get there I will have to figure something out about that though I guess....

@chuggafan
Copy link
Contributor

chuggafan commented May 20, 2024 via email

@LADSoft
Copy link
Owner

LADSoft commented May 20, 2024

@chuggafan. oh in my comment I was referring to a comment in semaphores.h about named pipes being even worse than they are on windows, so they aren't used. Guess that is a different part of the code...

I looked at linux_jobserver.cpp, I don't know about the original implementation but the current implementation seems to use pipes???? I guess that is a reasonable implementation as well...

@chuggafan
Copy link
Contributor

chuggafan commented May 20, 2024 via email

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

No branches or pull requests

2 participants