Menu â–¾ â–´

#61 failed to build 3.1.9 for macos sequoia

ipmiutil-3.1.x
closed
None
5
2025-05-17
2024-09-16
Rui Chen
No

👋 trying to 3.1.9 release for macos sequoia, but ran into the following build failure

clang -Wno-implicit-function-declaration -g -O2  -o ipmiutil ipmiutil.o ialarms.o ihealth.o ievents.o ifru.o ifru_picmg.o igetevent.o ireset.o icmd.o ilan.o isensor.o isel.o iserial.o iwdt.o isol.o idiscover.o iconfig.o ipicmg.o ifirewall.o ifwum.o ihpm.o itsol.o idcmi.o iuser.o oem_kontron.o oem_fujitsu.o oem_intel.o oem_sun.o oem_supermicro.o oem_dell.o oem_quanta.o oem_hp.o oem_newisys.o oem_lenovo.o oem_asus.o iekanalyzer.o ipmicmd.o mem_if.o ipmidir.o imbapi.o ipmimv.o ipmild.o ipmibmc.o ipmilipmi.o subs.o md5.o md2.o ipmilan.o ipmilanplus.o  -lpthread
if [ "xno" = "xyes" ]; then \
       ar x  ; \
       ar cru libipmiutil.a ipmicmd.o mem_if.o ipmidir.o imbapi.o ipmimv.o ipmild.o ipmibmc.o ipmilipmi.o subs.o md5.o md2.o  obj/ipmilanL.o obj/ipmilanplusL.o  ; \
       ranlib libipmiutil.a; \
    else   \
       ar cru libipmiutil.a ipmicmd.o mem_if.o ipmidir.o imbapi.o ipmimv.o ipmild.o ipmibmc.o ipmilipmi.o subs.o md5.o md2.o  obj/ipmilanA.o obj/ipmilanplusA.o ; \
       ranlib libipmiutil.a ; \
    fi
ld: pointer not aligned in '_vFlash_completion_code_vals'+0x1 (/private/tmp/ipmiutil-20240916-45987-c1391g/ipmiutil-3.1.9/util/oem_dell.o)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [ipmiutil] Error 1
1 Attachments

Discussion

  • Andy Cress

    Andy Cress - 2024-09-18
    • status: open --> accepted
    • assigned_to: Andy Cress
    • Attachments has changed:

    Diff:

    --- old
    +++ new
    @@ -0,0 +1 @@
    +oem_dell.c (188.0 kB; text/plain)
    
     
  • Andy Cress

    Andy Cress - 2024-09-18

    It looks like this particuar compiler does not handle these 'const struct vFlashstr' declarations properly. It must need the struct defined explicitly. There are several other oem*.c files affected if so.

    const struct vFlashstr vFlash_completion_code_vals[] = {... };

    I have attached an updated ocm_dell.c which should work better. Please try with that and let me know if it gets past ocm_dell.c now.

     
  • Rui Chen

    Rui Chen - 2024-09-18

    Thanks for the patch, it actually should be

    typedef struct
    {
        int val;
        char *str;
    } vFlashstr;
    

    rather than

    typedef struct
    {
        int value;
        char *string;
    } vFlashstr;
    

    Other than that, it works well for me, thanks!

    gonna ship with https://github.com/Homebrew/homebrew-core/pull/191136

     
  • Rui Chen

    Rui Chen - 2024-09-18

    Another thing, I also saw some checksum change with the ipmiutil-3.1.9.tar.gz

    -  sha256 "c0dacc4ad506538f59ed45373b775748deddddc36e6d3c303f5069a59cacab08"
    +  sha256 "5ae99bdd1296a8e25cea839784ec39ebca57b0e3701b2d440b8e02e22dc4bc95"
    

    was there some aritfact re-uploading for 3.1.9 release? Thanks!

     
  • Rui Chen

    Rui Chen - 2024-09-28

    any thoughts?

     
  • Andy Cress

    Andy Cress - 2024-10-09

    Attached is the updated oem_dell.c
    Yes, there was an updated library file added in 3.1.9

     
  • Andy Cress

    Andy Cress - 2024-10-09
    • status: accepted --> pending
     
  • Rui Chen

    Rui Chen - 2024-10-09

    Thanks Andy, I have shipped the patch via https://github.com/Homebrew/homebrew-core/pull/191136, this issue can be closed.

     
  • Andy Cress

    Andy Cress - 2025-05-17
    • status: pending --> closed
     

Log in to post a comment.