emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Evaluating C code block on remote host
@ 2017-03-28 13:31 Иван Трусков
  0 siblings, 0 replies; only message in thread
From: Иван Трусков @ 2017-03-28 13:31 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2629 bytes --]

I am working on windows machine. I have last org version (from february
2017).
I have a remote host accessible by putty, where i have created org file of
the following contents:

#+TITLE C language things

* Simple hello-world program

#+NAME hello world on C
#+BEGIN_SRC C :dir /pscp:tcl:/home/tc/development :main no
  #include <stdio.h>

  int main()
  {
      printf("Hello, world!");
      return 0;
  }
#+END_SRC

where tcl is name of saved putty configuration

When i evaluate codefragment, overall result is a failure (however, it is
not a crash, and toggling debug on yields no backtrace)
Here is what is output to *Message* buffer:

executing C code block...
Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816iL0.c to
/pscp:tcl:/tmp/C-src-4816VBu.c...
Tramp: Waiting for prompts from remote shell...
Tramp: Process has finished.
Tramp: Waiting for prompts from remote shell...done
Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816iL0.c to
/pscp:tcl:/tmp/C-src-4816VBu.c...done
Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816hfJ.exe to
/pscp:tcl:/tmp/C-bin-4816UVD.exe...
Tramp: Waiting for prompts from remote shell...
Tramp: Process has finished.
Tramp: Waiting for prompts from remote shell...done
Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816hfJ.exe to
/pscp:tcl:/tmp/C-bin-4816UVD.exe...done
Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816upP.c to
/pscp:tcl:/tmp/C-src-4816VBu.c...
Tramp: Waiting for prompts from remote shell...
Tramp: Process has finished.
Tramp: Waiting for prompts from remote shell...done
Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816upP.c to
/pscp:tcl:/tmp/C-src-4816VBu.c...done
Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816I-b to
/pscp:tcl:/tmp/ob-input-48167zV...
Tramp: Waiting for prompts from remote shell...
Tramp: Process has finished.
Tramp: Waiting for prompts from remote shell...done
Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816I-b to
/pscp:tcl:/tmp/ob-input-48167zV...done
Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816iSo to
/pscp:tcl:/tmp/ob-error-4816VIi...
Tramp: Waiting for prompts from remote shell...
Tramp: Process has finished.
Tramp: Waiting for prompts from remote shell...done
Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816iSo to
/pscp:tcl:/tmp/ob-error-4816VIi...done
Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816vcu to
/pscp:tcl:/tmp/ob-input-48167zV...failed
byte-code: Spawning child process: invalid argument

What is going on there? What does error in the end mean? Most importantly,
is code block being evaluated on remote host at all? Can output of
org-babel commands be turned on to get that information?

[-- Attachment #2: Type: text/html, Size: 2885 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-03-28 13:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-28 13:31 Evaluating C code block on remote host Иван Трусков

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).