GHC HEAD now needs extra tools to build libffi?

Thomas Jakway tjakway at nyu.edu
Tue Oct 3 20:36:48 UTC 2017


Not sure.  I ran `git submodule update --init --recursive` and git 
status says everything's up to date.  I'm on Ubuntu 16.10.


On 10/03/2017 02:17 PM, John Leo wrote:
> I pulled head this morning and built with no problems on a Mac.  I 
> wonder if you need to pull submodules as well (which I did) or if 
> you're missing some newly required dependency.
>
> John
>
> On Tue, Oct 3, 2017 at 10:55 AM, Thomas Jakway <tjakway at nyu.edu 
> <mailto:tjakway at nyu.edu>> wrote:
>
>     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 <http://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 <tel:%28223%29%20573-7040> 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
>>     <https://phabricator.haskell.org/D4053> and
>>     https://phabricator.haskell.org/D4054
>>     <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/
>>>     <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/
>>>     <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
>>>     <http://git.haskell.org/ghc.git/commit/e515c7f37be97e1c2ccc497ddd0a730e63ddfa82>
>>>     [2] http://lpaste.net/6716863452582772736
>>>     <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
>>>     <http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs>
>>
>>
>>     _______________________________________________
>>     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
>>     <http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs>
>
>
>     _______________________________________________
>     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
>     <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/db61994d/attachment-0001.html>


More information about the ghc-devs mailing list