Skip to content

Build Failure #138

@JaredCrean2

Description

@JaredCrean2

When building commit (currently the latest master)

commit 642576388d07a56cf77fdb98c88d927eaf18789d
Merge: 063ad65 66eff04
Author: Nightly Bot <donotemail@scorec.rpi.edu>
Date:   Fri Feb 2 00:17:40 2018 -0500

    Merging develop into master

I got the following error:

/home/jared/.julia/v0.4/PumiInterface/deps/core/phasta/phBubble.cc: In function ‘void ph::readBubbles(ph::Bubbles&, std::__cxx11::string)’:
/home/jared/.julia/v0.4/PumiInterface/deps/core/phasta/phBubble.cc:25:45: error: format not a string literal and no format arguments [-Werror=format-security]
   sprintf(bubblefname,bubbleFileName.c_str());
                                             ^
cc1plus: all warnings being treated as errors
phasta/CMakeFiles/ph.dir/build.make:374: recipe for target 'phasta/CMakeFiles/ph.dir/phBubble.cc.o' failed
make[2]: *** [phasta/CMakeFiles/ph.dir/phBubble.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:908: recipe for target 'phasta/CMakeFiles/ph.dir/all' failed
make[1]: *** [phasta/CMakeFiles/ph.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

This is on Ubuntu 16.04 with gcc 5.4.0 and the MPICH MPI implementation. The config file is:

#!/bin/bash                                                                     

mkdir -v ./install

cmake .. \
  -DCMAKE_C_COMPILER="mpicc" \
  -DCMAKE_CXX_COMPILER="mpicxx" \
  -DCMAKE_C_FLAGS="-O2 -g -Wall" \
  -DCMAKE_CXX_FLAGS="-O2 -g -Wall" \
  -DENABLE_THREADS=OFF \
  -DBUILD_SHARED_LIBS=True \
  -DCMAKE_INSTALL_PREFIX=`pwd`"/install" \
  -DIS_TESTING=True \
  -DMESHES=`pwd`"/../../pumi-meshes"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions