[GRASS5] Script to build babyGRASS for handhelds

Glynn Clements glynn.clements at virgin.net
Thu May 2 21:24:13 EDT 2002


Markus Neteler wrote:

> > > meanwhile the precompiled iPAQ binaries are installed.
> > > Unfortunately we face a segmentation fault everywhere.
> > > E.g. the Init.sh calls $ETC/set_data:
> > > 
> > > strace /tmp/dist.armv4l-unknown-linux-gnu/etc/set_data
> > > [...]
> > > open("/tmp/dist.armv4l-unknown-linux-gnu/lib/libgrass_datetime.so",
> > > O_RDONLY) =
> > > 3
> > > read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\210\33\0"..., 1024) =
> > > 1024
> > > SYS_197(0x3, 0xbfffef9c, 0xbfffef9c, 0x664, 0x3) = 0
> > > mmap(0, 59820, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x402c3000
> > > mprotect(0x402ca000, 31148, PROT_NONE)  = 0
> > > mmap(0x402cb000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0) =
> > > 0x402cb000
> > > close(3)                                = 0
> > > mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
> > > 0x40019000
> > > mprotect(0x4002c000, 286720, PROT_READ|PROT_WRITE) = 0
> > > mprotect(0x4002c000, 286720, PROT_READ|PROT_EXEC) = 0
> > > Segmentation fault
> > 
> > > I am a bit in the dark here - do we have to install 'gdb' on iPAQ?
> > 
> > I'm not sure that gdb will help; it might not be getting as far as
> > calling main().
> > 
> > Try running strace on some other program, to see what happens next. On
> > Linux/x86, there is a bit more startup code before main gets called.
> > 
> > If it isn't reaching main(), then:
> > 
> > a) gdb won't help, and
> > 
> > b) the problem would appear to be with the shared libraries.
> > 
> > Maybe some other switches are required for ARM; the "gcc" Info file
> > lists quite a few ARM-specific options. Do you have any source code
> > which successfully builds and uses shared libraries which you could
> > use as a reference?
> 
> Hi,
> 
> some news on GRASS/iPAQ:
> 
> We get inside GRASS shell when we start it with path to LOCATION as
> parameter (bypassing the crashing $ETC/set_data). All modules are (still)
> crashing.

Unfortunately, I still can't tell whether it's reaching main() or not.
I suspect that you may need to install gdb.

-- 
Glynn Clements <glynn.clements at virgin.net>



More information about the grass-dev mailing list