[GRASS-dev] [GRASS GIS] #1046: Compile error in gui/wxpython using make -j8

#1046: Compile error in gui/wxpython using make -j8
-----------------------------+----------------------------------------------
Reporter: huhabla | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: minor | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: make -j8, wxGUI | Platform: Linux
      Cpu: x86-32 |
-----------------------------+----------------------------------------------
Using "make -j8" for compilation produces and error in gui/wxpython.
Running make again solves the problem. Maybe a dependency issue?

{{{
make[1]: Leaving directory `/home/soeren/src/grass_dev/grass_trunk'
GRASS GIS compilation log
-------------------------
Started compilation: Mi 28. Apr 12:29:36 CEST 2010
--
Errors in:
/home/soeren/src/grass_dev/grass_trunk/gui/wxpython
--
In case of errors please change into the directory with error and run
'make'.
If you get multiple errors, you need to deal with them in the order they
appear in the error log. If you get an error building a library, you will
also get errors from anything which uses the library.
--
Finished compilation: Mi 28. Apr 12:30:38 CEST 2010
make: *** [default] Fehler 1
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1046&gt;
GRASS GIS <http://grass.osgeo.org>

#1046: Compile error in gui/wxpython using make -j8
------------------------+---------------------------------------------------
  Reporter: huhabla | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: minor | Milestone: 7.0.0
Component: Compiling | Version: svn-trunk
Resolution: | Keywords: make -j8, wxGUI
  Platform: Linux | Cpu: x86-32
------------------------+---------------------------------------------------
Changes (by martinl):

  * component: wxGUI => Compiling

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1046#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1046: Compile error in gui/wxpython using make -j8
------------------------+---------------------------------------------------
  Reporter: huhabla | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: minor | Milestone: 7.0.0
Component: Compiling | Version: svn-trunk
Resolution: | Keywords: make -j8, wxGUI
  Platform: Linux | Cpu: x86-32
------------------------+---------------------------------------------------
Comment (by glynn):

Replying to [ticket:1046 huhabla]:
> Using "make -j8" for compilation produces and error in gui/wxpython.
Running make again solves the problem. Maybe a dependency issue?

Please provide the error message.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1046#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1046: Compile error in gui/wxpython using make -j8
------------------------+---------------------------------------------------
  Reporter: huhabla | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: minor | Milestone: 7.0.0
Component: Compiling | Version: svn-trunk
Resolution: | Keywords: make -j8, wxGUI
  Platform: Linux | Cpu: x86-32
------------------------+---------------------------------------------------
Comment (by huhabla):

Replying to [comment:2 glynn]:
> Replying to [ticket:1046 huhabla]:
> > Using "make -j8" for compilation produces and error in gui/wxpython.
Running make again solves the problem. Maybe a dependency issue?
>
> Please provide the error message.

Here it is:

{{{
GISBASE="/1/gebbert/src/grass_dev/grass_trunk/dist.i686-pc-linux-gnu" \
         python gui_modules/menudata.py > menustrings.py
python -m py_compile /1/gebbert/src/grass_dev/grass_trunk/dist.i686-pc-
linux-gnu/etc/gui/wxpython/gui_modules/globalvar.py
Traceback (most recent call last):
   File "gui_modules/menudata.py", line 40, in <module>
     import globalvar
   File
"/1/gebbert/src/grass_dev/grass_trunk/gui/wxpython/gui_modules/globalvar.py",
line 25, in <module>
     import grass.script as grass
ImportError: No module named grass.script
make[3]: *** [menustrings.py] Error 1
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1046#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#1046: Compile error in gui/wxpython using make -j8
------------------------+---------------------------------------------------
  Reporter: huhabla | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: minor | Milestone: 7.0.0
Component: Compiling | Version: svn-trunk
Resolution: | Keywords: make -j8, wxGUI
  Platform: Linux | Cpu: x86-32
------------------------+---------------------------------------------------
Comment (by glynn):

Replying to [comment:3 huhabla]:
{{{
     import grass.script as grass
ImportError: No module named grass.script
}}}

I think that it needs this:
{{{
--- gui/wxpython/Makefile (revision 41749)
+++ gui/wxpython/Makefile (working copy)
@@ -34,6 +34,7 @@

  menustrings.py: gui_modules/menudata.py xml/menudata.xml
         GISBASE="$(GISBASE)" \
+ PYTHONPATH="$(GISBASE)/etc/python" \
         $(PYTHON) $< > $@

  #doxygen:
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1046#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#1046: Compile error in gui/wxpython using make -j8
------------------------+---------------------------------------------------
  Reporter: huhabla | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: minor | Milestone: 7.0.0
Component: Compiling | Version: svn-trunk
Resolution: | Keywords: make -j8, wxGUI
  Platform: Linux | Cpu: x86-32
------------------------+---------------------------------------------------
Comment (by glynn):

Hopefully fixed in 7.0 with r42077.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1046#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#1046: Compile error in gui/wxpython using make -j8
-------------------------+--------------------------------------------------
  Reporter: huhabla | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: closed
  Priority: minor | Milestone: 7.0.0
Component: Compiling | Version: svn-trunk
Resolution: worksforme | Keywords: make -j8, wxGUI
  Platform: Linux | Cpu: x86-32
-------------------------+--------------------------------------------------
Changes (by huhabla):

  * status: new => closed
  * resolution: => worksforme

Comment:

Replying to [comment:5 glynn]:
>
> Hopefully fixed in 7.0 with r42077.

Works for me with make -j2, make -j4 and make -j8.

Thanks Glynn

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1046#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>