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

Compiling for Standalone AVR broken in 0.10.2 #1964

timfoden opened this issue Jan 15, 2015 · 1 comment

Compiling for Standalone AVR broken in 0.10.2 #1964

timfoden opened this issue Jan 15, 2015 · 1 comment


Copy link

When I compile a simple Hello World example for an embedded AVR (standalone) the compile fails with a type mismatch error in system.nim (299, 46).

This can be reproduced on Windows using the following source files:

U:>type hello.nim

echo "Hello, World!"

U:>type panicoverride.nim

proc printf(frmt: cstring) {.varargs, importc, header: "<stdio.h>", cdecl.}
proc exit(code: int) {.importc, header: "<stdlib.h>", cdecl.}

{.push stack_trace: off, profiler:off.}

proc rawoutput(s: string) =
  printf("%s\n", s)

proc panic(s: string) =


U:>nim --version
Nim Compiler Version 0.10.2 (2014-12-30) [Windows: i386]
Copyright (c) 2006-2014 by Andreas Rumpf

U:>nim c -c --cpu:avr --os:standalone --deadCodeElim:on hello.nim
c:\dev\nim\config\nim.cfg(45, 2) Hint: added path: 'C:\Users\dwfntfoden.babel\p
kgs' [Path]
c:\dev\nim\config\nim.cfg(46, 2) Hint: added path: 'C:\Users\dwfntfoden.nimble
pkgs' [Path]
Hint: used config file 'c:\dev\Nim\config\nim.cfg' [Conf]
Hint: system [Processing]
c:\dev\nim\lib\system.nim(299, 46) Error: type mismatch

Copy link

Araq commented Jan 18, 2015

Who said 'echo' works for os:standalone?

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

No branches or pull requests

2 participants