Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to build on powerpc64le #161

Open
daxtens opened this issue Feb 29, 2016 · 5 comments
Open

Failure to build on powerpc64le #161

daxtens opened this issue Feb 29, 2016 · 5 comments

Comments

@daxtens
Copy link

daxtens commented Feb 29, 2016

Hi,

When trying to build your gem on powerpc64le, I get the following error:

Configuring libmemcached.
env CFLAGS='-fPIC  -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimp$
icit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat  -fPIC   -fPIC' LDFLAGS='-fPIC -L. -fstack-protector -rdynamic -Wl,-export-dynamic -L. -fstack-protector -rdynamic -Wl,-export-dynamic -L/usr/local/rv$
/rubies/ruby-2.2.2/lib' ./configure --prefix=/usr/local/rvm/gems/ruby-2.2.2/gems/memcached-1.8.0/ext --libdir=/usr/local/rvm/gems/ruby-2.2.2/gems/memcached-1.8.0/ext/lib --without-memcached --disable-shared --disable-utils --disab$
e-dependency-tracking CC="gcc"  2>&1
checking build system type... config/config.guess: unable to guess system type

This script, last modified 2009-04-27, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
and
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

If the version you run (config/config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <[email protected]> in order to provide the needed
information to handle your system.

config.guess timestamp = 2009-04-27

uname -m = ppc64le
uname -r = 4.2.0-30-generic
uname -s = Linux
uname -v = #35-Ubuntu SMP Fri Feb 19 13:50:54 UTC 2016

/usr/bin/uname -p = 
/bin/uname -X     = 

hostinfo               = 
/bin/universe          = 
/usr/bin/arch -k       = 
/bin/arch              = 
/usr/bin/oslevel       = 
/usr/convex/getsysinfo = 

UNAME_MACHINE = ppc64le
UNAME_RELEASE = 4.2.0-30-generic
UNAME_SYSTEM  = Linux
UNAME_VERSION = #35-Ubuntu SMP Fri Feb 19 13:50:54 UTC 2016
configure: error: cannot guess build type; you must specify one
*** extconf.rb failed ***

I think this is because of the version of libmemcached you bundle: if you upgrade the bundled version to the latest (1.0.18) or use the system version if it's available, it should fix things. I can provide a pull request to bundle the latest version if that helps.

@arthurnn
Copy link
Owner

Are you building the gem from rubygems or from master?

@daxtens
Copy link
Author

daxtens commented Feb 29, 2016

I was building from rubygems, I've just tried building from master and I get the same message. (I also tried building libmemcached by itself, and verified that any version short of 1.0.18 fails with an outdated config.{sub,guess}.)

@jakeonfire
Copy link

jakeonfire commented Feb 14, 2022

i'm having this issue now for ubuntu on M1 (via docker). the correct system type is aarch64-unknown-linux-gnu and with newer config.guess and config.sub (e.g. /usr/share/automake-1.16/config.guess) the extension build works, but i'm not sure how to pass the type into the extension build from gem install memcached -v 1.8.0. is this possible?

@jakeonfire
Copy link

ended up switching to dalli

@BeatyThomas
Copy link

BeatyThomas commented Feb 4, 2023

Having same issue. My company went to m1's across the board and now, we cannot build the Gemfile due to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants