[GRASS-user] GRASS compiled from source: child_exception

Hi all,

I've got another problem again. Since I had so much trouble with getting
g.extension to work and never managed to get the add-on I desperately need
to compile (r.area), I'm trying it now with GRASS compiled from source. I
tried GRASS 7 and now I've tried GRASS 6.5, both with the same results.

I'm running OpenSUSE 11.3, 32 bit. Since the problem's been the same with 7
and 6.5, I'll show the more recent terminal outputs from 6.5.

Installed the latest 6.5-svn code from
http://grass.itc.it/grass65/binary/linux/snapshot/. Here's how I did it:
- Downloaded grass-6.5.svn-x86_64-unknown-linux-gnu-07_08_2010-install.sh
and grass-6.5.svn-x86_64-unknown-linux-gnu-07_08_2010.tar.gz into the same
directory
- Ran
sudo sh grass-6.5.svn-x86_64-unknown-linux-gnu-07_08_2010-install.sh
grass-6.5.svn-x86_64-unknown-linux-gnu-07_08_2010.tar.gz

GRASS installed itself with the following output:
GRASS GIS 6.5.svn-x86_64-unknown-linux-gnu-07_08_2010 binary package
installation tool

Using gunzip decompressor...
The package grass-6.5.svn-x86_64-unknown-linux-gnu-07_08_2010.tar.gz seems
to be o.k.
Proceeding...

Checking and creating installation directory...
Installing GRASS binaries into
/usr/local/grass6.5.svn-x86_64-unknown-linux-gnu-07_08_2010

Uncompressing the package and extracting to target directory...
Creating start script:
/usr/local/bin/grass65 ->
/usr/local/bin/grass-6.5.svn-x86_64-unknown-linux-gnu-07_08_2010
Creating the locks directory for monitors...

Creating datum transformation gridshift files...

Generating display font configuration file...
grass-6.5.svn-x86_64-unknown-linux-gnu-07_08_2010-install.sh: line 344:
/usr/local/grass6.5.svn-x86_64-unknown-linux-gnu-07_08_2010/bin/g.mkfontcap:
cannot execute binary file

Installation finished. Start GRASS
6.5.svn-x86_64-unknown-linux-gnu-07_08_2010 with
    /usr/local/bin/grass65

Welcome to GRASS GIS. Enjoy this open source GRASS GIS!

So far so good, although the inability to execute g.mkfontcap did worry me.

Then I started GRASS with the command grass65 and got the following output:
Lee@pc19392:~/Downloads> grass65
                                                                                                                                     
WELCOME TO GRASS Version 6.5.svn 2010
                                                                                                                                     
   1) Have at your side all available GRASS tutorials
                                                                                                                                     
   2) When working on your location, the following materials
      are extremely useful:
      - A topo map of your area
      - Current catalog of available computer maps
                                                                                                                                     
   3) Check the GRASS webpages for feedback mailinglists and more:
      http://www.grass-gis.org
      http://grass.osgeo.org
                                                                                                                                     
Hit RETURN to continue
                                                                                                                                     
Starting GRASS ...
Traceback (most recent call last):
  File
"/usr/local/grass6.5.svn-x86_64-unknown-linux-gnu-07_08_2010/etc/wxpython/gis_set.py",
line 37, in <module>
    import gui_modules.goutput
  File
"/usr/local/grass6.5.svn-x86_64-unknown-linux-gnu-07_08_2010/etc/wxpython/gui_modules/goutput.py",
line 37, in <module>
    import preferences
  File
"/usr/local/grass6.5.svn-x86_64-unknown-linux-gnu-07_08_2010/etc/wxpython/gui_modules/preferences.py",
line 911, in <module>
    globalSettings = Settings()
  File
"/usr/local/grass6.5.svn-x86_64-unknown-linux-gnu-07_08_2010/etc/wxpython/gui_modules/preferences.py",
line 585, in __init__
    self.ReadSettingsFile()
  File
"/usr/local/grass6.5.svn-x86_64-unknown-linux-gnu-07_08_2010/etc/wxpython/gui_modules/preferences.py",
line 650, in ReadSettingsFile
    gisenv = grass.gisenv()
  File
"/usr/local/grass6.5.svn-x86_64-unknown-linux-gnu-07_08_2010/etc/python/grass/script/core.py",
line 505, in gisenv
    s = read_command("g.gisenv", flags='n')
  File
"/usr/local/grass6.5.svn-x86_64-unknown-linux-gnu-07_08_2010/etc/python/grass/script/core.py",
line 216, in read_command
    ps = pipe_command(*args, **kwargs)
  File
"/usr/local/grass6.5.svn-x86_64-unknown-linux-gnu-07_08_2010/etc/python/grass/script/core.py",
line 193, in pipe_command
    return start_command(*args, **kwargs)
  File
"/usr/local/grass6.5.svn-x86_64-unknown-linux-gnu-07_08_2010/etc/python/grass/script/core.py",
line 155, in start_command
    return Popen(args, **popts)
  File
"/usr/local/grass6.5.svn-x86_64-unknown-linux-gnu-07_08_2010/etc/python/grass/script/core.py",
line 53, in __init__
    startupinfo, creationflags)
  File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
    raise child_exception
OSError: [Errno 8] Exec format error
Error in GUI startup. If necessary, please
report this error to the GRASS developers.
Switching to text mode now.
Hit RETURN to continue...

/usr/local/grass6.5.svn-x86_64-unknown-linux-gnu-07_08_2010/etc/Init.sh:
line 647:
/usr/local/grass6.5.svn-x86_64-unknown-linux-gnu-07_08_2010/etc/set_data:
cannot execute binary file

Now matter what I do, this same problem keeps on coming up.I don't know what
to do. I've got wxpython installed (for GRASS 7 it complained about now
having that - I reinstalled my system completely since I've last written and
hadn't installed it, but not it's on there with the development files so it
should be okay). Any ideas? I get the same error message with GRASS 7.

Any help would be greatly appreciated! Thanks a bunch in advance,
Daniel
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/GRASS-compiled-from-source-child-exception-tp5412414p5412414.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Hi there,

Alright, I think I figured out the problem: I've got a 32-bit system and not
a 64-bit one. My mistake.

Now I'm back to the old problem, though. I really need r.area because I'm
working with python and don't want to pipe awk commands through r.stats in
order to find out the area of my homogeneous areas and then have to
eliminate them with r.reclass. When I try to install r.area with g.extension
(put GRASS 6.4 back on my machine) I get the following problem in GRASS:

g.extension extension=r.area
svnurl=https://svn.osgeo.org/grass/grass-addons/ prefix=${GISBASE}
Fetching <r.area> from GRASS-Addons SVN (be patient)...
A r.area/main.c
A r.area/description.html
A r.area/Makefile
Checked out revision 43042.
mkdir -p /usr/src/packages/BUILD/grass-6.4.0RC6/bin.i686-pc-linux-gnu
mkdir -p
/usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/include/grass
mkdir -p /usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/lib
mkdir -p /usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/bin
mkdir -p /usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/etc
mkdir -p
/usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/driver
Compiling r.area...
main.c:19:23: fatal error: grass/gis.h: No such file or
directory
compilation terminated.
make: *** [OBJ.i686-pc-linux-gnu/main.o] Error 1
ERROR: Compilation failed, sorry. Please check above error messages.
mkdir -p
/usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/driver/db
mkdir -p /usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/fonts
test -d OBJ.i686-pc-linux-gnu || mkdir -p OBJ.i686-pc-linux-gnu
gcc -I/usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/include
-O2 -DPACKAGE=\""grassmods"\"
-I/usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/include -o
OBJ.i686-pc-linux-gnu/main.o -c main.c

If I try to compile it in a folder after changing the makefile's
MODULE_TOPDIR to point to /opt/grass/ I get the following error:
test -d OBJ.i686-pc-linux-gnu || mkdir -p OBJ.i686-pc-linux-gnu
gcc -I/usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/include
-O2 -DPACKAGE=\""grassmods"\"
-I/usr/src/packages/BUILD/grass-6.4.0RC6/dist.i686-pc-linux-gnu/include -o
OBJ.i686-pc-linux-gnu/main.o -c main.c
main.c:19:23: fatal error: grass/gis.h: No such file or directory
compilation terminated.
make: *** [OBJ.i686-pc-linux-gnu/main.o] Error 1

Does anybody know of a solution or any way to come further?
Thanks,
Daniel
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/GRASS-compiled-from-source-child-exception-tp5412414p5412721.html
Sent from the Grass - Users mailing list archive at Nabble.com.