[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: To, be, posix, or, not, posix...?
- From: Sean Conner <sean@...>
- Date: Tue, 27 Jan 2015 23:41:37 -0500
It was thus said that the Great Meino.Cramer@gmx.de once stated:
> Sean Conner <sean@conman.org> [15-01-27 19:52]:
> >
> > [1] https://github.com/spc476/lua-conmanorg
> > There are a few non-Posix modules there as well.
> >
> > [2] epoll under Linux; poll otherwise. select() is available, but only
> > if poll isn't. The API is the same for all three.
> >
> > [3] No support yet for Mac OS-X, which doesn't support the latest Posix
> > spec for time-releated calls.
> >
> > [4] Supports IPv4, IPv6 and Unix sockets. This is a wrapper around the
> > lower level network calls---there's no code that talks HTTP, FTP,
> > SMTP, etc, unlike luasocket.
> >
> > [5] If I want the C API, I would use C.
> >
>
> Hi Sean,
>
> I cloned the sources and did a make, which fails on my embedded
> system:
>
> Arietta G25 A:LUAADDONS/lua-conmanorg>make
> gcc -std=c99 -g -Wall -Wextra -pedantic -shared -fPIC -o lib/tcc.so
> src/tcc.c -ltcc
> src/tcc.c:49:20: fatal error: libtcc.h: No such file or directory
> #include <libtcc.h>
> ^
> compilation terminated.
> Makefile:106: recipe for target 'lib/tcc.so'
> failed
> make: *** [lib/tcc.so] Error 1
> [1] 2101 exit 2 make
>
>
> ...tcc was missing.
>
> I tried to install tcc on the embedded system, but that failed with:
>
> In file included from tcc.h:291:0,
> from tcc.c:24:
> arm-gen.c:27:2: error: #error "Currently TinyCC only
> supports float computation with VFP instructions"
> #error "Currently TinyCC only supports float
> computation with VFP instructions"
>
> The embedded system does not have any FPU and does softfp.
>
> Am I offline now ... or ? ;)
No. Each C based module is stand alone, so the easiest thing is to remove
libtcc.so from the target 'all' (and maybe from the install target as well).
Unfortunately, TCC [1] is a bit of a pain to get working, unfortunately.
You might also have problems with org.conman.magic [2], but again, unless
you need to identify files programmically, you can ignore that one as well.
-spc
[1] It's a C compiler in a library. I use it more for quick hacks than
anything in production. I can't even use it at work since it
doesn't support the SPARC architecture.
[2] It's the library behind the Unix program "file". It identifies
files based on embedded magic numbers.
- References:
- To, be, posix, or, not, posix...?, Meino . Cramer
- Re: To, be, posix, or, not, posix...?, Sean Conner
- Re: To, be, posix, or, not, posix...?, Meino . Cramer
- Prev by Date:
Re: To, be, posix, or, not, posix...?
- Next by Date:
Re: To, be, posix, or, not, posix...?
- Previous by thread:
Re: To, be, posix, or, not, posix...?
- Next by thread:
Re: To, be, posix, or, not, posix...?
- Index(es):