chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] compiling 32bit chicken on x86_64


From: Daishi Kato
Subject: Re: [Chicken-users] compiling 32bit chicken on x86_64
Date: Fri, 14 Nov 2008 23:41:33 +0900
User-agent: Wanderlust/2.15.6 (Almost Unreal) Emacs/21.4 Mule/5.0 (SAKAKI)

At Fri, 31 Oct 2008 00:47:47 +0900,
Daishi Kato wrote:
> 
> At Thu, 30 Oct 2008 08:34:32 +0100 (CET),
> Sven Hartrumpf wrote:
> > 
> > Thu, 30 Oct 2008 09:25:12 +0900, daishi wrote:
> > 
> > > make -f Makefile.linux32 all
> > > make[1]: Entering directory `/home/daishi/src/chicken-3.2.0'
> > > gcc -m32 -shared  \
> > >   -o libchicken.so library.o eval.o data-structures.o extras.o lolevel.o 
> > > utils.o tcp.o srfi-1.o srfi-4.o srfi-13.o srfi-14.o srfi-18.o srfi-69.o 
> > > posixunix.o regex.o scheduler.o profiler.o stub.o match.o runtime.o 
> > > pcre/pcre_compile.o pcre/pcre_config.o pcre/pcre_dfa_exec.o 
> > > pcre/pcre_exec.o pcre/pcre_fullinfo.o pcre/pcre_get.o pcre/pcre_globals.o 
> > > pcre/pcre_info.o pcre/pcre_maketables.o pcre/pcre_newline.o 
> > > pcre/pcre_ord2utf8.o pcre/pcre_refcount.o pcre/pcre_study.o 
> > > pcre/pcre_tables.o pcre/pcre_try_flipped.o pcre/pcre_ucp_searchfuncs.o 
> > > pcre/pcre_valid_utf8.o pcre/pcre_version.o pcre/pcre_xclass.o 
> > > pcre/pcre_chartables.o apply-hack.x86.o -lm -ldl
> > > /usr/bin/ld: cannot find -lgcc_s_32
> > > collect2: ld returned 1 exit status
> > > make[1]: *** [libchicken.so] Error 1
> > > make[1]: Leaving directory `/home/daishi/src/chicken-3.2.0'
> > > make: *** [all] Error 2
> > >
> > > I'm not sure if it's a chicken issue...
> > 
> > Probably, an rpm for gcc support on 32bit is missing.
> > On a openSUSE 11.0 64bit box, it is named  gcc43-32bit:
> > > rpm -q -l gcc43-32bit
> > ...
> > /usr/lib64/gcc/x86_64-suse-linux/4.3/32/libgcc_s.so
> > /usr/lib64/gcc/x86_64-suse-linux/4.3/32/libgcc_s_32.so
> > ...
> 
> 
> Thanks.
> I am using CentOS4 for this thing,
> (whereas I usually use debian or ubuntu)
> and compat-gcc-32.x86_64 is installed.
> 
> $ find /usr/lib/ -name libgcc_s_32.so
> /usr/lib/gcc/x86_64-redhat-linux/3.4.3/libgcc_s_32.so
> /usr/lib/gcc-lib/x86_64-redhat-linux/3.2.3/libgcc_s_32.so
> 
> Probably, this is not the right one.

Hi,

I figured out this. It WAS a CentOS4 issue.
I managed to install some packages.

The patch for Makefile was also OK.
It might be useful for somebody (attached again)

Thanks!

Best,
Daishi

% diff Makefile.linux Makefile.linux32 
30c30
< ARCH = $(shell sh config-arch.sh)
---
> ARCH = x86
34c34,35
< C_COMPILER_OPTIONS = -fno-strict-aliasing -DHAVE_CHICKEN_CONFIG_H
---
> C_COMPILER_OPTIONS = -fno-strict-aliasing -DHAVE_CHICKEN_CONFIG_H -m32
> LINKER_OPTIONS = -m32




reply via email to

[Prev in Thread] Current Thread [Next in Thread]