Skip to content

Fix build: make Guile extension libraries SHARED#13

Merged
drzo merged 1 commit into
mainfrom
copilot/fix-github-actions-job-build-debug
Jun 2, 2026
Merged

Fix build: make Guile extension libraries SHARED#13
drzo merged 1 commit into
mainfrom
copilot/fix-github-actions-job-build-debug

Conversation

Copilot AI commented May 28, 2026

Copy link
Copy Markdown
Contributor

Guile extension libraries loaded via load-extension were declared without SHARED, causing them to build as static archives (.a). The guild compile step fails when it tries to dlopen these at scheme compilation time:

In procedure load-foreign-library: file: ".../build/opencog/guile/libsmob", message: "file not found"

Added SHARED to all ADD_LIBRARY() calls for dynamically-loaded Guile extensions:

  • smobopencog/guile/CMakeLists.txt
  • logger, randgen, type-utilsopencog/guile/modules/CMakeLists.txt
  • PythonSCMopencog/cython/CMakeLists.txt
  • guile-uuidopencog/persist/tlb/CMakeLists.txt

Copilot AI changed the title Fix build: make Guile extension libraries SHARED for load-extension compatibility Fix build: make Guile extension libraries SHARED May 28, 2026
Copilot finished work on behalf of drzo May 28, 2026 09:55
Copilot AI requested a review from drzo May 28, 2026 09:55

@drzo drzo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

cooool

@drzo drzo marked this pull request as ready for review June 2, 2026 21:35
@drzo drzo merged commit 3762802 into main Jun 2, 2026
4 of 7 checks passed
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