Public bug reported:

Build in resolute fails amd64 on arm64 as in
https://launchpadlibrarian.net/848173348/buildlog_ubuntu-resolute-
amd64.haskell-x11-xft_0.3.4-5_BUILDING.txt.gz

/usr/bin/x86_64-linux-gnu-ld.bfd: dist-ghc/build/Graphics/X11/Xrender.dyn_o: 
warning: relocation against 
`X11zmxftzm0zi3zi4zmLKn7zzFSfco8wSiZZbV2K0R_GraphicsziX11ziXrender_zdfStorableXRenderDirectFormat3_closure'
 in read-only section `.text'
/usr/bin/x86_64-linux-gnu-ld.bfd: dist-ghc/build/Graphics/X11/Xft.dyn_o: 
relocation R_X86_64_PC32 against symbol 
`X11zmxftzm0zi3zi4zmLKn7zzFSfco8wSiZZbV2K0R_GraphicsziX11ziXft_xftfontzumaxzuascent2_closure'
 can not be used when making a shared object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld.bfd: final link failed: bad value
collect2: error: ld returned 1 exit status
`x86_64-linux-gnu-gcc' failed in phase `Linker'. (Exit code: 1)
dh_auto_build: error: debian/hlibrary.setup build --builddir=dist-ghc returned 
exit code 1
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit 
status 2


It builds fine in Debian and the issue might be to the use of -optl-flto=auto 
in the Ubuntu toolchain. Building with LLVM instead of NCG works. It doesn't 
seem to be easy to override the lto flag so I've made the package build with 
LLVM for not to unblock the haskell transition

** Affects: haskell-x11-xft (Ubuntu)
     Importance: High
         Status: In Progress


** Tags: ftbfs resolute update-excuse

** Tags added: ftbfs resolute update-excuse

** Changed in: haskell-x11-xft (Ubuntu)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2144301

Title:
  haskell-x11-xft fails to build with GCH 9.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/haskell-x11-xft/+bug/2144301/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to