Compiling redis 32-bit on Debian?

87 views
Skip to first unread message

Mason Jones

unread,
May 18, 2010, 1:18:28 PM5/18/10
to redi...@googlegroups.com
This probably isn't specifically a Redis issue, but I'm hoping someone
here might have a hint. I'm not a Debian expert, but I'm trying to do
a 32-bit build of Redis on Debian lenny and am having an issue with
it. I installed libc6-dev-i386 as suggested in the Redis FAQ, and then
tried "make 32bit". The result:

make ARCH="-m32"
make[1]: Entering directory `/opt/rpx/redis-1.3.8'
cc -o redis-server -std=c99 -pedantic -O2 -Wall -W -m32 -lm -pthread
-m32 -g -rdynamic -ggdb adlist.o ae.o anet.o dict.o redis.o sds.o
zmalloc.o lzf_c.o lzf_d.o pqsort.o zipmap.o
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/4.2.4/libgcc.a when searching for -lgcc
/usr/bin/ld: skipping incompatible
/usr/lib/gcc/x86_64-linux-gnu/4.2.4/libgcc.a when searching for -lgcc
/usr/bin/ld: cannot find -lgcc
collect2: ld returned 1 exit status
make[1]: *** [redis-server] Error 1
make[1]: Leaving directory `/opt/rpx/redis-1.3.8'
make: *** [32bit] Error 2

I did some looking and tried updating some other packages that seemed
potentially related, but nothing's fixed it yet. So I was hoping
someone here might have run into this and knows the trick.

Thanks for any thoughts.

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To post to this group, send email to redi...@googlegroups.com.
To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.

Salvatore Sanfilippo

unread,
May 18, 2010, 1:41:42 PM5/18/10
to redi...@googlegroups.com
Hey,

first guess is: apt-get install libc6-dev-i386
But not sure

hope this helps
Salvatore
--
Salvatore 'antirez' Sanfilippo
http://invece.org

"Once you have something that grows faster than education grows,
you’re always going to get a pop culture.", Alan Kay

Mason Jones

unread,
May 18, 2010, 2:30:56 PM5/18/10
to redi...@googlegroups.com
Yeah, I did that, which got me further than without it, but then I hit
this missing -lgcc error. I haven't found info yet about whether
there's another package needed for that, or if the error's due to
something else...

Alan Kennedy

unread,
May 18, 2010, 2:35:53 PM5/18/10
to redi...@googlegroups.com
Have you got the build-essential package?
Reply all
Reply to author
Forward
0 new messages