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

Failing to build on OSX Catalina #184

Open
Dormancy-Cat opened this issue Nov 30, 2022 · 1 comment
Open

Failing to build on OSX Catalina #184

Dormancy-Cat opened this issue Nov 30, 2022 · 1 comment

Comments

@Dormancy-Cat
Copy link

Hello, i have had trouble compiling with mac.

This is the error message I get:

[  6%] Building CXX object src/cpp/CMakeFiles/fastdds_statistics_backend.dir/database/data.cpp.o
In file included from /Users/syrius/work/syrius/fast_dds/ddsmonitor/src/Fast-DDS-Monitor/src/fastdds_statistics_backend/src/cpp/database/data.cpp:16:
In file included from /Users/syrius/work/syrius/fast_dds/ddsmonitor/src/Fast-DDS-Monitor/src/fastdds_statistics_backend/src/cpp/database/data.hpp:29:
In file included from /Users/syrius/work/syrius/fast_dds/ddsmonitor/src/Fast-DDS-Monitor/src/fastdds_statistics_backend/src/cpp/database/samples.hpp:26:
/Users/syrius/work/syrius/fast_dds/ddsmonitor/src/Fast-DDS-Monitor/src/fastdds_statistics_backend/include/fastdds_statistics_backend/types/types.hpp:124:5: error: expected identifier
    DOMAIN,
    ^
/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/math.h:734:17: note: expanded from macro 'DOMAIN'
#define DOMAIN          1
                        ^
1 error generated.
make[2]: *** [src/cpp/CMakeFiles/fastdds_statistics_backend.dir/database/data.cpp.o] Error 1
make[1]: *** [src/cpp/CMakeFiles/fastdds_statistics_backend.dir/all] Error 2
make: *** [all] Error 2

my version information:

xcode-select -v
xcode-select version 2384.
gcc -v 
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.5 (clang-1205.0.22.11)
Target: x86_64-apple-darwin20.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

Any help would be greatly appreciated. Thanks!

@Mario-DL
Copy link
Member

Hi @Dormancy-Cat,

Thanks for the report and sorry for the delay in the response. Apparently, there is a conflict between an internal in clang and an enum token inside the project, both defining DOMAIN .

I opened a PR #195 . Please, check if the issue persists with that

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