[GHC] #8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris ------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.8.1-rc1 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- http://www.haskell.org/ghc/dist/7.8.1-rc1/ghc-7.8.20140130-i386-unknown- solaris2.tar.bz2 has a ghc-pwd-bindist script containing {{{ #!/bin/sh export LD_LIBRARY_PATH="libraries/directory/dist- install/build:libraries/unix/dist-install/build:libraries/time/dist- install/build:libraries/old-locale/dist-install/build:libraries/filepath /dist-install/build:libraries/bytestring/dist- install/build:libraries/deepseq/dist-install/build:libraries/array/dist- install/build:libraries/base/dist-install/build:libraries/integer-gmp /dist-install/build:libraries/ghc-prim/dist- install/build:rts/dist/build:$LD_LIBRARY_PATH" exec "utils/ghc-pwd/dist-install/build/tmp/ghc-pwd" ${1+"$@"} }}} that fails during configure under Solaris with: {{{ checking for path to top of build tree... utils/ghc-pwd/dist- install/build/tmp/ghc-pwd-bindist: LD_LIBRARY_PATH=libraries/directory /dist-install/build:libraries/unix/dist-install/build:libraries/time/dist- install/build:libraries/old-locale/dist-install/build:libraries/filepath /dist-install/build:libraries/bytestring/dist- install/build:libraries/deepseq/dist-install/build:libraries/array/dist- install/build:libraries/base/dist-install/build:libraries/integer-gmp /dist-install/build:libraries/ghc-prim/dist-install/build:rts/dist/build:: is not an identifier configure: error: cannot determine current directory }}} see more under http://www.haskell.org/pipermail/glasgow-haskell- users/2014-February/024669.html -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------ Reporter: maeder | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by maeder): It has nothing do to with libraries/Cabal/Cabal/Distribution/Simple/Program/Script.hs (although being wrong, too), but is caused by "$$($1_$2_BINDIST_WRAPPER)" in rules /shell-wrapper.mk. The variable $(SHELL) is not the one set by ./configure. prependLibraryPath from rules/library-path.mk creates the non-Bourne export statement. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------ Reporter: maeder | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by maeder): The $(SHELL) setting from configure is not taken, because mk/config.mk.in contains /bin/sh hard-coded. A fix might be: {{{ -SHELL = /bin/sh +SHELL = @SHELL@ }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------ Reporter: maeder | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.8.1-rc1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by maeder): Another fix could be made in rules/library-path.mk {{{ -prependLibraryPath = export LD_LIBRARY_PATH="$1:$$LD_LIBRARY_PATH" +prependLibraryPath = LD_LIBRARY_PATH="$1:$$LD_LIBRARY_PATH"; export LD_LIBRARY_PATH }}} What an adventure discovering the build secrets! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Solaris | Architecture: Unknown/Multiple Type of failure: Building GHC | Difficulty: Easy (less than 1 failed | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Changes (by maeder): * difficulty: Unknown => Easy (less than 1 hour) * milestone: => 7.8.1 * os: Unknown/Multiple => Solaris * version: 7.8.1-rc1 => 7.8.1-rc2 * failure: None/Unknown => Building GHC failed Comment: Replying to [comment:2 maeder]:
The $(SHELL) setting from configure is not taken, because mk/config.mk.in contains /bin/sh hard-coded. A fix might be:
{{{ -SHELL = /bin/sh +SHELL = @SHELL@ }}}
I propose to commit this change in line 655 of mk/config.mk.in as it is still relevant for me and ghc-7.8.1-rc2. Could someone do this? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Solaris | Architecture: Unknown/Multiple Type of failure: Building GHC | Difficulty: Easy (less than 1 failed | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Comment (by kgardas): I see that /bin/sh is hardcoded, but how exactly fails your Solaris build? I should have noted here at least too so I'm curious how our envs differ... -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Solaris | Architecture: Unknown/Multiple Type of failure: Building GHC | Difficulty: Easy (less than 1 failed | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Comment (by maeder): I try to cross-compile for x86_64-pc-solaris2. {{{ inplace/bin/hsc2hs: LD_LIBRARY_PATH=/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/process-1.1.0.2:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/directory-1.2.0.1:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/unix-2.6.0.1:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/time-1.4.0.1:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/old-locale-1.0.0.5:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/filepath-1.3.0.1:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/containers-0.5.0.0:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/bytestring-0.10.0.2:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/deepseq-1.3.0.1:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/array-0.4.0.1:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/base-4.6.0.1:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/integer-gmp-0.5.0.0:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/ghc-prim-0.3.0.0:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3:: ist kein Kennzeichner gmake[1]: *** [compiler/stage1/build/Fingerprint.hs] Fehler 1 }}} The message "ist kein Kennzeichner" is the german version of the above "is not an identifier". -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Solaris | Architecture: Unknown/Multiple Type of failure: Building GHC | Difficulty: Easy (less than 1 failed | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Comment (by kgardas): Replying to [comment:6 maeder]:
I try to cross-compile for x86_64-pc-solaris2.
{{{ inplace/bin/hsc2hs: LD_LIBRARY_PATH=/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/process-1.1.0.2:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/directory-1.2.0.1:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/unix-2.6.0.1:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/time-1.4.0.1:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/old-locale-1.0.0.5:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/filepath-1.3.0.1:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/containers-0.5.0.0:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/bytestring-0.10.0.2:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/deepseq-1.3.0.1:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/array-0.4.0.1:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/base-4.6.0.1:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/integer-gmp-0.5.0.0:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3/ghc-prim-0.3.0.0:/home/pub-bkb/pc- solaris/ghc/ghc-7.6.3/lib/ghc-7.6.3:: ist kein Kennzeichner gmake[1]: *** [compiler/stage1/build/Fingerprint.hs] Fehler 1 }}}
The message "ist kein Kennzeichner" is the german version of the above "is not an identifier".
This is IMHO caused by using export LD_LIBRARY_PATH=.... somewhere in build machinery and not by hard-coding /bin/sh. Anyway, if you use your patch and then look into processed config.mk what value is saved into SHELL variable? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Solaris | Architecture: Unknown/Multiple Type of failure: Building GHC | Difficulty: Easy (less than 1 failed | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Comment (by maeder): It is caused by "export LD_LIBRARY_PATH=..." in inplace/bin/hsc2hs that my Bourne shell /bin/sh does not support. With the patch (after ./configure) my config.mk contains {{{ SHELL = /bin/bash }}} And then "#!/bin/bash" is finally used in inplace/bin/hsc2hs (rather than the failing "#!/bin/sh") -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Solaris | Architecture: Unknown/Multiple Type of failure: Building GHC | Difficulty: Easy (less than 1 failed | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Comment (by maeder): The man-page of my sh looks like the one at http://www.manpages.info/sunos/jsh.1.html but says "SunOS 5.10 Last change: 2 May 2008" -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Solaris | Architecture: Unknown/Multiple Type of failure: Building GHC | Difficulty: Easy (less than 1 failed | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Comment (by kgardas): Hmm, and ls -la /bin/sh tells what? On Solaris 11.1 it's: {{{ $ ls -al /bin/sh lrwxrwxrwx 1 root root 9 Feb 5 14:39 /bin/sh -> i86/ksh93 }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Solaris | Architecture: Unknown/Multiple Type of failure: Building GHC | Difficulty: Easy (less than 1 failed | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Comment (by maeder): Solaris 10 {{{ -bash-3.2$ ls -la /bin/sh lrwxrwxrwx 1 root root 13 Dez 16 09:32 /bin/sh -> ../../sbin/sh -bash-3.2$ ls -la /sbin/sh -r-xr-xr-x 1 root root 82456 Sep 22 2010 /sbin/sh }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Solaris | Architecture: Unknown/Multiple Type of failure: Building GHC | Difficulty: Easy (less than 1 failed | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Comment (by kgardas): Simple change to SHELL = @SHELL@ in mk/config.mk.in is not working for me with simple ./configure. How exactly do you run configure script? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:12 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Solaris | Architecture: Unknown/Multiple Type of failure: Building GHC | Difficulty: Easy (less than 1 failed | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Comment (by maeder): {{{ ./configure --target=x86_64-pc-solaris2 --with- gcc=/local/home/maeder/haskell/ghc64bin/gcc --with-ld=/usr/ccs/bin/ld --with-nm=/local/home/maeder/haskell/ghc-bin/nm }}} What do you mean by "is not working"? If @SHELL@ ist replaced by "/bin/sh" then this should work for you, because (any call of) ./configure should recognise the proper shell (that is /bin/sh for you and /bin/bash for me). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:13 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Solaris | Architecture: Unknown/Multiple Type of failure: Building GHC | Difficulty: Easy (less than 1 failed | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Comment (by kgardas): OK, scratch that, issue between my chair and keyboard. Git patch attached! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:14 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Solaris | Architecture: Unknown/Multiple Type of failure: Building GHC | Difficulty: Easy (less than 1 failed | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Changes (by kgardas): * status: new => patch -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:15 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris
-------------------------------------+-------------------------------------
Reporter: maeder | Owner:
Type: bug | Status: patch
Priority: normal | Milestone: 7.8.1
Component: Build System | Version: 7.8.1-rc2
Resolution: | Keywords:
Operating System: Solaris | Architecture: Unknown/Multiple
Type of failure: Building GHC | Difficulty: Easy (less than 1
failed | hour)
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+-------------------------------------
Comment (by Austin Seipp

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: merge Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Solaris | Architecture: Unknown/Multiple Type of failure: Building GHC | Difficulty: Easy (less than 1 failed | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: patch => merge -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:17 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Resolution: fixed | Keywords: Operating System: Solaris | Architecture: Unknown/Multiple Type of failure: Building GHC | Difficulty: Easy (less than 1 failed | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: merge => closed * resolution: => fixed Comment: Merged in 7.8. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:18 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Resolution: fixed | Keywords: Operating System: Solaris | Architecture: Unknown/Multiple Type of failure: Building GHC | Difficulty: Easy (less than 1 failed | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Comment (by maeder): This patch causes a failure for integer-gmp when building integer-gmp under solaris namely the one that I wrongly attributed to #8764 {{{ /bin/sh ../libtool --tag=CC --mode=compile /opt/csw/bin/gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo fib_table | sed 's/_$//'` -m32 -O2 -pedantic -fomit-frame-pointer -mtune=i386 -march=i386 -c -o fib_table.lo fib_table.c ../libtool: bad substitution }}} This is in fact caused by the file libraries/integer-gmp/gmp/ghc.mk that calls ./configure in gmpbuild. However, ./configure is called using $(SHELL) that is /bin/bash for me and then detects that this is a good shell and sets SHELL (in gmpbuild/config.status) to /bin/sh! The following patch fixes the problem by replacing $(SHELL) with /bin/sh: {{{ --- ghc.mk~ Fri Feb 28 12:34:54 2014 +++ ghc.mk Thu Apr 3 11:25:13 2014 @@ -146,7 +146,7 @@ PATH=`pwd`:$$PATH; \ export PATH; \ cd gmpbuild && \ - CC=$(CCX) NM=$(NM) AR=$(AR_STAGE1) $(SHELL) ./configure \ + CC=$(CCX) NM=$(NM) AR=$(AR_STAGE1) /bin/sh ./configure \ --enable-shared=no \ --host=$(HOSTPLATFORM) --build=$(BUILDPLATFORM) $(MAKE) -C libraries/integer-gmp/gmp/gmpbuild MAKEFLAGS= }}} After this patch my gmpbuild/config.status contains correctly {{{ S["SHELL"]="/bin/bash" }}} and the failure above is gone. (I've not tried yet to omit the shell entirely since ./configure should be executable as is.) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:19 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Resolution: fixed | Keywords: Operating System: Solaris | Architecture: Unknown/Multiple Type of failure: Building GHC | Difficulty: Easy (less than 1 failed | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Comment (by kgardas): Replying to [comment:19 maeder]:
The following patch fixes the problem by replacing $(SHELL) with /bin/sh:
{{{ --- ghc.mk~ Fri Feb 28 12:34:54 2014 +++ ghc.mk Thu Apr 3 11:25:13 2014 @@ -146,7 +146,7 @@ PATH=`pwd`:$$PATH; \ export PATH; \ cd gmpbuild && \ - CC=$(CCX) NM=$(NM) AR=$(AR_STAGE1) $(SHELL) ./configure \ + CC=$(CCX) NM=$(NM) AR=$(AR_STAGE1) /bin/sh ./configure \ --enable-shared=no \ --host=$(HOSTPLATFORM) --build=$(BUILDPLATFORM) $(MAKE) -C libraries/integer-gmp/gmp/gmpbuild MAKEFLAGS= }}}
This patch looks highly suspicious to me. Generally speaking if we detect some shell and save it to SHELL, then we'd probably like to use that and not revert to ordinary /bin/sh. Why do you think your analysis is correct and not just a side effect of your change? Have you tried to trace libtool and see where it throws its error message? That may IMHO lead to real bug fix instead of just a guess... -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:20 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Resolution: fixed | Keywords: Operating System: Solaris | Architecture: Unknown/Multiple Type of failure: Building GHC | Difficulty: Easy (less than 1 failed | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Comment (by maeder): I've verified that the line {{{ /bin/sh ../libtool ... }}} fails as above and that the modified line {{{ /bin/bash ../libtool ... }}} works as expected (and my diff on ghc.mk produces this line). Furthermore, my change has no impact on other OSes or the situation before the config.mk.in patch, as $(SHELL) used to expand to /bin/sh. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:21 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Resolution: fixed | Keywords: Operating System: Solaris | Architecture: Unknown/Multiple Type of failure: Building GHC | Difficulty: Easy (less than 1 failed | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Comment (by kgardas): Shouldn't we rather fix gmp's configure which obviously misdetect shell instead of this workaround? As I said, your patch although it fixes the issue is incorrect IMHO. Or even better shouldn't we analyse why gmp's configure misdetects the shell and set wrong SHELL variable? This will be IMHO more correct/clear solution... -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:22 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Resolution: fixed | Keywords: Operating System: Solaris | Architecture: Unknown/Multiple Type of failure: Building GHC | Difficulty: Easy (less than 1 failed | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Comment (by maeder): gmp's configure is correct to assume that it is run in the same shell in which (later on) "make" is called. libraries/integer-gmp/gmp/ghc.mk spoils this assumption. I'm now testing {{{ --- ghc.mk Fr Apr 4 10:07:49 2014 +++ ghc.mk~ Do Apr 3 17:25:13 2014 @@ -146,7 +146,7 @@ PATH=`pwd`:$$PATH; \ export PATH; \ cd gmpbuild && \ - CC=$(CCX) NM=$(NM) AR=$(AR_STAGE1) ./configure \ + CC=$(CCX) NM=$(NM) AR=$(AR_STAGE1) /bin/sh ./configure \ --enable-shared=no \ --host=$(HOSTPLATFORM) --build=$(BUILDPLATFORM) $(MAKE) -C libraries/integer-gmp/gmp/gmpbuild MAKEFLAGS= }}} but I consider my first diff to better for other OSes! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:23 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Resolution: fixed | Keywords: Operating System: Solaris | Architecture: Unknown/Multiple Type of failure: Building GHC | Difficulty: Easy (less than 1 failed | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Comment (by kgardas): If you insist on your first patch, then what about {{{ - CC=$(CCX) NM=$(NM) AR=$(AR_STAGE1) $(SHELL) ./configure \ + CC=$(CCX) NM=$(NM) AR=$(AR_STAGE1) $$SHELL ./configure \ }}} which should mean that the configure is run not by detected shell and saved into SHELL makefile variable, but rather with the original shell of the user which is saved in SHELL environment variable -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:24 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Solaris | Architecture: Unknown/Multiple Type of failure: Building GHC | Difficulty: Easy (less than 1 failed | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Changes (by maeder): * status: closed => new * resolution: fixed => Comment: Meanwhile I can confirm that it works without any shell: {{{ CC=$(CCX) NM=$(NM) AR=$(AR_STAGE1) ./configure \ }}} I'm not sure if unpacking gmp under windows preserves executable attributes. (In the same ghc.mk file "chmod +x" is called for "libraries/integer- gmp/gmp/ln", which we could do for configure, too.) So I suggest to test without a shell under windows. Who can do this? (Currently, I'm testing your $$SHELL variant.) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:25 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Build System | Version: 7.8.1-rc2 Resolution: | Keywords: Operating System: Solaris | Architecture: Unknown/Multiple Type of failure: Building GHC | Difficulty: Easy (less than 1 failed | hour) Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------- Comment (by maeder): Yes, $$SHELL works, too! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:26 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: libraries | Version: 7.8.1-rc2 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: Blocking: | -------------------------------------+------------------------------------- Changes (by maeder): * component: Build System => libraries (other) Comment: Let's use $$SHELL then to avoid further testing. As a git illiterate I get: {{{ The following paths are ignored by one of your .gitignore files: libraries/integer-gmp }}} Could you (or someone else) make the patch? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:27 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: libraries | Version: 7.8.1-rc2 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: Blocking: | -------------------------------------+------------------------------------- Comment (by maeder): Hang on, no $$SHELL does not work (I've looked to early into config.status)! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:28 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: libraries | Version: 7.8.1-rc2 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: Blocking: | -------------------------------------+------------------------------------- Comment (by maeder): This is wrong for me (configure must detect /bin/bash): {{{ ./libraries/integer-gmp/gmp/gmpbuild/config.status:SHELL='/bin/sh' }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:29 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: libraries | Version: 7.8.1-rc2 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: Blocking: | -------------------------------------+------------------------------------- Comment (by maeder): All other of my config.status files contain: {{{ CONFIG_SHELL='/bin/bash' }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:30 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.8.1 Component: libraries | Version: 7.8.1-rc2 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: Blocking: | -------------------------------------+------------------------------------- Changes (by maeder): * status: new => patch Comment: The patch worked under 64bit windows https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/Windows/MSYS2, too -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:31 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.8.1 Component: libraries | Version: 7.8.1-rc2 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: Blocking: | -------------------------------------+------------------------------------- Comment (by kgardas): Hi, I've needed to use 0001-do-not-confuse-configure-by-a-bash- shell.patch while building Solaris 10 7.8.1 binary distribution. So it works for me here. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:32 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.8.1 Component: libraries | Version: 7.8.1-rc2 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: Blocking: | -------------------------------------+------------------------------------- Comment (by ezyang): I grepped for other instances of SHELL configure being used, and found one: {{{ ezyang@sabre:~/Dev/ghc-clean$ ag "SHELL" libffi/ghc.mk 92: "$(SHELL)" ./configure \ }}} Does libffi also need to get updated? (Also, there is commented out to-do code which should also get fixed up). While I'm not too happy about the lack of explanation why it should be dropped, it's pretty weird that we were doing it that way in the first place, and `git gui blame` suggests the SHELL command has been around since the very beginning, so if this passes validation on all platforms, I think we should just take it. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:33 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.8.1 Component: libraries | Version: 7.8.1-rc2 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: Blocking: | -------------------------------------+------------------------------------- Comment (by maeder): This spot did not matter under (my) Solaris 10. In fact, ./configure is called twice: {{{ ... mv libffi/build/ltmain.sh libffi/build/ltmain.sh.orig sed 's#cmd //c echo "\$1"#cmd /c "echo $1"#' < libffi/build/ltmain.sh.orig
libffi/build/ltmain.sh cd libffi && \ \ cd build && \ CC=/opt/csw/bin/gcc \ LD=/usr/ccs/bin/ld \ AR=/usr/ccs/bin/ar \ NM=/usr/ccs/bin/nm \ RANLIB=/usr/ccs/bin/ranlib \ CFLAGS=" -U__i686 -fno-stack-protector -w" \ LDFLAGS=" -w" \ "/bin/bash" ./configure \ --prefix=/local/home/maeder/haskell/ghc-7.8.1/libffi/build/inst \ --libdir=/local/home/maeder/haskell/ghc-7.8.1/libffi/build/inst/lib \ --enable-static=yes \ --enable-shared=no \ --host=i386-unknown-solaris2 configure: WARNING: if you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used checking build system type... i386-pc-solaris2.10 checking host system type... i386-unknown-solaris2 checking target system type... i386-unknown-solaris2 continue configure in default builddir "./i386-unknown-solaris2" ....exec /bin/sh .././configure "--srcdir=.." "--enable-builddir=i386 -unknown-solaris2" "solaris2" configure: WARNING: if you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used checking build system type... i386-pc-solaris2.10 checking host system type... i386-unknown-solaris2 checking target system type... i386-unknown-solaris2 ... }}}
And finally config.status contains '/bin/bash'. (I'm now trying without "$(SHELL)" in libffi/ghc-mk.) (After all, for most purposes it does not matter if /bin/sh or /bin/bash is used.) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:34 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.8.1 Component: libraries | Version: 7.8.1-rc2 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: Blocking: | -------------------------------------+------------------------------------- Comment (by maeder): It works without "$(SHELL)", too: {{{ ... mv libffi/build/ltmain.sh libffi/build/ltmain.sh.orig sed 's#cmd //c echo "\$1"#cmd /c "echo $1"#' < libffi/build/ltmain.sh.orig
libffi/build/ltmain.sh cd libffi && \ \ cd build && \ CC=/opt/csw/bin/gcc \ LD=/usr/ccs/bin/ld \ AR=/usr/ccs/bin/ar \ NM=/usr/ccs/bin/nm \ RANLIB=/usr/ccs/bin/ranlib \ CFLAGS=" -U__i686 -fno-stack-protector -w" \ LDFLAGS=" -w" \ ./configure \ --prefix=/local/home/maeder/haskell/ghc-7.8.1/libffi/build/inst \ --libdir=/local/home/maeder/haskell/ghc-7.8.1/libffi/build/inst/lib \ --enable-static=yes \ --enable-shared=no \ --host=i386-unknown-solaris2 configure: WARNING: if you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used checking build system type... i386-pc-solaris2.10 checking host system type... i386-unknown-solaris2 checking target system type... i386-unknown-solaris2 continue configure in default builddir "./i386-unknown-solaris2" ....exec /bin/bash .././configure "--srcdir=.." "--enable-builddir=i386 -unknown-solaris2" "solaris2" configure: WARNING: if you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used checking build system type... i386-pc-solaris2.10 checking host system type... i386-unknown-solaris2 checking target system type... i386-unknown-solaris2 ... }}}
Note, that now "/bin/bash" is used in the second call (that is somehow part of libffi). Yet, libffi/build/i386-unknown-solaris2/config.status still contains: {{{ SHELL='/bin/bash' }}} (So maybe gmp's ./configure is actually less robust wrt to shell detection.) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:35 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

Note, that now "/bin/bash" is used in the second call (that is somehow
#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.8.1 Component: libraries | Version: 7.8.1-rc2 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: Blocking: | -------------------------------------+------------------------------------- Comment (by kgardas): Replying to [comment:35 maeder]: part of libffi). Yet,
libffi/build/i386-unknown-solaris2/config.status still contains:
{{{ SHELL='/bin/bash' }}}
(So maybe gmp's ./configure is actually less robust wrt to shell detection.)
That's why I fought hard for actual issue identification. :-) Indeed, the issue may in gmp's configure itself. The question is if you'd like to identify it and submit patch upstream and just work-around it in ghc itself... As I said I don't like your first attempt with using /bin/sh ./configure -- but I think removing $(SHELL) (in your second attempt) should be ok. Well, still fixing the gmp's configure is probably the most clean of those solutions anyway. :-) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:36 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.8.1 Component: libraries | Version: 7.8.1-rc2 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: Blocking: | -------------------------------------+------------------------------------- Comment (by maeder): I've looked into these two ./configure scripts. Calling {{{ /bin/bash ./configure }}} is different from calling a script containing {{{ #!/bin/bash ./configure }}} The former just interprets the contents of ./configure (ignoring the initial #!/bin/sh). Whereas the latter, like any direct call of ./configure on any shell, properly executes ./configure (which requests to be interpreted by /bin/sh). The toggling between /bin/bash and /bin/sh by ./configure seems to be normal behavior. Maybe by chance it does not happen (due to multiple invocations of itself) for the second internal call: {{{ eval /bin/bash .././configure "--srcdir=.." "--enable-builddir=i386 -unknown-solaris2" }}} So, it rather looks like an autoconf problem although "autoreconf" actually generates "eval $SHELL ..." (with a different message "....exec $SHELL"). I have (GNU Autoconf) 2.69. I could post a report to gmp-bugs at gmplib.org, though, as "/bin/bash ./configure" fails later on in mpn with "../libtool: bad substitution" also for the latest version gmp-6.0.0a. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:37 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.8.1 Component: libraries | Version: 7.8.1-rc2 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: Blocking: | -------------------------------------+------------------------------------- Comment (by maeder): I've sent emails to gmp-bugs at gmplib.org and bug-autoconf at gnu.org. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:38 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.8.1 Component: libraries | Version: 7.8.1-rc2 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: Blocking: | -------------------------------------+------------------------------------- Comment (by maeder): see http://lists.gnu.org/archive/html/bug-autoconf/2014-04/msg00004.html -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:39 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.8.1 Component: libraries | Version: 7.8.1-rc2 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: Blocking: | -------------------------------------+------------------------------------- Comment (by kgardas): Fantastic work! Thanks a lot Christian. Are you going to create a patch following the advice? Thanks! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:40 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.8.1 Component: libraries | Version: 7.8.1-rc2 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: Blocking: | -------------------------------------+------------------------------------- Comment (by maeder): I still propose https://ghc.haskell.org/trac/ghc/attachment/ticket/8783/0001-do-not- confuse-configure-by-a-bash-shell.patch to be applied as is. (This would make my building easier for me.) I don't mind to change libffi/ghc.mk, too, as Edward (ezyang) suggested, but this is not crucial (for my builds). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:41 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.8.3 Component: libraries | Version: 7.8.1-rc2 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: Blocking: | -------------------------------------+------------------------------------- Changes (by maeder): * milestone: 7.8.1 => 7.8.3 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:42 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris
-------------------------------------+-------------------------------------
Reporter: maeder | Owner:
Type: bug | Status: patch
Priority: normal | Milestone: 7.8.3
Component: libraries | Version: 7.8.1-rc2
(other) | Keywords:
Resolution: | Architecture: Unknown/Multiple
Operating System: Solaris | Difficulty: Easy (less than 1
Type of failure: Building GHC | hour)
failed | Blocked By:
Test Case: | Related Tickets:
Blocking: |
-------------------------------------+-------------------------------------
Comment (by Austin Seipp

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris
-------------------------------------+-------------------------------------
Reporter: maeder | Owner:
Type: bug | Status: patch
Priority: normal | Milestone: 7.8.3
Component: libraries | Version: 7.8.1-rc2
(other) | Keywords:
Resolution: | Architecture: Unknown/Multiple
Operating System: Solaris | Difficulty: Easy (less than 1
Type of failure: Building GHC | hour)
failed | Blocked By:
Test Case: | Related Tickets:
Blocking: |
-------------------------------------+-------------------------------------
Comment (by Austin Seipp

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: merge Priority: normal | Milestone: 7.8.3 Component: libraries | Version: 7.8.1-rc2 (other) | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: Blocking: | -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: patch => merge -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:45 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8783: make ghc-pwd-bindist script /bin/sh compatible for Solaris -------------------------------------+------------------------------------- Reporter: maeder | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.8.3 Component: libraries | Version: 7.8.1-rc2 (other) | Keywords: Resolution: fixed | Architecture: Unknown/Multiple Operating System: Solaris | Difficulty: Easy (less than 1 Type of failure: Building GHC | hour) failed | Blocked By: Test Case: | Related Tickets: Blocking: | -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: merge => closed * resolution: => fixed Comment: Merged, thanks! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8783#comment:46 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC