leanprover / leanprover/lean4

undefined symbols l_Lake_cli, initialize_Lake, initialize_Lake_CLI on FreeBSD

Open
#6,526 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P-low
Dominant language
Lean
Stars
9.2k
Forks
990
Avg merge
1d 17h
Merged PRs (30d)
175

Description

Prerequisites

Please put an X between the brackets as you perform the following steps:

Description

Build fails:

ld: error: undefined symbol: l_Lake_cli
>>> referenced by LakeMain.c
>>>               ../../../.build/stage0/lib/temp/LakeMain.o.export:(_lean_main)

ld: error: undefined symbol: initialize_Lake
>>> referenced by LakeMain.c
>>>               ../../../.build/stage0/lib/temp/LakeMain.o.export:(initialize_LakeMain)

ld: error: undefined symbol: initialize_Lake_CLI
>>> referenced by LakeMain.c
>>>               ../../../.build/stage0/lib/temp/LakeMain.o.export:(initialize_LakeMain)
Steps to Reproduce

Regular build.

Versions

lean-4.15.0
FreeBSD 14.1

lean-4.12.0 didn't have such problem.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the regular build on FreeBSD 14.1 with lean-4.15.0, then inspect the generated LakeMain.c and LakeMain.o.export referenced in the linker output. Trace why l_Lake_cli, initialize_Lake, and initialize_Lake_CLI are not available during linking; done means the regular build completes without these undefined-symbol errors.

Written by the indexing model from the issue text.

Assessment

Domain
build-system, compilers, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.