[gambit-list] Cross compilation for OpenWRT
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
-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'
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>
> > Hi,
> > I'd like to cross compile a scheme app for OpenWRT (MIPS architecture).
> > 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gambit-list