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

Compilation error on OSX with clang #92

Closed
dpryan79 opened this issue Jun 20, 2023 · 1 comment
Closed

Compilation error on OSX with clang #92

dpryan79 opened this issue Jun 20, 2023 · 1 comment

Comments

@dpryan79
Copy link

Bug description

Over on conda-forge we're currently rebuilding our packages for R 4.3. The ipaddress package is throwing the following error on OSX under R 4.3. Can you advise?

x86_64-apple-darwin13.4.0-clang++ -std=gnu++17 -I"$PREFIX/lib/R/include" -DNDEBUG -I../inst/include/ -I'$PREFIX/lib/R/library/AsioHeaders/include' -I'$PREFIX/lib/R/library/Rcpp/include' -D_FORTIFY_SOURCE=2 -isystem $PREFIX/include -mmacosx-version-min=10.9 -I$PREFIX/include   -DASIO_STANDALONE -DASIO_NO_DEPRECATED -fPIC  -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -isystem $PREFIX/include -fdebug-prefix-map=/Users/runner/miniforge3/conda-bld/r-base-split_1684496426925/work=/usr/local/src/conda/r-base-4.3.0 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix  -c ip_address.cpp -o ip_address.o
In file included from ip_address.cpp:2:
In file included from /Users/runner/miniforge3/conda-bld/r-ipaddress_1687141681389/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/R/library/AsioHeaders/include/asio/ip/address_v4.hpp:352:
In file included from /Users/runner/miniforge3/conda-bld/r-ipaddress_1687141681389/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/R/library/AsioHeaders/include/asio/ip/impl/address_v4.ipp:23:
In file included from /Users/runner/miniforge3/conda-bld/r-ipaddress_1687141681389/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/R/library/AsioHeaders/include/asio/detail/socket_ops.hpp:21:
/Users/runner/miniforge3/conda-bld/r-ipaddress_1687141681389/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/R/library/AsioHeaders/include/asio/detail/memory.hpp:88:20: error: reference to unresolved using declaration
  void* ptr = std::aligned_alloc(align, size);
                   ^
/Users/runner/miniforge3/conda-bld/r-ipaddress_1687141681389/_build_env/bin/../include/c++/v1/cstdlib:148:1: note: using declaration annotated with 'using_if_exists' here
using ::aligned_alloc _LIBCPP_USING_IF_EXISTS;
^
In file included from ip_address.cpp:2:
In file included from /Users/runner/miniforge3/conda-bld/r-ipaddress_1687141681389/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/R/library/AsioHeaders/include/asio/ip/address_v4.hpp:352:
In file included from /Users/runner/miniforge3/conda-bld/r-ipaddress_1687141681389/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/R/library/AsioHeaders/include/asio/ip/impl/address_v4.ipp:23:
In file included from /Users/runner/miniforge3/conda-bld/r-ipaddress_1687141681389/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/R/library/AsioHeaders/include/asio/detail/socket_ops.hpp:21:
/Users/runner/miniforge3/conda-bld/r-ipaddress_1687141681389/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/R/library/AsioHeaders/include/asio/detail/memory.hpp:88:15: error: excess elements in scalar initializer
  void* ptr = std::aligned_alloc(align, size);
              ^                       ~~~~~~
2 errors generated.

Additional context

OSX

Xref: conda-forge/r-ipaddress-feedstock#15

@davidchall
Copy link
Owner

Hi @dpryan79 - I'm afraid this error is caused by an upstream dependency package (AsioHeaders). From reading your linked issue, it sounds like you resolved the error by using C++14. Please re-open if there is a remaining issue.

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

2 participants