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

Creating compilation DB does not work for some packages #289

Open
rstub opened this issue Jun 30, 2024 · 0 comments
Open

Creating compilation DB does not work for some packages #289

rstub opened this issue Jun 30, 2024 · 0 comments

Comments

@rstub
Copy link

rstub commented Jun 30, 2024

I have tried to enable creating the compilation DB for swephR. After

pkgload:::use_compilation_db()
devtools::load_all()

I get the message

Warning message:
Expected same number of compilation commands as object files
ℹ This is an internal error that was detected in the pkgload package.
  Please report it at https://github.com/r-lib/pkgload/issues with a reprex and the full backtrace.

To me it looks like pkgload only finds the source files in src but not those in src/libswe which are build via src/Makevars:

all: $(SHLIB)
$(SHLIB): libswe.a

LIBSWE = libswe/swedate.o libswe/swehouse.o libswe/swejpl.o libswe/swemmoon.o \
	 libswe/swemplan.o libswe/sweph.o \
	 libswe/swephlib.o libswe/swecl.o libswe/swehel.o
libswe.a: $(LIBSWE)
	$(AR) rcs libswe.a $(LIBSWE)
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