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 7.0.9 make Error #11866

Open
biubiubiu19 opened this issue Mar 1, 2023 · 5 comments
Open

redis 7.0.9 make Error #11866

biubiubiu19 opened this issue Mar 1, 2023 · 5 comments

Comments

@biubiubiu19
Copy link

biubiubiu19 commented Mar 1, 2023

Red Hat 4.4.7-18
gcc version 4.4.7
make MALLOC=libc

MAKE hdr_histogram
cd hdr_histogram && make
make[3]: Entering directory `/app/zjcj/home/redis-7.0.9/deps/hdr_histogram'

cc -std=c99 -Wall -Os -g  -DHDR_MALLOC_INCLUDE=\"hdr_redis_malloc.h\" -c  hdr_histogram.c 
In file included from hdr_histogram.c:18:
hdr_atomic.h: In function ‘hdr_atomic_load_pointer’:
hdr_atomic.h:100: error: ‘asm’ undeclared (first use in this function)
hdr_atomic.h:100: error: (Each undeclared identifier is reported only once
hdr_atomic.h:100: error: for each function it appears in.)
hdr_atomic.h:100: error: expected ‘;’ before ‘volatile’
hdr_atomic.h: In function ‘hdr_atomic_store_pointer’:
hdr_atomic.h:106: error: ‘asm’ undeclared (first use in this function)
hdr_atomic.h:106: error: expected ‘;’ before ‘volatile’
hdr_atomic.h: In function ‘hdr_atomic_load_64’:
hdr_atomic.h:112: error: ‘asm’ undeclared (first use in this function)
hdr_atomic.h:112: error: expected ‘;’ before ‘volatile’
hdr_atomic.h: In function ‘hdr_atomic_store_64’:
hdr_atomic.h:118: error: ‘asm’ undeclared (first use in this function)
hdr_atomic.h:118: error: expected ‘;’ before ‘volatile’
hdr_atomic.h: In function ‘hdr_atomic_exchange_64’:
hdr_atomic.h:124: error: ‘asm’ undeclared (first use in this function)
hdr_atomic.h:124: error: expected ‘;’ before ‘volatile’
hdr_atomic.h: In function ‘hdr_atomic_compare_exchange_64’:
hdr_atomic.h:136: error: ‘asm’ undeclared (first use in this function)
hdr_atomic.h:136: error: expected ‘;’ before ‘volatile’
make[3]: *** [hdr_histogram.o] Error 1
make[3]: Leaving directory `/app/zjcj/home/redis-7.0.9/deps/hdr_histogram'
make[2]: *** [hdr_histogram] Error 2
make[2]: Leaving directory `/app/zjcj/home/redis-7.0.9/deps'
make[1]: [persist-settings] Error 2 (ignored)
@slavak
Copy link
Contributor

slavak commented Mar 12, 2023

I'm not sure I understand what "Red Hat 4.4.7-18" is. What's the output of cat /etc/*release?

@HelloWorDomain
Copy link

GCC Version?

@naughtyGitCat
Copy link

CentOS release 6.7 (Final) same error
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-16)

@HelloWorDomain
Copy link

it be used by change the “c99” to gnu99

@naughtyGitCat
Copy link

@HelloWorDomain I don't know C language and I'm not very familiar with how to compile it. Could you please tell me how to make modifications?

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