vmware / vmware/splinterdb

make && sudo make install fails on a clean checkout

Open
#452 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C
Stars
732
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

We used to be able to do

make && sudo make install

and end up with the libraries and headers in /usr/local/...

That doesn't work today.

Reproduction steps
git clone git@github.com:vmware/splinterdb.git
cd splinterdb
export CC=clang
export LD=clang
make
sudo make install

The last line fails with

Checking for mismatched config...Mismatched config file "build/release/build-config.38e61cc510d530870a8c417ec6741a7f" detected.  You need to "make clean".
make: *** [Makefile:259: mismatched_config_file_check] Error 123
Additional context

I can work around it by running

sudo --preserve-env=CC,LD make install

But I'd rather not have to remember to do that extra stuff.

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 failure from a clean checkout using the listed CC and LD settings, then inspect Makefile:259 and the build/release configuration check involved in sudo make install. Done means the documented make followed by sudo make install succeeds without requiring --preserve-env or an intervening make clean.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.