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

Build failing on RHEL 5.x #28

Closed
steevmi1 opened this issue Feb 24, 2014 · 4 comments
Closed

Build failing on RHEL 5.x #28

steevmi1 opened this issue Feb 24, 2014 · 4 comments

Comments

@steevmi1
Copy link

Trying to build on RHEL5.x, and compilation fails for async.c:

gcc-4.7 -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -I/tmp/RtmpV9IPU4/devtools78685a347f5/httpuv-master/src/libuv/include -I/tmp/RtmpV9IPU4/devtools78685a347f5/httpuv-master/src/libuv/include/uv-private -I/tmp/RtmpV9IPU4/devtools78685a347f5/httpuv-master/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -m64 -I/usr/prog/compilers/intel/ics_2013/composer_xe_2013.3.163/mkl/include -fpic -c src/unix/async.c -o src/unix/async.o
In file included from /tmp/RtmpV9IPU4/devtools78685a347f5/httpuv-master/src/libuv/include/uv.h:67:0,
from src/unix/async.c:25:
/tmp/RtmpV9IPU4/devtools78685a347f5/httpuv-master/src/libuv/include/uv-private/uv-unix.h:131:1: error: unknown type name 'pthread_rwlock_t'
/tmp/RtmpV9IPU4/devtools78685a347f5/httpuv-master/src/libuv/include/uv-private/uv-unix.h:148:1: error: unknown type name 'pthread_barrier_t'
In file included from src/unix/async.c:25:0:
/tmp/RtmpV9IPU4/devtools78685a347f5/httpuv-master/src/libuv/include/uv.h:386:42: warning: 'struct addrinfo' declared inside parameter list [enabled by default]
/tmp/RtmpV9IPU4/devtools78685a347f5/httpuv-master/src/libuv/include/uv.h:386:42: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
make[1]: *** [src/unix/async.o] Error 1
make[1]: Leaving directory `/tmp/RtmpV9IPU4/devtools78685a347f5/httpuv-master/src/libuv'
make: *** [libuv.a] Error 2
ERROR: compilation failed for package 'httpuv'

  • removing '/usr/prog/R/3.0.2_gcc/lib64/R/library/httpuv'
    Error: Command failed (1)
@jcheng5
Copy link
Member

jcheng5 commented Feb 24, 2014

I'm not able to reproduce this. Here's what mine looks like on a new CentOS 5.8 VM:

gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/home/vagrant/httpuv/src/libuv/include -I/home/vagrant/httpuv/src/libuv/include/uv-private -I/home/vagrant/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -fpic -c src/unix/async.c -o src/unix/async.o

@jcheng5
Copy link
Member

jcheng5 commented Feb 24, 2014

Also:

gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-54)

R version 3.0.2 (2013-09-25) -- "Frisbee Sailing"
Platform: x86_64-unknown-linux-gnu (64-bit)

@jcheng5 jcheng5 closed this as completed Jul 12, 2014
@lgautier
Copy link

I am getting a similar error (RHEL6, and gcc 4.8.1, should this matter)

I am suspecting that the problem is originating from conflicting attempts at setting the C standard. If you pay attention to the call to gcc, you will note that there is -std=gnu99 --std=c89. Only gnu99 should be there (a side note would be that C compilation might only be possible with gcc).

@jcheng5
Copy link
Member

jcheng5 commented Jul 24, 2014

@lgautier Can you tell me how you installed gcc 4.8.1 on RHEL6 so I can attempt to reproduce? Actually, it would be ideal if you could include that information in a new issue, along with a copy/paste of the actual build log. Thanks!

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

3 participants