From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?0JjQstCw0L0g0KLRgNGD0YHQutC+0LI=?= Subject: Evaluating C code block on remote host Date: Tue, 28 Mar 2017 16:31:49 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114147f06cd3e2054bca7be7 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1csrE0-0001P6-Dx for emacs-orgmode@gnu.org; Tue, 28 Mar 2017 09:31:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1csrDz-0002EP-AK for emacs-orgmode@gnu.org; Tue, 28 Mar 2017 09:31:52 -0400 Received: from mail-ot0-x22b.google.com ([2607:f8b0:4003:c0f::22b]:34435) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1csrDz-0002Dv-4Z for emacs-orgmode@gnu.org; Tue, 28 Mar 2017 09:31:51 -0400 Received: by mail-ot0-x22b.google.com with SMTP id a5so51730562oth.1 for ; Tue, 28 Mar 2017 06:31:50 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --001a114147f06cd3e2054bca7be7 Content-Type: text/plain; charset=UTF-8 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 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? --001a114147f06cd3e2054bca7be7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I am working on windows machine. I hav= e 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 :mai= n no
=C2=A0 #include <stdio.h>

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

where tcl is name of saved putty configuration

When i eval= uate 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-4= 816VBu.c...done
Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816hfJ.e= xe to /pscp:tcl:/tmp/C-bin-4816UVD.exe...
Tramp: Waiting for prompts fro= m remote shell...
Tramp: Process has finished.
Tramp: Waiting for pro= mpts from remote shell...done
Copying c:/Users/Ivan/AppData/Local/Temp/t= ramp.4816hfJ.exe to /pscp:tcl:/tmp/C-bin-4816UVD.exe...done
Copying c:/U= sers/Ivan/AppData/Local/Temp/tramp.4816upP.c to /pscp:tcl:/tmp/C-src-4816VB= u.c...
Tramp: Waiting for prompts from remote shell...
Tramp: Process= has finished.
Tramp: Waiting for prompts from remote shell...done
Co= pying 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.4816= I-b to /pscp:tcl:/tmp/ob-input-48167zV...
Tramp: Waiting for prompts fro= m remote shell...
Tramp: Process has finished.
Tramp: Waiting for pro= mpts from remote shell...done
Copying c:/Users/Ivan/AppData/Local/Temp/t= ramp.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 f= inished.
Tramp: Waiting for prompts from remote shell...done
Copying = c:/Users/Ivan/AppData/Local/Temp/tramp.4816iSo to /pscp:tcl:/tmp/ob-error-4= 816VIi...done
Copying c:/Users/Ivan/AppData/Local/Temp/tramp.4816vcu to = /pscp:tcl:/tmp/ob-input-48167zV...failed
byte-code: Spawning child proce= ss: invalid argument

What is going on there? What does error i= n the end mean? Most importantly, is code block being evaluated on remote h= ost at all? Can output of org-babel commands be turned on to get that infor= mation?
--001a114147f06cd3e2054bca7be7--