Skip to content

MacOSX Builds using -02 due to test failures since 4.9.3 #208

@akrherz

Description

@akrherz

Comment:

Whilst thrashing on #207 to build netcdf 4.9.3, I found that -O3 was leading to test failures on MacOSX.

 *** testing nc_redef ...
  1386 good comparisons.
        FAILURE at line 1074 of $SRC_DIR/nc_test/util.c: Var d [0] value read -80 not that expected 255
  33 good comparisons.
  1386 good comparisons.
        FAILURE at line 1074 of $SRC_DIR/nc_test/util.c: Var d [0] value read -80 not that expected 255
  33 good comparisons.
 *** testing nc_sync ...
        FAILURE at line 1074 of $SRC_DIR/nc_test/util.c: Var d [0] value read 32 not that expected 255
  33 good comparisons.
  1386 good comparisons.
 
        ### 1 FAILURES TESTING nc_sync! ###
 *** testing nc_abort ...
  1386 good comparisons.
        FAILURE at line 1074 of $SRC_DIR/nc_test/util.c: Var d [0] value read -32 not that expected 255
  33 good comparisons.
 
        ### 1 FAILURES TESTING nc_abort! ###
 *** testing nc_copy_att ...
        FAILURE at line 1074 of $SRC_DIR/nc_test/util.c: Var d [0] value read -48 not that expected 255
  33 good comparisons.
 
        ### 1 FAILURES TESTING nc_copy_att! ###
 *** testing nc_rename_att ...
        FAILURE at line 1875 of $SRC_DIR/build-shared/nc_test/test_write.c: get_att_text: unexpected value
 
        ### 1 FAILURES TESTING nc_rename_att! ###

So an elegant hack was arrived at to force MacOSX to use -O2. I think this was a similar situation to what was found with #164

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions