Opened 9 years ago

Closed 9 years ago

Last modified 9 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: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


The bug is described in .

Change History (2)

comment:1 Changed 9 years ago by igloo

difficulty: Unknown
Resolution: invalid
Status: newclosed

Looking at the buildlog here:

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;
./mk/ libHSgtk.a [...] gtk/Graphics/UI/Gtk/Abstract/Widget.o [...]

and looks like:

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

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 9 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.