#2869: Linking problem in S390 and ARM
-------------------------+--------------------------------------------------
    Reporter:  marcot    |        Owner:         
        Type:  bug       |       Status:  closed 
    Priority:  normal    |    Milestone:         
   Component:  Compiler  |      Version:  6.8.2  
    Severity:  normal    |   Resolution:  invalid
    Keywords:            |   Difficulty:  Unknown
    Testcase:            |           Os:  Linux  
Architecture:  arm       |  
-------------------------+--------------------------------------------------
Changes (by igloo):

  * status:  new => closed
  * difficulty:  => Unknown
  * resolution:  => invalid

Comment:

 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.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2869#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to