Details
-
Improvement
-
Resolution: Fixed
-
Trivial
-
None
-
None
-
9223372036854775807
Description
new distros can be a headache to build Lustre on, like Fedora/gcc10.
sometimes it's just much simpler to build using specific (old) gcc than trying to fix all the warnings and false errors new gcc complains about.
and docker/podman is a trivial way to do so:
- to build the image
$podman build -t centos8-build . - to build Lustre:
$ podman run -it
--mount type=bind,source=<path-to-kernel>,target=/tmp/kernel \
--mount type=bind,source=<path-to-lustre>,target=/tmp/lustre \
centos8-build /bin/bash -c "cd /tmp/lustre; sh autogen.sh; \
./configure --with-linux=/tmp/kernel/ \
--with-linux-obj=/tmp/kernel/ && make"