google-deepmind / google-deepmind/torch-hdf5
ffi.lua:56: expected align(#) on line 579
- Dominant language
- Lua
- Stars
- 241
- Forks
- 125
- PR merge metrics
- No merged PRs in 30d
Description
I have torch with Lua 5.2 installed on ubuntu 16.04. When I use require 'hdf5' I have got error
/root/torch/install/share/lua/5.2/hdf5/ffi.lua:56: expected align(#) on line 579
stack traceback:
/root/torch/install/share/lua/5.2/itorch/main.lua:166: in function
[C]: in function 'cdef'
/root/torch/install/share/lua/5.2/hdf5/ffi.lua:56: in function 'loadHDF5Header'
/root/torch/install/share/lua/5.2/hdf5/ffi.lua:60: in main chunk
[C]: in function 'dofile'
/root/torch/install/share/lua/5.2/torch/init.lua:54: in function 'include'
/root/torch/install/share/lua/5.2/hdf5/init.lua:29: in main chunk
[C]: in function 'require'
[string "hdf5 = require 'hdf5'..."]:1: in main chunk
[C]: in function 'xpcall'
/root/torch/install/share/lua/5.2/itorch/main.lua:209: in function
(...tail calls...)
/root/torch/install/share/lua/5.2/lzmq/poller.lua:75: in function 'poll'
/root/torch/install/share/lua/5.2/lzmq/impl/loop.lua:307: in function 'poll'
/root/torch/install/share/lua/5.2/lzmq/impl/loop.lua:325: in function 'sleep_ex'
/root/torch/install/share/lua/5.2/lzmq/impl/loop.lua:370: in function 'start'
/root/torch/install/share/lua/5.2/itorch/main.lua:381: in main chunk
[C]: in function 'require'
(command line):1: in main chunk
[C]: in ?
It seems the problem is in lua 5.2. I solved this issue when installed luajit.
Contributor guide
Research direction
Start at ffi.lua line 56 and inspect the HDF5 header content around the reported line 579. Reproduce require 'hdf5' with Lua 5.2 on Ubuntu 16.04, then compare the behavior with LuaJIT. Done means the failure is resolved for the supported Lua configuration or the compatibility limitation is clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100