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

redis 2.6.2 install also fail? #736

Closed
jvhomes opened this issue Oct 28, 2012 · 12 comments
Closed

redis 2.6.2 install also fail? #736

jvhomes opened this issue Oct 28, 2012 · 12 comments

Comments

@jvhomes
Copy link

jvhomes commented Oct 28, 2012

zmalloc.o: In function zmalloc_used_memory': /home/hmail/jiang/redis-2.6.2/src/zmalloc.c:223: undefined reference to__sync_add_and_fetch_4'
collect2: ld 返回 1
make[1]: *** [redis-server] 错误 1
make[1]: Leaving directory `/home/hmail/jiang/redis-2.6.2/src'
make: *** [all] 错误 2

why? want to test, but install always fail, so misery

@jvhomes
Copy link
Author

jvhomes commented Oct 28, 2012

this my linux system:Linux centos2.it.mail 2.6.18-274.18.1.el5

@charsyam
Copy link
Contributor

Do you use 32bit OS?
Plz, try to add below code to Makefile

CFLAGS= -march=i686

@znmeb
Copy link

znmeb commented Oct 28, 2012

I've had good luck on most "modern" platforms with '-march=native'. That
assumes you're compiling on the same system (or system type) where you will
be executing.

On Sun, Oct 28, 2012 at 10:34 AM, charsyam notifications@github.com wrote:

Do you use 32bit OS?
Plz, try to add below code to Makefile

CFLAGS= -march=i686


Reply to this email directly or view it on GitHubhttps://github.com//issues/736#issuecomment-9848046.

Twitter: http://twitter.com/znmeb; Computational Journalism Publishers
Workbench:
http://znmeb.github.com/Computational-Journalism-Publishers-Workbench/

How the Hell can the lion sleep with all those people singing "A weem oh
way!" at the top of their lungs?

@charsyam
Copy link
Contributor

@znmeb Thank you. @jvhomes , "-march=native" is better.
but if you use under GCC 4.2, just use "-march=i686"

@jvhomes
Copy link
Author

jvhomes commented Oct 29, 2012

@charsyam @znmeb Thank you! just write CFLAGS= -march=i686 on src/Makefile head!

@azilber
Copy link

azilber commented Dec 5, 2012

This fix doesn't work on 2.6.7 build with old Centos 5.2. Do: export CFLAGS= -march=i686 on the command line right before make

@charsyam
Copy link
Contributor

charsyam commented Dec 5, 2012

@azilber Did you use make 32bit?
plz see this #786
maybe you can solve it :)

@azilber
Copy link

azilber commented Dec 5, 2012

Yes, only export CFLAGS works.

On Wed, Dec 5, 2012 at 1:33 PM, charsyam notifications@github.com wrote:

@azilber https://github.com/azilber Did you use make 32bit?
plz see this #786 #786
maybe you can solve it :)


Reply to this email directly or view it on GitHubhttps://github.com//issues/736#issuecomment-11030290.

@brothertao
Copy link

src/.make_settings OPT=-O2 -march=i686

@darelf
Copy link

darelf commented Mar 18, 2013

src/.make_settings OPT=-O2 -march=i686

Was the only one of these that actually fixed the build for me. Thanks.

@ajitgithub
Copy link

src/.make_settings OPT=-O2 -march=i686

This work on Linux

@szym
Copy link

szym commented Aug 14, 2014

If you tried make and failed, don't forget to make distclean before trying again with new CFLAGS:

make distclean && CFLAGS=-march=i686 make

maxb-io pushed a commit to maxb-io/redis that referenced this issue Sep 24, 2024
* Fix using the wrong manager from LLAPI

the LLAPI was using the wrong manager to access the json data.
Share code with RedisJson command to use the right manager.

* format fixes
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

8 participants