-
Notifications
You must be signed in to change notification settings - Fork 2
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
ast.hh present but not compiled OSX installation #53
Comments
Hi Ben, Thanks for reporting the issue! I am checking for ast.hh by using According to the Autoconf website: Macro: If the system header file header-file is compilable, execute shell commands action-if-found, otherwise execute action-if-not-found. If you just want to define a symbol if the header file is available, consider using includes is decoded to determine the appropriate include directives. If omitted or empty, configure will check for both header existence (with the preprocessor) and usability (with the compiler), using I think it can be resolved by the following solutions:
instead of the code given below (present between lines 73-74)
might resolve the error. Please run
You can put the code given below instead of the code on lines 73-74
Please let me know the results you get (I would have tried these myself but unfortunately I don't have access to an OSX system).
Now, when you did
Thanks again! |
Hi Akshit- thanks so much for your quick response and explanation. I have tried both solutions but am still having trouble- I get the same error message during installation with both approaches unfortunately:
Whilst autoreconf updates the configure file I suspect that there is an issue here-
Do you have any thoughts about what might be going on here? I think that the packages should be up to date but happy to take any suggestions! Thanks again for your help. |
Thanks for trying them out! The configure script might not have been updated correctly as you are getting the same error (that you got previously) for both the solutions but we are not even using the We need to make sure that there are no errors while running To remove the undefined macro errors, you can try to install After installing Please let me know if this resolves the issue for you. Thanks! |
Thanks again- I think pkgconfig installs fine as follows:
But still produces the same error when running autoconf.
There is a suggestion in that SO thread about adding ACLOCAL_AMFLAGS = -I m4 to the toplevel makefile.am. Could there be an analogous solution here? Thanks. Bw, |
I think I found the problem: It is a syntax error made by me. Apologies! Please see the edited first approach (I had put Please let me know if this works for you! Also did you get any positive results by trying the approach 2? Thanks! |
Thanks for the response and sorry my slow reply. The situation is now: autoreconf seems to work fine with second option but installing through command line returns:
But option 2 is still not working reconf as follows:
and installing through command line returns:
In both cases I am adding:
To the configure file following autoreconf. I would add I have been having similar issues on my linux machine (Ubuntu 20.04.1- though not dedicated much time to sorting it out) so perhaps I am making a silly mistake in a step somewhere if this is usually working completely fine? Thanks very much for any further suggestions! Cheers, |
Thanks and no worries! The message : I didn't face any errors on my linux system for option 2. I have attached my It would be great if you can open an issue about the problems you are facing with Ubuntu. You can also drop me a mail if you think that there is a mistake from your end or if you need any other help with the package. I will be happy to help you out. Please understand that the package has been recently published and is yet to be used by significant number of users. Thanks again! |
Thanks for the config files- I think there is some progress with the second option- now after rebuilding and autoreconf, then attempting installation, we get this:
Though ast.hh is definitely present in the folder it is looking in- by adding a custom flag to each of those warnings in the configure file I can see it is this chunk at 3747 where there is a problem: `if eval test "x$"$as_ac_Header"" = x"yes"; then : else Can you see how this would come about? No trouble at all I completely understand- thanks so much for your help in trying to get this working for me. Cheers, |
The reason for the message It's confusing that the error message is displayed even though the file is present. The chunk of code that you have shared is an Can you please share the output you got after using the option 1 (using Once this is resolved, I will publish a new release of the package. Thanks, |
Hi Akshit- sorry again for the delay. Here is what I get with option 1:
I will run the same configure on my ubuntu and get back to you. Thanks again. |
Thanks for the output! It means that the file has not been located at Sure, that'd be great. Thanks, |
Very mysterious- looks like it should be present:
|
I have attached the I have also attached a shell script (please rename it to test.sh) for checking if it works. Can you please check its output? Thanks, |
Thanks for this- had the same error with the new configure_option.. test shell works when I change line 3 to header_file=/Users/khcd317/Documents/Lib/libminizinc/include/minizinc/ast.hh: This should be what the configure.ac is pointing configure towards right? Cheers, |
Thanks! Yes, the
Here the The above script is a part of Did you do Please let me know of the progress. Thanks, |
Hi Akshit- yes I am running autoreconf following moving the new configure file into the directory (renaming configure.ac). If I run with -v flag as well it looks like this-
But still I get
I am still running installation as follows:
It's very odd-- the test.sh script is still running fine. Cheers, |
Thanks Ben,
I have attached a configure_option_1.txt after removing a syntax error which was not appearing on running
I have also attached the Thank you for continuously being interested! Please let me know if this resolved your issue! |
No problem and thanks a lot- I'm happy to try and help and sorry there isn't an obvious solution: The configure script you provided still returns the following:
So I think it shouldn't be a problem with autoreconf- regardless I tried reinstalling- I still get the same messages
but it has some suggestions when I reinstall: `If you need to have openssl@1.1 first in your PATH run: For compilers to find openssl@1.1 you may need to set: For pkg-config to find openssl@1.1 you may need to set: ==> readline For compilers to find readline you may need to set: For pkg-config to find readline you may need to set:
Thanks a lot for the continued support: when I have some time I was also revisit ubuntu. Cheers, |
Thanks a lot Ben, I will look more closely and see if there are any issues in the scripts. It is very confusing that the file has not been found by the script. It will be interesting to see if the same script works on your Ubuntu system. Thanks, |
Thanks again- spent a bit of time on linux and started from scratch and managed to install properly, so good news there. Please let me know if you come up with any progress on mac. Cheers, |
Thanks Ben, Can you please let me know it worked using the standard I have updated the version on CRAN (added I am testing the package on OSX using Travis CI and the steps to are as follows:
Here, the difference is just that libminizinc is stored in the default location i.e This works fine and passes the tests on Travis. If this works for you then we will be able to find out if the issue is with the code implemented when Thanks, |
Yes, this was the standard install through r console. Thanks for the new advice for OSX- I will try and then update you. Cheers, |
Thanks a lot! I also tried to install the package on someone's OSX system and was able to install successfully without any issues. The installation logs:
The compiler details:
The OS details:
In your initial attempt to install:
I have found several SO questions with the same issue like 1, 2, etc. I think this is a compiler specific issue. Can you please check if your compiler is working correctly? Please keep me updated with the progress! Thanks, |
Hi Akshit- so sorry it took so long to come back on this. Basically, I can't find any problem with the compiler- normal basic tests are all working OK. There was some issue with xcode command line tools which was solved by following the steps here https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md#The-acid-test and it doesn't change the output when attempting to reinstall. Do you have any ideas for more specific compiler tests to run to check if this is the issue? Otherwise, if this is just an issue that seems to be specific to me please don't worry any further- I am now working with rminizinc on Ubuntu. Thanks again for all your help. |
Hi- I'm having trouble installing on OSX 10.15.7.
Running installation steps in R, concluding with
install.packages("rminizinc", configure.args="--with-mzn=/path/to/libminizinc --with-bin=/path/to/bin")
runs fine but doesn't point to a LIBMINIZINC_PATH, and returns "".
Attempting to install through terminal with:
SUDO R CMD INSTALL rminizinc_0.0.3.tar.gz --configure-args="--with-mzn=/Users/khcd317/Documents/Lib/libminizinc --with-bin=/Users/khcd317/Documents/Lib/libminizinc"
Returns this section which I think is responsible for the failed installation:
configure: Custom libminizinc path provided! checking /Users/khcd317/Documents/Lib/libminizinc/include/minizinc/ast.hh usability... no checking /Users/khcd317/Documents/Lib/libminizinc/include/minizinc/ast.hh presence... yes configure: WARNING: /Users/khcd317/Documents/Lib/libminizinc/include/minizinc/ast.hh: present but cannot be compiled configure: WARNING: /Users/khcd317/Documents/Lib/libminizinc/include/minizinc/ast.hh: check for missing prerequisite headers? configure: WARNING: /Users/khcd317/Documents/Lib/libminizinc/include/minizinc/ast.hh: see the Autoconf documentation configure: WARNING: /Users/khcd317/Documents/Lib/libminizinc/include/minizinc/ast.hh: section "Present But Cannot Be Compiled" configure: WARNING: /Users/khcd317/Documents/Lib/libminizinc/include/minizinc/ast.hh: proceeding with the compiler's result checking for /Users/khcd317/Documents/Lib/libminizinc/include/minizinc/ast.hh... no configure: header file ast.hh not found at custom path! configure: Solver binaries are present but libminizinc is not present or built!
Looking in the source code, I was originally having trouble with the installation finding libmzn.a: this seems to be fixed by inserting
file=${with_mzn}/libmzn.a
at line 3748 in the configure file. This line is in the corresponding chunk of code above starting at 3711. Does this seem right- was it really an omission or am I misunderstanding?
Any ideas where I might be going wrong would be very much appreciated. Please let me know if you need any more details and thanks a lot for any help.
The text was updated successfully, but these errors were encountered: