Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fixup clang error for update-mocks? #3756

Merged
merged 3 commits into from
May 30, 2020

Commits on May 29, 2020

  1. tools-make: also be quiet if --quiet is flagged

    Missed a update-mocks.sh call
    niftynei committed May 29, 2020
    Configuration menu
    Copy the full SHA
    768c286 View commit details
    Browse the repository at this point in the history
  2. tools-make: add mock parser for clang ld output

    According to ElementsProject#3226, it looks like clang's LD error format has changed.
    This patch adds the new format so we can parse the mocks successfully.
    
    Apple clang version 11.0.3 (clang-1103.0.32.29)
    
    ```
    checking for ANSI C header files... Undefined symbols for architecture x86_64:
      "_fromwire_amount_msat", referenced from:
          _fromwire_tlv_test_n1_tlv3 in ccj4zKdV.o
      "_fromwire_bool", referenced from:
          _fromwire_test_msg in ccj4zKdV.o
          _fromwire_test_msg_option_short_id in ccj4zKdV.o
          _fromwire_test_msg_option_one in ccj4zKdV.o
          _fromwire_test_msg_option_two in ccj4zKdV.o
      "_fromwire_test_enum", referenced from:
          _fromwire_test_msg in ccj4zKdV.o
          _fromwire_test_msg_option_short_id in ccj4zKdV.o
          _fromwire_test_msg_option_one in ccj4zKdV.o
          _fromwire_test_msg_option_two in ccj4zKdV.o
      "_fromwire_tlvs", referenced from:
          _fromwire_test_tlv1 in ccj4zKdV.o
          _fromwire_test_tlv2 in ccj4zKdV.o
          _fromwire_test_tlv3 in ccj4zKdV.o
      "_fromwire_tu32", referenced from:
          _fromwire_tlv_test_n2_tlv2 in ccj4zKdV.o
      "_fromwire_tu64", referenced from:
          _fromwire_tlv_test_n1_tlv1 in ccj4zKdV.o
          _fromwire_tlv_test_n2_tlv1 in ccj4zKdV.o
      "_fromwire_u16", referenced from:
          _fromwire_test_features in ccj4zKdV.o
          _fromwire_subtype_var_assign in ccj4zKdV.o
          _fromwire_subtype_arrays in ccj4zKdV.o
          _fromwire_tlv_test_n1_tlv4 in ccj4zKdV.o
          _fromwire_tlv_test_n3_tlv3 in ccj4zKdV.o
          _fromwire_test_msg in ccj4zKdV.o
          _fromwire_test_tlv1 in ccj4zKdV.o
          ...
      "_fromwire_u32", referenced from:
          _fromwire_tlv_test_n3_tlv3 in ccj4zKdV.o
          _fromwire_test_msg in ccj4zKdV.o
          _fromwire_test_msg_option_short_id in ccj4zKdV.o
          _fromwire_test_msg_option_one in ccj4zKdV.o
          _fromwire_test_msg_option_two in ccj4zKdV.o
      "_fromwire_u64", referenced from:
          _fromwire_test_short_id in ccj4zKdV.o
          _fromwire_tlv_test_n3_tlv3 in ccj4zKdV.o
      "_fromwire_u8", referenced from:
          _fromwire_subtype_var_assign in ccj4zKdV.o
          _fromwire_subtype_var_len in ccj4zKdV.o
          _fromwire_subtype_varlen_varsize in ccj4zKdV.o
          _fromwire_tlv_test_n3_tlv3 in ccj4zKdV.o
      "_fromwire_u8_array", referenced from:
          _fromwire_test_features in ccj4zKdV.o
          _fromwire_subtype_arrays in ccj4zKdV.o
          _fromwire_tlv_test_n3_tlv3 in ccj4zKdV.o
          _fromwire_test_msg in ccj4zKdV.o
          _fromwire_test_msg_option_short_id in ccj4zKdV.o
          _fromwire_test_msg_option_one in ccj4zKdV.o
          _fromwire_test_msg_option_two in ccj4zKdV.o
          ...
    ```
    
    Changelog-Fixed: Build for macOS Catalina / Apple clang v11.0.3 fixed
    niftynei committed May 29, 2020
    Configuration menu
    Copy the full SHA
    fb863fa View commit details
    Browse the repository at this point in the history
  3. update-mocks: make it a bit easier to tell what step is happening

    Adding a small explainer before printing the filename makes it a bit
    clearer what's going on when parsing make logs
    niftynei committed May 29, 2020
    Configuration menu
    Copy the full SHA
    5e89063 View commit details
    Browse the repository at this point in the history