Skip to content

Compiler settings for healpix are not portable (OSX) #4

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

Closed
pashkinelfe opened this issue Nov 15, 2021 · 2 comments · Fixed by #5
Closed

Compiler settings for healpix are not portable (OSX) #4

pashkinelfe opened this issue Nov 15, 2021 · 2 comments · Fixed by #5

Comments

@pashkinelfe
Copy link
Contributor

pashkinelfe commented Nov 15, 2021

When compiling after MOC changes with healpix usage on OS X

# compiler settings
  override CPPFLAGS += -I/usr/include/healpix_cxx
  SHLIB_LINK += -lhealpix_cxx

build errors arise:

g++ -shared -o pg_sphere.so sscan.o sparse.o sbuffer.o vector3d.o point.o euler.o circle.o line.o ellipse.o polygon.o path.o box.o output.o gq_cache.o gist.o key.o gnomo.o healpix.o moc.o process_moc.o healpix_bare/healpix_bare.o -L/usr/local/pgsql/lib -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -Wl,-dead_strip_dylibs -bundle_loader /usr/local/pgsql/bin/postgres -lhealpix_cxx clang: error: invalid argument '-bundle_loader /usr/local/pgsql/bin/postgres' not allowed with '-dynamiclib'

Also on my system should be not /usr/include/healpix_cxx but /usr/local/include/healpix_cxx (the path is hardcoded now after moc commits d697926 (Christoph Berg 2019-12-18)).

@df7cb
Copy link
Contributor

df7cb commented Nov 19, 2021

The "invalid argument" part seems like a local issue, or at least one that isn't pgsphere's fault.
The paths should be fixed in the PR I just pushed.

@pashkinelfe
Copy link
Contributor Author

pashkinelfe commented Nov 19, 2021

I suppose "invalid argument" was because -lhealpix_cxx should have been before /usr/local/pgsql/bin/postgres, not appended after everything.

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

Successfully merging a pull request may close this issue.

2 participants