g1257 / dmrgpp

A free and open source implementation of the DMRG Algorithm
https://g1257.github.io/dmrgPlusPlus/
Other
41 stars 22 forks source link

[6.06] bunch of warnings with boost 1.81 #42

Open picca opened 8 months ago

picca commented 8 months ago

Hello, while preparing the switch to boost 1.81 I got these warning about deprecated headers.

g++ -frecord-gcc-switches -Wdate-time -D_FORTIFY_SOURCE=2 -pedantic -std=c++11 -Wall -Wendif-labels -I/usr/include/hdf5/serial -DUSE_BOOST -DNDEBUG -O3 -DUSE_PTHREADS -g -c ../src/Ainur/AinurSpirit.cpp
In file included from /usr/include/boost/config/header_deprecated.hpp:18,
                 from /usr/include/boost/spirit/include/phoenix_core.hpp:11,
                 from ../src/Ainur/AinurSpirit1.cpp:7,
                 from ../src/Ainur/AinurSpirit.cpp:2:
/usr/include/boost/spirit/include/phoenix_core.hpp:12:1: note: ‘#pragma message: This header is deprecated. Use <boost/phoenix/core.hpp> instead.’
   12 | BOOST_HEADER_DEPRECATED("<boost/phoenix/core.hpp>")
      | ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/boost/spirit/include/phoenix_operator.hpp:12:1: note: ‘#pragma message: This header is deprecated. Use <boost/phoenix/operator.hpp> instead.’
   12 | BOOST_HEADER_DEPRECATED("<boost/phoenix/operator.hpp>")
      | ^~~~~~~~~~~~~~~~~~~~~~~
g++ -frecord-gcc-switches -Wdate-time -D_FORTIFY_SOURCE=2 -pedantic -std=c++11 -Wall -Wendif-labels -I/usr/include/hdf5/serial -DUSE_BOOST -DNDEBUG -O3 -DUSE_PTHREADS -c ../src/Ainur/AinurConvert.cpp
In file included from /usr/include/boost/config/header_deprecated.hpp:18,
                 from /usr/include/boost/spirit/include/phoenix_core.hpp:11,
                 from ../src/Ainur/AinurConvert1.cpp:5,
                 from ../src/Ainur/AinurConvert.cpp:2:
/usr/include/boost/spirit/include/phoenix_core.hpp:12:1: note: ‘#pragma message: This header is deprecated. Use <boost/phoenix/core.hpp> instead.’
   12 | BOOST_HEADER_DEPRECATED("<boost/phoenix/core.hpp>")
      | ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/boost/spirit/include/phoenix_operator.hpp:12:1: note: ‘#pragma message: This header is deprecated. Use <boost/phoenix/operator.hpp> instead.’
   12 | BOOST_HEADER_DEPRECATED("<boost/phoenix/operator.hpp>")
      | ^~~~~~~~~~~~~~~~~~~~~~~
ar rcs libpsimaglite.a MersenneTwister.o Matrix.o Mpi.o Concurrency.o ProgressIndicator.o MemResolv.o PsimagLite.o PsiBase64.o SpecialFunctions.o TypeToH5.o TridiagonalMatrix.o PredicateSimple.o  AinurSpirit.o AinurConvert.o
make[2]: Leaving directory '/<<PKGBUILDDIR>>/psimaglite/lib'
/usr/bin/make -C src
make[2]: Entering directory '/<<PKGBUILDDIR>>/src'

Have a nice day.

Frederic

g1257 commented 8 months ago

On 3/6/24 04:56, picca wrote:

Hello, while preparing the switch to boost 1.81 I got these warning about deprecated headers.

Thanks for bringing this to my attention.

I've done the fix on the features branch:

https://code.ornl.gov/gonzalo_3/PsimagLite/-/commit/fef520f951e8c0b62b49d526061397b2528733d8 boost: phoenix core/operator headers fixed

I'll post it on Github when we release PsimagLite v3.08 master.

Not sure if you can take it from features in the meantime.

~Gonzalo.

picca commented 8 months ago

Not sure if you can take it from features in the meantime.

This is just a warning, so I will wait for the release :)

thanks a lot and have a good day

Fred