LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-25-2011, 04:21 PM   #1
scheepster
LQ Newbie
 
Registered: Feb 2011
Distribution: Slackware64 13.37
Posts: 11

Rep: Reputation: 0
Can't compile 32bit program in multilib Slack64


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
 
Old 05-26-2011, 02:51 PM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,491

Rep: Reputation: 567Reputation: 567Reputation: 567Reputation: 567Reputation: 567Reputation: 567
Quote:
./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
you need --host and --build. I think the way it goes is
--host=x86_64-slackware-linux --build=i686 or whatever. Have a look at the book on

http://trac.cross-lfs.org/wiki/download#CurrentStable and it gives you an idea how to go about it, details on a uname hack, etc.
 
Old 05-26-2011, 03:45 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Moved: This thread is more suitable in Slackware and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 05-27-2011, 06:39 PM   #4
scheepster
LQ Newbie
 
Registered: Feb 2011
Distribution: Slackware64 13.37
Posts: 11

Original Poster
Rep: Reputation: 0
Hello all,

Thanks for moving my thread XavierP.

Tried your instructions but it didn't work, however you got me interested in CLFS, so thanks for that

regards scheepster
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Broffice not compile on Slack64(multilib or no multilib);SlackBuild afreitascs Slackware 4 06-14-2010 07:16 AM
Scim input for 32bit program is not working under x86_64 (multilib) kite Slackware 0 05-18-2010 03:01 AM
Multilib slack64 wingevil Slackware 6 02-21-2010 07:53 PM
printing from firefox with slack64 and multilib BCarey Slackware 3 01-11-2010 10:30 AM
libdrm from git - Slack64 multilib? kukibl Slackware 1 10-14-2009 03:16 PM


All times are GMT -5. The time now is 03:49 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration