Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 730340 - app-office/lyx-2.3.3 CXXFLAGS=-std=c++14 - insets/ExternalTemplate.cpp:194:2: error: ‘for_each’ was not declared in this scope
Summary: app-office/lyx-2.3.3 CXXFLAGS=-std=c++14 - insets/ExternalTemplate.cpp:194:2:...
Status: RESOLVED DUPLICATE of bug 721962
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-01 11:23 UTC by Paweł Metelski
Modified: 2020-07-13 19:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,29.62 KB, text/plain)
2020-07-03 07:09 UTC, emerald
Details
build.log (build.log,157.98 KB, text/x-log)
2020-07-03 07:10 UTC, emerald
Details
lyx 2.3.3 build fix (lyx-2.3.3-fix-missing-algorithm-include.patch,338 bytes, patch)
2020-07-03 07:12 UTC, emerald
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paweł Metelski 2020-07-01 11:23:30 UTC
insets/ExternalTemplate.cpp: In member function ‘void lyx::external::Template::dumpFormats(std::ostream&) const’:
insets/ExternalTemplate.cpp:194:2: error: ‘for_each’ was not declared in this scope
  for_each(formats.begin(), formats.end(), DumpFormat(os));
  ^~~~~~~~
Comment 1 Andreas Sturmlechner gentoo-dev 2020-07-01 12:39:16 UTC
emerge --info, build.log, you should know the drill.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2020-07-01 12:40:44 UTC
Please post your `emerge --info' output in a comment.
Please attach the entire build log to this bug report.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2020-07-01 12:41:13 UTC
Are you actually setting CXXFLAGS=-std=c++14 ??
Comment 4 emerald 2020-07-03 07:09:39 UTC
Created attachment 647442 [details]
emerge --info

emerge --info
Comment 5 emerald 2020-07-03 07:10:02 UTC
Created attachment 647444 [details]
build.log
Comment 6 emerald 2020-07-03 07:12:45 UTC
Created attachment 647448 [details, diff]
lyx 2.3.3 build fix

It appears lyx 2.3.3 is missing the <algorithm> include for for_each, however what made the change for it not to be included anymore i don't know (maybe boost 1.73?).
Most other source code files contain the algorithm include, so i assume it was an oversight by the developers.
Comment 7 Ulrich Müller gentoo-dev 2020-07-13 19:52:05 UTC

*** This bug has been marked as a duplicate of bug 721962 ***