[opensuse-buildservice] Building with gcc8 on Tumbleweed
Greetings. I have a C++ project that I want to build for openSUSE Tumbleweed. I get build errors when using the default GCC 9 and the developers advise me to try using GCC 8 instead. What's the right way of configuring the project to do this? I tried updating my project's metadata as follows: <repository name="openSUSE_Tumbleweed"> [...] <path project="devel:gcc" repository="openSUSE_Factory"/> [...] </repository> And then in my spec file I replaced BuildRequires: gcc-c++ with BuildRequires: gcc8-c++ But this doesn't seem to work. When I do a build, I see that both GCC 8 and GCC 9 get installed. But the build then fails with the following message: checking for the target C++ compiler... not found DEBUG: _cxx: Trying /usr/bin/g++ ERROR: Cannot find the target C++ compiler Generally speaking, is there something else I should be doing to force OBS builds to use GCC 8 instead of whatever Tumbleweed's current version is? Regards, Tristan -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Tristan Miller Free Software developer, ferret herder, logologist https://logological.org/ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (3)
-
Adrian Schröter
-
Jan Engelhardt
-
Tristan Miller