Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685798 - sci-physics/lammps-20181212 : /.../kspace.cpp:280:3: error: nlocal not specified in enclosing parallel
Summary: sci-physics/lammps-20181212 : /.../kspace.cpp:280:3: error: nlocal not specif...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Nicolas Bock
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-9
  Show dependency tree
 
Reported: 2019-05-13 08:39 UTC by Toralf Förster
Modified: 2021-04-13 17:52 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.80 KB, text/plain)
2019-05-13 08:40 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,77.50 KB, text/plain)
2019-05-13 08:40 UTC, Toralf Förster
Details
environment (environment,157.70 KB, text/plain)
2019-05-13 08:40 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,10.48 KB, application/x-bzip)
2019-05-13 08:40 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,455.36 KB, application/x-bzip)
2019-05-13 08:40 UTC, Toralf Förster
Details
sci-physics:lammps-20181212:20190513-003612.log.bz2 (sci-physics:lammps-20181212:20190513-003612.log.bz2,14.38 KB, application/x-bzip)
2019-05-13 08:40 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,47.94 KB, application/x-bzip)
2019-05-13 08:40 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-05-13 08:39:59 UTC
/var/tmp/portage/sci-physics/lammps-20181212/work/lammps-patch_12Dec2018/src/kspace.cpp: In member function ‘void LAMMPS_NS::KSpace::qsum_qsq()’:
/var/tmp/portage/sci-physics/lammps-20181212/work/lammps-patch_12Dec2018/src/kspace.cpp:280:3: error: ‘nlocal’ not specified in enclosing ‘parallel’
  280 |   for (int i = 0; i < nlocal; i++) {
      |   ^~~
/var/tmp/portage/sci-physics/lammps-20181212/work/lammps-patch_12Dec2018/src/kspace.cpp:278:9: error: enclosing ‘parallel’

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-gnome_libressl_20190510-223704

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.1.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems)
  [3]   ruby26 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.34.1 *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.12.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpvO sci-physics/lammps
[ebuild  N    ] sci-physics/lammps-20181212  USE="-cuda -examples -gzip -lammps-memalign -mpi -netcdf -python -test" PYTHON_TARGETS="python2_7 python3_6 -python3_5"
Comment 1 Toralf Förster gentoo-dev 2019-05-13 08:40:02 UTC
Created attachment 576330 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-05-13 08:40:05 UTC
Created attachment 576332 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-05-13 08:40:07 UTC
Created attachment 576334 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-05-13 08:40:10 UTC
Created attachment 576336 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-05-13 08:40:13 UTC
Created attachment 576338 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-05-13 08:40:16 UTC
Created attachment 576340 [details]
sci-physics:lammps-20181212:20190513-003612.log.bz2
Comment 7 Toralf Förster gentoo-dev 2019-05-13 08:40:19 UTC
Created attachment 576342 [details]
temp.tbz2
Comment 8 Christoph Junghans (RETIRED) gentoo-dev 2019-05-13 14:33:56 UTC
You can use the workaround from Fedora:
find . -type f \( -name "*.cpp" -or -name "*.h" \) -exec sed -e '/#pragma omp/s/default(none)/default(shared)/' -e '/#pragma omp/s/shared([^)]\+)//' -i {} +
Comment 10 Christoph Junghans (RETIRED) gentoo-dev 2019-06-30 21:37:59 UTC
(In reply to Michael 'veremitz' Everitt from comment #9)
> Fixed in
> https://github.com/lammps/lammps/commit/
> 3e05b983c1cc02b5923f93490981311e3d8bea42 and released as
> https://github.com/lammps/lammps/releases/tag/stable_5Jun2019 .
> 
> Revbump perhaps?
Not really a fix, it just disables OpenMP support.
Comment 11 Peter Levine 2020-05-31 21:07:03 UTC
This should be fixed as of the April 15th release: https://github.com/lammps/lammps/commit/9a1b4a8edb9f1d19f79b0f6ab65a9ec4b1ebc9eb
Comment 12 Nicolas Bock gentoo-dev 2021-04-13 17:52:29 UTC
Cannon reproduce with the 20200303 release.