Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#2869 closed bug (invalid)

Linking problem in S390 and ARM

Reported by: marcot Owned by:
Priority: normal Milestone:
Component: Compiler Version: 6.8.2
Keywords: Cc:
Operating System: Linux Architecture: arm
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

The bug is described in http://bugs.debian.org/482503 .

Change History (2)

comment:1 Changed 5 years ago by igloo

  • Difficulty set to Unknown
  • Resolution set to invalid
  • Status changed from new to closed

Looking at the buildlog here:
http://buildd.debian.org/fetch.cgi?&pkg=gtk2hs&ver=0.9.13-4&arch=s390&stamp=1227883724&file=log

the build goes:

mkdir -p gtk/Graphics/UI/Gtk/Abstract/Widget_split
/usr/bin/ghc -split-objs gtk/Graphics/UI/Gtk/Abstract/Widget.hs -o gtk/Graphics/UI/Gtk/Abstract/Widget.o
if test -f gtk/Graphics/UI/Gtk/Abstract/Widget.o; then :;
else find gtk/Graphics/UI/Gtk/Abstract/Widget_split/ -name '*.o'
         > gtk/Graphics/UI/Gtk/Abstract/Widget_split/list;
     /usr/bin/ld -r -x -o gtk/Graphics/UI/Gtk/Abstract/Widget.o @gtk/Graphics/UI/Gtk/Abstract/Widget_split/list;
fi
[...]
./mk/link-splitobjs.sh libHSgtk.a [...] gtk/Graphics/UI/Gtk/Abstract/Widget.o [...]

and link-splitobjs.sh looks like:

for obj in $@; do
        dir=`dirname ${obj}`/`basename ${obj} .o`_split
        if test -d ${dir}; then
                find ${dir}/ -name '*.o' >> ${lib}.list
        else
                echo ${obj} >> ${lib}.list
        fi
done

Debian's s390 is built with SplitObjs=NO, so the -split-objs flag is ignored. It looks like the gtk2hs build system copes with this when making the module .o file, by checking if the .o file already exists, but not when making the package archive, as that directory will always exist. So it will not include the object file in the archive.

I haven't actually done a build, so please reopen if you think I've missed something.

comment:2 Changed 5 years ago by duncan

Marco claims he's done a build of gtk2hs using ./configure --disable-split-objs and it still failed. Hopefully he'll post a link to that and re-open this ticket.

Note: See TracTickets for help on using tickets.