error during installation of packages

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

error during installation of packages

neigenfall
Hi, I am new to Lua.
When I try to install packages for Lua, I always get the following error using luarocks or make:
 
make[1]: Verzeichnis „/home/marcel/lua-hdf5/gcc-lua“ wird betreten
make[2]: Verzeichnis „/home/marcel/lua-hdf5/gcc-lua/gcc“ wird betreten
gcclua-config.h:1:24: fatal error: gcc-plugin.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
gcc -c -o gcclua.o -I/usr/lib/gcc/x86_64-linux-gnu/5/plugin/include -fPIC  -O2 -Wall -Wformat-security -I/usr/include/lua5.1 gcclua.c
gcclua.c:7:24: fatal error: gcc-plugin.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
Makefile:36: die Regel für Ziel „gcclua.o“ scheiterte
make[2]: *** [gcclua.o] Fehler 1
make[2]: Verzeichnis „/home/marcel/lua-hdf5/gcc-lua/gcc“ wird verlassen
Makefile:38: die Regel für Ziel „gcc“ scheiterte
make[1]: *** [gcc] Fehler 2
make[1]: Verzeichnis „/home/marcel/lua-hdf5/gcc-lua“ wird verlassen
Makefile:44: die Regel für Ziel „gcc-lua“ scheiterte
make: *** [gcc-lua] Fehler 2
 
My system is Ubuntu 16.
 
Thanks for your help
Marcel
Reply | Threaded
Open this post in threaded view
|

Re: error during installation of packages

Charles Heywood
Can you provide an English translation of this?

On Wed, Oct 19, 2016 at 1:14 PM <[hidden email]> wrote:
Hi, I am new to Lua.
When I try to install packages for Lua, I always get the following error using luarocks or make:
 
make[1]: Verzeichnis „/home/marcel/lua-hdf5/gcc-lua“ wird betreten
make[2]: Verzeichnis „/home/marcel/lua-hdf5/gcc-lua/gcc“ wird betreten
gcclua-config.h:1:24: fatal error: gcc-plugin.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
gcc -c -o gcclua.o -I/usr/lib/gcc/x86_64-linux-gnu/5/plugin/include -fPIC  -O2 -Wall -Wformat-security -I/usr/include/lua5.1 gcclua.c
gcclua.c:7:24: fatal error: gcc-plugin.h: Datei oder Verzeichnis nicht gefunden
compilation terminated.
Makefile:36: die Regel für Ziel „gcclua.o“ scheiterte
make[2]: *** [gcclua.o] Fehler 1
make[2]: Verzeichnis „/home/marcel/lua-hdf5/gcc-lua/gcc“ wird verlassen
Makefile:38: die Regel für Ziel „gcc“ scheiterte
make[1]: *** [gcc] Fehler 2
make[1]: Verzeichnis „/home/marcel/lua-hdf5/gcc-lua“ wird verlassen
Makefile:44: die Regel für Ziel „gcc-lua“ scheiterte
make: *** [gcc-lua] Fehler 2
 
My system is Ubuntu 16.
 
Thanks for your help
Marcel
--

Reply | Threaded
Open this post in threaded view
|

Re: error during installation of packages

Hisham
In reply to this post by neigenfall
2016-10-19 16:14 GMT-04:00  <[hidden email]>:
> Hi, I am new to Lua.
> When I try to install packages for Lua, I always get the following error
> using luarocks or make.

Do you mean packages in general or only lua-hdf5?

> make[1]: Verzeichnis „/home/marcel/lua-hdf5/gcc-lua“ wird betreten
> make[2]: Verzeichnis „/home/marcel/lua-hdf5/gcc-lua/gcc“ wird betreten
> gcclua-config.h:1:24: fatal error: gcc-plugin.h: Datei oder Verzeichnis
> nicht gefunden
> compilation terminated.
> gcc -c -o gcclua.o -I/usr/lib/gcc/x86_64-linux-gnu/5/plugin/include -fPIC
> -O2 -Wall -Wformat-security -I/usr/include/lua5.1 gcclua.c
> gcclua.c:7:24: fatal error: gcc-plugin.h: Datei oder Verzeichnis nicht
> gefunden

As the error message implies, you seem to be missing the package in
your system that provides gcc-plugin.h.

LuaRocks is able to detect this kind of problems and fail gracefully
with a nice error message, but the rockspec author needs to tell it to
do so. You should contact the author of lua-hdf5 and ask them to add
an external_dependencies to their rockspec, so that the rockspec fails
gracefully when there are missing external dependencies such as this.

-- Hisham

Reply | Threaded
Open this post in threaded view
|

Re: error during installation of packages

Dirk Laurie-2
In reply to this post by Charles Heywood
2016-10-19 22:34 GMT+02:00 Charles Heywood <[hidden email]>:

> Can you provide an English translation of this?

Well, I can, since I have a .gmail address, do that with one mouse
click, and therefore, so can you.

Reply | Threaded
Open this post in threaded view
|

Re: error during installation of packages

James Darnley
On 2016-10-20 13:52, Dirk Laurie wrote:
> 2016-10-19 22:34 GMT+02:00 Charles Heywood <[hidden email]>:
>
>> Can you provide an English translation of this?
>
> Well, I can, since I have a .gmail address, do that with one mouse
> click, and therefore, so can you.
>

Really?  Where's the button in Thunderbird to translate?


Reply | Threaded
Open this post in threaded view
|

Re: error during installation of packages

Dirk Laurie-2
2016-10-20 20:18 GMT+02:00 James Darnley <[hidden email]>:

> On 2016-10-20 13:52, Dirk Laurie wrote:
>> 2016-10-19 22:34 GMT+02:00 Charles Heywood <[hidden email]>:
>>
>>> Can you provide an English translation of this?
>>
>> Well, I can, since I have a .gmail address, do that with one mouse
>> click, and therefore, so can you.
>>
>
> Really?  Where's the button in Thunderbird to translate?

I don't know Thunderbird. But if you sign in via gmail.com with
a browser (I have tested it under Firefox and Chrome) there is
a line at the top of the message offering translation into the
language of your choice. It's obviously just an interface to
Google Translate. Maybe you need to have signed up to
Google+ to get it, I'm just a user, not an expert.

Reply | Threaded
Open this post in threaded view
|

Re: error during installation of packages

Ką Mykolas
In reply to this post by Dirk Laurie-2

Thank You kindly, for encouraging bad habbits. I hope You don't tell Your workers to use some kind of pretifiers for You instead of just sticking to damned coding style guidelines.


On Oct 20, 2016 2:53 PM, "Dirk Laurie" <[hidden email]> wrote:
2016-10-19 22:34 GMT+02:00 Charles Heywood <[hidden email]>:

> Can you provide an English translation of this?

Well, I can, since I have a .gmail address, do that with one mouse
click, and therefore, so can you.

Reply | Threaded
Open this post in threaded view
|

Re: error during installation of packages

enoch
This post has NOT been accepted by the mailing list yet.
In reply to this post by Hisham
I had a similar problem and have installed gcc-6-plugin-dev, and now I'm getting a following error:

cc1: error: cannot load plugin /tmp/luarocks_hdf5-2.0.0-1-5Y3HqX/lua-hdf5/gcc-lua/test/../gcc/gcclua.so
   /tmp/luarocks_hdf5-2.0.0-1-5Y3HqX/lua-hdf5/gcc-lua/test/../gcc/gcclua.so: undefined symbol: lua_settop