Advertisement

Build failure on x86 MacOS

Started by January 13, 2025 02:05 AM
2 comments, last by BillyONeal 56 minutes ago

Has this bug been fixed in the post 2.37.0 work so far?

https://github.com/conan-io/conan-center-index/issues/25353

Although it was reported to that Conan repository, I suspect it has not been reported upstream.

I've also run into it with Homebrew Clang 18 and 19.

Thanks,

Rob

This wasn't brought to my attention earlier. Thanks for letting me know.

I will have a look at it, but as I do not have a Mac with x86 env set up I don't know if I'll be able to fix it.

The same code works with clang on Linux. So it appears to be something specific to Mac.

If you could suggest a fix that would be helpful.

Thanks,
Andreas

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement

We are seeing the same thing with the macOS 15 update in vcpkg: https://github.com/microsoft/vcpkg/pull/43509

It looks like they also deprecated some atomics stuff AngelScript uses: https://github.com/microsoft/vcpkg/blob/67289b82d6af3557df612be5ad2efd8801621db5/ports/angelscript/avoid-atomic-deprecation-macos-15.diff

2-36a04abf5c.clean/angelscript/source/as_callfunc_x64_gcc.cpp.o -c /Users/vcpkg/Data/b/angelscript/src/elscript_2-36a04abf5c.clean/angelscript/source/as_callfunc_x64_gcc.cpp
/Users/vcpkg/Data/b/angelscript/src/elscript_2-36a04abf5c.clean/angelscript/source/as_callfunc_x64_gcc.cpp:148:4: error: invalid CFI advance_loc expression
  148 |                 " .cfi_def_cfa_register rsp \n"
      |                  ^
<inline asm>:44:2: note: instantiated into assembly here
   44 |  .cfi_def_cfa_register rsp 
      |  ^
1 error generated.

Perhaps Clang on Linux with the right control flow integrity switches flipped could repro? Looks like the bit that emits this was added in 2023: https://github.com/llvm/llvm-project/commit/0b0672773e8b2ed01ad3fce103f4d84becfdd1ed according to https://github.com/llvm/llvm-project/issues/89087

Advertisement