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

i686 build error #450

Open
Pro-pra opened this issue Oct 20, 2022 · 3 comments
Open

i686 build error #450

Pro-pra opened this issue Oct 20, 2022 · 3 comments

Comments

@Pro-pra
Copy link

Pro-pra commented Oct 20, 2022

Hi, have any solution?

`/builddir/build/BUILD/madness-8ac1225cfbeca1487b8d28fe74274f97816d5870/src/madness/world/world.cc:129:47: warning: left shift count >= width of type [-Wshift-count-overflow]
129 | constexpr std::uint64_t range_size = 1ul<<32;
| ~~~^~~~

/builddir/build/BUILD/madness-8ac1225cfbeca1487b8d28fe74274f97816d5870/src/madness/world/world.cc:129:47: error: right operand of shift expression �(1 << 32)’ is greater than or equal to the precision 32 of the left operand [-fpermissive]`

@kottmanj
Copy link
Contributor

kottmanj commented Oct 20, 2022 via email

@Pro-pra
Copy link
Author

Pro-pra commented Oct 20, 2022

/usr/bin/cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DCMAKE_SKIP_RPATH:BOOL=ON -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DBUILD_SHARED_LIBS:BOOL=ON -DBUILD_STATIC_LIBS:BOOL=OFF '-DCMAKE_MODULE_LINKER_FLAGS=-O2 -fomit-frame-pointer -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -fstack-protector-strong --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=generic -msse -mfpmath=sse -fasynchronous-unwind-tables -mstackrealign -Wl,-O2 -Wl,--no-undefined -Wl,--unresolved-symbols=ignore-all' -DMADNESS_INSTALL_LIBDIR=/usr/lib -DMADNESS_INSTALL_CMAKEDIR=/usr/lib/cmake/madness -DMADNESS_BUILD_MADWORLD_ONLY=ON -DBUILD_SHARED_LIBS=ON -GNinja

gcc 11.2.0

@Pro-pra
Copy link
Author

Pro-pra commented Oct 20, 2022

Sorry, more log here:

/usr/bin/g++ -DMADNESS_MPI_HEADER=\"/usr/include/mpi.h\" -DMAD_ROOT_DIR=\"/builddir/build/BUILD/madness-8ac1225cfbeca1487b8d28fe74274f97816d5870\" -I/builddir/build/BUILD/madness-8ac1225cfbeca1487b8d28fe74274f97816d5870/build/src/madness/world -I/builddir/build/BUILD/madness-8ac1225cfbeca1487b8d28fe74274f97816d5870/src/madness/world -I/builddir/build/BUILD/madness-8ac1225cfbeca1487b8d28fe74274f97816d5870/src -I/builddir/build/BUILD/madness-8ac1225cfbeca1487b8d28fe74274f97816d5870/build/src -O2 -fomit-frame-pointer -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -fstack-protector-strong --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=generic -msse -mfpmath=sse -fasynchronous-unwind-tables -mstackrealign -std=c++17 -DNDEBUG -fPIC -pthread -std=c++17 -MD -MT src/madness/world/CMakeFiles/MADworld-obj.dir/world.cc.o -MF src/madness/world/CMakeFiles/MADworld-obj.dir/world.cc.o.d -o src/madness/world/CMakeFiles/MADworld-obj.dir/world.cc.o -c /builddir/build/BUILD/madness-8ac1225cfbeca1487b8d28fe74274f97816d5870/src/madness/world/world.cc
/builddir/build/BUILD/madness-8ac1225cfbeca1487b8d28fe74274f97816d5870/src/madness/world/world.cc: In static member function �static void madness::World::initialize_world_id_range(int)’:
/builddir/build/BUILD/madness-8ac1225cfbeca1487b8d28fe74274f97816d5870/src/madness/world/world.cc:129:47: warning: left shift count >= width of type [-Wshift-count-overflow]
  129 |       constexpr std::uint64_t range_size = 1ul<<32;
      |                                            ~~~^~~~
/builddir/build/BUILD/madness-8ac1225cfbeca1487b8d28fe74274f97816d5870/src/madness/world/world.cc:129:47: error: right operand of shift expression �(1 << 32)’ is greater than or equal to the precision 32 of the left operand [-fpermissive]
/builddir/build/BUILD/madness-8ac1225cfbeca1487b8d28fe74274f97816d5870/src/madness/world/world.cc:130:56: warning: left shift count >= width of type [-Wshift-count-overflow]
  130 |       constexpr std::uint64_t range_size_minus_1 = (1ul<<32) - 1;
      |                                                     ~~~^~~~
/builddir/build/BUILD/madness-8ac1225cfbeca1487b8d28fe74274f97816d5870/src/madness/world/world.cc:130:56: error: right operand of shift expression �(1 << 32)’ is greater than or equal to the precision 32 of the left operand [-fpermissive]
  130 |       constexpr std::uint64_t range_size_minus_1 = (1ul<<32) - 1;
      |                                                    ~~~~^~~~~
In file included from /builddir/build/BUILD/madness-8ac1225cfbeca1487b8d28fe74274f97816d5870/src/madness/world/worldhashmap.h:48,
                 from /builddir/build/BUILD/madness-8ac1225cfbeca1487b8d28fe74274f97816d5870/src/madness/world/world.h:71,
                 from /builddir/build/BUILD/madness-8ac1225cfbeca1487b8d28fe74274f97816d5870/src/madness/world/world.cc:38:```

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