The LLVM object can build before collection_config.h is generated

Open Beginner friendly
#51 0 comments 0 reactions 0 assignees View on GitHub

@Vonng is already working on this.

Since Nov 27, 2026.

  • #52 by @Vonng — open

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
90/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
c, postgresql

Research direction

Start with the existing dependency rule around Makefile lines 49–55 and compare the dependencies for src/collection.o and src/collection.bc. Request the bitcode target in a clean LLVM-enabled PGXS checkout to confirm the generated header is created first; the issue is done when the direct or parallel build no longer fails because collection_config.h is missing.

Written by the indexing model from the issue text.

Description

In a clean PGXS checkout, src/collection.o depends on the generated config header, but src/collection.bc includes the same header without a Makefile dependency. Building the bitcode target directly or early in a parallel build can therefore fail.

Could we add src/collection.bc to the existing dependency rule? Requesting that target from a clean LLVM-enabled tree should then generate the header before invoking Clang.

Relevant upstream source

Dominant language
C
Stars
24
Forks
6
PR merge metrics
No merged PRs in 30d

Getting set up

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.

More from aws/pgcollection

All issues in aws/pgcollection

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.