[gambit-list] Cross compilation for OpenWRT

Răzvan Rotaru razvan.rotaru at gmail.com
Sun Oct 27 14:24:57 EDT 2013


Well, I'm not familiar with all the options that need to be passed to gcc
for compiling. Right now, I'm getting a linker error.


[roti at pella myschemeapp]$ mips-openwrt-linux-gcc
-I/home/roti/programs/gambit.mips-openwrt/include
-L/home/roti/programs/gambit.mips-openwrt/lib -lgambc  main.c main_.c
/tmp/ccHNROa6.o: In function `main':
main_.c:(.text+0x58): undefined reference to `___main_char'
/tmp/ccHNROa6.o:(.data+0x0): undefined reference to `____20___gambc'
/tmp/ccjEdal3.o: In function `___H__20_main':
main.c:(.text+0xe8): undefined reference to `___gstate'
....


Razvan



On 27 October 2013 19:14, Jeff Read <bitwize at gmail.com> wrote:

> On Sun, Oct 27, 2013 at 1:07 PM, Răzvan Rotaru <razvan.rotaru at gmail.com>
> wrote:
> > Hi,
> >
> > I'd like to cross compile a scheme app for OpenWRT (MIPS architecture).
> Has
> > anyone attempted to do this? How can I approach this?
> >
> > The main problem is that I can't have a running MIPS system in a virtual
> > machine. So cross-compilation seems to be the only option.
> >
>
> I haven't tackled this sort of problem myself, but presumably you
> would use gsc -link to compile the Scheme files to C and generate a
> link file, and then pass those to your C cross-compiler.
>
> --Jeff
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20131027/de4536d3/attachment.htm>


More information about the Gambit-list mailing list