Skip to content

Fix duplicate-definition link error in _compile_module - #1

Open
cjmielke wants to merge 1 commit into
PytorchConnectomics:masterfrom
cjmielke:fix/duplicate-frontend-symbol-link
Open

Fix duplicate-definition link error in _compile_module#1
cjmielke wants to merge 1 commit into
PytorchConnectomics:masterfrom
cjmielke:fix/duplicate-frontend-symbol-link

Conversation

@cjmielke

Copy link
Copy Markdown

frontend_agglomerate.cpp was compiled twice: once explicitly into
obj_path, and again via witty.compile_cython's source_files=, which
was then also linked against obj_path through extra_link_args. Every
symbol in frontend_agglomerate.cpp ended up defined twice, causing a
linker error ("multiple definition of ...") on every build.

Drops the redundant source_files= entry since the object is already
linked explicitly.

frontend_agglomerate.cpp was compiled twice: once explicitly into
obj_path, and again via witty.compile_cython's source_files=, which
was then also linked against obj_path through extra_link_args. Every
symbol in frontend_agglomerate.cpp ended up defined twice, causing a
linker error ("multiple definition of ...") on every build.

Drop the redundant source_files= entry since the object is already
linked explicitly.
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