Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685178 - media-gfx/curaengine-3.6.0: src/layerPart.cpp:53:46: error: ‘total_layers’ not specified in enclosing ‘parallel’
Summary: media-gfx/curaengine-3.6.0: src/layerPart.cpp:53:46: error: ‘total_layers’ no...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: 3D Printing Team
URL:
Whiteboard:
Keywords:
: 685734 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-05-06 09:35 UTC by Kobboi
Modified: 2020-01-14 08:42 UTC (History)
6 users (show)

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


Attachments
build.log (build.log,18.33 KB, text/x-log)
2019-05-06 09:35 UTC, Kobboi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2019-05-06 09:35:00 UTC
Created attachment 575398 [details]
build.log

[ 17%] Building CXX object CMakeFiles/_CuraEngine.dir/src/layerPart.cpp.o
/usr/bin/x86_64-pc-linux-gnu-g++ -DARCUS -DVERSION=\"master\" -I/usr/include/stb -I/var/tmp/portage/media-gfx/curaengine-3.6.0/work/curaengine-3.6.0_build -I/var/tmp/portage/media-gfx/curaengine-3.6.0/work/CuraEngine-3.6.0/libs -I/var/tmp/portage/media-gfx/curaengine-3.6.0/work/CuraEngine-3.6.0/libs/clipper   -DNDEBUG -O3 -DNDEBUG -Wall -static-libstdc++ -fopenmp   -std=gnu++11 -o CMakeFiles/_CuraEngine.dir/src/layerPart.cpp.o -c /var/tmp/portage/media-gfx/curaengine-3.6.0/work/CuraEngine-3.6.0/src/layerPart.cpp
[ 18%] Building CXX object CMakeFiles/_CuraEngine.dir/src/LayerPlan.cpp.o
/usr/bin/x86_64-pc-linux-gnu-g++ -DARCUS -DVERSION=\"master\" -I/usr/include/stb -I/var/tmp/portage/media-gfx/curaengine-3.6.0/work/curaengine-3.6.0_build -I/var/tmp/portage/media-gfx/curaengine-3.6.0/work/CuraEngine-3.6.0/libs -I/var/tmp/portage/media-gfx/curaengine-3.6.0/work/CuraEngine-3.6.0/libs/clipper   -DNDEBUG -O3 -DNDEBUG -Wall -static-libstdc++ -fopenmp   -std=gnu++11 -o CMakeFiles/_CuraEngine.dir/src/LayerPlan.cpp.o -c /var/tmp/portage/media-gfx/curaengine-3.6.0/work/CuraEngine-3.6.0/src/LayerPlan.cpp
/var/tmp/portage/media-gfx/curaengine-3.6.0/work/CuraEngine-3.6.0/src/layerPart.cpp: In function ‘void cura::createLayerParts(cura::SliceMeshStorage&, cura::Slicer*)’:
/var/tmp/portage/media-gfx/curaengine-3.6.0/work/CuraEngine-3.6.0/src/layerPart.cpp:53:46: error: ‘total_layers’ not specified in enclosing ‘parallel’
   53 |     for (unsigned int layer_nr = 0; layer_nr < total_layers; layer_nr++)
      |                                     ~~~~~~~~~^~~~~~~~~~~~~~
/var/tmp/portage/media-gfx/curaengine-3.6.0/work/CuraEngine-3.6.0/src/layerPart.cpp:52:9: error: enclosing ‘parallel’
   52 | #pragma omp parallel for default(none) shared(mesh, slicer) schedule(dynamic)
      |         ^~~
make[2]: *** [CMakeFiles/_CuraEngine.dir/build.make:214: CMakeFiles/_CuraEngine.dir/src/layerPart.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/media-gfx/curaengine-3.6.0/work/curaengine-3.6.0_build'
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/_CuraEngine.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-gfx/curaengine-3.6.0/work/curaengine-3.6.0_build'
make: *** [Makefile:152: all] Error 2
 * ERROR: media-gfx/curaengine-3.6.0::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-gfx/curaengine-3.6.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-gfx/curaengine-3.6.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-gfx/curaengine-3.6.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-gfx/curaengine-3.6.0/temp/environment'.
 * Working directory: '/var/tmp/portage/media-gfx/curaengine-3.6.0/work/curaengine-3.6.0_build'
 * S: '/var/tmp/portage/media-gfx/curaengine-3.6.0/work/CuraEngine-3.6.0'
Comment 1 Jonas Stein gentoo-dev 2019-05-06 20:25:29 UTC
Thank you for the report. Please recompile and 
*attach* the logfiles and 
paste the emerge info as described on
https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
The logs must be part of the ticket, but not on external websites.
We need to have all information at hand before ticket assignment, so that the maintainer can look after it in one session with minimal number of callbacks.
Please reopen this ticket (Status:unconfirmed) afterwards.

(likely gcc-9)
Comment 2 Kobboi 2019-05-06 21:07:06 UTC
Portage 2.3.66 (python 3.6.8-final-0, kobboi/samsonov, gcc-9.1.0, glibc-2.29-r2, 4.19.39 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.19.39-x86_64-Intel-R-_Core-TM-_i7-6700_CPU_@_3.40GHz-with-gentoo-2.6
KiB Mem:    32781184 total,   1308312 free
KiB Swap:          0 total,         0 free
Head commit of repository gentoo: bfa5f82349cb0446008e094f767d618356b45679

sh bash 5.0_p7
ld GNU ld (Gentoo 2.32 p2) 2.32.0
distcc 3.3.2 x86_64-pc-linux-gnu [disabled]
ccache version 3.7.1 [disabled]
app-shells/bash:          5.0_p7::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.8::gentoo, 3.7.3::gentoo
dev-util/ccache:          3.7.1::gentoo
dev-util/cmake:           3.14.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.17::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            6.4.0-r5::gentoo, 9.1.0::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.0-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /var/cache/kobboi/gentoo
    sync-type: git
    sync-uri: https://github.com/kobboi/gentoo.git
    priority: -1000

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=x86-64 -pipe -fomit-frame-pointer -g -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=x86-64 -pipe -fomit-frame-pointer -g -ggdb"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles installsources ipc-sandbox merge-sync multilib-strict network-sandbox news pid-sandbox preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/usr/src/debug /usr/lib/debug"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_BINHOST="ssh://christophe@10.8.0.6/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 avahi berkdb bluetooth bzip2 cairo cdda cdr cli colord crypt cups cxx dbus djvu dri dts dvd dvdr eds egl emboss encode evo exif fam ffmpeg flac fluidsynth fortran frei0r gdbm gif glade glamor gles gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 gtkstyle iconv introspection ipv6 jpeg lcms ldap libass libnotify libsecret libtirpc mad midi mng modemmanager mono mp3 mp4 mpeg mtp multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp opus pam pango pcre pdf png policykit ppds pulseaudio qt5 readline samba sdl seccomp smartcard smp spell ssl startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb vaapi vdpau vorbis wayland wxwidgets x264 xattr xcb xml xv xvid zeroconf zlib" ABI_X86="64" ALSA_CARDS="hda-intel ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse synaptics libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="vesa radeon nvidia intel amdgpu dummy fbdev nouveau radeonsi v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

media-gfx/curaengine-3.6.0::gentoo was built with the following:
USE="-doc -test" ABI_X86="(64)"
Comment 3 Michael 'veremitz' Everitt 2019-05-12 18:47:59 UTC
*** Bug 685734 has been marked as a duplicate of this bug. ***
Comment 4 Robert Schedel 2019-06-02 10:05:02 UTC
Curaengine upstream ticket for gcc9 build failure exists (still open): https://github.com/Ultimaker/CuraEngine/issues/984
Comment 5 Robert Schedel 2019-08-18 09:54:19 UTC
Upstream obviously still discussing clean gcc9 solution.

Should this be linked to existing gcc9 tracker bug 685044 for better visibility?
Comment 6 Robert Schedel 2019-10-17 19:23:43 UTC
Upstream has added fix into cura 4.3 (see above).
That version is available in portage tree.
Presumably this issue is resolved now?
Comment 7 Kobboi 2020-01-14 08:42:51 UTC
Closing this as fixed. 4.3.0 does not seem to have this problem and all versions currently in the tree are keyworded ~amd64 and ~x86 so it's not like version 3.6.0 on which this was reported needs extra care.