[GHC] #15101: $tooldir not expanded for NoFib

#15101: $tooldir not expanded for NoFib -------------------------------------+------------------------------------- Reporter: AndreasK | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: NoFib | Version: benchmark suite | Keywords: | Operating System: Windows Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- The nofib suite looks for gcc under $tooldir which doesn't seem to be expanded/set. {{{
~/ghc_head/nofib/shootout/fasta $ make boot $tooldir/mingw/bin/gcc.exe -std=gnu99 -O3 -fomit-frame-pointer fasta-c.c -o fasta-c /bin/sh: /mingw/bin/gcc.exe: No such file or directory make: *** [Makefile:22: fasta-c] Error 127 }}}
-- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15101 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15101: $tooldir not expanded for NoFib -------------------------------------+------------------------------------- Reporter: AndreasK | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: NoFib benchmark | Version: suite | Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by AndreasK): Also fails when using ghc-8.2.1 {{{ $ make boot HC=ghc $topdir/../mingw/bin/gcc.exe -std=gnu99 -O3 -fomit-frame-pointer fasta-c.c -o fasta-c /bin/sh: /../mingw/bin/gcc.exe: No such file or directory make: *** [Makefile:22: fasta-c] Error 127 }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15101#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15101: $tooldir not expanded for NoFib -------------------------------------+------------------------------------- Reporter: AndreasK | Owner: alpmestan Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: NoFib benchmark | Version: suite | Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by alpmestan): * cc: alpmestan (added) * owner: (none) => alpmestan Comment: On IRC, Andreas pointed me to the `--info` output for both 8.2.1 and HEAD. See [http://lpaste.net/365396 this lpaste]. The problem is that nofib uses the output of `--info` to set `CC` (and surely some other env vars), and we do not expand `$tooldir` in the `--info` output yet. We need to add a settings field `tooldir :: Maybe FilePath` and use it in `compilerInfo` to expand all occurences of `$tooldir`, using `expandToolDir`. The result should be a patch similar to [https://phabricator.haskell.org/D4222 this one], only for tooldir instead of topdir. I'll do my best to submit a diff that implements this sometimes this week. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15101#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15101: $tooldir not expanded for NoFib -------------------------------------+------------------------------------- Reporter: AndreasK | Owner: alpmestan Type: bug | Status: patch Priority: normal | Milestone: 8.6.1 Component: NoFib benchmark | Version: suite | Resolution: | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4667 Wiki Page: | -------------------------------------+------------------------------------- Changes (by alpmestan): * status: new => patch * differential: => Phab:D4667 Comment: Phyx wrote a first patch that fixes this without `unsafePerformIO` at [https://phabricator.haskell.org/D4667 D4667], but I have one that should fix the problem without `unsafePerformIO`, which might be desirable. See [https://phabricator.haskell.org/D4686 D4686]. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15101#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15101: $tooldir not expanded for NoFib
-------------------------------------+-------------------------------------
Reporter: AndreasK | Owner: alpmestan
Type: bug | Status: patch
Priority: normal | Milestone: 8.6.1
Component: NoFib benchmark | Version:
suite |
Resolution: | Keywords:
Operating System: Windows | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D4667
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Tamar Christina

#15101: $tooldir not expanded for NoFib -------------------------------------+------------------------------------- Reporter: AndreasK | Owner: alpmestan Type: bug | Status: closed Priority: normal | Milestone: 8.6.1 Component: NoFib benchmark | Version: suite | Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4667 Wiki Page: | -------------------------------------+------------------------------------- Changes (by Phyx-): * status: patch => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15101#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15101: $tooldir not expanded for NoFib -------------------------------------+------------------------------------- Reporter: AndreasK | Owner: alpmestan Type: bug | Status: closed Priority: normal | Milestone: 8.6.1 Component: NoFib benchmark | Version: suite | Resolution: fixed | Keywords: Operating System: Windows | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4667 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Phyx-): Thanks @alpmestan! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15101#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC