#566 Compiling CLISP 2.49 on ARM EABI

build problems
closed-fixed
Sam Steingold
modules (18)
5
2010-09-28
2010-09-26
zumbi
No

Hello,

I tried to compile twice CLISP 2.49 on ARM EABI (Debian armel), it fails with following error:

test -d boot || (mkdir boot && cd boot && for f in lisp.a libnoreadline.a libgnu_cl.a modules.h modules.o lisp.run lispinit.mem; do ln -s ../$f .; done && (grep -v '^FILES=' ../makevars; fl=''; for f in lisp.a libnoreadline.a libgnu_cl.a ; do fl=$fl' '`basename $f`; done; echo 'FILES='"'"$fl"'") > makevars) || (rm -rf boot ; exit 1)
./txt2c -I'/home/zumbi/clisp-2.49/' < /home/zumbi/clisp-2.49/src/_clisp.c > txt.c
arm-linux-gnueabi-gcc -I/home/zumbi/clisp-2.49/debian/build/gllib -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O2 -falign-functions=4 -DENABLE_UNICODE -DDYNAMIC_MODULES -I. -DCOMPILE_STANDALONE -O0 txt.c -o txt
./txt > clisp.c
rm -f txt.c
rm -f txt
arm-linux-gnueabi-gcc -I/home/zumbi/clisp-2.49/debian/build/gllib -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O2 -falign-functions=4 -DENABLE_UNICODE -DDYNAMIC_MODULES -I. -DENABLE_RELOCATABLE clisp.c /usr/lib/libreadline.so -lncurses -ldl /usr/lib/libavcall.so /usr/lib/libcallback.so -L/usr/lib -lsigsegv libgnu_cl.a -o clisp
mkdir -p i18n
m=`cd /home/zumbi/clisp-2.49/modules/i18n; pwd`; \ if test -f $m/configure -a $m/configure -nt i18n/config.status ; then ( cd i18n ; rm -rf gllib;\ cache=`echo i18n/ | sed -e 's,[^/][^/]*//*,../,g'`config.cache; \ if test -f ${cache} ; then \ . ${cache}; \ if test "${ac_cv_env_CC_set}" = set; then CC="${ac_cv_env_CC_value}"; export CC; fi; \ if test "${ac_cv_env_CFLAGS_set}" = set; then CFLAGS="${ac_cv_env_CFLAGS_value}"; export CFLAGS; fi; \ if test "${ac_cv_env_LDFLAGS_set}" = set; then LDFLAGS="${ac_cv_env_LDFLAGS_value}"; export LDFLAGS; fi; \ if test "${ac_cv_env_CLFLAGS_set}" = set; then CLFLAGS="${ac_cv_env_CLFLAGS_value}"; export CLFLAGS; fi; \ if test "${ac_cv_env_LIBS_set}" = set; then LIBS="${ac_cv_env_LIBS_value}"; export LIBS; fi; \ if test "${ac_cv_env_CPPFLAGS_set}" = set; then CPPFLAGS="${ac_cv_env_CPPFLAGS_value}"; export CPPFLAGS; fi; \ if test "${ac_cv_env_CPP_set}" = set; then CPP="${ac_cv_env_CPP_value}"; export CPP; fi; \ if test "${ac_cv_env_CXX_set}" = set; then CXX="${ac_cv_env_CXX_value}"; export CXX; fi; \ if test "${ac_cv_env_CXXFLAGS_set}" = set; then CXXFLAGS="${ac_cv_env_CXXFLAGS_value}"; export CXXFLAGS; fi; \ if test "${ac_cv_env_X_LIBS_set}" = set; then X_LIBS="${ac_cv_env_X_LIBS_value}"; export X_LIBS; fi; \ /bin/bash $m/configure --with-clisp="/home/zumbi/clisp-2.49/debian/build/clisp -K boot -E UTF-8 -Epathname 1:1 -Emisc 1:1 -norc" --cache-file=${cache} --srcdir=$m --disable-option-checking --with-readline --with-gettext;\ else \ /bin/bash $m/configure --srcdir=$m --disable-option-checking --with-readline --with-gettext; \ fi ) ;\ fi; \ test -f $m/Makefile -a $m/Makefile -nt i18n/Makefile && sed "s,srcdir = .,srcdir = $m," "$m/Makefile" > i18n/Makefile ; \ CLISP="/home/zumbi/clisp-2.49/debian/build/clisp -K boot -E UTF-8 -Epathname 1:1 -Emisc 1:1 -norc" ; \ cd i18n ; /usr/bin/make clisp-module CC="arm-linux-gnueabi-gcc" CPPFLAGS="-I/home/zumbi/clisp-2.49/debian/build/gllib -I/home/zumbi/clisp-2.49/debian/build" CFLAGS="-g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O2 -falign-functions=4 -DENABLE_UNICODE -DDYNAMIC_MODULES -I. -fPIC" CLFLAGS=" -Wl,--export-dynamic" LIBS="/usr/lib/libreadline.so -lncurses -ldl /usr/lib/libavcall.so /usr/lib/libcallback.so -L/usr/lib -lsigsegv libgnu_cl.a" RANLIB="ranlib" CLISP="$CLISP -q" SHREXT=.so
configure: loading cache ../config.cache
configure: error: `build_alias' was set to `arm-linux-gnueabi' in the previous run
configure: error: in `/home/zumbi/clisp-2.49/debian/build/i18n':
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ../config.cache' and start over
make[2]: Entering directory `/home/zumbi/clisp-2.49/debian/build/i18n'
make[2]: *** No rule to make target `clisp-module'. Stop.
make[2]: Leaving directory `/home/zumbi/clisp-2.49/debian/build/i18n'
make[1]: *** [i18n] Error 2
make[1]: Leaving directory `/home/zumbi/clisp-2.49/debian/build'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Attached config.log and ../config.guess

I am going to try to erase config.cache and rebuild

Discussion

  • zumbi
    zumbi
    2010-09-26

    Config cache

     
    Attachments
  • zumbi
    zumbi
    2010-09-26

    I could not attach config.log, so I paste here:

    $ cat config.log
    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.

    It was created by i18n configure 1.0, which was
    generated by GNU Autoconf 2.65. Invocation command line was

    $ /home/zumbi/clisp-2.49/modules/i18n/configure --with-clisp=/home/zumbi/clisp-2.49/debian/build/clisp -K boot -E UTF-8 -Epathname 1:1 -Emisc 1:1 -norc --cache-file=../config.cache --srcdir=/home/zumbi/clisp-2.49/modules/i18n --disable-option-checking --with-readline --with-gettext

    ## --------- ##
    ## Platform. ##
    ## --------- ##

    hostname = abel
    uname -m = armv5tel
    uname -r = 2.6.32
    uname -s = Linux
    uname -v = #2 Wed Sep 22 17:47:11 UTC 2010

    /usr/bin/uname -p = unknown
    /bin/uname -X = unknown

    /bin/arch = unknown
    /usr/bin/arch -k = unknown
    /usr/convex/getsysinfo = unknown
    /usr/bin/hostinfo = unknown
    /bin/machine = unknown
    /usr/bin/oslevel = unknown
    /bin/universe = unknown

    PATH: /usr/local/bin
    PATH: /usr/bin
    PATH: /bin
    PATH: /usr/games

    ## ----------- ##
    ## Core tests. ##
    ## ----------- ##

    configure:2077: loading cache ../config.cache
    configure:2102: error: `build_alias' was set to `arm-linux-gnueabi' in the previous run
    configure:2143: error: in `/home/zumbi/clisp-2.49/debian/build/i18n':
    configure:2145: error: changes in the environment can compromise the build
    configure:2147: error: run `make distclean' and/or `rm ../config.cache' and start over

    ## ---------------- ##
    ## Cache variables. ##
    ## ---------------- ##

    ac_cv_build=arm-unknown-linux-gnueabi
    ac_cv_c_bigendian=no
    ac_cv_c_char_unsigned=yes
    ac_cv_c_compiler_gnu=yes
    ac_cv_c_inline=inline
    [...]

    Let me know if you need more info.

     
  • zumbi
    zumbi
    2010-09-26

    Removing the ../config.cache file produces this new error:

    make[2]: Leaving directory `/home/zumbi/clisp-2.49/debian/build/gllib'
    test -r libgnu_cl.a || ln -s gllib/libgnu.a libgnu_cl.a
    test -d boot || (mkdir boot && cd boot && for f in lisp.a libnoreadline.a libgnu_cl.a modules.h modules.o lisp.run lispinit.mem; do ln -s ../$f .; done && (grep -v '^FILES=' ../makevars; fl=''; for f in lisp.a libnoreadline.a libgnu_cl.a ; do fl=$fl' '`basename $f`; done; echo 'FILES='"'"$fl"'") > makevars) || (rm -rf boot ; exit 1)
    mkdir -p i18n
    m=`cd /home/zumbi/clisp-2.49/modules/i18n; pwd`; \ if test -f $m/configure -a $m/configure -nt i18n/config.status ; then ( cd i18n ; rm -rf gllib;\ cache=`echo i18n/ | sed -e 's,[^/][^/]*//*,../,g'`config.cache; \ if test -f ${cache} ; then \ . ${cache}; \ if test "${ac_cv_env_CC_set}" = set; then CC="${ac_cv_env_CC_value}"; export CC; fi; \ if test "${ac_cv_env_CFLAGS_set}" = set; then CFLAGS="${ac_cv_env_CFLAGS_value}"; export CFLAGS; fi; \ if test "${ac_cv_env_LDFLAGS_set}" = set; then LDFLAGS="${ac_cv_env_LDFLAGS_value}"; export LDFLAGS; fi; \ if test "${ac_cv_env_CLFLAGS_set}" = set; then CLFLAGS="${ac_cv_env_CLFLAGS_value}"; export CLFLAGS; fi; \ if test "${ac_cv_env_LIBS_set}" = set; then LIBS="${ac_cv_env_LIBS_value}"; export LIBS; fi; \ if test "${ac_cv_env_CPPFLAGS_set}" = set; then CPPFLAGS="${ac_cv_env_CPPFLAGS_value}"; export CPPFLAGS; fi; \ if test "${ac_cv_env_CPP_set}" = set; then CPP="${ac_cv_env_CPP_value}"; export CPP; fi; \ if test "${ac_cv_env_CXX_set}" = set; then CXX="${ac_cv_env_CXX_value}"; export CXX; fi; \ if test "${ac_cv_env_CXXFLAGS_set}" = set; then CXXFLAGS="${ac_cv_env_CXXFLAGS_value}"; export CXXFLAGS; fi; \ if test "${ac_cv_env_X_LIBS_set}" = set; then X_LIBS="${ac_cv_env_X_LIBS_value}"; export X_LIBS; fi; \ /bin/bash $m/configure --with-clisp="/home/zumbi/clisp-2.49/debian/build/clisp -K boot -E UTF-8 -Epathname 1:1 -Emisc 1:1 -norc" --cache-file=${cache} --srcdir=$m --disable-option-checking --with-readline --with-gettext;\ else \ /bin/bash $m/configure --srcdir=$m --disable-option-checking --with-readline --with-gettext; \ fi ) ;\ fi; \ test -f $m/Makefile -a $m/Makefile -nt i18n/Makefile && sed "s,srcdir = .,srcdir = $m," "$m/Makefile" > i18n/Makefile ; \ CLISP="/home/zumbi/clisp-2.49/debian/build/clisp -K boot -E UTF-8 -Epathname 1:1 -Emisc 1:1 -norc" ; \ cd i18n ; /usr/bin/make clisp-module CC="arm-linux-gnueabi-gcc" CPPFLAGS="-I/home/zumbi/clisp-2.49/debian/build/gllib -I/home/zumbi/clisp-2.49/debian/build" CFLAGS="-g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O2 -falign-functions=4 -DENABLE_UNICODE -DDYNAMIC_MODULES -I. -fPIC" CLFLAGS=" -Wl,--export-dynamic" LIBS="/usr/lib/libreadline.so -lncurses -ldl /usr/lib/libavcall.so /usr/lib/libcallback.so -L/usr/lib -lsigsegv libgnu_cl.a" RANLIB="ranlib" CLISP="$CLISP -q" SHREXT=.so
    configure: ** I18N (Common)
    checking how to remove colons from paths... echo $x
    checking for clisp... no
    checking for CLISP... no
    configure: error: CLISP not found
    make[2]: Entering directory `/home/zumbi/clisp-2.49/debian/build/i18n'
    make[2]: *** No rule to make target `clisp-module'. Stop.
    make[2]: Leaving directory `/home/zumbi/clisp-2.49/debian/build/i18n'
    make[1]: *** [i18n] Error 2
    make[1]: Leaving directory `/home/zumbi/clisp-2.49/debian/build'
    make: *** [build-stamp] Error 2
    dpkg-buildpackage: error: debian/rules build gave error exit status 2

     
  • zumbi
    zumbi
    2010-09-26

    config.log for later:

    It was created by i18n configure 1.0, which was
    generated by GNU Autoconf 2.65. Invocation command line was

    $ /home/zumbi/clisp-2.49/modules/i18n/configure --srcdir=/home/zumbi/clisp-2.49/modules/i18n --disable-option-checking --with-readline --with-gettext

    ## --------- ##
    ## Platform. ##
    ## --------- ##

    hostname = abel
    uname -m = armv5tel
    uname -r = 2.6.32
    uname -s = Linux
    uname -v = #2 Wed Sep 22 17:47:11 UTC 2010

    /usr/bin/uname -p = unknown
    /bin/uname -X = unknown

    /bin/arch = unknown
    /usr/bin/arch -k = unknown
    /usr/convex/getsysinfo = unknown
    /usr/bin/hostinfo = unknown
    /bin/machine = unknown
    /usr/bin/oslevel = unknown
    /bin/universe = unknown

    PATH: /usr/local/bin
    PATH: /usr/bin
    PATH: /bin
    PATH: /usr/games

    ## ----------- ##
    ## Core tests. ##
    ## ----------- ##

    configure:2209: ** I18N (Common)
    configure:2211: checking how to remove colons from paths
    configure:2222: result: echo $x
    configure:2240: checking for clisp
    configure:2273: result: no
    configure:2333: checking for CLISP
    configure:2340: result: no
    configure:2343: error: CLISP not found

    ## ---------------- ##
    ## Cache variables. ##
    ## ---------------- ##

    ac_cv_env_CC_set=set
    ac_cv_env_CC_value=arm-linux-gnueabi-gcc
    ac_cv_env_CFLAGS_set=set
    ac_cv_env_CFLAGS_value='-g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O2 -fali
    gn-functions=4 -DENABLE_UNICODE -DDYNAMIC_MODULES -I.'
    ac_cv_env_CPPFLAGS_set=set
    ac_cv_env_CPPFLAGS_value=-I/home/zumbi/clisp-2.49/debian/build/gllib
    ac_cv_env_CPP_set=
    ac_cv_env_CPP_value=
    ac_cv_env_LDFLAGS_set=set
    ac_cv_env_LDFLAGS_value=
    ac_cv_env_LIBS_set=
    ac_cv_env_LIBS_value=
    ac_cv_env_build_alias_set=
    ac_cv_env_build_alias_value=
    ac_cv_env_host_alias_set=
    ac_cv_env_host_alias_value=
    ac_cv_env_target_alias_set=
    ac_cv_env_target_alias_value=
    cl_cv_clisp=
    cl_cv_decolonize='echo $x'
    cl_cv_have_clisp=no

    ## ----------------- ##
    ## Output variables. ##
    ## ----------------- ##

    CC='arm-linux-gnueabi-gcc'
    CFLAGS='-g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O2 -falign-functions=4 -
    DENABLE_UNICODE -DDYNAMIC_MODULES -I.'
    CLISP=''
    CLISP_CFLAGS=''
    CLISP_CPPFLAGS=''
    CLISP_DECOLONIZE='echo $x'
    CLISP_FILES=''
    CLISP_LIBDIR=''
    CLISP_LIBS=''
    CLISP_LINKKIT=''
    CPP=''
    CPPFLAGS='-I/home/zumbi/clisp-2.49/debian/build/gllib'
    [...]

     
  • Sam Steingold
    Sam Steingold
    2010-09-27

    • labels: 804165 --> modules
     
  • Sam Steingold
    Sam Steingold
    2010-09-27

    it appears that clisp core is built just fine, but you are having problems with modules.
    1. what configure command did you originally use?
    2. could you please do this at a fresh clean clisp source tree:
    ./configure --cbc build --with-module=asdf --with-module=rawsock

     
  • zumbi
    zumbi
    2010-09-27

    Here is the configuration used:

    ./configure debian/build --prefix=/usr --fsstnd=debian --without-dynamic-ffi \ --with-module=clx/mit-clx --with-module=berkeley-db --build=arm-linux-gnueabi
    executing /home/zumbi/clisp-2.49/debian/build/configure debian/build --prefix=/usr --fsstnd=debian --without-dynamic-ffi --with-module=clx/mit-clx --with-module=berkeley-db --build=arm-linux-gnueabi
    configure: loading cache config.cache
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... no
    checking for mawk... mawk
    checking whether make sets $(MAKE)... yes
    configure: ** check for host type
    checking build system type... arm-unknown-linux-gnueabi
    checking host system type... arm-unknown-linux-gnueabi
    checking for style of include used by make... GNU
    checking for gcc... arm-linux-gnueabi-gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out

    PS. I am currently build testing a version for 2.49 provided by current Debian developer, I let you know how it goes. If it fails I'll try with your configure suggestion.

     
  • zumbi
    zumbi
    2010-09-27

    Hello,

    I finally got 2.49 version provide a package from (in case you are interested):
    pvaneynd branch at Debian git repository.

    Thanks for the support

     
  • Sam Steingold
    Sam Steingold
    2010-09-28

    thank you for your bug report.
    the bug has been fixed in the CVS tree.
    you can either wait for the next release (recommended)
    or check out the current CVS tree (see http://clisp.cons.org\)
    and build CLISP from the sources (be advised that between
    releases the CVS tree is very unstable and may not even build
    on your platform).

     
  • Sam Steingold
    Sam Steingold
    2010-09-28

    • assigned_to: haible --> sds
    • status: open --> closed-fixed