-
Notifications
You must be signed in to change notification settings - Fork 7
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
Building Bonmin 1.8 fails with Visual Studio 2017 #147
Comments
Hmm, thought about it for a while, but nothing really came to my mind why that should have worked before or what has changed recently. It could play a role that this is a
I think that is uncommon and it should be easy to patch up Bonmin to avoid this, i.e., don't do
but add these libs directly to
|
Thanks, yeah, it always struck me as strange that we make a library, only to add it to another library. I finally concluded that the problem must be due to a difference in how I guess I will try to make the change you suggest, but I don't want to put a huge effort into this (obviously). |
Ugh, so the final answer is that in Visual Studio 2015, the directory separator in the output of |
I'm encountering a failure building Bonmin 1.8 with the Visual Studio compiler and I can trace the reason, I just can't figure out how it was ever possible to build it in the past, as this issue is long-standing. The problem is related to the same one we've patched
libtool
for in the past. Thefunc_extract_an_archive
doesn't work properly in Windows, both because of line endings and (as I now realize) directory separators. In a nutshell,libtool
useslib -nologo -list
to find out what files are in a library.libtool
pipes this intoxargs echo
to get rid of the carriage returns, but this fails because of line endings, so our patch also pipes it throughdos2unix
. But in Bonmin, the libraries are built from files that live in subdirectories and so we getWhen we pipe this through
dos2unix
and thenxargs echo
, the\
characters get removed and we end up withand the later extraction of the object files from the library then fails. I'm just totally perplexed by how this can be coming up now. I spent many hours/days tracking down and patching the error with line endings, which affects
Cgl
and I'm certain I've built Bonmin successfully since then. @svigerske can you help me regain my sanity? I don't really want to patch the patch, given that this is now an old version of Bonmin and we will soon be making new release (I dearly hope). But I do want to leave it in a condition where it's building, just in case.The text was updated successfully, but these errors were encountered: