-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
I tried to create docker image in which fatt works.
Here is my Dockerfile.
LABEL maintainer = "harazono"
RUN sed -i.bak -e "s%http://[^ ]\+%http://ftp.jaist.ac.jp/pub/Linux/ubuntu/%g" /etc/apt/sources.list
RUN apt-get update && apt-get install
RUN apt-get install -y sudo
RUN sudo apt-get install -y git
RUN mkdir -p /share
RUN mkdir -p /src
WORKDIR /src
RUN apt-get install -y build-essential
RUN apt-get install -y python3
RUN apt-get install -y python
RUN git clone https://github.com/mkasa/klab.git
WORKDIR /src/klab
RUN python --version
RUN ./waf configure
RUN ./waf build
RUN ./waf install
Here is the error message I met.
Step 15/18 : RUN python --version
---> Running in 2757c0119acf
Python 2.7.17
Removing intermediate container 2757c0119acf
---> e132d47435c7
Step 16/18 : RUN ./waf configure
---> Running in 1c190404c4c8
Setting top to : /src/klab
Setting out to : /src/klab/build
Checking for ‘gcc’ (C compiler) : /usr/bin/gcc
Checking for ‘g++’ (C++ compiler) : /usr/bin/g++
Checking for program ‘python’ : /usr/bin/python
Checking for python version >= 2.4.2 : 2.7.17
‘configure’ finished successfully (0.163s)
Removing intermediate container 1c190404c4c8
---> a6ce12801b3e
Step 17/18 : RUN ./waf build
---> Running in 3aba2ad43f2b
Waf: Entering directory `/src/klab/build’
[1/6] Compiling src/sieve.cc
[2/6] Compiling src/sqlite3.c
[3/6] Compiling src/sqdb.cc
[4/6] Compiling src/fatt.cc
[5/6] Linking build/sieve
../src/fatt.cc: In member function ‘bool FileLineBufferWithAutoExpansion::open(const char*)’:
../src/fatt.cc:223:16: error: cannot convert ‘std::ifstream {aka std::basic_ifstream<char>}’ to ‘bool’ in return
return ist;
^~~
Build failed
-> task in ‘fatt’ failed with exit status 1 (run with -v to display more information)
Waf: Leaving directory `/src/klab/build’
The command ‘/bin/sh -c ./waf build’ returned a non-zero code: 1
:apple:fatt$
How can I solve this error?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels