Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: issues with out-of-source (objdir=...) #100

Open
thesamesam opened this issue Aug 28, 2024 · 0 comments
Open

build: issues with out-of-source (objdir=...) #100

thesamesam opened this issue Aug 28, 2024 · 0 comments

Comments

@thesamesam
Copy link

thesamesam commented Aug 28, 2024

Out-of-source build (objdir=/whatever) would be useful for doing bits with cvise so it can work in parallel.

With /tmp on tmpfs:

$ cd $(mktemp -d) && make -C /home/sam/git/dtrace-utils/ objdir=$(pwd) -j1
[...]
AR: libcommon.a
AR: libport.a
AR: libproc.a
SHLINK: libdtrace.so
SHLINK: libproc-dlmlib.so
cp: cannot create hard link 'test/triggers/libproc-dlmlib.so.0.0.0' to '/tmp/tmp.2aI49qXEfR/libproc-dlmlib.so.0.0.0': Invalid cross-device link
make: *** [Makerules:24: /tmp/tmp.2aI49qXEfR/libproc-dlmlib.so] Error 1
make: *** Deleting file '/tmp/tmp.2aI49qXEfR/libproc-dlmlib.so'

With both in /tmp:

$ cd $(mktemp -d) && make -C /tmp/dtrace-utils/ objdir=$(pwd) -j1
[...]
SHLINK: libdtrace.so
SHLINK: libproc-dlmlib.so
ln: failed to create symbolic link 'test/triggers/libproc-dlmlib.so.0': File exists
make: *** [Makerules:25: /tmp/tmp.Hu7sQqZzMN/libproc-dlmlib.so] Error 1
make: *** Deleting file '/tmp/tmp.Hu7sQqZzMN/libproc-dlmlib.so'

Also, it looks like configure does support --objdir but it also has a bunch of hardcoded build/. Not tried it.

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

No branches or pull requests

1 participant