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

Build tfjs-node node addon with the release docker #6925

Merged
merged 4 commits into from Oct 11, 2022

Conversation

mattsoulanille
Copy link
Member

@mattsoulanille mattsoulanille commented Oct 11, 2022

Build the tfjs-node and tfjs-node-gpu node addons with the release docker image when publishing them to npm. This ensures a consistent GLIBCXX version is used when publishing.

objdump -T lib/napi-v8/tfjs_binding.node | grep GLIBCXX

Before:

0000000000000000      DF *UND*	0000000000000000 (GLIBCXX_3.4) _ZSt19__throw_logic_errorPKc
0000000000000000      DF *UND*	0000000000000000 (GLIBCXX_3.4) _ZSt17__throw_bad_allocv
0000000000000000      DF *UND*	0000000000000000 (GLIBCXX_3.4) _Znwm
0000000000000000      DF *UND*	0000000000000000 (GLIBCXX_3.4) _ZdaPv
0000000000000000      DF *UND*	0000000000000000 (GLIBCXX_3.4.29) _ZSt28__throw_bad_array_new_lengthv
0000000000000000      DF *UND*	0000000000000000 (GLIBCXX_3.4) _Znam
0000000000000000      DF *UND*	0000000000000000 (GLIBCXX_3.4) _ZSt18_Rb_tree_decrementPSt18_Rb_tree_node_base
0000000000000000      DF *UND*	0000000000000000 (GLIBCXX_3.4) _ZSt20__throw_length_errorPKc
0000000000000000      DF *UND*	0000000000000000 (GLIBCXX_3.4.18) _ZNKSt8__detail20_Prime_rehash_policy14_M_need_rehashEmmm
0000000000000000      DF *UND*	0000000000000000 (GLIBCXX_3.4) _ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_

After:

0000000000000000      DF *UND*	0000000000000000 (GLIBCXX_3.4) _ZSt19__throw_logic_errorPKc
0000000000000000      DF *UND*	0000000000000000 (GLIBCXX_3.4) _ZSt17__throw_bad_allocv
0000000000000000      DF *UND*	0000000000000000 (GLIBCXX_3.4) _Znwm
0000000000000000      DF *UND*	0000000000000000 (GLIBCXX_3.4) _ZdaPv
0000000000000000      DF *UND*	0000000000000000 (GLIBCXX_3.4) _Znam
0000000000000000      DF *UND*	0000000000000000 (GLIBCXX_3.4) _ZSt18_Rb_tree_decrementPSt18_Rb_tree_node_base
0000000000000000      DF *UND*	0000000000000000 (GLIBCXX_3.4) _ZdlPv
0000000000000000      DF *UND*	0000000000000000 (GLIBCXX_3.4.18) _ZNKSt8__detail20_Prime_rehash_policy14_M_need_rehashEmmm
0000000000000000      DF *UND*	0000000000000000 (GLIBCXX_3.4) _ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.


This change is Reviewable

Build the tfjs-node and tfjs-node-gpu node addons with the release docker image when publishing them to npm. This ensures a consistent GLIBCXX version is used when publishing.
Copy link
Collaborator

@Linchenn Linchenn left a comment

Choose a reason for hiding this comment

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

I do not have much context over this, and would approve this to unblock you. Let's wait Ping's review.

Copy link
Collaborator

@pyu10055 pyu10055 left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! 2 of 1 approvals obtained

@mattsoulanille mattsoulanille merged commit c2ee7b4 into tensorflow:master Oct 11, 2022
@mattsoulanille mattsoulanille deleted the tfjs_node_docker branch October 11, 2022 22:54
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.

None yet

3 participants