Bin/ghci: No such file or directory (atom)

Hi, i cannot get atom to work. Did i skip something?

Thanks
ward

Load BootTidal.hs from /Users/marctine/.atom/packages/tidalcycles/lib/BootTidal.hs
/bin/sh: /Users/marctine/.ghcup/bin/ghci: No such file or directory

Uncaught Cannot call write after a stream was destroyed
events.js:167
Show Stack Trace

It looks like haskell, and the tidal library aren’t installed somehow. On a mac, you can install with this sequence of commands:

curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
source ~/.ghcup/env
cabal new-install tidal --lib

Thanks, but stull no luck, could it be somehow related to XCode?
Here the last part of the installation;

checking for gsed… sed

checking XCode version… xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command line tools instance

not found (too old?)

checking for gcc… gcc

checking whether the C compiler works… no

configure: error: in `/var/folders/f9/qk5nnl710tv6vzs50dd91zlr0000gn/T/ghcup.XXXXXXX.PvbZfhY4/ghc-8.8.3’:

configure: error: C compiler cannot create executables

See `config.log’ for more details

Failed to install, consider updating this script via: ghcup upgrade

“ghcup --cache install” failed!

Hm, yes maybe - try running xcode-select --install

Hi, I had the same problem here but solved after installing xcode command line tools. Thanks!

1 Like

FYI: xcode-select --install didn’t work.
Installed the full xcode (manual download).
Reinstalled all the rest afterwards… and we have sound now. Yighaa.

Thanks for the help

1 Like

I have the same problem with Bin/ghci and after "Failed to install, consider updating this script via: ghcup upgrade
“ghcup --cache install” failed!

xcode command line tools is installed
I don’t want to install the full XCode

Any ideas ? Thanks

Hm, could you share the full output of this command please @jb.gervais :

curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 sh
1 Like

Hm, does running this help:

sudo xcode-select --switch /Library/Developer/CommandLineTools

Or maybe you have to run xcode-select --install again. Apparently you have to re-run it every time you update your mac os system.

unfortunately that does not change anything, I have the same errors

What happens when you try to run gcc in a terminal window? The problem seems to be that you don’t have a working compiler, but that should be part of the xcode commandline tools, so I don’t know why that is.

I have this message “clang: error: no input files”

Sorry I can’t see why ghcup isn’t installing then. You could raise it with the ghcup people, but maybe it’s easiest to just install haskell via a different method.

Here’s an install file for the ‘haskell platform’:
https://www.haskell.org/platform/download/8.6.3/Haskell%20Platform%208.6.3%20Core%2064bit-signed.pkg

After installing that, then cabal update then cabal install tidal --lib should do it. (or failing that, cabal install tidal without the --lib).

I have the same error message :frowning:

I deleted and reinstalled xcode and it doesn't change anything

Can you share the full output of that command please? Pi can just copy and paste it, marking it as preformatted text

In file included from /usr/local/include/stdint.h:59:0: error: 

/usr/local/include/stdint.h:2:10: error:
     error: #include nested too deeply
  |
2 | #include <stddef.h>
  |          ^
#include <stddef.h>
         ^

/usr/local/include/stdint.h:59:11: error:
     error: #include nested too deeply
   |
59 | # include <stdint.h>
   |           ^
# include <stdint.h>
          ^

/usr/local/include/stdint.h:72:11: error:
     error: #include nested too deeply
   |
72 | # include <sys/types.h>
   |           ^
# include <sys/types.h>
          ^

/usr/local/include/stdint.h:76:10: error:
     error: #include nested too deeply
   |
76 | #include <limits.h>
   |          ^
#include <limits.h>
         ^

/usr/local/include/stdint.h:82:11: error:
     error: #include nested too deeply
   |
82 | # include <inttypes.h>
   |           ^
# include <inttypes.h>
          ^

In file included from /var/folders/2d/3t7bbstd7531hgrt33trf3xr0000gn/T/ghc21106_0/ghc_5.c:2:0: error:
    

In file included from /Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/Rts.h:29:0: error:
    

In file included from /Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/Stg.h:222:0: error:
    

In file included from /Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/stg/Types.h:37:0: error:
    

In file included from /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include/inttypes.h:30:0: error:
    

/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/inttypes.h:235:8: error:
     error: unknown type name 'intmax_t'
    |
235 | extern intmax_t
    |        ^
extern intmax_t
       ^

/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/inttypes.h:236:9: error:
     error: unknown type name 'intmax_t'
    |
236 | imaxabs(intmax_t j);
    |         ^
imaxabs(intmax_t j);
        ^

/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/inttypes.h:240:2: error:
     error: unknown type name 'intmax_t'
            intmax_t quot;
            ^
    |
240 |         intmax_t quot;
    |  ^

/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/inttypes.h:241:2: error:
     error: unknown type name 'intmax_t'
            intmax_t rem;
            ^
    |
241 |         intmax_t rem;
    |  ^

/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/inttypes.h:246:9: error:
     error: unknown type name 'intmax_t'
    |
246 | imaxdiv(intmax_t __numer, intmax_t __denom);
    |         ^
imaxdiv(intmax_t __numer, intmax_t __denom);
        ^

/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/inttypes.h:246:27: error:
     error: unknown type name 'intmax_t'
    |
246 | imaxdiv(intmax_t __numer, intmax_t __denom);
    |                           ^
imaxdiv(intmax_t __numer, intmax_t __denom);
                          ^

/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/inttypes.h:250:8: error:
     error: unknown type name 'intmax_t'
    |
250 | extern intmax_t
    |        ^
extern intmax_t
       ^

/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/inttypes.h:256:8: error:
     error: unknown type name 'uintmax_t'
    |
256 | extern uintmax_t
    |        ^
extern uintmax_t
       ^

/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/inttypes.h:263:8: error:
     error: unknown type name 'intmax_t'
    |
263 | extern intmax_t
    |        ^
extern intmax_t
       ^

/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/inttypes.h:269:8: error:
     error: unknown type name 'uintmax_t'
    |
269 | extern uintmax_t
    |        ^
extern uintmax_t
       ^

In file included from /var/folders/2d/3t7bbstd7531hgrt33trf3xr0000gn/T/ghc21106_0/ghc_5.c:2:0: error:
    

In file included from /Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/Rts.h:29:0: error:
    

In file included from /Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/Stg.h:222:0: error:
    

/Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/stg/Types.h:93:9: error:
     error: unknown type name 'int64_t'; did you mean '__int64_t'?
   |
93 | typedef int64_t                  StgInt64;
   |         ^
typedef int64_t                  StgInt64;
        ^~~~~~~
        __int64_t

/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/i386/_types.h:46:33: error:
     note: '__int64_t' declared here
   |
46 | typedef long long               __int64_t;
   |                                 ^
typedef long long               __int64_t;
                                ^

In file included from /var/folders/2d/3t7bbstd7531hgrt33trf3xr0000gn/T/ghc21106_0/ghc_5.c:2:0: error:
    

In file included from /Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/Rts.h:29:0: error:
    

In file included from /Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/Stg.h:222:0: error:
    

/Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/stg/Types.h:94:9: error:
     error: unknown type name 'uint64_t'
   |
94 | typedef uint64_t                 StgWord64;
   |         ^
typedef uint64_t                 StgWord64;
        ^

/Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/stg/Types.h:116:9: error:
     error: unknown type name 'int64_t'; did you mean '__int64_t'?
    |
116 | typedef int64_t            StgInt;
    |         ^
typedef int64_t            StgInt;
        ^~~~~~~
        __int64_t

/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/i386/_types.h:46:33: error:
     note: '__int64_t' declared here
   |
46 | typedef long long               __int64_t;
   |                                 ^
typedef long long               __int64_t;
                                ^

In file included from /var/folders/2d/3t7bbstd7531hgrt33trf3xr0000gn/T/ghc21106_0/ghc_5.c:2:0: error:
    

In file included from /Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/Rts.h:29:0: error:
    

In file included from /Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/Stg.h:222:0: error:
    

/Library/Frameworks/GHC.framework/Versions/8.6.3-x86_64/usr/lib/ghc-8.6.3/include/stg/Types.h:117:9: error:
     error: unknown type name 'uint64_t'
    |
117 | typedef uint64_t           StgWord;
    |         ^
typedef uint64_t           StgWord;
        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
`gcc' failed in phase `C Compiler'. (Exit code: 1)
cabal: Leaving directory '/var/folders/2d/3t7bbstd7531hgrt33trf3xr0000gn/T/cabal-tmp-20995/random-1.1'
cabal: Error: some packages failed to install:
clock-0.8-H1S1zDefxirImaRbI6ITNv failed during the building phase. The
exception was:
ExitFailure 1
random-1.1-3ypV4EIycgb35PKjTYYr5q failed during the building phase. The
exception was:
ExitFailure 1
tidal-1.4.8-BUBj7CkVY0qEI6Vxv8Pjam depends on tidal-1.4.8 which failed to
install.

Hm something’s quite wrong there.

Some people here have a similar issue:
https://github.com/SOHU-Co/kafka-node/issues/881

Judging by that, brew doctor might fix it…

But it seems a macos upgrade went wrong. I don’t actually use MacOS so might not be the best person to help…

doesn’t work, I will continue to search, thanks for your help!