← Back to team overview

kicad-developers team mailing list archive

Re: kicad make fails on Debian 7

 

On 10/23/2013 04:18 AM, Fabrizio Tappero wrote:
> Hello,
> with the last kicad build, make seems to fail (I have all dependencies
> specified in kicad-install.sh ) with the following error:
> 
> 
> cmake -DCMAKE_BUILD_TYPE=Release -DUSE_FP_LIB_TABLE=ON
> -DBUILD_GITHUB_PLUGIN=ON ../
> 
> -- The C compiler identification is GNU 4.7.2
> -- The CXX compiler identification is GNU 4.7.2
> -- Check for working C compiler: /usr/bin/gcc
> -- Check for working C compiler: /usr/bin/gcc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Looking for XOpenDisplay in
> /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
> -- Looking for XOpenDisplay in
> /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
> - found
> -- Looking for gethostbyname
> -- Looking for gethostbyname - found
> -- Looking for connect
> -- Looking for connect - found
> -- Looking for remove
> -- Looking for remove - found
> -- Looking for shmat
> -- Looking for shmat - found
> -- Looking for IceConnectionNumber in ICE
> -- Looking for IceConnectionNumber in ICE - found
> -- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
> -- Check for installed OpenGL -- found
> -- Check for installed wxWidgets -- found
> -- Looking for malloc.h
> -- Looking for malloc.h - found
> -- Looking for iso646.h
> -- Looking for iso646.h - found
> -- Looking for stdint.h
> -- Looking for stdint.h - found
> -- Looking for strcasecmp
> -- Looking for strcasecmp - found
> -- Looking for strncasecmp
> -- Looking for strncasecmp - found
> -- Looking for malloc
> -- Looking for malloc - found
> -- Looking for math.h
> -- Looking for math.h - found
> -- Looking for C++ include cmath
> -- Looking for C++ include cmath - found
> -- Looking for asinh
> -- Looking for asinh - found
> -- Looking for acosh
> -- Looking for acosh - found
> -- Looking for atanh
> -- Looking for atanh - found
> -- Performing Test HAVE_CMATH_ISINF
> -- Performing Test HAVE_CMATH_ISINF - Success
> -- Looking for clock_gettime in rt
> -- Looking for clock_gettime in rt - found
> -- Looking for gettimeofday
> -- Looking for gettimeofday - found
> -- Looking for getc_unlocked
> -- Looking for getc_unlocked - found
> -- Bazaar version control system version  found.
> -- Kicad Bazaar build version: (2013-10-22 BZR 4408)
> -- Found Doxygen: /usr/bin/doxygen (found version "1.8.1.2")
> -- Found OpenSSL:
> /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so
> (found version "1.0.1e")
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /home/fabrizio/kicad_src/kicad.bzr/build
> 
> 
> 
> 
> $ make
> Scanning dependencies of target boost
> [  0%] Performing configure step for 'boost'
> Building Boost.Build engine with toolset gcc...
> tools/build/v2/engine/bin.linuxx86_64/b2
> Unicode/ICU support for Boost.Regex?... /usr
> Backing up existing Boost.Build configuration in project-config.jam.1
> Generating Boost.Build configuration in project-config.jam...
> 
> Bootstrapping is done. To build, run:
> 
>     ./b2
> 
> To adjust configuration, edit 'project-config.jam'.
> Further information:
> 
>    - Command line help:
>      ./b2 --help
> 
>    - Getting started guide:
>      http://www.boost.org/more/getting_started/unix-variants.html
> 
>    - Boost.Build documentation:
>      http://www.boost.org/boost-build2/doc/html/index.html
> 
> [  0%] Performing build step for 'boost'
> Performing configuration checks
> 
>     - zlib                     : yes (cached)
>     - iconv (libc)             : yes (cached)
>     - icu                      : yes (cached)
>     - has_icu builds           : yes (cached)
>     - zlib                     : yes (cached)
> 
> Component configuration:
> 
>     - atomic                   : not building
>     - chrono                   : not building
>     - context                  : not building
>     - coroutine                : not building
>     - date_time                : building
>     - exception                : not building
>     - filesystem               : building
>     - graph                    : not building
>     - graph_parallel           : not building
>     - iostreams                : building
>     - locale                   : building
>     - log                      : not building
>     - math                     : not building
>     - mpi                      : not building
>     - program_options          : building
>     - python                   : not building
>     - random                   : not building
>     - regex                    : building
>     - serialization            : not building
>     - signals                  : not building
>     - system                   : building
>     - test                     : not building
>     - thread                   : building
>     - timer                    : not building
>     - wave                     : not building
> 
> ...patience...
> ...patience...
> ...found 22946 targets...
> ...updating 8 targets...
> gcc.compile.c++
> bin.v2/libs/iostreams/build/gcc-4.7/release/threading-multi/bzip2.o
> libs/iostreams/src/bzip2.cpp:20:56: fatal error: bzlib.h: No such file
> or directory
> compilation terminated.
> 
>     "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline
> -Wall -pthread -fPIC -fPIC -DBOOST_ALL_NO_LIB=1
> -DBOOST_IOSTREAMS_DYN_LINK=1 -DBOOST_IOSTREAMS_USE_DEPRECATED -DNDEBUG
>  -I"." -c -o "bin.v2/libs/iostreams/build/gcc-4.7/release/threading-multi/bzip2.o"
> "libs/iostreams/src/bzip2.cpp"
> 
> ...failed gcc.compile.c++
> bin.v2/libs/iostreams/build/gcc-4.7/release/threading-multi/bzip2.o...
> ...skipped <pbin.v2/libs/iostreams/build/gcc-4.7/release/threading-multi>libboost_iostreams.so.1.54.0
> for lack of <pbin.v2/libs/iostreams/build/gcc-4.7/release/threading-multi>bzip2.o...
> ...skipped <p/home/fabrizio/kicad_src/kicad.bzr/boost_root/lib>libboost_iostreams.so.1.54.0
> for lack of <pbin.v2/libs/iostreams/build/gcc-4.7/release/threading-multi>libboost_iostreams.so.1.54.0...
> ...skipped <p/home/fabrizio/kicad_src/kicad.bzr/boost_root/lib>libboost_iostreams.so
> for lack of <p/home/fabrizio/kicad_src/kicad.bzr/boost_root/lib>libboost_iostreams.so.1.54.0...
> gcc.compile.c++
> bin.v2/libs/iostreams/build/gcc-4.7/release/link-static/threading-multi/bzip2.o
> libs/iostreams/src/bzip2.cpp:20:56: fatal error: bzlib.h: No such file


missing bzlib.h, how to troubleshoot:
=====================================

a) go to http://packages.debian.org
b) second form area under "Search the contents of packages", enter "bzlib.h", click on
radio button, packages that contain files named like this.
c) click search
d) find "Packages" reported as "libbz2-dev"
e) add that to prerequisites by editing script.
f) generate patch:
   $ bzr diff > script.diff
g) attach that to email.



> or directory
> compilation terminated.
> 
>     "g++"  -ftemplate-depth-128 -O3 -finline-functions -Wno-inline
> -Wall -pthread -fPIC -DBOOST_ALL_NO_LIB=1
> -DBOOST_IOSTREAMS_USE_DEPRECATED -DNDEBUG  -I"." -c -o
> "bin.v2/libs/iostreams/build/gcc-4.7/release/link-static/threading-multi/bzip2.o"
> "libs/iostreams/src/bzip2.cpp"
> 
> ...failed gcc.compile.c++
> bin.v2/libs/iostreams/build/gcc-4.7/release/link-static/threading-multi/bzip2.o...
> ...skipped <pbin.v2/libs/iostreams/build/gcc-4.7/release/link-static/threading-multi>libboost_iostreams.a(clean)
> for lack of <pbin.v2/libs/iostreams/build/gcc-4.7/release/link-static/threading-multi>bzip2.o...
> ...skipped <pbin.v2/libs/iostreams/build/gcc-4.7/release/link-static/threading-multi>libboost_iostreams.a
> for lack of <pbin.v2/libs/iostreams/build/gcc-4.7/release/link-static/threading-multi>bzip2.o...
> ...skipped <p/home/fabrizio/kicad_src/kicad.bzr/boost_root/lib>libboost_iostreams.a
> for lack of <pbin.v2/libs/iostreams/build/gcc-4.7/release/link-static/threading-multi>libboost_iostreams.a...
> ...failed updating 2 targets...
> ...skipped 6 targets...
> make[2]: *** [../.downloads-by-cmake/boost_1_54_0/src/boost-stamp/boost-build]
> Error 1
> make[1]: *** [CMakeFiles/boost.dir/all] Error 2
> make: *** [all] Error 2
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 

Attachment: kicad-install.sh
Description: Bourne shell script


Follow ups

References