new build system build fails on Solaris/x86

Hello, I attempt to test new build system on solaris/x86 platform and after applying patch from here: http://hackage.haskell.org/trac/ghc/ticket/2951 I've been able to boot and configure the tree. On the other hand build alone fails with: checking for unistd.h... yes checking editline/readline.h usability... no checking editline/readline.h presence... no checking for editline/readline.h... no checking editline/editline.h usability... no checking editline/editline.h presence... no checking for editline/editline.h... no checking readline/readline.h usability... no checking readline/readline.h presence... no checking for readline/readline.h... no checking for sign of read_history result on error... negative checking for rl_completion_matches... no checking for completion_matches... no configure: error: editline not found, so this package cannot be built See `config.log' for more details. gmake[1]: *** [libraries/editline/dist-install/package-data.mk] Error 1 gmake: *** [all] Error 2 karel@silence:/tmp/ghc-new-build-system$ Do you have any idea how to proceed or what exactly to install? Thanks, Karel

How did you call gmake? editline is not needed for ghc. When building the libraries with the stage1 compiler I get: ... && touch stamp/configure.library.build-profiling-splitting.editline || touch editline/unbuildable Configuring editline-0.2.1.0... checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for tputs in -lncurses... yes checking for el_init... no checking for readline... no checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/local/bin/grep checking for egrep... /usr/local/bin/grep -E checking for ANSI C header files... no checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking editline/readline.h usability... no checking editline/readline.h presence... no checking for editline/readline.h... no checking editline/editline.h usability... no checking editline/editline.h presence... no checking for editline/editline.h... no checking readline/readline.h usability... yes checking readline/readline.h presence... yes checking for readline/readline.h... yes checking for sign of read_history result on error... negative checking for rl_completion_matches... no checking for completion_matches... no configure: error: editline not found, so this package cannot be built See `config.log' for more details. if ifBuildable/ifBuildable /export/local2/home/maeder/haskell/ghc-6.10.1/packages editline; then \ cd editline && .... I've no idea what your patch changes. Cheers Christian Karel Gardas wrote:
Hello,
I attempt to test new build system on solaris/x86 platform and after applying patch from here: http://hackage.haskell.org/trac/ghc/ticket/2951 I've been able to boot and configure the tree. On the other hand build alone fails with:
checking for unistd.h... yes checking editline/readline.h usability... no checking editline/readline.h presence... no checking for editline/readline.h... no checking editline/editline.h usability... no checking editline/editline.h presence... no checking for editline/editline.h... no checking readline/readline.h usability... no checking readline/readline.h presence... no checking for readline/readline.h... no checking for sign of read_history result on error... negative checking for rl_completion_matches... no checking for completion_matches... no configure: error: editline not found, so this package cannot be built See `config.log' for more details. gmake[1]: *** [libraries/editline/dist-install/package-data.mk] Error 1 gmake: *** [all] Error 2 karel@silence:/tmp/ghc-new-build-system$
Do you have any idea how to proceed or what exactly to install?
Thanks, Karel

Hello, I need to double check: I'm talking here about new build system. I've invoked simple `gmake'. Also your builds is fine since editline seems to find readline header file which seems to satisfy it while this is not in my case. How have you configure to allow it to find readline? Thanks, Karel Christian Maeder wrote:
How did you call gmake? editline is not needed for ghc. When building the libraries with the stage1 compiler I get:
... && touch stamp/configure.library.build-profiling-splitting.editline || touch editline/unbuildable Configuring editline-0.2.1.0... checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for tputs in -lncurses... yes checking for el_init... no checking for readline... no checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/local/bin/grep checking for egrep... /usr/local/bin/grep -E checking for ANSI C header files... no checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking editline/readline.h usability... no checking editline/readline.h presence... no checking for editline/readline.h... no checking editline/editline.h usability... no checking editline/editline.h presence... no checking for editline/editline.h... no checking readline/readline.h usability... yes checking readline/readline.h presence... yes checking for readline/readline.h... yes checking for sign of read_history result on error... negative checking for rl_completion_matches... no checking for completion_matches... no configure: error: editline not found, so this package cannot be built See `config.log' for more details. if ifBuildable/ifBuildable /export/local2/home/maeder/haskell/ghc-6.10.1/packages editline; then \ cd editline && ....
I've no idea what your patch changes. Cheers Christian
Karel Gardas wrote:
Hello,
I attempt to test new build system on solaris/x86 platform and after applying patch from here: http://hackage.haskell.org/trac/ghc/ticket/2951 I've been able to boot and configure the tree. On the other hand build alone fails with:
checking for unistd.h... yes checking editline/readline.h usability... no checking editline/readline.h presence... no checking for editline/readline.h... no checking editline/editline.h usability... no checking editline/editline.h presence... no checking for editline/editline.h... no checking readline/readline.h usability... no checking readline/readline.h presence... no checking for readline/readline.h... no checking for sign of read_history result on error... negative checking for rl_completion_matches... no checking for completion_matches... no configure: error: editline not found, so this package cannot be built See `config.log' for more details. gmake[1]: *** [libraries/editline/dist-install/package-data.mk] Error 1 gmake: *** [all] Error 2 karel@silence:/tmp/ghc-new-build-system$
Do you have any idea how to proceed or what exactly to install?
Thanks, Karel

Hi Karel, On Wed, Jan 21, 2009 at 02:37:54PM +0100, Karel Gardas wrote:
I attempt to test new build system on solaris/x86 platform and after
Thanks for giving it a try!
configure: error: editline not found, so this package cannot be built See `config.log' for more details. gmake[1]: *** [libraries/editline/dist-install/package-data.mk] Error 1 gmake: *** [all] Error 2 karel@silence:/tmp/ghc-new-build-system$
Do you have any idea how to proceed or what exactly to install?
Can you try the attached patch please? It just stops us from attempting to build editline. The plan is to switch to haskelline anyway (which doesn't have any C dependencies), so not being able to build editline isn't a real problem. Thanks Ian

Ian Lynagh wrote:
Can you try the attached patch please?
Your patch solves the problem. Now build fails printing: mkdir includes/dist-derivedconstants mkdir includes/dist-derivedconstants/build /usr/local/ghc-6.8.3/bin/ghc -optc-O -optc-DTABLES_NEXT_TO_CODE -optc-Iincludes -optc-Irts -H32m -O -i -iincludes/. -iincludes/dist-derivedconstants/build -iincludes/dist-derivedconstants/build/autogen -Iincludes/dist-derivedconstants/build -Iincludes/dist-derivedconstants/build/autogen -c includes/mkDerivedConstants.c -o includes/dist-derivedconstants/build/mkDerivedConstants.o /usr/local/ghc-6.8.3/bin/ghc -o includes/dist-derivedconstants/build/mkDerivedConstants -H32m -O -i -iincludes/. -iincludes/dist-derivedconstants/build -iincludes/dist-derivedconstants/build/autogen -Iincludes/dist-derivedconstants/build -Iincludes/dist-derivedconstants/build/autogen -odir includes/dist-derivedconstants/build -hidir includes/dist-derivedconstants/build -stubdir includes/dist-derivedconstants/build -hisuf hi -osuf o -hcsuf hc includes/dist-derivedconstants/build/mkDerivedConstants.o inplace/bin/mkdirhier inplace/bin/ cp includes/dist-derivedconstants/build/mkDerivedConstants inplace/bin/mkDerivedConstants ./inplace/bin/mkDerivedConstants >includes/DerivedConstants.h rm -f -rf libffi/build cd libffi && /usr/sfw/bin/gtar -zxf libffi*.tar.gz mv libffi/libffi*/ libffi/build mv: cannot access libffi/libffi*/ gmake[1]: *** [libffi/stamp.ffi.configure] Error 2 gmake: *** [all] Error 2 Thanks, Karel

On Wed, Jan 21, 2009 at 09:36:29PM +0100, Karel Gardas wrote:
cd libffi && /usr/sfw/bin/gtar -zxf libffi*.tar.gz mv libffi/libffi*/ libffi/build mv: cannot access libffi/libffi*/ gmake[1]: *** [libffi/stamp.ffi.configure] Error 2 gmake: *** [all] Error 2
Aha, can you see if the attached patch fixes this please? Thanks Ian

Ian Lynagh wrote:
On Wed, Jan 21, 2009 at 09:36:29PM +0100, Karel Gardas wrote:
cd libffi && /usr/sfw/bin/gtar -zxf libffi*.tar.gz mv libffi/libffi*/ libffi/build mv: cannot access libffi/libffi*/ gmake[1]: *** [libffi/stamp.ffi.configure] Error 2 gmake: *** [all] Error 2
Aha, can you see if the attached patch fixes this please?
Yes, but here is next error: rm -f -rf libffi/build cd libffi && /usr/sfw/bin/gtar -zxf tarball/libffi*.tar.gz mv libffi/libffi-* libffi/build chmod +x libffi/ln cd libffi && patch -p0 < libffi.dllize-3.0.6.patch Looks like a unified context diff. Hunk #5 failed at line 344. Hunk #6 failed at line 165. Hunk #7 failed at line 33. 3 out of 7 hunks failed: saving rejects to build/include/ffi.h.in.rej The next patch looks like a unified context diff. Hunk #2 failed at line 66. Hunk #3 failed at line 26. 2 out of 3 hunks failed: saving rejects to build/include/ffi_common.h.rej done gmake[1]: *** [libffi/stamp.ffi.configure] Error 1 gmake: *** [all] Error 2 Could you be so kind and review my patch attached to http://hackage.haskell.org/trac/ghc/ticket/2957 and commit it to head and your new build system branch? Thanks, Karel

On Thu, Jan 22, 2009 at 07:16:31PM +0100, Karel Gardas wrote:
cd libffi && patch -p0 < libffi.dllize-3.0.6.patch Looks like a unified context diff. Hunk #5 failed at line 344. Hunk #6 failed at line 165. Hunk #7 failed at line 33. 3 out of 7 hunks failed: saving rejects to build/include/ffi.h.in.rej The next patch looks like a unified context diff. Hunk #2 failed at line 66. Hunk #3 failed at line 26. 2 out of 3 hunks failed: saving rejects to build/include/ffi_common.h.rej done gmake[1]: *** [libffi/stamp.ffi.configure] Error 1 gmake: *** [all] Error 2
Could you be so kind and review my patch attached to http://hackage.haskell.org/trac/ghc/ticket/2957 and commit it to head and your new build system branch?
I've pushed a patch that should fix it differently to HEAD and NBS:
Fri Jan 23 18:00:15 GMT 2009 Ian Lynagh
participants (3)
-
Christian Maeder
-
Ian Lynagh
-
Karel Gardas