Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash trying to install nimble on OSX #62

Closed
hiteshjasani opened this issue Oct 22, 2014 · 16 comments
Closed

Crash trying to install nimble on OSX #62

hiteshjasani opened this issue Oct 22, 2014 · 16 comments

Comments

@hiteshjasani
Copy link
Contributor

Trying to install nimble on OSX tonight resulted in a crash.

...
clang -c  -w -O3  -I/usr/local/src/Nimrod/lib -o /usr/local/src/nimble/src/nimcache/download.o /usr/local/src/nimble/src/nimcache/download.c 
clang -c  -w -O3  -I/usr/local/src/Nimrod/lib -o /usr/local/src/nimble/src/nimcache/config.o /usr/local/src/nimble/src/nimcache/config.c 
clang -c  -w -O3  -I/usr/local/src/Nimrod/lib -o /usr/local/src/nimble/src/nimcache/compat.o /usr/local/src/nimble/src/nimcache/compat.c 
Error:  execution of an external program failed; rerun with --parallelBuild:1 to see the error message
Traceback (most recent call last)
nimble.nim(810)          nimble
nimble.nim(785)          doAction
nimble.nim(569)          install
nimble.nim(475)          installFromDir
nimble.nim(424)          buildFromDir
tools.nim(18)            doCmd
Error: unhandled exception: Execution failed with exit code 256 [ENimble]
Error: execution of an external program failed

If I comment out the command at nimble.nim:424 then the install works fine. However the command it's trying to execute nimrod c -d:release --noBabelPath "/usr/local/src/nimble/src/nimble.nim" shouldn't crash.

Here are my install steps:

  • git clone https://github.com/nimrod-code/nimble.git
  • cd nimble
  • nimrod c -r src/nimble install

Software

  • Nimrod Compiler Version 0.9.6 (2014-10-21) [MacOSX: amd64] built from 'devel' branch source
  • Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
  • OSX Yosemite Version 10.10
@julienaubert
Copy link

Same issue here. Using latest nimrod from devel, commit: 0f260400743967031fd2cea2e3e8443dc7fcaaa7

Running:
nimrod c -r -f --verbosity:3 --listFullPaths --parallelBuild:1 src/nimble install

clang -c -w -O3 -I/Users/julien/Documents/projects/nimrod/lib -o /Users/julien/Documents/projects/nimble/src/nimcache/compat.o /Users/julien/Documents/projects/nimble/src/nimcache/compat.c
Error: execution of an external program failed; rerun with --parallelBuild:1 to see the error message
Traceback (most recent call last)
nimble.nim(810) nimble
nimble.nim(785) doAction
nimble.nim(569) install
nimble.nim(475) installFromDir
nimble.nim(424) buildFromDir
tools.nim(18) doCmd
Error: unhandled exception: Execution failed with exit code 256 [ENimble]
Error: execution of an external program failed
Traceback (most recent call last)
nimrod.nim(91) nimrod
nimrod.nim(80) handleCmdLine
extccomp.nim(422) execExternalProgram
msgs.nim(780) rawMessage
msgs.nim(777) rawMessage
msgs.nim(730) handleError

$ clang -v
Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.0.0
Thread model: posix

OSX Yosemite 10.10

@lewisl
Copy link

lewisl commented Oct 23, 2014

Same issue here.

@dom96
Copy link
Collaborator

dom96 commented Oct 23, 2014

This looks like a compiler bug. Can either of you guys show me the output with --parallelBuild:1?

@lewisl
Copy link

lewisl commented Oct 23, 2014

here is output with --parallelBuild:1

config/nimrod.cfg(38, 2) Hint: added path: '/Users/lewislevinmbr/.babel/pkgs/' [Path]
Hint: used config file '/usr/local/nimrod/config/nimrod.cfg' [Conf]
Hint: used config file 'src/nimble.nimrod.cfg' [Conf]
Hint: system [Processing]
Hint: nimble [Processing]
Hint: httpclient [Processing]
Hint: sockets [Processing]
Hint: os [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
Hint: times [Processing]
Hint: posix [Processing]
Hint: unsigned [Processing]
Hint: openssl [Processing]
lib/wrappers/openssl.nim(486, 45) Hint: 'EIO' is declared but not used [XDeclaredButNotUsed]
Hint: parseurl [Processing]
Hint: strtabs [Processing]
Hint: hashes [Processing]
Hint: base64 [Processing]
Hint: asyncnet [Processing]
Hint: asyncdispatch [Processing]
Hint: oids [Processing]
Hint: endians [Processing]
Hint: tables [Processing]
Hint: math [Processing]
lib/pure/math.nim(200, 7) Hint: 'math.gettime(dummy: ptr cint): cint' is declared but not used [XDeclaredButNotUsed]
Hint: macros [Processing]
Hint: rawsockets [Processing]
Hint: net [Processing]
Hint: selectors [Processing]
lib/pure/selectors.nim(213, 30) Warning: 'nil' statement is deprecated; use an empty 'discard' statement instead [NilStmt]
lib/pure/asyncdispatch.nim(1164, 6) Hint: 'cbName' is declared but not used [XDeclaredButNotUsed]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing recvLine as an async proc. [User]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing readIntoBuf as an async proc. [User]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing recv as an async proc. [User]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing recvLine as an async proc. [User]
lib/pure/asyncnet.nim(239, 16) Hint: conversion from string to itself is pointless [ConvFromXtoItselfNotNeeded]
lib/pure/httpclient.nim(261, 23) Warning: 'parseUrl' is deprecated [Deprecated]
lib/pure/httpclient.nim(272, 27) Warning: 'parseUrl' is deprecated [Deprecated]
lib/pure/httpclient.nim(324, 10) Warning: 'parseUrl' is deprecated [Deprecated]
lib/pure/httpclient.nim(326, 21) Warning: 'parseUrl' is deprecated [Deprecated]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing recvFull as an async proc. [User]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing parseChunks as an async proc. [User]
lib/pure/httpclient.nim(473, 6) Hint: 'ri' is declared but not used [XDeclaredButNotUsed]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing parseBody as an async proc. [User]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing parseResponse as an async proc. [User]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing newConnection as an async proc. [User]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing request as an async proc. [User]
lib/pure/httpclient.nim(598, 45) Info: instantiation from here
lib/pure/httpclient.nim(607, 10) Warning: 'parseUrl' is deprecated [Deprecated]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing get as an async proc. [User]
Hint: parseopt [Processing]
lib/pure/parseopt.nim(54, 34) Warning: 'quoteIfContainsWhite' is deprecated [Deprecated]
/usr/local/nimble/src/nimble.nim(4, 19) Warning: 'parseopt' is deprecated [Deprecated]
Hint: osproc [Processing]
Hint: streams [Processing]
Hint: cpuinfo [Processing]
lib/pure/osproc.nim(250, 13) Warning: 'startCmd' is deprecated [Deprecated]
lib/pure/osproc.nim(274, 19) Warning: 'startCmd' is deprecated [Deprecated]
lib/pure/osproc.nim(282, 14) Warning: 'startCmd' is deprecated [Deprecated]
lib/pure/osproc.nim(756, 6) Warning: 'osError' is deprecated [Deprecated]
lib/pure/osproc.nim(922, 10) Warning: 'startCmd' is deprecated [Deprecated]
lib/pure/osproc.nim(724, 7) Hint: 'osproc.startProcessAuxFork(data: TStartProcessData): TPid' is declared but not used [XDeclaredButNotUsed]
Hint: pegs [Processing]
Hint: unicode [Processing]
Hint: json [Processing]
Hint: lexbase [Processing]
Hint: algorithm [Processing]
Hint: sets [Processing]
lib/pure/collections/sets.nim(734, 5) Hint: 'sets.testModule()' is declared but not used [XDeclaredButNotUsed]
Hint: sequtils [Processing]
Hint: packageinfo [Processing]
Hint: parsecfg [Processing]
Hint: version [Processing]
/usr/local/nimble/src/nimblepkg/version.nim(58, 6) Warning: 'nil' statement is deprecated; use an empty 'discard' statement instead [NilStmt]
Hint: tools [Processing]
/usr/local/nimble/src/nimblepkg/tools.nim(84, 13) Warning: 'parseUrl' is deprecated [Deprecated]
/usr/local/nimble/src/nimblepkg/tools.nim(89, 10) Warning: 'nil' statement is deprecated; use an empty 'discard' statement instead [NilStmt]
/usr/local/nimble/src/nimblepkg/tools.nim(95, 10) Warning: 'nil' statement is deprecated; use an empty 'discard' statement instead [NilStmt]
/usr/local/nimble/src/nimblepkg/packageinfo.nim(186, 5) Warning: 'existsKey' is deprecated [Deprecated]
Hint: download [Processing]
/usr/local/nimble/src/nimblepkg/download.nim(31, 5) Hint: 'download.doPull(meth: TDownloadMethod, downloadDir: string)' is declared but not used [XDeclaredButNotUsed]
/usr/local/nimble/src/nimblepkg/download.nim(12, 5) Hint: 'download.getSpecificDir(meth: TDownloadMethod): string' is declared but not used [XDeclaredButNotUsed]
Hint: config [Processing]
Hint: compat [Processing]
/usr/local/nimble/src/nimble.nim(191, 4) Warning: 'renameBabelToNimble' is deprecated [Deprecated]
/usr/local/nimble/src/nimble.nim(319, 6) Hint: 'depNameVer' is declared but not used [XDeclaredButNotUsed]
/usr/local/nimble/src/nimble.nim(720, 84) Warning: 'osErrorMsg' is deprecated [Deprecated]
/usr/local/nimble/src/nimble.nim(720, 84) Warning: 'osErrorMsg' is deprecated [Deprecated]
clang   -o src/nimble  src/nimcache/compat.o src/nimcache/config.o src/nimcache/download.o src/nimcache/tools.o src/nimcache/version.o src/nimcache/parsecfg.o src/nimcache/packageinfo.o src/nimcache/sequtils.o src/nimcache/sets.o src/nimcache/algorithm.o src/nimcache/lexbase.o src/nimcache/json.o src/nimcache/unicode.o src/nimcache/pegs.o src/nimcache/cpuinfo.o src/nimcache/streams.o src/nimcache/osproc.o src/nimcache/parseopt.o src/nimcache/selectors.o src/nimcache/net.o src/nimcache/rawsockets.o src/nimcache/macros.o src/nimcache/math.o src/nimcache/tables.o src/nimcache/endians.o src/nimcache/oids.o src/nimcache/asyncdispatch.o src/nimcache/asyncnet.o src/nimcache/base64.o src/nimcache/hashes.o src/nimcache/strtabs.o src/nimcache/parseurl.o src/nimcache/openssl.o src/nimcache/unsigned.o src/nimcache/posix.o src/nimcache/times.o src/nimcache/parseutils.o src/nimcache/strutils.o src/nimcache/os.o src/nimcache/sockets.o src/nimcache/httpclient.o src/nimcache/system.o src/nimcache/nimble.o -ldl -lm
Hint: operation successful (36931 lines compiled; 3.928 sec total; 92.947MB) [SuccessX]
./src/nimble install
Installing nimble-0.4.0
Building nimble/nimble using c backend...
Hint: used config file '/usr/local/nimrod/config/nimrod.cfg' [Conf]
Hint: used config file '/usr/local/nimble/src/nimble.nimrod.cfg' [Conf]
Hint: system [Processing]
Hint: nimble [Processing]
Hint: httpclient [Processing]
Hint: sockets [Processing]
Hint: os [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
Hint: times [Processing]
Hint: posix [Processing]
Hint: unsigned [Processing]
Hint: openssl [Processing]
lib/wrappers/openssl.nim(486, 45) Hint: 'EIO' is declared but not used [XDeclaredButNotUsed]
Hint: parseurl [Processing]
Hint: strtabs [Processing]
Hint: hashes [Processing]
Hint: base64 [Processing]
Hint: asyncnet [Processing]
Hint: asyncdispatch [Processing]
Hint: oids [Processing]
Hint: endians [Processing]
Hint: tables [Processing]
Hint: math [Processing]
lib/pure/math.nim(200, 7) Hint: 'math.gettime(dummy: ptr cint): cint' is declared but not used [XDeclaredButNotUsed]
Hint: macros [Processing]
Hint: rawsockets [Processing]
Hint: net [Processing]
Hint: selectors [Processing]
lib/pure/selectors.nim(213, 30) Warning: 'nil' statement is deprecated; use an empty 'discard' statement instead [NilStmt]
lib/pure/asyncdispatch.nim(1164, 6) Hint: 'cbName' is declared but not used [XDeclaredButNotUsed]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing recvLine as an async proc. [User]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing readIntoBuf as an async proc. [User]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing recv as an async proc. [User]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing recvLine as an async proc. [User]
lib/pure/asyncnet.nim(239, 16) Hint: conversion from string to itself is pointless [ConvFromXtoItselfNotNeeded]
lib/pure/httpclient.nim(261, 23) Warning: 'parseUrl' is deprecated [Deprecated]
lib/pure/httpclient.nim(272, 27) Warning: 'parseUrl' is deprecated [Deprecated]
lib/pure/httpclient.nim(324, 10) Warning: 'parseUrl' is deprecated [Deprecated]
lib/pure/httpclient.nim(326, 21) Warning: 'parseUrl' is deprecated [Deprecated]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing recvFull as an async proc. [User]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing parseChunks as an async proc. [User]
lib/pure/httpclient.nim(473, 6) Hint: 'ri' is declared but not used [XDeclaredButNotUsed]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing parseBody as an async proc. [User]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing parseResponse as an async proc. [User]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing newConnection as an async proc. [User]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing request as an async proc. [User]
lib/pure/httpclient.nim(598, 45) Info: instantiation from here
lib/pure/httpclient.nim(607, 10) Warning: 'parseUrl' is deprecated [Deprecated]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing get as an async proc. [User]
Hint: parseopt [Processing]
lib/pure/parseopt.nim(54, 34) Warning: 'quoteIfContainsWhite' is deprecated [Deprecated]
nimble.nim(4, 19) Warning: 'parseopt' is deprecated [Deprecated]
Hint: osproc [Processing]
Hint: streams [Processing]
Hint: cpuinfo [Processing]
lib/pure/osproc.nim(250, 13) Warning: 'startCmd' is deprecated [Deprecated]
lib/pure/osproc.nim(274, 19) Warning: 'startCmd' is deprecated [Deprecated]
lib/pure/osproc.nim(282, 14) Warning: 'startCmd' is deprecated [Deprecated]
lib/pure/osproc.nim(756, 6) Warning: 'osError' is deprecated [Deprecated]
lib/pure/osproc.nim(922, 10) Warning: 'startCmd' is deprecated [Deprecated]
lib/pure/osproc.nim(724, 7) Hint: 'osproc.startProcessAuxFork(data: TStartProcessData): TPid' is declared but not used [XDeclaredButNotUsed]
Hint: pegs [Processing]
Hint: unicode [Processing]
Hint: json [Processing]
Hint: lexbase [Processing]
Hint: algorithm [Processing]
Hint: sets [Processing]
lib/pure/collections/sets.nim(734, 5) Hint: 'sets.testModule()' is declared but not used [XDeclaredButNotUsed]
Hint: sequtils [Processing]
Hint: packageinfo [Processing]
Hint: parsecfg [Processing]
Hint: version [Processing]
nimblepkg/version.nim(58, 6) Warning: 'nil' statement is deprecated; use an empty 'discard' statement instead [NilStmt]
Hint: tools [Processing]
nimblepkg/tools.nim(84, 13) Warning: 'parseUrl' is deprecated [Deprecated]
nimblepkg/tools.nim(89, 10) Warning: 'nil' statement is deprecated; use an empty 'discard' statement instead [NilStmt]
nimblepkg/tools.nim(95, 10) Warning: 'nil' statement is deprecated; use an empty 'discard' statement instead [NilStmt]
nimblepkg/packageinfo.nim(186, 5) Warning: 'existsKey' is deprecated [Deprecated]
Hint: download [Processing]
nimblepkg/download.nim(31, 5) Hint: 'download.doPull(meth: TDownloadMethod, downloadDir: string)' is declared but not used [XDeclaredButNotUsed]
nimblepkg/download.nim(12, 5) Hint: 'download.getSpecificDir(meth: TDownloadMethod): string' is declared but not used [XDeclaredButNotUsed]
Hint: config [Processing]
Hint: compat [Processing]
nimble.nim(191, 4) Warning: 'renameBabelToNimble' is deprecated [Deprecated]
nimble.nim(319, 6) Hint: 'depNameVer' is declared but not used [XDeclaredButNotUsed]
nimble.nim(720, 84) Warning: 'osErrorMsg' is deprecated [Deprecated]
nimble.nim(720, 84) Warning: 'osErrorMsg' is deprecated [Deprecated]
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/nimble.o /usr/local/nimble/src/nimcache/nimble.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/system.o /usr/local/nimble/src/nimcache/system.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/httpclient.o /usr/local/nimble/src/nimcache/httpclient.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/sockets.o /usr/local/nimble/src/nimcache/sockets.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/os.o /usr/local/nimble/src/nimcache/os.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/strutils.o /usr/local/nimble/src/nimcache/strutils.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/parseutils.o /usr/local/nimble/src/nimcache/parseutils.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/times.o /usr/local/nimble/src/nimcache/times.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/posix.o /usr/local/nimble/src/nimcache/posix.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/unsigned.o /usr/local/nimble/src/nimcache/unsigned.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/openssl.o /usr/local/nimble/src/nimcache/openssl.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/parseurl.o /usr/local/nimble/src/nimcache/parseurl.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/strtabs.o /usr/local/nimble/src/nimcache/strtabs.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/hashes.o /usr/local/nimble/src/nimcache/hashes.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/base64.o /usr/local/nimble/src/nimcache/base64.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/asyncnet.o /usr/local/nimble/src/nimcache/asyncnet.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/asyncdispatch.o /usr/local/nimble/src/nimcache/asyncdispatch.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/oids.o /usr/local/nimble/src/nimcache/oids.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/endians.o /usr/local/nimble/src/nimcache/endians.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/tables.o /usr/local/nimble/src/nimcache/tables.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/math.o /usr/local/nimble/src/nimcache/math.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/macros.o /usr/local/nimble/src/nimcache/macros.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/rawsockets.o /usr/local/nimble/src/nimcache/rawsockets.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/net.o /usr/local/nimble/src/nimcache/net.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/selectors.o /usr/local/nimble/src/nimcache/selectors.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/parseopt.o /usr/local/nimble/src/nimcache/parseopt.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/osproc.o /usr/local/nimble/src/nimcache/osproc.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/streams.o /usr/local/nimble/src/nimcache/streams.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/cpuinfo.o /usr/local/nimble/src/nimcache/cpuinfo.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/pegs.o /usr/local/nimble/src/nimcache/pegs.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/unicode.o /usr/local/nimble/src/nimcache/unicode.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/json.o /usr/local/nimble/src/nimcache/json.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/lexbase.o /usr/local/nimble/src/nimcache/lexbase.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/algorithm.o /usr/local/nimble/src/nimcache/algorithm.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/sets.o /usr/local/nimble/src/nimcache/sets.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/sequtils.o /usr/local/nimble/src/nimcache/sequtils.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/packageinfo.o /usr/local/nimble/src/nimcache/packageinfo.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/parsecfg.o /usr/local/nimble/src/nimcache/parsecfg.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/version.o /usr/local/nimble/src/nimcache/version.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/tools.o /usr/local/nimble/src/nimcache/tools.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/download.o /usr/local/nimble/src/nimcache/download.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/config.o /usr/local/nimble/src/nimcache/config.c 
clang -c  -w -O3  -I/usr/local/nimrod/lib -o /usr/local/nimble/src/nimcache/compat.o /usr/local/nimble/src/nimcache/compat.c 
Error:  execution of an external program failed; rerun with --parallelBuild:1 to see the error message
Traceback (most recent call last)
nimble.nim(810)          nimble
nimble.nim(785)          doAction
nimble.nim(569)          install
nimble.nim(475)          installFromDir
nimble.nim(424)          buildFromDir
tools.nim(18)            doCmd
Error: unhandled exception: Execution failed with exit code 256 [ENimble]
Error: execution of an external program failed

@dom96
Copy link
Collaborator

dom96 commented Oct 23, 2014

So it does compile when you compile it yourself? It only fails when doing ./src/nimble install? That must mean it fails in release mode. Try nimrod c -d:release --parallelBuild:1.

@boydgreenfield
Copy link

I'm having the same issue on OS X. Here's the tail of the relevant output:

Hint: download [Processing]
nimblepkg/download.nim(88, 25) Warning: use OSError instead; EOS is deprecated [Deprecated]
nimblepkg/download.nim(98, 23) Warning: use ValueError instead; EInvalidValue is deprecated [Deprecated]
nimblepkg/download.nim(100, 41) Warning: use Table instead; TTable is deprecated [Deprecated]
nimblepkg/download.nim(213, 11) Warning: use OSError instead; EOS is deprecated [Deprecated]
nimblepkg/download.nim(31, 5) Hint: 'download.doPull(meth: TDownloadMethod, downloadDir: string)' is declared but not used [XDeclaredButNotUsed]
nimblepkg/download.nim(12, 5) Hint: 'download.getSpecificDir(meth: TDownloadMethod): string' is declared but not used [XDeclaredButNotUsed]
Hint: config [Processing]
nimblepkg/config.nim(31, 11) Warning: use CfgParser instead; TCfgParser is deprecated [Deprecated]
Hint: compat [Processing]
nimble.nim(21, 16) Warning: use JsonNode instead; PJsonNode is deprecated [Deprecated]
nimble.nim(132, 10) Warning: use 'else: discard'; non-ordinal case without 'else' is deprecated [Deprecated]
nimble.nim(178, 6) Warning: use 'else: discard'; non-ordinal case without 'else' is deprecated [Deprecated]
nimble.nim(191, 4) Warning: renameBabelToNimble is deprecated [Deprecated]
nimble.nim(262, 61) Warning: use HashSet instead; TSet is deprecated [Deprecated]
nimble.nim(319, 6) Hint: 'depNameVer' is declared but not used [XDeclaredButNotUsed]
nimble.nim(332, 23) Warning: use JsonNode instead; PJsonNode is deprecated [Deprecated]
nimble.nim(399, 18) Warning: use StringTableRef instead; PStringTable is deprecated [Deprecated]
nimble.nim(426, 61) Warning: use HashSet instead; TSet is deprecated [Deprecated]
nimble.nim(438, 25) Warning: use JsonParsingError instead; EJsonParsingError is deprecated [Deprecated]
nimble.nim(451, 9) Warning: use OSError instead; EOS is deprecated [Deprecated]
nimble.nim(451, 14) Warning: use JsonParsingError instead; EJsonParsingError is deprecated [Deprecated]
nimble.nim(492, 22) Warning: use HashSet instead; TSet is deprecated [Deprecated]
nimble.nim(689, 13) Warning: use File instead; TFile is deprecated [Deprecated]
nimble.nim(720, 84) Warning: osErrorMsg is deprecated [Deprecated]
nimble.nim(720, 84) Warning: osErrorMsg is deprecated [Deprecated]
/Users/boyd/Applications/nim/nimble/src/nimcache/stdlib_cpuinfo.c:10:1: error: extraneous closing brace ('}')
}
^
1 error generated.
Error: execution of an external program failed

Command was nim c -d:release --parallelBuild:1 src/nimble.nim from within the nimble directory.

@dom96
Copy link
Collaborator

dom96 commented Oct 28, 2014

It compiles for me on Mac OS X 10.7. Perhaps newer clang doesn't like the code Nim generates?

@zombified
Copy link

OSX 10.9.5 here,

I ran:

nimrod c --parallelBuild:1 src/nimble.nim

And got no error, but when I ran:

nimrod c -d:release --parallelBuild:1 src/nimble.nim

I got:

config/nimrod.cfg(38, 2) Hint: added path: '/path/to/home/.babel/pkgs/' [Path]
Hint: used config file '/path/to/Nimrod/config/nimrod.cfg' [Conf]
Hint: used config file '/path/to/nimble/src/nimble.nimrod.cfg' [Conf]
Hint: system [Processing]
Hint: nimble [Processing]
Hint: httpclient [Processing]
Hint: sockets [Processing]
Hint: os [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
Hint: times [Processing]
Hint: posix [Processing]
Hint: unsigned [Processing]
Hint: openssl [Processing]
lib/wrappers/openssl.nim(486, 45) Hint: 'EIO' is declared but not used [XDeclaredButNotUsed]
Hint: parseurl [Processing]
Hint: strtabs [Processing]
Hint: hashes [Processing]
Hint: base64 [Processing]
Hint: asyncnet [Processing]
Hint: asyncdispatch [Processing]
Hint: oids [Processing]
Hint: endians [Processing]
Hint: tables [Processing]
Hint: math [Processing]
lib/pure/math.nim(200, 7) Hint: 'math.gettime(dummy: ptr cint): cint' is declared but not used [XDeclaredButNotUsed]
Hint: macros [Processing]
Hint: rawsockets [Processing]
Hint: net [Processing]
Hint: selectors [Processing]
lib/pure/selectors.nim(213, 30) Warning: 'nil' statement is deprecated; use an empty 'discard' statement instead [NilStmt]
lib/pure/asyncdispatch.nim(1164, 6) Hint: 'cbName' is declared but not used [XDeclaredButNotUsed]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing recvLine as an async proc. [User]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing readIntoBuf as an async proc. [User]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing recv as an async proc. [User]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing recvLine as an async proc. [User]
lib/pure/asyncnet.nim(239, 16) Hint: conversion from string to itself is pointless [ConvFromXtoItselfNotNeeded]
lib/pure/httpclient.nim(261, 23) Warning: 'parseUrl' is deprecated [Deprecated]
lib/pure/httpclient.nim(272, 27) Warning: 'parseUrl' is deprecated [Deprecated]
lib/pure/httpclient.nim(324, 10) Warning: 'parseUrl' is deprecated [Deprecated]
lib/pure/httpclient.nim(326, 21) Warning: 'parseUrl' is deprecated [Deprecated]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing recvFull as an async proc. [User]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing parseChunks as an async proc. [User]
lib/pure/httpclient.nim(473, 6) Hint: 'ri' is declared but not used [XDeclaredButNotUsed]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing parseBody as an async proc. [User]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing parseResponse as an async proc. [User]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing newConnection as an async proc. [User]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing request as an async proc. [User]
lib/pure/httpclient.nim(598, 45) Info: instantiation from here
lib/pure/httpclient.nim(607, 10) Warning: 'parseUrl' is deprecated [Deprecated]
lib/pure/asyncdispatch.nim(1113, 6) Hint: Processing get as an async proc. [User]
Hint: parseopt [Processing]
lib/pure/parseopt.nim(54, 34) Warning: 'quoteIfContainsWhite' is deprecated [Deprecated]
nimble.nim(4, 19) Warning: 'parseopt' is deprecated [Deprecated]
Hint: osproc [Processing]
Hint: streams [Processing]
Hint: cpuinfo [Processing]
lib/pure/osproc.nim(250, 13) Warning: 'startCmd' is deprecated [Deprecated]
lib/pure/osproc.nim(274, 19) Warning: 'startCmd' is deprecated [Deprecated]
lib/pure/osproc.nim(282, 14) Warning: 'startCmd' is deprecated [Deprecated]
lib/pure/osproc.nim(756, 6) Warning: 'osError' is deprecated [Deprecated]
lib/pure/osproc.nim(922, 10) Warning: 'startCmd' is deprecated [Deprecated]
lib/pure/osproc.nim(724, 7) Hint: 'osproc.startProcessAuxFork(data: TStartProcessData): TPid' is declared but not used [XDeclaredButNotUsed]
Hint: pegs [Processing]
Hint: unicode [Processing]
Hint: json [Processing]
Hint: lexbase [Processing]
Hint: algorithm [Processing]
Hint: sets [Processing]
lib/pure/collections/sets.nim(734, 5) Hint: 'sets.testModule()' is declared but not used [XDeclaredButNotUsed]
Hint: sequtils [Processing]
Hint: packageinfo [Processing]
Hint: parsecfg [Processing]
Hint: version [Processing]
nimblepkg/version.nim(58, 6) Warning: 'nil' statement is deprecated; use an empty 'discard' statement instead [NilStmt]
Hint: tools [Processing]
nimblepkg/tools.nim(84, 13) Warning: 'parseUrl' is deprecated [Deprecated]
nimblepkg/tools.nim(89, 10) Warning: 'nil' statement is deprecated; use an empty 'discard' statement instead [NilStmt]
nimblepkg/tools.nim(95, 10) Warning: 'nil' statement is deprecated; use an empty 'discard' statement instead [NilStmt]
nimblepkg/packageinfo.nim(186, 5) Warning: 'existsKey' is deprecated [Deprecated]
Hint: download [Processing]
nimblepkg/download.nim(31, 5) Hint: 'download.doPull(meth: TDownloadMethod, downloadDir: string)' is declared but not used [XDeclaredButNotUsed]
nimblepkg/download.nim(12, 5) Hint: 'download.getSpecificDir(meth: TDownloadMethod): string' is declared but not used [XDeclaredButNotUsed]
Hint: config [Processing]
Hint: compat [Processing]
nimble.nim(191, 4) Warning: 'renameBabelToNimble' is deprecated [Deprecated]
nimble.nim(319, 6) Hint: 'depNameVer' is declared but not used [XDeclaredButNotUsed]
nimble.nim(720, 84) Warning: 'osErrorMsg' is deprecated [Deprecated]
nimble.nim(720, 84) Warning: 'osErrorMsg' is deprecated [Deprecated]
/path/to/nimble/src/nimcache/stdlib_cpuinfo.c:10:1: error: extraneous closing brace ('}')
}
^
1 error generated.
Error: execution of an external program failed

@zombified
Copy link

To add to my previous comment, this is the stdlib_cpuinfo.c file that's throwing the error:

/* Generated by Nimrod Compiler v0.9.6 */
/*   (c) 2014 Andreas Rumpf */
/* The generated code is subject to the original license. */
/* Compiled for: MacOSX, amd64, clang */
/* Command for C compiler:
    clang -c  -w -O3  -I/Users/joel/src/external/Nimrod/lib -o /path/to/src/external/nimble/src/nimcache/stdlib_cpuinfo.o /Users/joel/src/external/ni
#define NIM_INTBITS 64
#include "nimbase.h"
#include <sys/types.h>#include <sys/sysctl.h>N_NOINLINE(void, stdlib_cpuinfoInit)(void) {
}

N_NOINLINE(void, stdlib_cpuinfoDatInit)(void) {
}

looks like maybe something is not adding newlines appropriately?

@dom96
Copy link
Collaborator

dom96 commented Dec 3, 2014

Does it work with 0.10?

dom96 added a commit that referenced this issue Dec 3, 2014
Mentions OSX users can't use 0.9.6 compiler. Refs #62.
@zombified
Copy link

seems to have installed without throwing the same error -- but it installed into ~/.babel/ instead of ~/.nimrod

Not sure if that's intentional? In any case, I moved it to ~/.nimble and am now hitting the same error as #68

@gradha
Copy link
Contributor

gradha commented Dec 16, 2014

I think nimble installs into .babel when it doesn't find the nim compiler in your path. This would mean that there is some compiler installation conflict. It happened to me long ago too, I had the new nim binary at the same time as the older nimrod and had weird compilation errors, so I made shell scripts to switch between one and another.

See this installation log excerpt using nim:

CC: nimble_version
CC: nimble_tools
CC: nimble_download
CC: nimble_config
CC: nimble_compat
[Linking]
Hint: operation successful (37716 lines compiled; 1.547 sec total; 94.962MB) [SuccessX]
/Users/gradha/project/nimrod/nimble/src/nimble install
Found deprecated babel package directory, would you like to rename it to nimble? [y/N]

On top of saying that it found a deprecated directory the giveaway is that the stable 0.9.6 compiler doesn't show "CC: xxxx" lines.

Could you try reproducing your steps on a new user account (could be the guest osx account) to see if that makes a difference? I can't reproduce the problems.

@dom96
Copy link
Collaborator

dom96 commented Dec 25, 2014

Latest Nimble shouldn't try putting anything in ~/.babel. If that directory exists it will ask if you want to move it into ~/.nimble. I will close this issue as it was related to a Nim bug not a Nimble bug and that issue seems fixed now anyway.

@dom96 dom96 closed this as completed Dec 25, 2014
@tastyminerals
Copy link

Hey guys, I stumbled upon this thread as I am getting the same error right now.

$nimble install aporia@#head`
Error: unhandled exception: /home/user/.nimble/packages.json(1, 0) Error: { expected JsonParsingError]

nim compiler version is 0.11.2

@dom96
Copy link
Collaborator

dom96 commented Jun 1, 2015

Your packages.json is likely empty. Can you try nimble update?

@tastyminerals
Copy link

Submitted an issue in nimble issues.

$ nimble update
Downloading package list from https://github.com/nim-lang/packages/raw/master/packages.json
Error: unhandled exception: 404 Not Found [HttpRequestError]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants