#2085: build failure on s390s
-----------------------+----------------------------------------------------
Reporter: hamish | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 6.4.4
Component: LibVector | Version: 6.4.3
Keywords: s390x | Platform: Linux
Cpu: Other |
-----------------------+----------------------------------------------------
Hi,
there was an error building the 6.4.3 Debian package on the IBM s390x
platform. Was a similar error seen in trunk during the recent AIX fixes?
It happens in the lib/vector/diglib/ make test.
full build log:
https://buildd.debian.org/status/fetch.php?pkg=grass&arch=s390x&ver=6.4.3-2&stamp=1380196757
{{{
...
gcc -I/build/buildd-grass_6.4.3-2-s390x-BE2gjV/grass-6.4.3/dist.s390x-ibm-
linux-gnu/include -g -O2 -fstack-protector --param=ssp-buffer-size=4
-Wformat -Werror=format-security -fPIE -fstack-protector --param ssp-
buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror
=format-security -Wno-error=format-security -Wall -O -fPIC
-DPACKAGE=\""grasslibs"\" -I/usr/include/gdal -I/usr/include
-DPACKAGE=\""grasslibs"\" -I/build/buildd-grass_6.4.3-2-s390x-
BE2gjV/grass-6.4.3/dist.s390x-ibm-linux-gnu/include -o OBJ.s390x-ibm-
linux-gnu/spindex_rw.o -c spindex_rw.c
spindex_rw.c: In function 'dig_Wr_spindx_head':
spindex_rw.c:38:5: warning: pointer targets in passing argument 1 of
'dig__fwrite_port_C' differ in signedness [-Wpointer-sign]
/build/buildd-grass_6.4.3-2-s390x-BE2gjV/grass-6.4.3/dist.s390x-ibm-linux-
gnu/include/grass/vect/dig_externs.h:64:5: note: expected 'char *' but
argument is of type 'unsigned char *'
spindex_rw.c:47:5: warning: pointer targets in passing argument 1 of
'dig__fwrite_port_C' differ in signedness [-Wpointer-sign]
/build/buildd-grass_6.4.3-2-s390x-BE2gjV/grass-6.4.3/dist.s390x-ibm-linux-
gnu/include/grass/vect/dig_externs.h:64:5: note: expected 'char *' but
argument is of type 'unsigned char *'
spindex_rw.c: In function 'dig_Rd_spindx_head':
spindex_rw.c:89:5: warning: pointer targets in passing argument 1 of
'dig__fread_port_C' differ in signedness [-Wpointer-sign]
/build/buildd-grass_6.4.3-2-s390x-BE2gjV/grass-6.4.3/dist.s390x-ibm-linux-
gnu/include/grass/vect/dig_externs.h:57:5: note: expected 'char *' but
argument is of type 'unsigned char *'
spindex_rw.c:136:5: warning: pointer targets in passing argument 1 of
'dig__fread_port_C' differ in signedness [-Wpointer-sign]
/build/buildd-grass_6.4.3-2-s390x-BE2gjV/grass-6.4.3/dist.s390x-ibm-linux-
gnu/include/grass/vect/dig_externs.h:57:5: note: expected 'char *' but
argument is of type 'unsigned char *'
spindex_rw.c: In function 'rtree_dump_branch':
spindex_rw.c:177:28: warning: cast from pointer to integer of different
size [-Wpointer-to-int-cast]
spindex_rw.c: In function 'rtree_write_branch':
spindex_rw.c:232:6: warning: cast from pointer to integer of different
size [-Wpointer-to-int-cast]
spindex_rw.c: In function 'rtree_read_branch':
spindex_rw.c:297:13: warning: cast to pointer from integer of different
size [-Wint-to-pointer-cast]
gcc -I/build/buildd-grass_6.4.3-2-s390x-BE2gjV/grass-6.4.3/dist.s390x-ibm-
linux-gnu/include -g -O2 -fstack-protector --param=ssp-buffer-size=4
-Wformat -Werror=format-security -fPIE -fstack-protector --param ssp-
buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror
=format-security -Wno-error=format-security -Wall -O -fPIC
-DPACKAGE=\""grasslibs"\" -I/usr/include/gdal -I/usr/include
-DPACKAGE=\""grasslibs"\" -I/build/buildd-grass_6.4.3-2-s390x-
BE2gjV/grass-6.4.3/dist.s390x-ibm-linux-gnu/include -o OBJ.s390x-ibm-
linux-gnu/struct_alloc.o -c struct_alloc.c
gcc -I/build/buildd-grass_6.4.3-2-s390x-BE2gjV/grass-6.4.3/dist.s390x-ibm-
linux-gnu/include -g -O2 -fstack-protector --param=ssp-buffer-size=4
-Wformat -Werror=format-security -fPIE -fstack-protector --param ssp-
buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror
=format-security -Wno-error=format-security -Wall -O -fPIC
-DPACKAGE=\""grasslibs"\" -I/usr/include/gdal -I/usr/include
-DPACKAGE=\""grasslibs"\" -I/build/buildd-grass_6.4.3-2-s390x-
BE2gjV/grass-6.4.3/dist.s390x-ibm-linux-gnu/include -o OBJ.s390x-ibm-
linux-gnu/type.o -c type.c
gcc -I/build/buildd-grass_6.4.3-2-s390x-BE2gjV/grass-6.4.3/dist.s390x-ibm-
linux-gnu/include -g -O2 -fstack-protector --param=ssp-buffer-size=4
-Wformat -Werror=format-security -fPIE -fstack-protector --param ssp-
buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror
=format-security -Wno-error=format-security -Wall -O -fPIC
-DPACKAGE=\""grasslibs"\" -I/usr/include/gdal -I/usr/include
-DPACKAGE=\""grasslibs"\" -I/build/buildd-grass_6.4.3-2-s390x-
BE2gjV/grass-6.4.3/dist.s390x-ibm-linux-gnu/include -o OBJ.s390x-ibm-
linux-gnu/update.o -c update.c
gcc -shared -o /build/buildd-grass_6.4.3-2-s390x-BE2gjV/grass-6.4.3/dist
.s390x-ibm-linux-gnu/lib/libgrass_dig2.6.4.3.so -L/build/buildd-
grass_6.4.3-2-s390x-BE2gjV/grass-6.4.3/dist.s390x-ibm-linux-gnu/lib -Wl
,--export-dynamic -Wl,-rpath-link,/build/buildd-grass_6.4.3-2-s390x-
BE2gjV/grass-6.4.3/dist.s390x-ibm-linux-gnu/lib OBJ.s390x-ibm-linux-
gnu/allocation.o OBJ.s390x-ibm-linux-gnu/angle.o OBJ.s390x-ibm-linux-
gnu/box.o OBJ.s390x-ibm-linux-gnu/cindex.o OBJ.s390x-ibm-linux-
gnu/cindex_rw.o OBJ.s390x-ibm-linux-gnu/file.o OBJ.s390x-ibm-linux-
gnu/frmt.o OBJ.s390x-ibm-linux-gnu/head.o OBJ.s390x-ibm-linux-gnu/inside.o
OBJ.s390x-ibm-linux-gnu/linecros.o OBJ.s390x-ibm-linux-gnu/line_dist.o OBJ
.s390x-ibm-linux-gnu/list.o OBJ.s390x-ibm-linux-gnu/plus.o OBJ.s390x-ibm-
linux-gnu/plus_area.o OBJ.s390x-ibm-linux-gnu/plus_line.o OBJ.s390x-ibm-
linux-gnu/plus_node.o OBJ.s390x-ibm-linux-gnu/plus_struct.o OBJ.s390x-ibm-
linux-gnu/poly.o OBJ.s390x-ibm-linux-gnu/port_init.o OBJ.s390x-ibm-linux-
gnu/portable.o OBJ.s390x-ibm-linux-gnu/prune.o OBJ.s390x-ibm-linux-
gnu/spindex.o OBJ.s390x-ibm-linux-gnu/spindex_rw.o OBJ.s390x-ibm-linux-
gnu/struct_alloc.o OBJ.s390x-ibm-linux-gnu/type.o OBJ.s390x-ibm-linux-
gnu/update.o -lgrass_gis.6.4.3 -lgrass_datetime.6.4.3 -lz
-lgrass_rtree.6.4.3 -lm
(cd /build/buildd-grass_6.4.3-2-s390x-BE2gjV/grass-6.4.3/dist.s390x-ibm-
linux-gnu/lib; ln -f -s libgrass_dig2.6.4.3.so /build/buildd-grass_6.4.3-2
-s390x-BE2gjV/grass-6.4.3/dist.s390x-ibm-linux-gnu/lib/libgrass_dig2.so)
/usr/bin/make OBJ.s390x-ibm-linux-gnu/test
make[6]: Entering directory `/build/buildd-grass_6.4.3-2-s390x-
BE2gjV/grass-6.4.3/lib/vector/diglib'
echo "==============TEST============="
==============TEST=============
gcc -L/build/buildd-grass_6.4.3-2-s390x-BE2gjV/grass-6.4.3/dist.s390x-ibm-
linux-gnu/lib -Wl,--export-dynamic -Wl,-rpath-link,/build/buildd-
grass_6.4.3-2-s390x-BE2gjV/grass-6.4.3/dist.s390x-ibm-linux-gnu/lib -g
-O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-
security -fPIE -fstack-protector --param ssp-buffer-size=4
-D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security
-Wno-error=format-security -Wall -O -I/usr/include/gdal -I/usr/include
-I/build/buildd-grass_6.4.3-2-s390x-BE2gjV/grass-6.4.3/dist.s390x-ibm-
linux-gnu/include -o OBJ.s390x-ibm-linux-gnu/test test.c
-lgrass_dig2.6.4.3 -lgrass_gis.6.4.3 -lgrass_datetime.6.4.3 -lz
-lgrass_rtree.6.4.3 -lgrass_rtree.6.4.3 \
-lgrass_gis.6.4.3 -lgrass_datetime.6.4.3
-lz -lgrass_datetime.6.4.3 -lm -lz
cd OBJ.s390x-ibm-linux-gnu; LD_LIBRARY_PATH=":/build/buildd-grass_6.4.3-2
-s390x-BE2gjV/grass-6.4.3/dist.s390x-ibm-linux-gnu/lib" ./test; diff
./test.tmp ../test.ok
Killed
make[6]: *** [OBJ.s390x-ibm-linux-gnu/test] Error 2
make[5]: *** [default] Error 2
Binary files ./test.tmp and ../test.ok differ
make[6]: Leaving directory `/build/buildd-grass_6.4.3-2-s390x-
BE2gjV/grass-6.4.3/lib/vector/diglib'
make[5]: Leaving directory `/build/buildd-grass_6.4.3-2-s390x-
BE2gjV/grass-6.4.3/lib/vector/diglib'
/usr/bin/make -C Vlib || echo /build/buildd-grass_6.4.3-2-s390x-
BE2gjV/grass-6.4.3/lib/vector/Vlib >> /build/buildd-grass_6.4.3-2-s390x-
BE2gjV/grass-6.4.3/error.log
...
}}}
or was the build system just out of RAM? It was happening in 6.4.1 too,
see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=672719
thanks,
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2085>
GRASS GIS <http://grass.osgeo.org>