Skip to content

Conversation

@ken2812221
Copy link
Contributor

Solve the TODO in the gitian-descripter

@DrahtBot
Copy link
Contributor

DrahtBot commented Jul 22, 2018

Note to reviewers: This pull request conflicts with the following ones:

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@laanwj
Copy link
Member

laanwj commented Jul 22, 2018

Thanks for adding this!

@laanwj
Copy link
Member

laanwj commented Jul 22, 2018

utACK 8f62ece7c1dddc4f69141d884b7c1863776c4fa7

(though as it is dependent on #13665, this should only go in after the 0.17 branch-off)

@ken2812221
Copy link
Contributor Author

ken2812221 commented Jul 22, 2018

#13665 is not ready to merge since it would export a lot of symbols.

@maflcko
Copy link
Member

maflcko commented Jul 22, 2018

Have you run the symbol check after cross compilation? It seems to fail for me:

  CXXLD    test/test_bitcoin_fuzzy
  CXXLD    bitcoind
  CXXLD    bitcoin-cli
  CXXLD    bitcoin-tx
  CXXLD    test/test_bitcoin
  AR       qt/libbitcoinqt.a
  OBJCXXLD qt/bitcoin-qt
make[2]: Leaving directory '/home/ubuntu/build/bitcoin/distsrc-arm-linux-gnueabihf/src'
make[1]: Leaving directory '/home/ubuntu/build/bitcoin/distsrc-arm-linux-gnueabihf/src'
Making all in doc/man
make[1]: Entering directory '/home/ubuntu/build/bitcoin/distsrc-arm-linux-gnueabihf/doc/man'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/ubuntu/build/bitcoin/distsrc-arm-linux-gnueabihf/doc/man'
make[1]: Entering directory '/home/ubuntu/build/bitcoin/distsrc-arm-linux-gnueabihf'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/home/ubuntu/build/bitcoin/distsrc-arm-linux-gnueabihf'
+ make -j9 -C src check-security
make: Entering directory '/home/ubuntu/build/bitcoin/distsrc-arm-linux-gnueabihf/src'
Checking binary security...
make: Leaving directory '/home/ubuntu/build/bitcoin/distsrc-arm-linux-gnueabihf/src'
+ make -j9 -C src check-symbols
make: Entering directory '/home/ubuntu/build/bitcoin/distsrc-arm-linux-gnueabihf/src'
Checking glibc back compat...
qt/bitcoin-qt: export of symbol _bss_end__ not allowed
qt/bitcoin-qt: export of symbol __bss_end__ not allowed
qt/bitcoin-qt: export of symbol __bss_start__ not allowed
qt/bitcoin-qt: export of symbol __end__ not allowed
make: *** [check-symbols] Error 1
Makefile:10512: recipe for target 'check-symbols' failed
make: Leaving directory '/home/ubuntu/build/bitcoin/distsrc-arm-linux-gnueabihf/src'

@ken2812221
Copy link
Contributor Author

@MarcoFalke Fixed. Sorry about not testing before I commited. I've tested 85ec33a35dfec2cc3b2e0decb5e184650caecdef (master + 60976f2) that can successfully do gitian build.

@bitcoin bitcoin deleted a comment from DrahtBot Jul 23, 2018
@laanwj laanwj added this to the 0.18.0 milestone Aug 2, 2018
@laanwj
Copy link
Member

laanwj commented Aug 16, 2018

Needs rebase after #13665

@ken2812221
Copy link
Contributor Author

Need to skip RISC-V for now, the linker would export so many symbols.

@DrahtBot
Copy link
Contributor

Gitian builds for commit 4732fa1 (master):

Gitian builds for commit 73a989af091d816b5029706b7124fd74d7a7f9b2 (master and this pull):

@laanwj
Copy link
Member

laanwj commented Aug 23, 2018

Need to skip RISC-V for now, the linker would export so many symbols.

FWIW checking the imports (against symbol versions) is much more important than checking the exports, as that's what prevents binary incompatibilities.

@laanwj
Copy link
Member

laanwj commented Aug 25, 2018

utACK c516c3a

@luke-jr
Copy link
Member

luke-jr commented Aug 25, 2018

Hmm, didn't see this sooner. FWIW, I have another alternative to this we can evaluate.

@laanwj
Copy link
Member

laanwj commented Aug 31, 2018

I'm going ahead and merging this, @luke-jr please rebase your stuff on top.

@laanwj laanwj merged commit c516c3a into bitcoin:master Aug 31, 2018
laanwj added a commit that referenced this pull request Aug 31, 2018
c516c3a [contrib] Support ARM and RISC-V symbol check (Chun Kuan Lee)

Pull request description:

  Solve the TODO in the gitian-descripter

Tree-SHA512: 8115e2958af3dde43d9d9d05f0b1b1b93b1c2aa513e771a3e4e1342a5d78af2b0e40c0bbb7e9a0d15954897317e6f5a0d80996239af3b376d5ddd527f73428ae
@ken2812221 ken2812221 deleted the symbol-check-all branch August 31, 2018 11:00
Munkybooty pushed a commit to Munkybooty/dash that referenced this pull request Jul 2, 2021
c516c3a [contrib] Support ARM and RISC-V symbol check (Chun Kuan Lee)

Pull request description:

  Solve the TODO in the gitian-descripter

Tree-SHA512: 8115e2958af3dde43d9d9d05f0b1b1b93b1c2aa513e771a3e4e1342a5d78af2b0e40c0bbb7e9a0d15954897317e6f5a0d80996239af3b376d5ddd527f73428ae

# Conflicts:
#	contrib/devtools/symbol-check.py
#	contrib/gitian-descriptors/gitian-linux.yml
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
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.

6 participants