Skip to content

Conversation

@promag
Copy link
Contributor

@promag promag commented Jun 2, 2021

With f16d4cd depends/config.guess gives aarch64-apple-darwin20.3.0 where before would give arm-apple-darwin20.3.0. Fix qt.mk accordingly.

@fanquake
Copy link
Member

fanquake commented Jun 2, 2021

What is the current problem?
Is this fixing a native M1 depends build, or a cross-compile?
Why is this a "better" fix than what was added in #20482?

@promag
Copy link
Contributor Author

promag commented Jun 2, 2021

Is this fixing a native M1 depends build, or a cross-compile?

native

What is the current problem?

Before this PR, after building depends the configure gives errors like:

ld: warning: ignoring file /Users/joao/Projects/bitcoin-core/22054/depends/aarch64-apple-darwin20.3.0/lib/libQt5Widgets.a, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Undefined symbols for architecture arm64:
  "qt_static_plugin_QCocoaIntegrationPlugin()", referenced from:
      __GLOBAL__sub_I_conftest.cpp in conftest-7867ef.o
  "qRegisterStaticPluginFunction(QStaticPlugin)", referenced from:
      __GLOBAL__sub_I_conftest.cpp in conftest-7867ef.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Before it was depends/arm-apple-darwin20.3.0.

Copy link
Member

@hebasto hebasto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 3b36395, I have reviewed the code and it looks OK, I agree it can be merged.

Did not test it on Apple M1.

Copy link
Member

@fanquake fanquake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 3b36395

@fanquake fanquake merged commit fcfd37f into bitcoin:master Jun 3, 2021
@promag promag deleted the 2021-06-fix-aarch64_darwin branch June 3, 2021 13:09
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jun 3, 2021
3b36395 depends: Fix qt.mk for mac arm64 (João Barbosa)

Pull request description:

  With f16d4cd `depends/config.guess` gives `aarch64-apple-darwin20.3.0` where before would give `arm-apple-darwin20.3.0`. Fix `qt.mk` accordingly.

ACKs for top commit:
  hebasto:
    ACK 3b36395, I have reviewed the code and it looks OK, I agree it can be merged.
  fanquake:
    ACK 3b36395

Tree-SHA512: bd20402d0a6e9a5bb652198de189cf2b4f3f76fd03d0cba8c4d657c60b8a088cf3532efe6c1efbbedd94c00a155e6d180b77f1cd8bc24e0e35764839e8b77e30
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jul 1, 2021
3b36395 depends: Fix qt.mk for mac arm64 (João Barbosa)

Pull request description:

  With f16d4cd `depends/config.guess` gives `aarch64-apple-darwin20.3.0` where before would give `arm-apple-darwin20.3.0`. Fix `qt.mk` accordingly.

ACKs for top commit:
  hebasto:
    ACK 3b36395, I have reviewed the code and it looks OK, I agree it can be merged.
  fanquake:
    ACK 3b36395

Tree-SHA512: bd20402d0a6e9a5bb652198de189cf2b4f3f76fd03d0cba8c4d657c60b8a088cf3532efe6c1efbbedd94c00a155e6d180b77f1cd8bc24e0e35764839e8b77e30
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Sep 24, 2021
3b36395 depends: Fix qt.mk for mac arm64 (João Barbosa)

Pull request description:

  With f16d4cd `depends/config.guess` gives `aarch64-apple-darwin20.3.0` where before would give `arm-apple-darwin20.3.0`. Fix `qt.mk` accordingly.

ACKs for top commit:
  hebasto:
    ACK 3b36395, I have reviewed the code and it looks OK, I agree it can be merged.
  fanquake:
    ACK 3b36395

Tree-SHA512: bd20402d0a6e9a5bb652198de189cf2b4f3f76fd03d0cba8c4d657c60b8a088cf3532efe6c1efbbedd94c00a155e6d180b77f1cd8bc24e0e35764839e8b77e30
gades pushed a commit to cosanta/cosanta-core that referenced this pull request Apr 20, 2022
3b36395 depends: Fix qt.mk for mac arm64 (João Barbosa)

Pull request description:

  With f16d4cd `depends/config.guess` gives `aarch64-apple-darwin20.3.0` where before would give `arm-apple-darwin20.3.0`. Fix `qt.mk` accordingly.

ACKs for top commit:
  hebasto:
    ACK 3b36395, I have reviewed the code and it looks OK, I agree it can be merged.
  fanquake:
    ACK 3b36395

Tree-SHA512: bd20402d0a6e9a5bb652198de189cf2b4f3f76fd03d0cba8c4d657c60b8a088cf3532efe6c1efbbedd94c00a155e6d180b77f1cd8bc24e0e35764839e8b77e30
gwillen pushed a commit to ElementsProject/elements that referenced this pull request Jun 1, 2022
Added a limit to the tx_pool and tx_pool_standard fuzztest loops,
not because it had anything to do with this PR, but because it was
causing long fuzztests runs and I happened to stop the merge script
here.
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants