Bug#795077: kicad: FTBFS: error: 'itr' was not declared in this scope

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#795077: kicad: FTBFS: error: 'itr' was not declared in this scope

Graham Inggs-3
Hi

 > Nick Østergaard [2015-08-13 16:24 +0200]:
 > > You can use the cmake option -DKICAD_SKIP_BOOST=ON  to fix this issue.
 > > Make sure this only happens for systems with boost version above 1.54.

The -DKICAD_SKIP_BOOST=ON option doesn't work in the kicad stable branch
(bzr4029) currently in Debian and Ubuntu.

CMake Warning:
   Manually-specified variables were not used by the project:

     KICAD_SKIP_BOOST

I made the following change to CMakeLists.txt and also removed
include/boost/ :

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -285,8 +285,8 @@
  # kicad now includes needed boost files.
  # the two next lines can be uncommented to use the native boost lib.
  # but this is not a good idea
-#find_package(Boost 1.36 QUIET)
-#check_find_package_result(Boost_FOUND "Boost")
+find_package(Boost 1.36 QUIET)
+check_find_package_result(Boost_FOUND "Boost")

  ##########################
  # Find wxWidgets library #

...and still I am getting tons of errors like the following:

In file included from /usr/include/c++/5/list:63:0,
                  from /usr/include/boost/polygon/isotropy.hpp:20,
                  from /usr/include/boost/polygon/polygon.hpp:12,
                  from
/«BUILDDIR»/kicad-0.20141025+bzr4029/common/../polygon/polygons_defs.h:9,
                  from
/«BUILDDIR»/kicad-0.20141025+bzr4029/common/../polygon/PolyLine.h:23,
                  from
/«BUILDDIR»/kicad-0.20141025+bzr4029/common/../pcbnew/class_pad.h:37,
                  from
/«BUILDDIR»/kicad-0.20141025+bzr4029/common/footprint_info.cpp:22:
/usr/include/c++/5/bits/stl_list.h:1807:22: error: reference to 'list'
is ambiguous
      operator==(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y)

 > This worked well, thank you! Fedora does the same. I uploaded this a
 > few days ago to Ubuntu.

Your upload failed to build [1].  Fedora are using a newer revision
(bzr6041).

Any ideas?

Regards
Graham


[1] https://launchpad.net/ubuntu/+source/kicad/0.20141025+bzr4029-2ubuntu1

Reply | Threaded
Open this post in threaded view
|

Bug#795077: kicad: FTBFS: error: 'itr' was not declared in this scope

Nick Østergaard
Just forget tryting to build the old stable version (bzr rev around
4022 to 4029). Go and spend your time one making sure you can build
the latest in product and be happy. You are on debian testing afterall
(I think).

We should soon see a release candidate for the next stable,
https://lists.launchpad.net/kicad-developers/msg20227.html

And yes, that version that fedora is using is basically the
development version, which I also advise debian to use untill we get
the next release out.

Also the official PPA is now skipping the boost build and the first
builds that pass on ubuntu 15.10 is passing on
https://code.launchpad.net/~js-reynaud/+archive/ubuntu/ppa-kicad/+build/7890601

2015-09-09 18:02 GMT+02:00 Graham Inggs <[hidden email]>:

> Hi
>
>> Nick Østergaard [2015-08-13 16:24 +0200]:
>> > You can use the cmake option -DKICAD_SKIP_BOOST=ON  to fix this issue.
>> > Make sure this only happens for systems with boost version above 1.54.
>
> The -DKICAD_SKIP_BOOST=ON option doesn't work in the kicad stable branch
> (bzr4029) currently in Debian and Ubuntu.
>
> CMake Warning:
>   Manually-specified variables were not used by the project:
>
>     KICAD_SKIP_BOOST
>
> I made the following change to CMakeLists.txt and also removed
> include/boost/ :
>
> --- a/CMakeLists.txt
> +++ b/CMakeLists.txt
> @@ -285,8 +285,8 @@
>  # kicad now includes needed boost files.
>  # the two next lines can be uncommented to use the native boost lib.
>  # but this is not a good idea
> -#find_package(Boost 1.36 QUIET)
> -#check_find_package_result(Boost_FOUND "Boost")
> +find_package(Boost 1.36 QUIET)
> +check_find_package_result(Boost_FOUND "Boost")
>
>  ##########################
>  # Find wxWidgets library #
>
> ...and still I am getting tons of errors like the following:
>
> In file included from /usr/include/c++/5/list:63:0,
>                  from /usr/include/boost/polygon/isotropy.hpp:20,
>                  from /usr/include/boost/polygon/polygon.hpp:12,
>                  from
> /«BUILDDIR»/kicad-0.20141025+bzr4029/common/../polygon/polygons_defs.h:9,
>                  from
> /«BUILDDIR»/kicad-0.20141025+bzr4029/common/../polygon/PolyLine.h:23,
>                  from
> /«BUILDDIR»/kicad-0.20141025+bzr4029/common/../pcbnew/class_pad.h:37,
>                  from
> /«BUILDDIR»/kicad-0.20141025+bzr4029/common/footprint_info.cpp:22:
> /usr/include/c++/5/bits/stl_list.h:1807:22: error: reference to 'list' is
> ambiguous
>      operator==(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y)
>
>> This worked well, thank you! Fedora does the same. I uploaded this a
>> few days ago to Ubuntu.
>
> Your upload failed to build [1].  Fedora are using a newer revision
> (bzr6041).
>
> Any ideas?
>
> Regards
> Graham
>
>
> [1] https://launchpad.net/ubuntu/+source/kicad/0.20141025+bzr4029-2ubuntu1
>

Reply | Threaded
Open this post in threaded view
|

Bug#795077: kicad: FTBFS: error: 'itr' was not declared in this scope

Nick Østergaard
A stable release candidate has been called, please use this instead.

https://launchpad.net/kicad/4.0/4.0.0-rc1/+download/kicad-4.0.0-rc1.tar.xz

Announcement, https://lists.launchpad.net/kicad-developers/msg20326.html

2015-09-09 20:58 GMT+02:00 Nick Østergaard <[hidden email]>:

> Just forget tryting to build the old stable version (bzr rev around
> 4022 to 4029). Go and spend your time one making sure you can build
> the latest in product and be happy. You are on debian testing afterall
> (I think).
>
> We should soon see a release candidate for the next stable,
> https://lists.launchpad.net/kicad-developers/msg20227.html
>
> And yes, that version that fedora is using is basically the
> development version, which I also advise debian to use untill we get
> the next release out.
>
> Also the official PPA is now skipping the boost build and the first
> builds that pass on ubuntu 15.10 is passing on
> https://code.launchpad.net/~js-reynaud/+archive/ubuntu/ppa-kicad/+build/7890601
>
> 2015-09-09 18:02 GMT+02:00 Graham Inggs <[hidden email]>:
>> Hi
>>
>>> Nick Østergaard [2015-08-13 16:24 +0200]:
>>> > You can use the cmake option -DKICAD_SKIP_BOOST=ON  to fix this issue.
>>> > Make sure this only happens for systems with boost version above 1.54.
>>
>> The -DKICAD_SKIP_BOOST=ON option doesn't work in the kicad stable branch
>> (bzr4029) currently in Debian and Ubuntu.
>>
>> CMake Warning:
>>   Manually-specified variables were not used by the project:
>>
>>     KICAD_SKIP_BOOST
>>
>> I made the following change to CMakeLists.txt and also removed
>> include/boost/ :
>>
>> --- a/CMakeLists.txt
>> +++ b/CMakeLists.txt
>> @@ -285,8 +285,8 @@
>>  # kicad now includes needed boost files.
>>  # the two next lines can be uncommented to use the native boost lib.
>>  # but this is not a good idea
>> -#find_package(Boost 1.36 QUIET)
>> -#check_find_package_result(Boost_FOUND "Boost")
>> +find_package(Boost 1.36 QUIET)
>> +check_find_package_result(Boost_FOUND "Boost")
>>
>>  ##########################
>>  # Find wxWidgets library #
>>
>> ...and still I am getting tons of errors like the following:
>>
>> In file included from /usr/include/c++/5/list:63:0,
>>                  from /usr/include/boost/polygon/isotropy.hpp:20,
>>                  from /usr/include/boost/polygon/polygon.hpp:12,
>>                  from
>> /«BUILDDIR»/kicad-0.20141025+bzr4029/common/../polygon/polygons_defs.h:9,
>>                  from
>> /«BUILDDIR»/kicad-0.20141025+bzr4029/common/../polygon/PolyLine.h:23,
>>                  from
>> /«BUILDDIR»/kicad-0.20141025+bzr4029/common/../pcbnew/class_pad.h:37,
>>                  from
>> /«BUILDDIR»/kicad-0.20141025+bzr4029/common/footprint_info.cpp:22:
>> /usr/include/c++/5/bits/stl_list.h:1807:22: error: reference to 'list' is
>> ambiguous
>>      operator==(const list<_Tp, _Alloc>& __x, const list<_Tp, _Alloc>& __y)
>>
>>> This worked well, thank you! Fedora does the same. I uploaded this a
>>> few days ago to Ubuntu.
>>
>> Your upload failed to build [1].  Fedora are using a newer revision
>> (bzr6041).
>>
>> Any ideas?
>>
>> Regards
>> Graham
>>
>>
>> [1] https://launchpad.net/ubuntu/+source/kicad/0.20141025+bzr4029-2ubuntu1
>>