-
Notifications
You must be signed in to change notification settings - Fork 5
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
using cmakeport to build ibmruntimes zoslib fails #22
Comments
More investigation on this issue. At first, I thought this was a 2.4 versus 2.4.1 problem. I have /bin/xlclang 2.4.1 installed now. It is being used to build zoslib. With that said, here is what I found. In I looked at the upstream stable tag v3.26.4 and the file() write mechanism was replaced with a compile sample written to a variable. Then the try_compile() routine used this variable for its source. Sadly this new parameter supporting SUPPORT_FROM_VAR is not in my current source. Its in the next stable version 3.25. See here. With that said, I short-cut the code so it did not attempt to test the compiler to see if it would build zoslib. It did not.
Looking at the error above, when it tries to link, it uses the GNU gcc style. obj file and -o output file name. Attempting this
For reference, here is the notes and diff for the file write attempts. @igortodorovski @mike fulton This is relative to the cmake failure with IBMRunTimes and Zos Open Tools zoslib I'm currently using the IBMRunTimes version to build, and using the cmakeport for cmake. With that said, I don't have a diff of cmakeport since the install doesn't have a git repo. Instead, I have two dirs. The CMake-heads.v3.24.2 and the working CMake-heads.v3.24.2 (cmake.mods) install which I'm modifying.
and the diff is:
And the invocation
The end result is that file(WRITE...) or file(GENERATE OUTPUT ...) both generate the test file in the file system, BUT not by the time, the file(READ...) or try_compile(..) routine occurs. Any advice on what to do? I am thinking a newer version of cmake might fix this. |
Perhaps this should be here since I was using this version of cmake to build zoslib.
ibmruntimes/zoslib#21
The text was updated successfully, but these errors were encountered: