AlphaPose
AlphaPose copied to clipboard
luarocks install hdf5 gcc-plugin.h
Hi, I am using Centos7 and its GCC version is 4.8.5 .Then I run "luarocks install hdf5" heres what i get
Warning: falling back to curl - install luasec to get native HTTPS support
Installing https://luarocks.org/hdf5-2.0.0-1.src.rock...
Using https://luarocks.org/hdf5-2.0.0-1.src.rock... switching to 'build' mode
Warning: variable CFLAGS was not passed in build_variables
make[1]: Entering directory /tmp/luarocks_hdf5-2.0.0-1-249/lua-hdf5/gcc-lua' gcclua-config.h:1:24: fatal error: gcc-plugin.h: No such file or directory #include "gcc-plugin.h" ^ compilation terminated. make[2]: Entering directory
/tmp/luarocks_hdf5-2.0.0-1-249/lua-hdf5/gcc-lua/gcc'
gcc -c -o gcclua.o -Iplugin/include -fPIC -O2 -Wall -Wformat-security gcclua.c
gcclua.c:7:24: fatal error: gcc-plugin.h: No such file or directory
#include "gcc-plugin.h"
^
compilation terminated.
make[2]: *** [gcclua.o] Error 1
make[2]: Leaving directory /tmp/luarocks_hdf5-2.0.0-1-249/lua-hdf5/gcc-lua/gcc' make[1]: *** [gcc] Error 2 make[1]: Leaving directory
/tmp/luarocks_hdf5-2.0.0-1-249/lua-hdf5/gcc-lua'
make: *** [gcc-lua] Error 2
Error: Build error: Failed building.
Can i fix it by Update GCC ,Thanks a lot
@SJLNNU my environment is ubuntu16.04,gcc 5.4.0,get the same error,do you fix it?
@liudatutu Not yet ,not sure if update GCC to 6 works. I tried it after I installed torch ,maybe you should try it after install torch7.
I have installed torch7,but it get the same error,so I don't understand why
@liudatutu Missing gcc-plugin.h kinds of GCC problem. Maybe you can Update GCC to 6,Plz let me know if you fix it.
@SJLNNU I just updated gcc to 6.5 just now,what a pity get the error too...
Then I have no idea ,AFK @liudatutu
@SJLNNU you can install gcc-(your gcc version)-plugin-dev,for my ubuntu,is "sudo apt-get install gcc-6-plugin-dev",i fix it.
@liudatutu Cheers! I am a newer to Centos .Do you know what Centos Command I should Type to get the result like "sudo apt-get install gcc-6-plugin-dev"
@SJLNNU you can use " yum install gcc-6-plugin-dev",you can have a try
Installing https://rocks.moonscript.org/hdf5-2.0.0-1.src.rock... Using https://rocks.moonscript.org/hdf5-2.0.0-1.src.rock... switching to 'build' mode Warning: variable CFLAGS was not passed in build_variables make[1]: Entering directory '/tmp/luarocks_hdf5-2.0.0-1-7594/lua-hdf5/gcc-lua' make[2]: Entering directory '/tmp/luarocks_hdf5-2.0.0-1-7594/lua-hdf5/gcc-lua/gcc' gcc -c -o gcclua.o -I/usr/lib/gcc/x86_64-linux-gnu/5/plugin/include -fPIC -xc++ -O2 -Wall -Wformat-security -I/usr/include/lua5.1 gcclua.c gcc -o gcclua.so gcclua.o -shared -Wl,-s -Wl,--as-needed -llua5.1 make[2]: Leaving directory '/tmp/luarocks_hdf5-2.0.0-1-7594/lua-hdf5/gcc-lua/gcc' make[2]: Entering directory '/tmp/luarocks_hdf5-2.0.0-1-7594/lua-hdf5/gcc-lua/test' gcc -S -std=c99 -Wall -pedantic -fplugin=/tmp/luarocks_hdf5-2.0.0-1-7594/lua-hdf5/gcc-lua/test/../gcc/gcclua.so -fplugin-arg-gcclua-script=event.lua ./event.c gcc -S -std=c99 -Wall -pedantic -fplugin=/tmp/luarocks_hdf5-2.0.0-1-7594/lua-hdf5/gcc-lua/test/../gcc/gcclua.so -fplugin-arg-gcclua-script=globals.lua ./globals.c gcc -S -std=c99 -Wall -pedantic -fplugin=/tmp/luarocks_hdf5-2.0.0-1-7594/lua-hdf5/gcc-lua/test/../gcc/gcclua.so -fplugin-arg-gcclua-script=tree.lua ./tree.c gcc -S -std=c++98 -Wall -pedantic -fplugin=/tmp/luarocks_hdf5-2.0.0-1-7594/lua-hdf5/gcc-lua/test/../gcc/gcclua.so -fplugin-arg-gcclua-script=tree-cp.lua ./tree-cp.cxx make[2]: Leaving directory '/tmp/luarocks_hdf5-2.0.0-1-7594/lua-hdf5/gcc-lua/test' make[1]: Leaving directory '/tmp/luarocks_hdf5-2.0.0-1-7594/lua-hdf5/gcc-lua' make[1]: Entering directory '/tmp/luarocks_hdf5-2.0.0-1-7594/lua-hdf5/gcc-lua-cdecl' make[2]: Entering directory '/tmp/luarocks_hdf5-2.0.0-1-7594/lua-hdf5/gcc-lua-cdecl/test' gcc -S -std=gnu99 -Wall -fplugin=/tmp/luarocks_hdf5-2.0.0-1-7594/lua-hdf5/gcc-lua-cdecl/test/../../gcc-lua/gcc/gcclua.so -fplugin-arg-gcclua-script=array.lua array.c gcc -S -std=gnu99 -Wall -fplugin=/tmp/luarocks_hdf5-2.0.0-1-7594/lua-hdf5/gcc-lua-cdecl/test/../../gcc-lua/gcc/gcclua.so -fplugin-arg-gcclua-script=composite.lua composite.c gcc -S -std=gnu99 -Wall -fplugin=/tmp/luarocks_hdf5-2.0.0-1-7594/lua-hdf5/gcc-lua-cdecl/test/../../gcc-lua/gcc/gcclua.so -fplugin-arg-gcclua-script=enum.lua enum.c gcc -S -std=gnu99 -Wall -fplugin=/tmp/luarocks_hdf5-2.0.0-1-7594/lua-hdf5/gcc-lua-cdecl/test/../../gcc-lua/gcc/gcclua.so -fplugin-arg-gcclua-script=function.lua function.c gcc -S -std=gnu99 -Wall -fplugin=/tmp/luarocks_hdf5-2.0.0-1-7594/lua-hdf5/gcc-lua-cdecl/test/../../gcc-lua/gcc/gcclua.so -fplugin-arg-gcclua-script=pointer.lua pointer.c gcc -S -std=gnu99 -Wall -fplugin=/tmp/luarocks_hdf5-2.0.0-1-7594/lua-hdf5/gcc-lua-cdecl/test/../../gcc-lua/gcc/gcclua.so -fplugin-arg-gcclua-script=scalar.lua scalar.c gcc -S -std=gnu99 -Wall -fplugin=/tmp/luarocks_hdf5-2.0.0-1-7594/lua-hdf5/gcc-lua-cdecl/test/../../gcc-lua/gcc/gcclua.so -fplugin-arg-gcclua-script=variable.lua variable.c gcc -S -std=gnu99 -Wall -fplugin=/tmp/luarocks_hdf5-2.0.0-1-7594/lua-hdf5/gcc-lua-cdecl/test/../../gcc-lua/gcc/gcclua.so -fplugin-arg-gcclua-script=vector.lua vector.c make[2]: Leaving directory '/tmp/luarocks_hdf5-2.0.0-1-7594/lua-hdf5/gcc-lua-cdecl/test' make[1]: Leaving directory '/tmp/luarocks_hdf5-2.0.0-1-7594/lua-hdf5/gcc-lua-cdecl' make[1]: Entering directory '/tmp/luarocks_hdf5-2.0.0-1-7594/lua-hdf5/hdf5' cc1: fatal error: H5pubconf.h: No such file or directory compilation terminated. gcc -E -o C.i -I/tmp/luarocks_hdf5-2.0.0-1-7594/lua-hdf5/hdf5/../gcc-lua-cdecl/ffi-cdecl C.c C.c:11:18: fatal error: hdf5.h: No such file or directory compilation terminated. Makefile:33: recipe for target 'C.i' failed make[1]: *** [C.i] Error 1 make[1]: Leaving directory '/tmp/luarocks_hdf5-2.0.0-1-7594/lua-hdf5/hdf5' Makefile:44: recipe for target 'hdf5' failed make: *** [hdf5] Error 2 i get this error,what can i do to solove it? @ @liudatutu @SJLNNU
Dear all,
I have install $ sudo apt-get install gcc-8-plugin-dev and $ sudo apt-get install gcc-8-plugin-dev My system is ubuntu 18.04, gcc (Ubuntu 8.3.0-6ubuntu1~18.10) 8.3.0
Please help. Thanks.
suryadi
Installing https://luarocks.org/hdf5-2.0.0-1.src.rock
Warning: variable CFLAGS was not passed in build_variables
make[1]: Entering directory '/tmp/luarocks_hdf5-2.0.0-1-tMmtQZ/lua-hdf5/gcc-lua'
make[2]: Entering directory '/tmp/luarocks_hdf5-2.0.0-1-tMmtQZ/lua-hdf5/gcc-lua/gcc'
gcc -c -o gcclua.o -I/usr/lib/gcc/x86_64-linux-gnu/8/plugin/include -fPIC -xc++ -O2 -Wall -Wformat-security -I/usr/include/lua5.1 gcclua.c
gcclua.c:62:12: error: ‘namespace_binding’ was not declared in this scope
__typeof__(namespace_binding) namespace_binding __attribute__((weak));
^~~~~~~~~~~~~~~~~
gcclua.c:62:12: note: suggested alternative: ‘namespace_bindings_p’
__typeof__(namespace_binding) namespace_binding __attribute__((weak));
^~~~~~~~~~~~~~~~~
namespace_bindings_p
gcclua.c: In function ‘int gcclua_tree_get_type_anonymous(lua_State*)’:
gcclua.c:636:22: error: ‘TYPE_ANONYMOUS_P’ was not declared in this scope
lua_pushboolean(L, TYPE_ANONYMOUS_P(*t));
^~~~~~~~~~~~~~~~
gcclua.c:636:22: note: suggested alternative: ‘MAP_ANONYMOUS’
lua_pushboolean(L, TYPE_ANONYMOUS_P(*t));
^~~~~~~~~~~~~~~~
MAP_ANONYMOUS
gcclua.c: In function ‘int gcclua_tree_get_type_vector_subparts(lua_State*)’:
gcclua.c:883:41: error: cannot convert ‘poly_uint64’ {aka ‘poly_int<1, long unsigned int>’} to ‘lua_Number’ {aka ‘double’}
lua_pushnumber(L, TYPE_VECTOR_SUBPARTS(*t));
~~~~~~~~~~~~~~~~~~~~^~~~
In file included from gcclua.c:33:
/usr/include/lua5.1/lua.h:161:58: note: initializing argument 2 of ‘void lua_pushnumber(lua_State*, lua_Number)’
LUA_API void (lua_pushnumber) (lua_State *L, lua_Number n);
~~~~~~~~~~~^
make[2]: *** [Makefile:29: gcclua.o] Error 1
make[2]: Leaving directory '/tmp/luarocks_hdf5-2.0.0-1-tMmtQZ/lua-hdf5/gcc-lua/gcc'
make[1]: *** [Makefile:38: gcc] Error 2
make[1]: Leaving directory '/tmp/luarocks_hdf5-2.0.0-1-tMmtQZ/lua-hdf5/gcc-lua'
make: *** [Makefile:44: gcc-lua] Error 2
Error: Build error: Failed building.
@sliawatimena have you got it resolved?
I have the same problem:
maciej@CIT-MACIEJ-U:~/git/depth_compl/DeepCompletionRelease/torch$ sudo luarocks install hdf5
Installing https://luarocks.org/hdf5-2.0.0-1.src.rock
Warning: variable CFLAGS was not passed in build_variables
make[1]: Entering directory '/tmp/luarocks_hdf5-2.0.0-1-ZphbE1/lua-hdf5/gcc-lua'
make[2]: Entering directory '/tmp/luarocks_hdf5-2.0.0-1-ZphbE1/lua-hdf5/gcc-lua/gcc'
gcc -c -o gcclua.o -I/usr/lib/gcc/x86_64-linux-gnu/7/plugin/include -fPIC -xc++ -O2 -Wall -Wformat-security -I/usr/include/lua5.1 gcclua.c
gcclua.c: In function ‘int gcclua_tree_get_type_anonymous(lua_State*)’:
gcclua.c:636:22: error: ‘TYPE_ANONYMOUS_P’ was not declared in this scope
lua_pushboolean(L, TYPE_ANONYMOUS_P(*t));
^~~~~~~~~~~~~~~~
gcclua.c:636:22: note: suggested alternative: ‘MAP_ANONYMOUS’
lua_pushboolean(L, TYPE_ANONYMOUS_P(*t));
^~~~~~~~~~~~~~~~
MAP_ANONYMOUS
Makefile:29: recipe for target 'gcclua.o' failed
make[2]: *** [gcclua.o] Error 1
make[2]: Leaving directory '/tmp/luarocks_hdf5-2.0.0-1-ZphbE1/lua-hdf5/gcc-lua/gcc'
Makefile:38: recipe for target 'gcc' failed
make[1]: *** [gcc] Error 2
make[1]: Leaving directory '/tmp/luarocks_hdf5-2.0.0-1-ZphbE1/lua-hdf5/gcc-lua'
Makefile:44: recipe for target 'gcc-lua' failed
make: *** [gcc-lua] Error 2
Error: Build error: Failed building.
I have the same error, but when building gcc-lua itself from https://peter.colberg.org/gcc-lua/install