apptainer / singularity

Singularity has been renamed to Apptainer as part of us moving the project to the Linux Foundation. This repo has been persisted as a snapshot right before the changes.
https://github.com/apptainer/apptainer
Other
2.53k stars 424 forks source link

[development] CMake "make -j4" Error #594

Closed ArangoGutierrez closed 7 years ago

ArangoGutierrez commented 7 years ago

ERROR: Aborting with RETVAL=255 in a "make -j4" step of a bootstrap process

$singularity --version
    2.2.99

The .def file goes like this

# Google Drive client
#

  Bootstrap: docker
  From: ubuntu

%post

  apt-get update
  apt-get install -y build-essential
  apt-get install -y git cmake build-essential libgcrypt11-dev libyajl-dev \
  libcurl4-openssl-dev libexpat1-dev binutils-dev
  apt-get update
  apt-get install -y zlib1g-dev libncurses5-dev libssl-dev pkg-config \
  libboost-all-dev libcppunit-dev 
  mkdir Driveclient
  cd Driveclient
  git clone https://github.com/vitalif/grive2
  cd grive2
  mkdir build
  cd build
  cmake ..
  make -j4
  make install

Create

sudo singularity create -s 2048 grive.img

Bootstrap

sudo singularity bootstrap grive.img grive.def

After tons of output

+ make -j4
CMake Error: Parse error in cache file /Driveclient/grive2/build/CMakeCache.txt on line 263. Offending entry: perl: warning: Please check that your locale settings:
CMake Error: Parse error in cache file /Driveclient/grive2/build/CMakeCache.txt on line 267. Offending entry: are supported and installed on your system.
CMake Error: Parse error in cache file /Driveclient/grive2/build/CMakeCache.txt on line 268. Offending entry: perl: warning: Falling back to the standard locale ("C").
CMake Error: Parse error in cache file /Driveclient/grive2/build/CMakeCache.txt on line 269. Offending entry: -lgcrypt;general;/usr/lib/x86_64-linux-gnu/libboost_program_options.so;general;/usr/lib/x86_64-linux-gnu/libboost_filesystem.so;general;/usr/lib/x86_64-linux-gnu/libboost_unit_test_framework.so;general;/usr/lib/x86_64-linux-gnu/libboost_regex.so;general;/usr/lib/x86_64-linux-gnu/libboost_system.so;general;/usr/lib/x86_64-linux-gnu/libexpat.so;general;/usr/lib/x86_64-linux-gnu/libdl.so;general;/usr/lib/x86_64-linux-gnu/libbfd.so;general;/usr/lib/x86_64-linux-gnu/libz.so;
-- Found libgcrypt: perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
-lgcrypt
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   program_options
--   filesystem
--   unit_test_framework
--   regex
--   system
-- Found libbfd: /usr/lib/x86_64-linux-gnu/libbfd.so
-- Found CppUnit: /usr/lib/x86_64-linux-gnu/libcppunit.so
-- Building unitary tests along with the library and the binary
-- Boost version: 1.58.0
-- Found the following Boost libraries:
--   program_options
-- Configuring incomplete, errors occurred!
See also "/Driveclient/grive2/build/CMakeFiles/CMakeOutput.log".
Makefile:236: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
ERROR: Aborting with RETVAL=255

I have a Dockerfile with the same step of the .def and it worked.

Thoughts?

gmkurtzer commented 7 years ago

Hrmm... That's a good one, and it does work with 2.2!!! Very weird!!! Looking into it now...

ArangoGutierrez commented 7 years ago

Let me know when the change is done to give it a test!

gmkurtzer commented 7 years ago

Hi @ArangoGutierrez, will you give it another shot now?

Thanks!

ArangoGutierrez commented 7 years ago

Done

Install the project...
-- Install configuration: ""
-- Installing: /usr/local/bin/grive
-- Installing: /usr/local/share/man/man1/grive.1
Finalizing Singularity container

Fixed with development branch April 12 2017

Closing #594