MVIG-SJTU / AlphaPose

Real-Time and Accurate Full-Body Multi-Person Pose Estimation&Tracking System
http://mvig.org/research/alphapose.html
Other
7.98k stars 1.97k forks source link

luarocks install hdf5 gcc-plugin.h #283

Open SJLNNU opened 5 years ago

SJLNNU commented 5 years ago

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

liudatutu commented 5 years ago

@SJLNNU my environment is ubuntu16.04,gcc 5.4.0,get the same error,do you fix it?

SJLNNU commented 5 years ago

@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.

liudatutu commented 5 years ago

I have installed torch7,but it get the same error,so I don't understand why

SJLNNU commented 5 years ago

@liudatutu Missing gcc-plugin.h kinds of GCC problem. Maybe you can Update GCC to 6,Plz let me know if you fix it.

liudatutu commented 5 years ago

@SJLNNU I just updated gcc to 6.5 just now,what a pity get the error too...

SJLNNU commented 5 years ago

Then I have no idea ,AFK @liudatutu

liudatutu commented 5 years ago

@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.

SJLNNU commented 5 years ago

@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"

liudatutu commented 5 years ago

@SJLNNU you can use " yum install gcc-6-plugin-dev",you can have a try

CompliceU commented 5 years ago

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

sliawatimena commented 5 years ago

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.
aslam-experion commented 4 years ago

@sliawatimena have you got it resolved?

mac137 commented 4 years ago

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.

mavavilj commented 2 years ago

I have the same error, but when building gcc-lua itself from https://peter.colberg.org/gcc-lua/install