This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Overview: When I build my C project on a particular remote host I get this error message: Copying project files to /root/.netbeans/remote/istech09-Windows-x86/ at root@192.168.0.191:22 /bin/sh: line 4: /var/tmp/dlight_root/55856f2c/tools/Linux-unknown/rfs_controller: No such file or directory /bin/sh: line 4: exec: /var/tmp/dlight_root/55856f2c/tools/Linux-unknown/rfs_controller: cannot execute: No such file or directory Error copying project files to /root/.netbeans/remote/istech09-Windows-x86/ at root@192.168.0.191:22: Remote controller failed; rc=126 Steps to reproduce: 1) Select the project and build. Tested on development IDE version 201005192201. Additional info: The problem is connected only to a particular remote host. I made some tests with other systems and I think that the problem is due to the fact that this remote host is not a genuine Intel processor but only a x86 compatible (I note the "Linux-unknown" directory in the error message!). My uname -a reports: Linux sx100c 2.6.27.7-smp #2 SMP Thu Nov 20 22:32:43 CST 2008 i686 VIA Eden Processor 1000MHz CentaurHauls GNU/Linux
What does uname -p and uname -m say on your remote machine?
There is a workaround: you can hack the following file ${NBDIST}/ide/bin/nativeexecution/hostinfo.sh (where ${NBDIST} stands for NetBeans installation directory). This script determines remote host properties. The key lines for cpu type are CPUTYPE=`uname -p` if [ "${CPUTYPE}" = "unknown" ]; then CPUTYPE=`uname -m` fi CPUFAMILY=`(echo ${CPUTYPE} | egrep "^i|x86_64|athlon|Intel" >/dev/null && echo x86) || echo ${CPUTYPE}` If you tune the script so that CPUFAMILY is set to "x86" for your host, remote should work, I believe.
here is what uname say: root@sx100c:~# uname -p VIA Eden Processor 1000MHz root@sx100c:~# uname -m i686 and this is the output of the script hostinfo.sh executed on remote host: root@sx100c:~# sh hostinfo.sh BITNESS=32 CPUFAMILY=VIA Eden Processor 1000MHz CPUNUM=1 CPUTYPE=VIA Eden Processor 1000MHz HOSTNAME=sx100c OSNAME= OSBUILD= OSFAMILY=LINUX USER=root SH=/bin/bash USERDIRBASE=/root TMPDIRBASE=/var/tmp/dlight_root/ DATETIME=2010-05-21 14:11:18 ENVFILE=/var/tmp/dlight_root//env I tried to modify the script in the nativeexecution directory but it doesn't work. Even forcing CPUFAMILY=x86 I get the same error (with the "Linux-unknown" directory). Naturally I delete and recreate remote host in the Host Manager.
I believe it is now fixed (in cnd-main): http://hg.netbeans.org/cnd-main/rev/272cdc06fedb
Created attachment 99850 [details] The fixed script I'm attaching the fixed script, so you don't have to wait until my changes are in development build. Could you please replace your hostinfo.sh with the attached file and check whether it works on your machine? If not, please reopen this issue.
I just tested the script on the Dev IDE build 201006050001. It works perfectly! In the next days I will try this IDE in a production environment. Thank you very much.
Integrated into 'main-golden', will be available in build *201006080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/272cdc06fedb User: Vladimir Kvashin <vkvashin@netbeans.org> Log: fixed #186503 - Build on remote host fail
Please verify bugfix for this bug, so it can be included in release691 repository. Thanks, -R
verified by user micheleg
main #272cdc06fedb transplanted to release691 #305dae94dab3
verified in 6.9.1