libgrass_iostream build problem...

8 messages Options
Embed this post
Permalink
cgnicholas

libgrass_iostream build problem...

Reply Threaded More More options
Print post
Permalink
Hi list -

I was trying to run r.terraflow after a clean build of 6.4 (LOVE the
GUI!!) , and it wasn't there...so went into raster/r.terraflow and tried
to make it. it is complaining because libgrass_iostream didn't get built.

Any --configure flags I should be setting?

I'm just building with:

./configure  --with-gdal  --with-tcktk-libs=/usr/lib/tk8.4
--with-tcltk-includes=/usr/include/tcl8.4/ --enable-largefile

thanks in advance!
Chris Nicholas

_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
Martin Landa

Re: libgrass_iostream build problem...

Reply Threaded More More options
Print post
Permalink
Hi,

2009/10/9  <[hidden email]>:
> GUI!!) , and it wasn't there...so went into raster/r.terraflow and tried
> to make it. it is complaining because libgrass_iostream didn't get built.

error log could be useful otherwise it's hard to guess what is wrong...

Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa
_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
cgnicholas

Re: libgrass_iostream build problem...

Reply Threaded More More options
Print post
Permalink
hmmm ... no errors; just doesn't look like it's even entering that dir,
and when I manually to build, nothing happens...sort of like it's #ifdef'd
out...hoping not to got on Makefile safari, but...whatever it takes!

Chris
------------------------------------------

cgn@maps:~/src/grass-6.4.0RC5$ cat error.log

GRASS GIS compilation log
-------------------------
Started compilation: Fri Oct  9 15:19:08 EDT 2009
--
Errors in:
No errors detected.
--
Finished compilation: Fri Oct  9 15:19:45 EDT 2009
cgn@maps:~/src/grass-6.4.0RC5$

cgn@maps:~/src/grass-6.4.0RC5$ cd lib/iostream
cgn@maps:~/src/grass-6.4.0RC5/lib/iostream$ make
cgn@maps:~/src/grass-6.4.0RC5/lib/iostream$ echo "nothing happened.. :-( "
nothing happened.. :-(

cgn@maps:~/src/grass-6.4.0RC5/lib/iostream$ ls
ami_stream.cc  Makefile            mm.cc        rtimer.cc
chrismake      minmaxheap_test.cc  mm_utils.cc

cgn@maps:~/src/grass-6.4.0RC5/lib/iostream$ cat Makefile
MODULE_TOPDIR = ../..

LIB_OBJS = mm.o mm_utils.o ami_stream.o rtimer.o
LIB_NAME = $(IOSTREAM_LIBNAME)

include $(MODULE_TOPDIR)/include/Make/Lib.make

ifneq ($(USE_LARGEFILES),)
        EXTRA_CFLAGS = -D_FILE_OFFSET_BITS=64
endif

ifneq ($(strip $(CXX)),)
default: stlib
else
default:
endif
cgn@maps:~/src/grass-6.4.0RC5/lib/iostream$



_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
Martin Landa

Re: libgrass_iostream build problem...

Reply Threaded More More options
Print post
Permalink
Ciao,

2009/10/10  <[hidden email]>:

[...]

> ifneq ($(strip $(CXX)),)
> default: stlib
> else
> default:
> endif

right, you need to configure GRASS with

--with-cxx

since r.terraflow is a C++ module.

Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa
_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
cgnicholas

Re: libgrass_iostream build problem...

Reply Threaded More More options
Print post
Permalink
VOILA!!!!!!!!!!!

thanks!!!

Chris
(playing with the ASTER 30m DEMs ... and now terraflow!! ... time to learn
how to make a time-series, etc)
-------------------------------------------

> Ciao,
>
> 2009/10/10  <[hidden email]>:
>
> [...]
>
>> ifneq ($(strip $(CXX)),)
>> default: stlib
>> else
>> default:
>> endif
>
> right, you need to configure GRASS with
>
> --with-cxx
>
> since r.terraflow is a C++ module.
>
> Martin
>
> --
> Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa
>


_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
cgnicholas

Re: libgrass_iostream build problem...

Reply Threaded More More options
Print post
Permalink
In reply to this post by Martin Landa
Hmmm - perhaps not so fast...my tmp area is an ext3 file system, and I
compiled everything with --largefiles, etc....hmmmm

Chris
--------------------------------------

                 FILL: 20.28G (21780347904) [388934784 elements, 56B each]

file=/home/cgn/tmp//STREAM_EoACCO:cannot read!: Bad address
r.terraflow:
/home/cgn/src/grass-6.4.0RC5/dist.i686-pc-linux-gnu/include/grass/iostream/ami_sort_impl.h:91:
size_t makeRun_Block(AMI_STREAM<T>*, T*, unsigned int, Compare*) [with T =
keyvalue<int>, Compare = keyCmpKeyvalueType<int>]: Assertion `err ==
AMI_ERROR_NO_ERROR || err == AMI_ERROR_END_OF_STREAM' failed.

cgn@maps:~$ cd tmp
cgn@maps:~/tmp$ df -k .
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1            470148268  77855996 368410048  18% /
cgn@maps:~/tmp$
cgn@maps:~/tmp$ ls
STREAM_cYvU25  STREAM_J2CrzX  STREAM_TXsdtt  STREAM_Wgw7I0
STREAM_EoACCO  STREAM_tFmbMn  STREAM_UxXNFF  STREAM_WH31Yx
cgn@maps:~/tmp$ ls -la
total 6604764
drwxr-xr-x  2 cgn cgn        4096 2009-10-09 19:29 .
drwxr-xr-x 65 cgn root       4096 2009-10-09 19:11 ..
-rw-------  1 cgn cgn  3642522012 2009-10-09 19:29 STREAM_cYvU25
-rw-------  1 cgn cgn     2644176 2009-10-09 19:29 STREAM_EoACCO
-rw-------  1 cgn cgn  1555739136 2009-10-09 19:13 STREAM_J2CrzX
-rw-------  1 cgn cgn  1555739136 2009-10-09 19:29 STREAM_tFmbMn
-rw-------  1 cgn cgn           0 2009-10-09 19:29 STREAM_TXsdtt
-rw-------  1 cgn cgn           0 2009-10-09 19:13 STREAM_UxXNFF
-rw-------  1 cgn cgn           0 2009-10-09 19:29 STREAM_Wgw7I0
-rw-------  1 cgn cgn           0 2009-10-09 19:29 STREAM_WH31Yx


_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
cgnicholas

Re: libgrass_iostream build problem...

Reply Threaded More More options
Print post
Permalink
OK - here are the particular...and thanks again  folks for even looking at
this foo!!!

when the console output sez: "Will need at least 40.57G (43560695808)
space available in /home/cgn/tmp/ " that should not be a problem
whatsoever....there's 10x there available...

cgn@maps:~/tmp$ pwd
/home/cgn/tmp
cgn@maps:~/tmp$ df -k .
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1            470148268  84561668 361704376  19% /
cgn@maps:~/tmp$

So here's my region - the island of Hispanola, in UTM, using 30m ASTER
DEMs... (all this is just a warm-up for the inevitable hurricane and
subsequent flooding...)

projection: 1 (UTM)
south:      1879551.69903301
east:       1246672.22364716
ewres:      29.67282656
rows:       15456
cols:       25164
cells:      388934784
nsres:      29.67282656
west:       499985.21620627
zone:       0
datum:      wgs84
ellipsoid:  a=6378137 es=0.006694379990141316
north:      2338174.90627377
----------------------------------------------------------------
here's the command-line shtuff:

GRASS 6.4.0RC5 (Haiti):~/public_html/maps/Haiti > r.terraflow
elevation=DEM@OCHA filled=flooded direction=flow_direction
swatershed=sink_watershed accumulation=flow_accum
tci=topo_convergence_index d8cut=infinity memory=1000
STREAM_DIR=/home/cgn/tmp/ stats=stats.out --overwrite memory=1200
WARNING: raster DEM is of type CELL_TYPE --you should use r.terraflow.short
STREAM temporary files in /home/cgn/tmp/  (THESE INTERMEDIATE STREAMS WILL
NOT BE DELETED IN CASE OF ABNORMAL TERMINATION OF THE PROGRAM. TO SAVE
SPACE PLEASE DELETE THESE FILES MANUALLY!)
file stats.out exists - renaming.
MFD flow direction
D8CUT=999999986991104.000000
Memory size: 1000.00M (1048576000) bytes
Memory manager registering memory in MM_IGNORE_MEMORY_EXCEEDED mode.
total elements=388934784, nodata elements=303543501
largest temporary files:
FILL: 20.28G (21780347904) [388934784 elements, 56B each]
FLOW: 6.36G (6831302640) [85391283 elements, 80B each]
Will need at least 40.57G (43560695808) space available in /home/cgn/tmp/
------------------------------
COMPUTING FLOW DIRECTIONS
classifying nodata (inner & boundary)
file=/home/cgn/tmp//STREAM_5Xwb5K:cannot read!: Bad address
r.terraflow:
/home/cgn/src/grass-6.4.0RC5/dist.i686-pc-linux-gnu/include/grass/iostream/ami_sort_impl.h:91:
size_t makeRun_Block(AMI_STREAM<T>*, T*, unsigned int, Compare*) [with T =
keyvalue<int>, Compare = keyCmpKeyvalueType<int>]: Assertion `err ==
AMI_ERROR_NO_ERROR || err == AMI_ERROR_END_OF_STREAM' failed.
Aborted (core dumped)
[Raster MASK present]
GRASS 6.4.0RC5 (Haiti):~/public_html/maps/Haiti >



_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev
Glynn Clements

Re: libgrass_iostream build problem...

Reply Threaded More More options
Print post
Permalink

[hidden email] wrote:

> file=/home/cgn/tmp//STREAM_5Xwb5K:cannot read!: Bad address
> r.terraflow:
> /home/cgn/src/grass-6.4.0RC5/dist.i686-pc-linux-gnu/include/grass/iostream/ami_sort_impl.h:91:
> size_t makeRun_Block(AMI_STREAM<T>*, T*, unsigned int, Compare*) [with T =
> keyvalue<int>, Compare = keyCmpKeyvalueType<int>]: Assertion `err ==
> AMI_ERROR_NO_ERROR || err == AMI_ERROR_END_OF_STREAM' failed.
> Aborted (core dumped)

Known bug (#775); see:

        http://trac.osgeo.org/grass/ticket/775

--
Glynn Clements <[hidden email]>
_______________________________________________
grass-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-dev