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 with tests fails on macOS 12–14: gtest-internal.h: error: use of undeclared identifier 'FLT_MAX' #199

Open
barracuda156 opened this issue Dec 19, 2023 · 0 comments

Comments

@barracuda156
Copy link
Contributor

:info:build In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/analysis/MappingCharFilterTest.cpp:7:
:info:build In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/include/TestInc.h:23:
:info:build In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/include/test_lucene.h:13:
:info:build In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/gtest/googletest/include/gtest/gtest.h:62:
:info:build /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/gtest/googletest/include/gtest/internal/gtest-internal.h:390:51: error: use of undeclared identifier 'FLT_MAX'
:info:build inline float FloatingPoint<float>::Max() { return FLT_MAX; }
:info:build                                                   ^
:info:build In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/analysis/AnalyzersTest.cpp:7:
:info:build In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/include/TestInc.h:23:
:info:build In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/include/test_lucene.h:13:
:info:build In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/gtest/googletest/include/gtest/gtest.h:62:
:info:build /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/gtest/googletest/include/gtest/internal/gtest-internal.h:390:51: error: use of undeclared identifier 'FLT_MAX'
:info:build inline float FloatingPoint<float>::Max() { return FLT_MAX; }
:info:build                                                   ^
:info:build /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/gtest/googletest/include/gtest/internal/gtest-internal.h:392:53: error: use of undeclared identifier 'DBL_MAX'
:info:build inline double FloatingPoint<double>::Max() { return DBL_MAX; }
:info:build                                                     ^
:info:build /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/gtest/googletest/include/gtest/internal/gtest-internal.h:392:53: error: use of undeclared identifier 'DBL_MAX'
:info:build inline double FloatingPoint<double>::Max() { return DBL_MAX; }
:info:build                                                     ^
:info:build In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/analysis/BaseTokenStreamFixture.cpp:7:
:info:build In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/include/TestInc.h:23:
:info:build In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/include/test_lucene.h:13:
:info:build In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/gtest/googletest/include/gtest/gtest.h:62:
:info:build /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/gtest/googletest/include/gtest/internal/gtest-internal.h:390:51: error: use of undeclared identifier 'FLT_MAX'
:info:build inline float FloatingPoint<float>::Max() { return FLT_MAX; }
:info:build                                                   ^
:info:build In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/analysis/KeywordAnalyzerTest.cpp:7:
:info:build In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/include/TestInc.h:23:
:info:build In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/include/test_lucene.h:13:
:info:build In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/gtest/googletest/include/gtest/gtest.h:62:
:info:build /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/gtest/googletest/include/gtest/internal/gtest-internal.h:390:51: error: use of undeclared identifier 'FLT_MAX'
:info:build inline float FloatingPoint<float>::Max() { return FLT_MAX; }
:info:build                                                   ^
:info:build /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/gtest/googletest/include/gtest/internal/gtest-internal.h:392:53: error: use of undeclared identifier 'DBL_MAX'
:info:build inline double FloatingPoint<double>::Max() { return DBL_MAX; }
:info:build                                                     ^
:info:build /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/gtest/googletest/include/gtest/internal/gtest-internal.h:392:53: error: use of undeclared identifier 'DBL_MAX'
:info:build inline double FloatingPoint<double>::Max() { return DBL_MAX; }
:info:build                                                     ^
:info:build In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/analysis/LengthFilterTest.cpp:7:
:info:build In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/include/TestInc.h:23:
:info:build In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/include/test_lucene.h:13:
:info:build In file included from /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/gtest/googletest/include/gtest/gtest.h:62:
:info:build /opt/local/var/macports/build/_opt_svacchanda_SonomaPorts_devel_LucenePlusPlus/LucenePlusPlus/work/LucenePlusPlus-3.0.8/src/test/gtest/googletest/include/gtest/internal/gtest-internal.h:390:51: error: use of undeclared identifier 'FLT_MAX'
:info:build inline float FloatingPoint<float>::Max() { return FLT_MAX; }
:info:build                                                   ^

The same code builds fine on 10.6 PowerPC with gcc13.

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