Failed configure on x86_64...

5,414 views
Skip to first unread message

Armen

unread,
Nov 30, 2008, 11:40:35 PM11/30/08
to memcached
Hey Folks,

I just tried building 1.2.6 on the following system:
Linux 2.6.24-19-xen #1 SMP x86_64 x86_64 x86_64 GNU/Linux

... and received the following error:
./configure --enable-64bit
checking build system type... Invalid configuration `x86_64-unknown-
linux-': machine `x86_64-unknown-linux' not recognized
configure: error: /bin/sh ./config.sub x86_64-unknown-linux- failed

... definitely looks like configure doesn't know about the specific
distribution I'm running:
cat /etc/redhat-release
CentOS release 5.2 (Final)

Aside from munging with configure, are there any cleaner ways of
fixing this problem?

Thanks!

-- Armen



Martin MC Brown

unread,
Dec 1, 2008, 1:54:44 AM12/1/08
to memc...@googlegroups.com


You just need to specify the build target to configure; no munging
required:

./configure --enable-64bit --build x86_64-redhat-linux-gnu

MC

--
Martin MC Brown, Technical Writer
Database Technology Group, Sun Microsystems
http://sun.com | http://mysql.com
Phone: x18435/+44 247 669 8435 Skype: mcmcslp

hiro

unread,
Dec 1, 2008, 8:29:26 AM12/1/08
to memcached


On Dec 1, 6:54 am, Martin MC Brown <Martin.Br...@Sun.COM> wrote:
> > I just tried building 1.2.6 on the following system:
> > Linux 2.6.24-19-xen #1 SMP x86_64 x86_64 x86_64 GNU/Linux
>
> > ... and received the following error:
> > ./configure --enable-64bit
> > checking build system type... Invalid configuration `x86_64-unknown-
> > linux-': machine `x86_64-unknown-linux' not recognized
> > configure: error: /bin/sh ./config.sub x86_64-unknown-linux- failed
>
> > ... definitely looks like configure doesn't know about the specific
> > distribution I'm running:
> > cat /etc/redhat-release
> > CentOS release 5.2 (Final)
>
> > Aside from munging with configure, are there any cleaner ways of
> > fixing this problem?
>
> You just need to specify the build target to configure; no munging  
> required:
>
> ./configure --enable-64bit --build x86_64-redhat-linux-gnu


So what do I specify as a build target here for 64 bit solaris 10, the
configure is detecting my system as sparc-sun-solaris2.10 but this
gives me 32 bit output I want 64 bit output?

Thanks

Brett

Martin MC Brown

unread,
Dec 1, 2008, 8:47:52 AM12/1/08
to memc...@googlegroups.com


memcached-1.2.6 should identify the host correctly, so it should just
be a case of specifying --enable-64bit, but you can be explicit:

./configure --build=i386-pc-solaris2.11 --enable-64bit

A quick check of the created Makefile shows it is setting the CFLAGS
correctly:

$ grep 64 Makefile
install_sh_DATA = $(install_sh) -c -m 644
CFLAGS = -m64 -g -O2
INSTALL_DATA = ${INSTALL} -m 644

NICK VERBECK

unread,
Jan 7, 2009, 5:53:50 PM1/7/09
to memc...@googlegroups.com
What would the build flag value be for x86_64 Fedora 10. Not real sure
how that string is generated.

--
Nick Verbeck - NerdyNick
----------------------------------------------------
NerdyNick.com
SkeletalDesign.com
VivaLaOpenSource.com
Coloco.ubuntu-rocks.org

NICK VERBECK

unread,
Jan 7, 2009, 6:13:34 PM1/7/09
to memc...@googlegroups.com
I got it figured out. It appears that it may be a good idea to install
the Kernal Headers and GCC before you try to compile something.
Reply all
Reply to author
Forward
0 new messages