Re: [Kicad-developers] Failed to build on my system
I agree, I flagged this as a bug but I may have forgotten to send a patch to the list. In this instance the iterators should be declared as the non-const type. On Fri, Jun 10, 2016 at 4:48 AM, Simon Richterwrote: > Hi, > > On 09.06.2016 20:28, Mário Luzeiro wrote: > > [Using iterator instead of const_iterator as place hint for std::list] > > > This workaround works! > > I think this gcc version we can support with only little effort, since > we need to have a non-const reference to the container anyway, so > getting a non-const iterator should be trivial in almost all cases, and > C++11 support is otherwise complete enough in that version. > >Simon > > > ___ > Mailing list: https://launchpad.net/~kicad-developers > Post to : kicad-developers@lists.launchpad.net > Unsubscribe : https://launchpad.net/~kicad-developers > More help : https://help.launchpad.net/ListHelp > > ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] Failed to build on my system
Hi, On 09.06.2016 20:28, Mário Luzeiro wrote: [Using iterator instead of const_iterator as place hint for std::list] > This workaround works! I think this gcc version we can support with only little effort, since we need to have a non-const reference to the container anyway, so getting a non-const iterator should be trivial in almost all cases, and C++11 support is otherwise complete enough in that version. Simon signature.asc Description: OpenPGP digital signature ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] Failed to build on my system
For whom may be interested, I manage to update the gcc on my distro, following a mix of the instruction on this two websites: http://hillol.tumblr.com/post/109434251366/how-to-install-gcc-492-in-ubuntu-or-linux-mint http://www.techerina.com/2015/04/installing-upgrading-gcc-in-ubuntu-linuxmint-machine.html It may work also for other ubuntu flavors. It now builds kicad. Mario From: Kicad-developers [kicad-developers-bounces+mrluzeiro=ua...@lists.launchpad.net] on behalf of Wayne Stambaugh [stambau...@gmail.com] Sent: 09 June 2016 19:13 To: kicad-developers@lists.launchpad.net Subject: Re: [Kicad-developers] Failed to build on my system It compiled with gcc 4.9.3 on msys1/mingw32. It just wouldn't link because of the broken libgomp on mingw32. My guess is that it would be fine on linux. To be safe, gcc 5+ will be your best bet. On 6/9/2016 2:11 PM, Mário Luzeiro wrote: > Hi Nick, > > gcc --version > gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 > > It looks that this is the most updated one on the repos of my distro (Mint) > > Which one should I update to? > > Mario > > > From: Nick Østergaard [oe.n...@gmail.com] > Sent: 09 June 2016 18:55 > To: Mário Luzeiro > Cc: kicad-developers@lists.launchpad.net; cirilo.berna...@gmail.com > Subject: Re: [Kicad-developers] Failed to build on my system > > Which exact system are you using here? Compiler and version? ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] Failed to build on my system
This workaround works! From: Kicad-developers [kicad-developers-bounces+mrluzeiro=ua...@lists.launchpad.net] on behalf of jp charras [jp.char...@wanadoo.fr] Sent: 09 June 2016 19:08 To: kicad-developers@lists.launchpad.net Subject: Re: [Kicad-developers] Failed to build on my system auto sPL = m_Paths.begin(); or std::list< S3D_ALIAS >::iterator sPL = m_Paths.begin(); Jean-Pierre Charras ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] Failed to build on my system
It compiled with gcc 4.9.3 on msys1/mingw32. It just wouldn't link because of the broken libgomp on mingw32. My guess is that it would be fine on linux. To be safe, gcc 5+ will be your best bet. On 6/9/2016 2:11 PM, Mário Luzeiro wrote: > Hi Nick, > > gcc --version > gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 > > It looks that this is the most updated one on the repos of my distro (Mint) > > Which one should I update to? > > Mario > > > From: Nick Østergaard [oe.n...@gmail.com] > Sent: 09 June 2016 18:55 > To: Mário Luzeiro > Cc: kicad-developers@lists.launchpad.net; cirilo.berna...@gmail.com > Subject: Re: [Kicad-developers] Failed to build on my system > > Which exact system are you using here? Compiler and version? > > ___ > Mailing list: https://launchpad.net/~kicad-developers > Post to : kicad-developers@lists.launchpad.net > Unsubscribe : https://launchpad.net/~kicad-developers > More help : https://help.launchpad.net/ListHelp > ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] Failed to build on my system
Hi Nick, gcc --version gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 It looks that this is the most updated one on the repos of my distro (Mint) Which one should I update to? Mario From: Nick Østergaard [oe.n...@gmail.com] Sent: 09 June 2016 18:55 To: Mário Luzeiro Cc: kicad-developers@lists.launchpad.net; cirilo.berna...@gmail.com Subject: Re: [Kicad-developers] Failed to build on my system Which exact system are you using here? Compiler and version? ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] Failed to build on my system
Le 09/06/2016 19:20, Mário Luzeiro a écrit : Hi Cirilo, With this commit: http://bazaar.launchpad.net/~kicad-product-committers/kicad/product/revision/6905 I cannot build now on Linux: 3d-viewer/3d_cache/3d_filename_resolver.cpp:845: error: no matching function for call to ‘std::list::insert(std::list::const_iterator&, S3D_ALIAS&)’ m_Paths.insert( sPL, lpath ); ^ It successful build on msys2 today. Is it a problem just on my system? Cheers, Mario Your compiler is a bit too old (I have the same issue on Kubuntu 14.04 LTS). Try to change 3d-viewer/3d_cache/3d_filename_resolver.cpp:807 : std::list< S3D_ALIAS >::const_iterator sPL = m_Paths.begin(); by auto sPL = m_Paths.begin(); or std::list< S3D_ALIAS >::iterator sPL = m_Paths.begin(); Jean-Pierre Charras ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] Failed to build on my system
Which exact system are you using here? Compiler and version? 2016-06-09 19:20 GMT+02:00 Mário Luzeiro: > Hi Cirilo, > > With this commit: > http://bazaar.launchpad.net/~kicad-product-committers/kicad/product/revision/6905 > > I cannot build now on Linux: > > 3d-viewer/3d_cache/3d_filename_resolver.cpp:845: error: no matching function > for call to > ‘std::list::insert(std::list::const_iterator&, > S3D_ALIAS&)’ > m_Paths.insert( sPL, lpath ); > ^ > > It successful build on msys2 today. > > Is it a problem just on my system? > > Cheers, > Mario > ___ > Mailing list: https://launchpad.net/~kicad-developers > Post to : kicad-developers@lists.launchpad.net > Unsubscribe : https://launchpad.net/~kicad-developers > More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp
Re: [Kicad-developers] Failed to build on my system
I commented that this patch would break some builds depending on the compiler. I also gave JP the go ahead to apply this patch. If we are going to support c++11, then we cannot continue to reject patches with c++11 code. I also can no longer build kicad on msys1/mingw32 because gcc is version 4.7.3 and libgomp is broken on 4.9.3. Not that I'm going to miss building on msys1/mingw32. I'm not too worried about it since none of the auto-builders have failed (yet). You will have to update your version of gcc to enjoy all of the c++11 goodness or continue to use the stable release. On 6/9/2016 1:20 PM, Mário Luzeiro wrote: > Hi Cirilo, > > With this commit: > http://bazaar.launchpad.net/~kicad-product-committers/kicad/product/revision/6905 > > I cannot build now on Linux: > > 3d-viewer/3d_cache/3d_filename_resolver.cpp:845: error: no matching function > for call to > ‘std::list::insert(std::list::const_iterator&, > S3D_ALIAS&)’ > m_Paths.insert( sPL, lpath ); > ^ > > It successful build on msys2 today. > > Is it a problem just on my system? > > Cheers, > Mario > ___ > Mailing list: https://launchpad.net/~kicad-developers > Post to : kicad-developers@lists.launchpad.net > Unsubscribe : https://launchpad.net/~kicad-developers > More help : https://help.launchpad.net/ListHelp > ___ Mailing list: https://launchpad.net/~kicad-developers Post to : kicad-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~kicad-developers More help : https://help.launchpad.net/ListHelp