GHC HEAD now needs extra tools to build libffi?

Thomas Jakway tjakway at nyu.edu
Tue Oct 3 17:55:29 UTC 2017


Anyone else getting linker errors?

/home/thomas/git/ghc-new/libraries/ghci/dist-install/build/libHSghci-8.3-ghc8.3.
20171003.so: error: undefined reference to 'ffi_type_uint64'
chmod +x inplace/bin/runghc
/home/thomas/git/ghc-new/libraries/ghci/dist-install/build/libHSghci-8.3-ghc8.3.
20171003.so: error: undefined reference to 'ffi_type_uint32'
/home/thomas/git/ghc-new/libraries/ghci/dist-install/build/libHSghci-8.3-ghc8.3.
20171003.so: error: undefined reference to 'ffi_type_uint16'
/home/thomas/git/ghc-new/libraries/ghci/dist-install/build/libHSghci-8.3-ghc8.3.
20171003.so: error: undefined reference to 'ffi_type_uint8'
/home/thomas/git/ghc-new/libraries/ghci/dist-install/build/libHSghci-8.3-ghc8.3.
20171003.so: error: undefined reference to 'ffi_type_sint64'
/home/thomas/git/ghc-new/libraries/ghci/dist-install/build/libHSghci-8.3-ghc8.3.
20171003.so: error: undefined reference to 'ffi_type_sint32'
/home/thomas/git/ghc-new/libraries/ghci/dist-install/build/libHSghci-8.3-ghc8.3.
20171003.so: error: undefined reference to 'ffi_type_sint16'
/home/thomas/git/ghc-new/libraries/ghci/dist-install/build/libHSghci-8.3-ghc8.3.
20171003.so: error: undefined reference to 'ffi_type_sint8'
/home/thomas/git/ghc-new/libraries/ghci/dist-install/build/libHSghci-8.3-ghc8.3.
20171003.so: error: undefined reference to 'ffi_type_double'
/home/thomas/git/ghc-new/libraries/ghci/dist-install/build/libHSghci-8.3-ghc8.3.
20171003.so: error: undefined reference to 'ffi_type_float'
/home/thomas/git/ghc-new/libraries/ghci/dist-install/build/libHSghci-8.3-ghc8.3.
20171003.so: error: undefined reference to 'ffi_type_pointer'
/home/thomas/git/ghc-new/libraries/ghci/dist-install/build/libHSghci-8.3-ghc8.3.
20171003.so: error: undefined reference to 'ffi_type_void'
/home/thomas/git/ghc-new/libraries/ghci/dist-install/build/libHSghci-8.3-ghc8.3.
20171003.so: error: undefined reference to 'ffi_prep_cif'
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
iserv/ghc.mk:108: recipe for target 
'iserv/stage2_dyn/build/tmp/ghc-iserv-dyn' f
ailed
make[1]: *** [iserv/stage2_dyn/build/tmp/ghc-iserv-dyn] Error 1
make[1]: *** Waiting for unfinished jobs....
<<ghc: 2235737040 bytes, 225 GCs, 21703308/57027464 avg/max bytes 
residency (8 s
amples), 150M in use, 0.000 INIT (0.000 elapsed), 1.432 MUT (1.681 
elapsed), 0.5
76 GC (0.651 elapsed) :ghc>>
Makefile:122: recipe for target 'all' failed
make: *** [all] Error 2


This is after running

make clean && make distclean && find . -name "*.o" -type f -delete && 
find . -name "*.hi" -type f -delete

then

./boot && ./configure && make -j5

(ghc-new is not a new checkout, this error is happening on a branch I'm 
working on, but one that doesn't touch the FFI)

On 10/01/2017 07:09 PM, Moritz Angermann wrote:
> I hope this will be fixed with:
> https://phabricator.haskell.org/D4053 and 
> https://phabricator.haskell.org/D4054
>
> Sent from my iPhone
>
> On 2 Oct 2017, at 6:33 AM, Ryan Scott <ryan.gl.scott at gmail.com 
> <mailto:ryan.gl.scott at gmail.com>> wrote:
>
>> Trying to build a fresh copy of GHC HEAD (at commit [1]) today failed
>> for me with this error: [2]
>>
>>    /u/rgscott/Software/ghc4/libffi/build/missing: line 81: makeinfo:
>> command not found
>>    WARNING: 'makeinfo' is missing on your system.
>>             You should only need it if you modified a '.texi' file, or
>>             any other file indirectly affecting the aspect of the manual.
>>             You might want to install the Texinfo package:
>>             <http://www.gnu.org/software/texinfo/>
>>             The spurious makeinfo call might also be the consequence of
>>             using a buggy 'make' (AIX, DU, IRIX), in which case you might
>>             want to install GNU make:
>>             <http://www.gnu.org/software/make/>
>>
>> On my Ubuntu machine, I was able to work around the issue by running:
>>
>>    apt-get install texinfo
>>
>> But I'm not sure if the texinfo requirement was expected or an
>> unintended side effect of recent libffi changes. Do you know what's
>> happening here Moritz?
>>
>> Best,
>> Ryan S.
>> -----
>> [1] 
>> http://git.haskell.org/ghc.git/commit/e515c7f37be97e1c2ccc497ddd0a730e63ddfa82
>> [2] http://lpaste.net/6716863452582772736
>> _______________________________________________
>> ghc-devs mailing list
>> ghc-devs at haskell.org <mailto:ghc-devs at haskell.org>
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>
>
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20171003/331f2a26/attachment-0001.html>


More information about the ghc-devs mailing list