Opened 10 years ago

Closed 10 years ago

#1046 closed defect (worksforme)

Compile error in gui/wxpython using make -j8

Reported by: huhabla Owned by: grass-dev@…
Priority: minor Milestone: 7.0.0
Component: Compiling Version: svn-trunk
Keywords: make -j8, wxGUI Cc:
CPU: x86-32 Platform: Linux

Description

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

Change History (6)

comment:1 Changed 10 years ago by martinl

Component: wxGUICompiling

comment:2 in reply to:  description ; Changed 10 years ago by glynn

Replying to 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.

comment:3 in reply to:  2 ; Changed 10 years ago by huhabla

Replying to glynn:

Replying to 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

comment:4 in reply to:  3 ; Changed 10 years ago by glynn

Replying to 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:

comment:5 in reply to:  4 ; Changed 10 years ago by glynn

Hopefully fixed in 7.0 with r42077.

comment:6 in reply to:  5 Changed 10 years ago by huhabla

Resolution: worksforme
Status: newclosed

Replying to glynn:

Hopefully fixed in 7.0 with r42077.

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

Thanks Glynn

Note: See TracTickets for help on using tickets.