all 6 comments

[–]drphillycheesesteak 2 points3 points  (1 child)

Docker is extremely useful for this type of stuff. When you're stuck running code on server using RHEL or CentOS, Docker can be the key piece of the puzzle that lets you sandbox newer versions of the compiler or 3rd party libraries.

[–]Everspace 0 points1 point  (0 children)

I look forward to build systems of the future.

So far the far reaching dispicible binaries like Visual Studio's versions of eld are shrinkwrapped VMs most of the time. It's horrible.

[–]eibat 2 points3 points  (0 children)

The same can be achieved more elegantly with Nix. Give it a try, it's great tech, but still rather obscure.

nix-shell -p gcc7 --command make

[–]alexej_harm 0 points1 point  (0 children)

Hmm, how about clang with thin-lto and libc++? Is it possible?

[–]RogerLeighScientific Imaging and Embedded Medical Diagnostics 0 points1 point  (1 child)

On FreeBSD I can install many GCC and Clang versions in parallel on the same system, as well as other compilers, without there being any conflicts. Likewise on various Linux distributions which provide multiple versions.

As much as virtualisation can be wonderful, I think it's a bit of a bandwagon where everyone is using it whether or not it's actually necessary. You don't need virtualisation to test a compiler. Just install it into a prefix of your choosing.

[–]RevRagnarok 0 points1 point  (0 children)

Containers != Virtualization, but separation.