Menu

#304 Building on macOS fails; "aliases are not supported on darwin"

0.11.0
closed
None
http://openocd.zylin.com/6241
Bug
2021-05-17
2021-05-13
No

OpenOCD can no longer be built on macOS after the 36ae487 commit:

  ../src/helper/command.c:157:22: error: aliases are not supported on darwin
  __attribute__((weak, alias("workaround_createcommand")));

The OS is x86_64-apple-darwin19.6.0 and the compiler used is x86_64-apple-darwin13.4.0-clang .

Discussion

  • Antonio Borneo

    Antonio Borneo - 2021-05-13

    The commit 36ae487 is supposed to have short life and be quickly reverted. There is already http://openocd.zylin.com/6228/ queued to remove it. But my plan is to first merge http://openocd.zylin.com/6226/ and after some time if nobody reports issues, merge also 6227 and 6228.
    This issue with macOS is unexpected, but I don't have a macOS for testing. Thanks for reporting it!
    As a quick fix I will have just sent out a patch to allow compiling the code of 36ae487 on Linux only.
    http://openocd.zylin.com/6241/

     
  • Antonio Borneo

    Antonio Borneo - 2021-05-13
     
  • Adam Jeliński

    Adam Jeliński - 2021-05-13

    Thanks for your help and such a quick reaction. I'm looking forward for that fix to be merged to master.

     
  • Antonio Borneo

    Antonio Borneo - 2021-05-13

    If you can, please test http://openocd.zylin.com/6241 and add the code-review score.
    I have added your email at sourceforge as "Reported-by:". If you prefer I use another email, just let me know

     
  • Adam Jeliński

    Adam Jeliński - 2021-05-17

    I tested the new master with this change and the issue is fixed on macOS, thanks!

    I'm not sure how can I add any score there and I'm wondering if it's still important since it's been merged already?

     
  • Antonio Borneo

    Antonio Borneo - 2021-05-17
    • status: accepted --> closed
     
  • Antonio Borneo

    Antonio Borneo - 2021-05-17

    Closed! Thanks

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.