[GRASS-dev] GRASS on Debian [was: Re: [GRASS-user] G7-gui and G64 add-on problems on Xubuntu (installation from grass/ubuntugis ppa)]
Hamish
hamish_b at yahoo.com
Thu Oct 31 15:31:07 PDT 2013
Hi,
thanks for re-posting the '@gprel relocation against dynamic symbol' linking error on Itanium Markus, right now I'm still only able to get online for a few minutes every two or three days.
cc'd to the DebianGIS list for a wider audience who might have come across this before.
see also the bug against grass in the debian system re. building on big-endian systems, MarkusM posted about the two checkins to trunk which already fixed it there, those two commits should be considered for backport, or at least into the debian/patches/ list after testing in devbr6. But it seems the latest package build isn't complaining about ppc64 and s390x, so..?
http://bugs.debian.org/728150
http://bugs.debian.org/672719
thanks,
Hamish
> On Friday, November 1, 2013 2:28 AM, Markus Neteler wrote:
> > On Thu, Oct 31, 2013 at 2:19 PM, Moritz Lennert
> <mlennert at club.worldonline.be> wrote:
> ...
>> A bit off-topic, but since we're discussing packaging on Debian &
> co:
>> Hamish, do you know what is going on for grass 6.4.3 ? I see that it
> hasn't
>> migrated to testing, yet, because of failure to build on ia64:
>>
>> http://release.debian.org/migration/testing.pl?package=grass
>>
>> Any idea what the trouble is ? In the build logs I see stuff like:
>>
>> Status: gcc -E -DPACKAGE="grasslibs"
> -DPACKAGE="grasslibs"
>> -I/«PKGBUILDDIR»/dist.ia64-unknown-linux-gnu/include -U __GNUC__ -dD
>> "-Dinline=" "-D__inline__="
> "-D__extension__=" "-D_Bool=uint8_t"
>> "-D__const=const" "-D__asm__(x)="
> "-D__asm(x)=" "-DCTYPESGEN=1"
>> /tmp/tmp3imMK2.h
>> Status: Parsing /tmp/tmp3imMK2.h
>> Error: /usr/include/GL/gl.h:109: Syntax error at '\n'
>> Error: /usr/include/GL/gl.h:112: Syntax error at '\n'
>
>
> This happens on all Linux platforms and is not an issue usually.
>
> https://buildd.debian.org/status/fetch.php?pkg=grass&arch=ia64&ver=6.4.3-2&stamp=1380196645
> shows
>
> GRASS GIS compilation log
> -------------------------
> Started compilation: Thu Sep 26 11:30:48 UTC 2013
> --
> Errors in:
> /«PKGBUILDDIR»/lib/display
> /«PKGBUILDDIR»/lib/db/dbmi_driver
> ...
> which is really
>
> make[4]: Entering directory `/«PKGBUILDDIR»/lib/display'
> test -d OBJ.ia64-unknown-linux-gnu || mkdir -p OBJ.ia64-unknown-linux-gnu
> gcc -I/«PKGBUILDDIR»/dist.ia64-unknown-linux-gnu/include -g -O2
> -Wformat -Werror=format-security -fPIE -D_FORTIFY_SOURCE=2
> -Wformat -Wformat-security -Werror=format-security
> -Wno-error=format-security -Wall -O -fPIC
> -DPACKAGE=\""grasslibs"\"
> -DPACKAGE=\""grasslibs"\"
> -I/«PKGBUILDDIR»/dist.ia64-unknown-linux-gnu/include -o
> OBJ.ia64-unknown-linux-gnu/cnversions.o -c cnversions.c
> ...
> gcc -I/«PKGBUILDDIR»/dist.ia64-unknown-linux-gnu/include -g -O2
> -Wformat -Werror=format-security -fPIE -D_FORTIFY_SOURCE=2
> -Wformat -Wformat-security -Werror=format-security
> -Wno-error=format-security -Wall -O -fPIC
>
> -DPACKAGE=\""grasslibs"\"
> -DPACKAGE=\""grasslibs"\"
> -I/«PKGBUILDDIR»/dist.ia64-unknown-linux-gnu/include -o
> OBJ.ia64-unknown-linux-gnu/window.o -c window.c
> gcc -shared -o
> /«PKGBUILDDIR»/dist.ia64-unknown-linux-gnu/lib/libgrass_display.6.4.3.so
> -L/«PKGBUILDDIR»/dist.ia64-unknown-linux-gnu/lib -Wl,--export-dynamic
> -Wl,-rpath-link,/«PKGBUILDDIR»/dist.ia64-unknown-linux-gnu/lib
> OBJ.ia64-unknown-linux-gnu/cnversions.o
> OBJ.ia64-unknown-linux-gnu/color_list.o
> OBJ.ia64-unknown-linux-gnu/draw.o OBJ.ia64-unknown-linux-gnu/draw2.o
> OBJ.ia64-unknown-linux-gnu/get_win.o
> OBJ.ia64-unknown-linux-gnu/ident_win.o
> OBJ.ia64-unknown-linux-gnu/list.o OBJ.ia64-unknown-linux-gnu/popup.o
> OBJ.ia64-unknown-linux-gnu/raster.o
> OBJ.ia64-unknown-linux-gnu/raster2.o
> OBJ.ia64-unknown-linux-gnu/setup.o OBJ.ia64-unknown-linux-gnu/symbol.o
> OBJ.ia64-unknown-linux-gnu/tran_colr.o
> OBJ.ia64-unknown-linux-gnu/window.o -lgrass_gis.6.4.3
> -lgrass_datetime.6.4.3 -lz -lgrass_raster.6.4.3
> -lgrass_pngdriver.6.4.3 -lgrass_driver.6.4.3 -lgrass_gis.6.4.3
> -lgrass_datetime.6.4.3 -lz -lfreetype -lgrass_gis.6.4.3
> -lgrass_datetime.6.4.3 -lz -lpng -lz -lm -lgrass_psdriver.6.4.3
> -lgrass_driver.6.4.3 -lgrass_gis.6.4.3 -lgrass_datetime.6.4.3 -lz
> -lfreetype -lgrass_gis.6.4.3 -lgrass_datetime.6.4.3 -lz
> -lgrass_driver.6.4.3 -lgrass_gis.6.4.3 -lgrass_datetime.6.4.3 -lz
> -lfreetype -lgrass_gis.6.4.3 -lgrass_datetime.6.4.3 -lz
> /usr/bin/ld: OBJ.ia64-unknown-linux-gnu/raster2.o: @gprel relocation
> against dynamic symbol D__overlay_mode
> /usr/bin/ld: final link failed: Nonrepresentable section on output
> collect2: ld returned 1 exit status
> make[4]: ***
> [/«PKGBUILDDIR»/dist.ia64-unknown-linux-gnu/lib/libgrass_display.6.4.3.so]
> Error 1
> make[4]: Leaving directory `/«PKGBUILDDIR»/lib/display'
>
> and so on
> ...
>
> gcc -I/«PKGBUILDDIR»/dist.ia64-unknown-linux-gnu/include -g -O2
> -Wformat -Werror=format-security -fPIE -D_FORTIFY_SOURCE=2
> -Wformat -Wformat-security -Werror=format-security
> -Wno-error=format-security -Wall -O -fPIC
> -DPACKAGE=\""grasslibs"\" -I../dbmi_base
> -DPACKAGE=\""grasslibs"\"
> -I/«PKGBUILDDIR»/dist.ia64-unknown-linux-gnu/include -o
> OBJ.ia64-unknown-linux-gnu/driver_state.o -c driver_state.c
> gcc -shared -o
> /«PKGBUILDDIR»/dist.ia64-unknown-linux-gnu/lib/libgrass_dbmidriver.6.4.3.so
> -L/«PKGBUILDDIR»/dist.ia64-unknown-linux-gnu/lib -Wl,--export-dynamic
> -Wl,-rpath-link,/«PKGBUILDDIR»/dist.ia64-unknown-linux-gnu/lib
> OBJ.ia64-unknown-linux-gnu/d_add_col.o
> OBJ.ia64-unknown-linux-gnu/d_bindupdate.o
> OBJ.ia64-unknown-linux-gnu/d_close_cur.o
> OBJ.ia64-unknown-linux-gnu/d_closedb.o
> OBJ.ia64-unknown-linux-gnu/d_create_idx.o
> OBJ.ia64-unknown-linux-gnu/d_create_tab.o
> OBJ.ia64-unknown-linux-gnu/d_createdb.o
> OBJ.ia64-unknown-linux-gnu/d_delete.o
> OBJ.ia64-unknown-linux-gnu/d_deletedb.o
> OBJ.ia64-unknown-linux-gnu/d_desc_table.o
> OBJ.ia64-unknown-linux-gnu/d_drop_col.o
> OBJ.ia64-unknown-linux-gnu/d_drop_index.o
> OBJ.ia64-unknown-linux-gnu/d_drop_tab.o
> OBJ.ia64-unknown-linux-gnu/d_execute.o
> OBJ.ia64-unknown-linux-gnu/d_fetch.o
> OBJ.ia64-unknown-linux-gnu/d_finddb.o
> OBJ.ia64-unknown-linux-gnu/d_insert.o
> OBJ.ia64-unknown-linux-gnu/d_list_idx.o
> OBJ.ia64-unknown-linux-gnu/d_list_tabs.o
> OBJ.ia64-unknown-linux-gnu/d_listdb.o
> OBJ.ia64-unknown-linux-gnu/d_mkdir.o
> OBJ.ia64-unknown-linux-gnu/d_opendb.o
> OBJ.ia64-unknown-linux-gnu/d_openinsert.o
> OBJ.ia64-unknown-linux-gnu/d_openselect.o
> OBJ.ia64-unknown-linux-gnu/d_openupdate.o
> OBJ.ia64-unknown-linux-gnu/d_priv.o
> OBJ.ia64-unknown-linux-gnu/d_rows.o
> OBJ.ia64-unknown-linux-gnu/d_update.o
> OBJ.ia64-unknown-linux-gnu/d_version.o
> OBJ.ia64-unknown-linux-gnu/driver.o
> OBJ.ia64-unknown-linux-gnu/driver_state.o -lgrass_dbmibase.6.4.3
> -lgrass_gis.6.4.3 -lgrass_datetime.6.4.3 -lz
> -lgrass_dbstubs.6.4.3 -lgrass_dbmibase.6.4.3 -lgrass_gis.6.4.3
> -lgrass_datetime.6.4.3 -lz -lgrass_gis.6.4.3
> -lgrass_datetime.6.4.3 -lz -lgrass_gis.6.4.3
> -lgrass_datetime.6.4.3 -lz
> /usr/bin/ld: OBJ.ia64-unknown-linux-gnu/driver.o: @gprel relocation
> against dynamic symbol db_driver_init
> /usr/bin/ld: OBJ.ia64-unknown-linux-gnu/driver.o: @gprel relocation
> against dynamic symbol db_driver_finish
> /usr/bin/ld: final link failed: Nonrepresentable section on output
> collect2: ld returned 1 exit status
> make[5]: ***
> [/«PKGBUILDDIR»/dist.ia64-unknown-linux-gnu/lib/libgrass_dbmidriver.6.4.3.so]
> Error 1
>
> ...
>
> In an old thread here there is a suggestion:
> http://software.intel.com/en-us/forums/topic/267748
> "On Itanium-based systems running Linux, when the -shared switch is
> used to create a Dynamic Shared Object (.so), there may be some
> relocation against dynamic symbol" messages generated during the ld
> phase
> ...
>
> To fix this problem, add the switches -i_dynamic and -nofor_main to
> the command line.
> "
>
> see also
> http://www.opendx.org/cgi-bin/forum/YaBB.pl?num=1139610671/1
>
> A Debian geek may know...
>
> Markus
>
More information about the grass-dev
mailing list