Skip to content
New issue

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

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

Already on GitHub? # to your account

macOS CI build issues #205

Open
RadWolfie opened this issue Apr 30, 2024 · 2 comments
Open

macOS CI build issues #205

RadWolfie opened this issue Apr 30, 2024 · 2 comments
Labels
bug Something isn't working priority-high High priority regression Used to work before, now it is broken for certain things.

Comments

@RadWolfie
Copy link
Member

RadWolfie commented Apr 30, 2024

I recently noticed an issue introduced from the #204 pull request, except the issue isn't from the pull request itself. I reran the CI build on my fork repository with several different attempts to resolve the issue with no luck. After trying again search for a specific keyword such as align didn't come back found. Finally, after searching on the Internet, there's also another keyword to search for which is pack. This then returns two finds:

The below redundant message came from the OOVPA.h file. And by commenting pragma pack out cause to fully compiled just fine.
ld: warning: pointer not aligned at address 0x...

I am unsure if the Xbe.h file will also need the fix for the above issue due to an old issue, see side note below.

Side note: I'm still unable to perform CTest on macOS from CI to verify if the build is working or not. The errors:

SimpleIni.h:2217:5: error: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.
SimpleIni.h:2279:5: error: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.


test/util/helper.hpp:86:34: error: reference to unresolved using declaration
            size_t length = std::c16rtomb(output, pCertificate->wszTitleName[i], &state);
                                 ^

test/main.cpp:900:18: error: using the result of an assignment as a condition without parentheses [-Werror,-Wparentheses]
    if (test_ret = cliInputInteractive(argc, argv)) {
        ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
test/main.cpp:900:18: note: place parentheses around the assignment to silence this warning
    if (test_ret = cliInputInteractive(argc, argv)) {
                 ^
        (                                         )
test/main.cpp:900:18: note: use '==' to turn this assignment into an equality comparison
    if (test_ret = cliInputInteractive(argc, argv)) {
                 ^
                 ==
  • SimpleIni module can be update to 56499b5af5d2195c6acfc58c4630b70e0c9c4c21 commit for resolve sprintf deprecated messages.
  • if (test_ret = cliInputInteractive(argc, argv)) { can be update to if ((test_ret = cliInputInteractive(argc, argv))) {
@RadWolfie RadWolfie added bug Something isn't working priority-high High priority regression Used to work before, now it is broken for certain things. labels Apr 30, 2024
@RadWolfie RadWolfie changed the title macOS CI build issue macOS CI build issues Apr 30, 2024
@0Alastair1
Copy link

That c16rtomb error also happens on mingw i686 gcc windows.

@RadWolfie
Copy link
Member Author

Yeah, funny thing about that... when I re-enable CTest for macOS, the log output this:

In file included from /Users/runner/work/XbSymbolDatabase/XbSymbolDatabase/src/test/util/helper.hpp:8:
/Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/cuchar:68:1: note: using declaration annotated with 'using_if_exists' here
using ::c16rtomb _LIBCPP_USING_IF_EXISTS;

which describe below comment is upstream yet still can't find reference.

# NOTE: llvm Clang contain a fix in https://github.com/llvm/llvm-project/commit/311ff3917827131c20d4b8dac4ce0394a2351b94 commit.


That c16rtomb error also happens on mingw i686 gcc windows.

Hmm... The issue also occur on mingw64 except using ucrt64 will work fine.
sources:

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working priority-high High priority regression Used to work before, now it is broken for certain things.
Projects
None yet
Development

No branches or pull requests

2 participants