Hello,
I'm using Slackware64 with multilib (AlienBob) and i can't compile 32bit programs; 64bit programs do compile (tried helloworld). I read the tutorial and folowed it step by step setting my paths right (32dev.sh) and changing libsuffix="64" to libsufix="" from the slackbuild script.
In the attached config.log in the core test section there is this line that i find interesting
Code:
Reading specs from /usr/lib64/gcc/x86_64-slackware-linux/4.5.2/specs
Why is it reading specs from lib64?
Thank you for your effort in advance and please bare whith me, i'm a newby
This is my whole config log:
Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.65. Invocation command line was
$ ./configure --prefix=/usr --libdir=/usr/lib --mandir=/usr/man --with-x --with-freetype-src=/tmp/SBo/freetype-2.4.4 --with-freetype-bytecode=yes --enable-libff --enable-pyextension --enable-type3 --enable-tilepath --enable-static=no --enable-shared=yes --build=x86_64-slackware-linux
## --------- ##
## Platform. ##
## --------- ##
hostname = CHillie
uname -m = x86_64
uname -r = 2.6.37.6
uname -s = Linux
uname -v = #3 SMP Sat Apr 9 22:49:32 CDT 2011
/usr/bin/uname -p = Pentium(R) Dual-Core CPU T4500 @ 2.30GHz
/bin/uname -X = unknown
/bin/arch = x86_64
/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/bin/32
PATH: /usr/lib/qt/bin
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/games
PATH: /usr/lib64/java/bin
PATH: /usr/lib64/kde4/libexec
PATH: /usr/lib64/qt/bin
PATH: /usr/share/texmf/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2623: checking for gcc
configure:2650: result: gcc
configure:2879: checking for C compiler version
configure:2888: gcc --version >&5
gcc (GCC) 4.5.2
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2899: $? = 0
configure:2888: gcc -v >&5
Reading specs from /usr/lib64/gcc/x86_64-slackware-linux/4.5.2/specs
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-slackware-linux/4.5.2/lto-wrapper
Target: x86_64-slackware-linux
Configured with: ../gcc-4.5.2/configure --prefix=/usr --libdir=/usr/lib64 --mandir=/usr/man --infodir=/usr/info --enable-shared --enable-bootstrap --enable-languages=c,c++,ada,fortran,java,objc,lto --enable-threads=posix --enable-checking=release --with-system-zlib --with-python-dir=/lib64/python2.6/site-packages --disable-libunwind-exceptions --enable-__cxa_atexit --enable-libssp --enable-lto --with-gnu-ld --verbose --enable-multilib --target=x86_64-slackware-linux --build=x86_64-slackware-linux --host=x86_64-slackware-linux
Thread model: posix
gcc version 4.5.2 (GCC)
configure:2899: $? = 0
configure:2888: gcc -V >&5
gcc: '-V' must come at the start of the command line
configure:2899: $? = 1
configure:2888: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:2899: $? = 1
configure:2919: checking whether the C compiler works
configure:2941: gcc -O2 -fPIC conftest.c >&5
/usr/lib64/gcc/x86_64-slackware-linux/4.5.2/../../../../x86_64-slackware-linux/bin/ld: warning: cannot find entry symbol _start; defaulting to 00000000080481e0
configure:2945: $? = 0
configure:2994: result: yes
configure:2997: checking for C compiler default output file name
configure:2999: result: a.out
configure:3005: checking for suffix of executables
configure:3012: gcc -o conftest -O2 -fPIC conftest.c >&5
/usr/lib64/gcc/x86_64-slackware-linux/4.5.2/../../../../x86_64-slackware-linux/bin/ld: warning: cannot find entry symbol _start; defaulting to 00000000080481e0
configure:3016: $? = 0
configure:3038: result:
configure:3060: checking whether we are cross compiling
configure:3068: gcc -o conftest -O2 -fPIC conftest.c >&5
/usr/lib64/gcc/x86_64-slackware-linux/4.5.2/../../../../x86_64-slackware-linux/bin/ld: warning: cannot find entry symbol _start; defaulting to 00000000080482e0
configure:3072: $? = 0
configure:3079: ./conftest
./configure: line 3081: 5528 Illegal instruction ./conftest$ac_cv_exeext
configure:3083: $? = 132
configure:3090: error: in `/tmp/SBo/fontforge-20110222':
configure:3094: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O2 -fPIC'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-O2 -fPIC'
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=g++
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_XMKMF_set=
ac_cv_env_XMKMF_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-slackware-linux
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_prog_ac_ct_CC=gcc