Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Error with KLayout 0.25.3 and GCC 8.1.0 #127

Closed
t0nedef opened this issue May 28, 2018 · 3 comments
Closed

Build Error with KLayout 0.25.3 and GCC 8.1.0 #127

t0nedef opened this issue May 28, 2018 · 3 comments

Comments

@t0nedef
Copy link

t0nedef commented May 28, 2018

I run into a build error when building KLayout 0.25.3 against GCC libs 8.1.0:

from ../../../src/db/db/dbCellMapping.cc:24:
[...]
/usr/include/c++/8.1.0/bits/stl_iterator_base_funcs.h:183:2: error: no match for 'operator--' (operand type is 'db::SortedCellIndexIterator')

I have a patch (see attached) that gets around the issue by defining the missing operator.

missingOp.txt

@plopresti
Copy link

I can confirm both the build failure and the fix.

Note that the error is that this class has "typedef std::random_access_iterator_tag iterator_category" but does not meet the requirements of a random-access iterator. The GCC 8.1.0 implementation of std::lower_bound uses the decrement operator.

@akhuettel
Copy link
Contributor

Another confirmation here. I've added the patch to the Gentoo build.

gentoo-bot pushed a commit to gentoo/gentoo that referenced this issue Dec 12, 2018
See KLayout/klayout#127 for
the source of the patch.

Bug: https://bugs.gentoo.org/672986
Closes: https://bugs.gentoo.org/672990
Closes: https://bugs.gentoo.org/669340
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
@klayoutmatthias
Copy link
Collaborator

Closing as this was fixed long ago. Cleaning up open tickets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants