Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 430656 - sci-physics/clhep-2.1.2.4 - CMake Error: Parse error in cache file .../work/clhep-2.1.2.4_build/CMakeCache.txt. Offending entry: 2
Summary: sci-physics/clhep-2.1.2.4 - CMake Error: Parse error in cache file .../work/c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Physics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-09 19:20 UTC by Jean-Francois Ostiguy
Modified: 2012-08-14 20:18 UTC (History)
0 users

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


Attachments
emerge.info (emerge.info,5.52 KB, text/plain)
2012-08-10 23:10 UTC, Jean-Francois Ostiguy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Francois Ostiguy 2012-08-09 19:20:03 UTC
relevant build log:

* Package:    sci-physics/clhep-2.1.2.4
 * Repository: gentoo
 * Maintainer: sci-physics@gentoo.org
 * USE:        amd64 elibc_glibc kernel_linux multilib userland_GNU
 * FEATURES:   sandbox splitdebug
>>> Unpacking source...
>>> Unpacking clhep-2.1.2.4.tgz to /var/tmp/portage/sci-physics/clhep-2.1.2.4/work
>>> Source unpacked in /var/tmp/portage/sci-physics/clhep-2.1.2.4/work
>>> Preparing source in /var/tmp/portage/sci-physics/clhep-2.1.2.4/work/2.1.2.4/CLHEP ...
 * Applying clhep-2.1.2.4-libdir.patch ...                                                                                                                                                               [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sci-physics/clhep-2.1.2.4/work/2.1.2.4/CLHEP ...
>>> Working in BUILD_DIR: "/var/tmp/portage/sci-physics/clhep-2.1.2.4/work/clhep-2.1.2.4_build"
cmake --no-warn-unused-cli -C /var/tmp/portage/sci-physics/clhep-2.1.2.4/work/clhep-2.1.2.4_build/gentoo_common_config.cmake -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_TESTING=OFF -DCLHEP_BUILD_DOCS=OFF -DCMAKE_BUI
LD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/sci-physics/clhep-2.1.2.4/work/clhep-2.1.2.4_build/gentoo_rules.cmake  /var/tmp/portage/sci-physics/clhep-2.1.2.4/
work/2.1.2.4/CLHEP
Not searching for unused variables given on the command line.
loading initial cache file /var/tmp/portage/sci-physics/clhep-2.1.2.4/work/clhep-2.1.2.4_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 4.6.3
-- The CXX compiler identification is GNU 4.6.3
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- cmake build type is Gentoo
-- compiling with g++  -ansi -pedantic -Wall -D_GNU_SOURCE -march=native -O2 -pipe  
-- Looking for drand48
-- Looking for drand48 - found
-- checking for headers in Units
-- checking for headers in Utility
-- checking for headers in Vector
-- checking for headers in Evaluator
-- checking for headers in GenericFunctions
-- checking for headers in Geometry
-- checking for headers in Random
-- checking for headers in Matrix
-- checking for headers in RandomObjects
-- checking for headers in Cast
-- checking for headers in RefCount
-- checking for headers in Exceptions
-- Geometry depends on Vector
-- Matrix depends on Random
-- Matrix depends on Vector
-- RandomObjects depends on Random
-- RandomObjects depends on Matrix
-- RandomObjects depends on Vector
-- Exceptions depends on Cast
-- Exceptions depends on RefCount
-- clhep CPACK_PACKAGE_NAME:    clhep 
-- clhep CPACK_PACKAGE_VERSION: 2.1.2.4 
-- clhep CPACK_SYSTEM_NAME:     x86_64-gentoo
2
-gcc46
-gentoo
-- <<< Gentoo configuration >>>
Build type      Gentoo
Install path    /usr
Compiler flags:
C                -ansi -pedantic -Wall -D_GNU_SOURCE -march=native -O2 -pipe 
C++              -ansi -pedantic -Wall -D_GNU_SOURCE -march=native -O2 -pipe 
Linker flags:
Executable       -Wl,-O1 -Wl,--as-needed
Module           -Wl,-O1 -Wl,--as-needed
Shared           -Wl,-O1 -Wl,--as-needed

-- Configuring done
-- Generating done
-- Build files have been written to: /var/tmp/portage/sci-physics/clhep-2.1.2.4/work/clhep-2.1.2.4_build
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sci-physics/clhep-2.1.2.4/work/2.1.2.4/CLHEP ...
>>> Working in BUILD_DIR: "/var/tmp/portage/sci-physics/clhep-2.1.2.4/work/clhep-2.1.2.4_build"
make -j5 VERBOSE=1 
/usr/bin/cmake -H/var/tmp/portage/sci-physics/clhep-2.1.2.4/work/2.1.2.4/CLHEP -B/var/tmp/portage/sci-physics/clhep-2.1.2.4/work/clhep-2.1.2.4_build --check-build-system CMakeFiles/Makefile.cmake 0
CMake Error: Parse error in cache file /var/tmp/portage/sci-physics/clhep-2.1.2.4/work/clhep-2.1.2.4_build/CMakeCache.txt. Offending entry: 2
Re-run cmake error reading : CMakeFiles/Makefile.cmake
-- cmake build type is Gentoo
-- compiling with g++  -ansi -pedantic -Wall -D_GNU_SOURCE -march=native -O2 -pipe  
-- checking for headers in Units
-- checking for headers in Utility
-- checking for headers in Vector
-- checking for headers in Evaluator
-- checking for headers in GenericFunctions
-- checking for headers in Geometry
-- checking for headers in Random
-- checking for headers in Matrix
-- checking for headers in RandomObjects
-- checking for headers in Cast
-- checking for headers in RefCount
-- checking for headers in Exceptions
-- Geometry depends on Vector
-- Matrix depends on Random
-- Matrix depends on Vector
-- RandomObjects depends on Random
-- RandomObjects depends on Matrix
-- RandomObjects depends on Vector
-- Exceptions depends on Cast
-- Exceptions depends on RefCount
-- clhep CPACK_PACKAGE_NAME:    clhep 
-- clhep CPACK_PACKAGE_VERSION: 2.1.2.4 
-- clhep CPACK_SYSTEM_NAME:     x86_64-gentoo-gcc46
-gentoo
-- <<< Gentoo configuration >>>
Build type      Gentoo
Install path    /usr
Compiler flags:
C                -ansi -pedantic -Wall -D_GNU_SOURCE -march=native -O2 -pipe 
C++              -ansi -pedantic -Wall -D_GNU_SOURCE -march=native -O2 -pipe 
Linker flags:
Executable       -Wl,-O1 -Wl,--as-needed
Module           -Wl,-O1 -Wl,--as-needed
Shared           -Wl,-O1 -Wl,--as-needed

-- Configuring incomplete, errors occurred!
make: *** [cmake_check_build_system] Error 1
 * ERROR: sci-physics/clhep-2.1.2.4 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sci-physics/clhep-2.1.2.4'`,
 * the complete build log and the output of `emerge -pqv '=sci-physics/clhep-2.1.2.4'`.
 * The complete build log is located at '/var/tmp/portage/sci-physics/clhep-2.1.2.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-physics/clhep-2.1.2.4/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-physics/clhep-2.1.2.4/work/clhep-2.1.2.4_build'
 * S: '/var/tmp/portage/sci-physics/clhep-2.1.2.4/work/2.1.2.4/CLHEP'




Reproducible: Always
Comment 1 Sébastien Fabbro (RETIRED) gentoo-dev 2012-08-10 17:53:36 UTC
not reproducible here on 3 systems. could you post your emerge --info?
Comment 2 Jean-Francois Ostiguy 2012-08-10 23:10:29 UTC
Created attachment 320936 [details]
emerge.info
Comment 3 Jean-Francois Ostiguy 2012-08-14 15:20:59 UTC
For me the problem is reproducible on two different systems. One is a 
fairly recent amd64 and the other is an old x86.
Strangely enough, after the failure, if I manually run

ebuild  ... compile
  
compilation proceeds normally; I can then merge the new package. 

I am not completely clear what the specific issue might be, but I suspect 
it may be related to parallel make. I will try with -j1 and report later today.
Comment 4 Jean-Francois Ostiguy 2012-08-14 15:25:30 UTC
Nope. Setting 

MAKEOPTS="-j1"

does not help.
Comment 5 Sébastien Fabbro (RETIRED) gentoo-dev 2012-08-14 16:37:25 UTC
so it's something to do with lsb_release program and how it's used in cmake/Modules/ClhepPackaging.cmake. i could reproduce it when sys-apps/lsb_release is installed.

i'll try to give a deeper look if i can patch that cmake module if no one else does.
Comment 6 Sébastien Fabbro (RETIRED) gentoo-dev 2012-08-14 20:18:03 UTC
+  14 Aug 2012; Sébastien Fabbro <bicatali@gentoo.org>
+  +files/clhep-2.1.2.4-lsb-whitespace.patch, clhep-2.1.2.4.ebuild:
+  Fix when lsb_release is installed by stripping whitespaces, bug #430656
+