[opensuse-buildservice] Build RPM with GCC6
Hello all, I have a C++ project which requires C++14, so I figured I'd have to use GCC >= 6.1. I'm trying to build under openSUSE Leap 42.2 on a private OBS 2.7 instance. The project configuration has been copied 1:1 from 'osc -A https://api.opensuse.org meta prjconf openSUSE:Leap:42.2' The build requirements in my SPEC file are: BuildRequires: autoconf BuildRequires: automake BuildRequires: boost-devel BuildRequires: gcc6-c++ BuildRequires: make BuildRequires: unzip BuildRequires: wxWidgets-3_0-devel Submitting this to OBS results in this error message: --- snip --- unresolvable: conflict for provider of libgcc_s1 >= 6.1.1+r238085-1.12 needed by gcc6, (provider libgcc_s1-gcc6 is conflicted by installed libgcc_s1) --- snip --- Replacing gcc6-c++ by gcc-c++ will result in a successfully set up build environment but the build itself will fail. Is maybe this line from the prjconf what's causing the problem? Preinstall: libbz2-1 libgcc_s1 m4 libncurses5 pam Or what do I have to do to build with gcc6 in OBS for openSUSE Leap 42.2? TIA -- Till -- Dipl.-Inform. Till Dörges doerges@pre-sense.de Tel. +49 - 40 - 244 2407 - 14 Fax +49 - 40 - 244 2407 - 24 PRESENSE Technologies GmbH Sachsenstr. 5, D-20097 HH Geschäftsführer/Managing Directors AG Hamburg, HRB 107844 Till Dörges, Jürgen Sander USt-IdNr.: DE263765024 Wir sind wieder auf dem BSI IT-Sicherheitskongress 16.-18. Mai 2017 – Bonn -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Friday 2017-03-31 13:46, Till Dörges wrote:
--- snip --- unresolvable: conflict for provider of libgcc_s1 >= 6.1.1+r238085-1.12 needed by gcc6, (provider libgcc_s1-gcc6 is conflicted by installed libgcc_s1) --- snip ---
Is maybe this line from the prjconf what's causing the problem?
Preinstall: libbz2-1 libgcc_s1 m4 libncurses5 pam
Or what do I have to do to build with gcc6 in OBS for openSUSE Leap 42.2?
<repository name="openSUSE_Leap_42.2"> <path project="devel:gcc" repository="openSUSE_Leap_42.2"> ... </repository> && BuildRequires: gcc6-c++ && %build export CXX=g++-6 %configure. .. like before. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Am 31.03.2017 um 13:57 schrieb Jan Engelhardt:
Or what do I have to do to build with gcc6 in OBS for openSUSE Leap 42.2?
<repository name="openSUSE_Leap_42.2"> <path project="devel:gcc" repository="openSUSE_Leap_42.2"> ... </repository>
&&
BuildRequires: gcc6-c++
&&
%build export CXX=g++-6 %configure. ..
like before.
Uh, does that mean building with gcc6 with only native Leap 42.2 packages does not work? Regards -- Till -- Dipl.-Inform. Till Dörges doerges@pre-sense.de Tel. +49 - 40 - 244 2407 - 14 Fax +49 - 40 - 244 2407 - 24 PRESENSE Technologies GmbH Sachsenstr. 5, D-20097 HH Geschäftsführer/Managing Directors AG Hamburg, HRB 107844 Till Dörges, Jürgen Sander USt-IdNr.: DE263765024 Wir sind wieder auf dem BSI IT-Sicherheitskongress 16.-18. Mai 2017 – Bonn -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Friday 2017-03-31 13:59, Till Dörges wrote:
Am 31.03.2017 um 13:57 schrieb Jan Engelhardt:
Or what do I have to do to build with gcc6 in OBS for openSUSE Leap 42.2?
<repository name="openSUSE_Leap_42.2"> <path project="devel:gcc" repository="openSUSE_Leap_42.2"> ... </repository>
&&
BuildRequires: gcc6-c++ && %build export CXX=g++-6 %configure ...
Uh, does that mean building with gcc6 with only native Leap 42.2 packages does not work?
Oh you can also use the gcc6 from the base, there is no hard requirement for devel:gcc. But in either case, no messing with prjconf is necessary - nor helpful - so just stick to selecting the desired CXX program as shown. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Am 31.03.2017 um 14:06 schrieb Jan Engelhardt:
Oh you can also use the gcc6 from the base, there is no hard requirement for devel:gcc. But in either case, no messing with prjconf is necessary - nor helpful - so just stick to selecting the desired CXX program as shown.
Okay. But AFAICT the latter (stick to selecting the desired CXX program) is exactly what I tried. ;-) A simple "BuildRequires: gcc6-c++" in the SPEC file already leads to an unresolvable by OBS. Regards -- Till -- Dipl.-Inform. Till Dörges doerges@pre-sense.de Tel. +49 - 40 - 244 2407 - 14 Fax +49 - 40 - 244 2407 - 24 PRESENSE Technologies GmbH Sachsenstr. 5, D-20097 HH Geschäftsführer/Managing Directors AG Hamburg, HRB 107844 Till Dörges, Jürgen Sander USt-IdNr.: DE263765024 Wir sind wieder auf dem BSI IT-Sicherheitskongress 16.-18. Mai 2017 – Bonn -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Fri, Mar 31, 2017 at 8:10 AM, Till Dörges <doerges@pre-sense.de> wrote:
Am 31.03.2017 um 14:06 schrieb Jan Engelhardt:
Oh you can also use the gcc6 from the base, there is no hard requirement for devel:gcc. But in either case, no messing with prjconf is necessary - nor helpful - so just stick to selecting the desired CXX program as shown.
Okay. But AFAICT the latter (stick to selecting the desired CXX program) is exactly what I tried. ;-)
A simple "BuildRequires: gcc6-c++" in the SPEC file already leads to an unresolvable by OBS.
This part is mandatory: %build export CXX=g++-6 %configure. .. Greg -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
I miss-read Till's email. Please ignore my reply. -- Greg Freemyer On Fri, Mar 31, 2017 at 8:21 AM, Greg Freemyer <greg.freemyer@gmail.com> wrote:
On Fri, Mar 31, 2017 at 8:10 AM, Till Dörges <doerges@pre-sense.de> wrote:
Am 31.03.2017 um 14:06 schrieb Jan Engelhardt:
Oh you can also use the gcc6 from the base, there is no hard requirement for devel:gcc. But in either case, no messing with prjconf is necessary - nor helpful - so just stick to selecting the desired CXX program as shown.
Okay. But AFAICT the latter (stick to selecting the desired CXX program) is exactly what I tried. ;-)
A simple "BuildRequires: gcc6-c++" in the SPEC file already leads to an unresolvable by OBS.
This part is mandatory:
%build export CXX=g++-6 %configure. ..
Greg -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
On Friday 2017-03-31 14:10, Till Dörges wrote:
Am 31.03.2017 um 14:06 schrieb Jan Engelhardt:
Oh you can also use the gcc6 from the base, there is no hard requirement for devel:gcc. But in either case, no messing with prjconf is necessary - nor helpful - so just stick to selecting the desired CXX program as shown.
A simple "BuildRequires: gcc6-c++" in the SPEC file already leads to an unresolvable by OBS.
BuildRequires: gcc6-c++ #!BuildIgnore: libgcc_s1 is what I use. -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
Am 31.03.2017 um 14:37 schrieb Jan Engelhardt:
#!BuildIgnore: libgcc_s1
That was what I was looking for. :-) It's building now... Thanks a lot -- Till -- Dipl.-Inform. Till Dörges doerges@pre-sense.de Tel. +49 - 40 - 244 2407 - 14 Fax +49 - 40 - 244 2407 - 24 PRESENSE Technologies GmbH Sachsenstr. 5, D-20097 HH Geschäftsführer/Managing Directors AG Hamburg, HRB 107844 Till Dörges, Jürgen Sander USt-IdNr.: DE263765024 Wir sind wieder auf dem BSI IT-Sicherheitskongress 16.-18. Mai 2017 – Bonn -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (3)
-
Greg Freemyer
-
Jan Engelhardt
-
Till Dörges