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

bootstrapping #7

Closed
hamuz opened this issue Jan 7, 2011 · 1 comment
Closed

bootstrapping #7

hamuz opened this issue Jan 7, 2011 · 1 comment

Comments

@hamuz
Copy link

hamuz commented Jan 7, 2011

after cloning the git, I've tried to do bootstrapping as shown in the wiki but got the following error:

c:\Users\root\Nimrod\lib\pure\osproc.nim(323, 67) Error: type mismatch: got (seq
[string], openarray[string])
but expected one of:
&(x: string, y: char): string
&(x: char, y: char): string
&(x: string, y: string): string
&(x: char, y: string): string
&(x: T, y: seq[T]): seq[T]
&(x: seq[T], y: seq[T]): seq[T]
&(x: seq[T], y: T): seq[T]

FAILURE

after looking into the file I've do the following, changed:
if false: # poUseShell in options:
cmdl = buildCommandLine(getEnv("COMSPEC"), @["/c", command] & args)
else:
cmdl = buildCommandLine(command, args)
into:
#if false: # poUseShell in options:
# cmdl = buildCommandLine(getEnv("COMSPEC"), @["/c", command] & args)
#else:
cmdl = buildCommandLine(command, args)

because it produce the same effect, but now compiles.

now when I try again I get the following error (after rod/nimrod.exe is done - iteration 1):
Hint: operation successful (41491 lines compiled; 72 sec total) [SuccessX]
iteration: 2
Traceback (most recent call last)
koch.nim(195) koch
koch.nim(138) boot
koch.nim(123) bootIteration
os.nim(653) moveFile
os.nim(167) OSError
Error: unhandled exception: Access is denied.
[EOS]

P.S:
I've tested the newly compiled rod/nimrod.exe and it seems to work.

@Araq
Copy link
Member

Araq commented Jan 7, 2011

"Error: unhandled exception: Access is denied." seems to be caused by your path "c:\Users\root". The other issue that osproc did not compile on windows anymore has been fixed.

n5m added a commit to n5m/Nim that referenced this issue Jul 11, 2021
# This is the 1st commit message:

default last in strutils.find to -1

# This is the commit message nim-lang#2:

Revert "default last in strutils.find to -1"

This reverts commit 3a99556.

# This is the commit message nim-lang#3:

add openArray variable of find with SkipTable

# This is the commit message nim-lang#4:

add find method that accepts an openArray

# This is the commit message nim-lang#5:

add tests

# This is the commit message nim-lang#6:

Revert "add find method that accepts an openArray"

This reverts commit 2ab5351.

# This is the commit message nim-lang#7:

Revert "add openArray variable of find with SkipTable"

This reverts commit 58159fc.
n5m added a commit to n5m/Nim that referenced this issue Jul 11, 2021
# This is the 1st commit message:

default last in strutils.find to -1

# This is the commit message nim-lang#2:

Revert "default last in strutils.find to -1"

This reverts commit 3a99556.

# This is the commit message nim-lang#3:

add openArray variable of find with SkipTable

# This is the commit message nim-lang#4:

add find method that accepts an openArray

# This is the commit message nim-lang#5:

add tests

# This is the commit message nim-lang#6:

Revert "add find method that accepts an openArray"

This reverts commit 2ab5351.

# This is the commit message nim-lang#7:

Revert "add openArray variable of find with SkipTable"

This reverts commit 58159fc.
n5m added a commit to n5m/Nim that referenced this issue Aug 21, 2021
# This is the 1st commit message:

default last in strutils.find to -1

# This is the commit message nim-lang#2:

Revert "default last in strutils.find to -1"

This reverts commit 3a99556.

# This is the commit message nim-lang#3:

add openArray variable of find with SkipTable

# This is the commit message nim-lang#4:

add find method that accepts an openArray

# This is the commit message nim-lang#5:

add tests

# This is the commit message nim-lang#6:

Revert "add find method that accepts an openArray"

This reverts commit 2ab5351.

# This is the commit message nim-lang#7:

Revert "add openArray variable of find with SkipTable"

This reverts commit 58159fc.
n5m added a commit to n5m/Nim that referenced this issue Jan 5, 2022
# This is the 1st commit message:

default last in strutils.find to -1

# This is the commit message nim-lang#2:

Revert "default last in strutils.find to -1"

This reverts commit 3a99556.

# This is the commit message nim-lang#3:

add openArray variable of find with SkipTable

# This is the commit message nim-lang#4:

add find method that accepts an openArray

# This is the commit message nim-lang#5:

add tests

# This is the commit message nim-lang#6:

Revert "add find method that accepts an openArray"

This reverts commit 2ab5351.

# This is the commit message nim-lang#7:

Revert "add openArray variable of find with SkipTable"

This reverts commit 58159fc.
This issue was closed.
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

2 participants