Opened 11 years ago

Closed 11 years ago

#2085 closed defect (duplicate)

diglib build failure on IBM s390x and ppc64

Reported by: hamish Owned by: grass-dev@…
Priority: normal Milestone: 6.4.4
Component: Compiling Version: 6.4.3
Keywords: s390x, ppc64, diglib Cc:
CPU: Other Platform: Linux

Description

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

Change History (7)

comment:1 by hamish, 11 years ago

Summary: build failure on s390sdiglib build failure on IBM s390x

comment:2 by hamish, 11 years ago

Component: LibVectorCompiling
Keywords: ppc64 diglib added
Summary: diglib build failure on IBM s390xdiglib build failure on IBM s390x and ppc64

the build fails in the same place on ppc64:

http://buildd.debian-ports.org/status/fetch.php?pkg=grass&arch=ppc64&ver=6.4.3-2&stamp=1380215993

less-common platform build-log summary page:

http://buildd.debian-ports.org/status/package.php?p=grass

thanks, Hamish

in reply to:  2 ; comment:3 by mmetz, 11 years ago

Replying to hamish:

the build fails in the same place on ppc64

It seems that r47992 needs to be backported (see also #1430).

in reply to:  3 comment:4 by hamish, 11 years ago

Resolution: duplicate
Status: newclosed

Replying to mmetz:

It seems that r47992 needs to be backported (see also #1430).

ok, continued there.

thanks, Hamish

comment:5 by glynn, 11 years ago

Replying to hamish:

less-common platform build-log summary page:

http://buildd.debian-ports.org/status/package.php?p=grass

Alpha seems to have problems with function pointers in shared libraries. This may just be an issue with the linker flags for shared libraries (it probably doesn't help that Shlib.make expects the variable to be called SHLIB_LDFLAGS when 6.x's Platform.make uses SHLIB_LD_FLAGS).

PPC dies running the external data format test program. No real idea why. "Killed" normally means it received SIGKILL, which can happen due to resource limits being exceeded, or for various other reasons (SIGKILL can't be caught, so it's used whenever the intention is to terminate a process rather than to merely notify it of something).

comment:6 by hamish, 11 years ago

Resolution: duplicate
Status: closedreopened

reopened for alpha

comment:7 by hamish, 11 years ago

Resolution: duplicate
Status: reopenedclosed

... & reclosed for alpha (see #2086)

Note: See TracTickets for help on using tickets.