Skip to content

Fix Node Setup Script#1

Merged
MaoZiming merged 4 commits intoTrinity-data-store:mainfrom
developStorm:patch-1
Apr 30, 2024
Merged

Fix Node Setup Script#1
MaoZiming merged 4 commits intoTrinity-data-store:mainfrom
developStorm:patch-1

Conversation

@developStorm
Copy link
Copy Markdown
Contributor

Thanks for the great work, enjoyed reading your paper :D

This PR includes 4 fixes:

46153ef fixes the following error:

~/Trinity/build$ cat thrift_ep-prefix/src/thrift_ep-stamp/thrift_ep-configure-*.log
CMake Error at /usr/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find BISON (missing: BISON_EXECUTABLE)

(and similarly for flex)

ced22d5 fixes a missing space that caused the if test for the Thrift installation to fail. It also adds set -Eeuo pipefail to the top of the script to ensure the script fails fast in case of an error like this, as a precaution.

-bash: [: missing `]'

c3a704f installs pkgconf as a dependency for compiling Thrift. See: https://issues.apache.org/jira/browse/THRIFT-4910

82e3ade switches to using a stable release of Thrift (I randomly selected the latest 0.20.0, which seems to work well with the Trinity compilation) to avoid a bug in the current git main branch of Thrift, and to ensure the script installs a version of Thrift that is confirmed to work with Trinity, instead of always opting for the latest commit.

@MaoZiming MaoZiming force-pushed the main branch 2 times, most recently from 76d35b2 to 299bad4 Compare April 30, 2024 05:34
@MaoZiming
Copy link
Copy Markdown
Member

Thanks!

@MaoZiming MaoZiming closed this Apr 30, 2024
@MaoZiming MaoZiming reopened this Apr 30, 2024
@MaoZiming MaoZiming merged commit 3f0409d into Trinity-data-store:main Apr 30, 2024
@developStorm developStorm deleted the patch-1 branch April 30, 2024 05:35
bl-rr pushed a commit to bl-rr/Trinity that referenced this pull request Jun 18, 2025
* fix: include flex and bison in dependency setup script

* fix: space missing for thrift installation block

* fix: add pkgconf in setup script

* refactor: switch to a stable release of thrift

main stream seems to have a bug that prevents compilation at this time apache/thrift#2968
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants