Skip to content

Comments

Remove python 2 init symbols to get compilation to work on 3.12.4#239

Open
pritamdodeja wants to merge 1 commit intogoogle:masterfrom
pritamdodeja:v1.17.1-py312
Open

Remove python 2 init symbols to get compilation to work on 3.12.4#239
pritamdodeja wants to merge 1 commit intogoogle:masterfrom
pritamdodeja:v1.17.1-py312

Conversation

@pritamdodeja
Copy link

Stricter llvm linker was not allowing ml-metadata compilation to succeed.

Background: I'm trying to get TFX running on a more modern python, specifically 3.12.4, and this is a fix that unblocks the building of ml-metadata in my environment. Open to any suggestions about better ways to do this. The underlying error that this resolves in my environment is below:

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
ld.lld: error: version script assignment of 'global' to symbol 'initmetadata_store_extension' failed: symbol not defined
ld.lld: error: version script assignment of 'global' to symbol 'init_metadata_store_extension' failed: symbol not defined
collect2: error: ld returned 1 exit status
Target //ml_metadata:move_generated_files failed to build

@google-cla
Copy link

google-cla bot commented Feb 23, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Stricter llvm linker was not allowing compilation to succeed.
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.

1 participant