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.
Summary: | Build on remote host fail | ||
---|---|---|---|
Product: | cnd | Reporter: | micheleg |
Component: | Remote | Assignee: | Vladimir Kvashin <vkvashin> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | rbalada |
Priority: | P3 | ||
Version: | 7.0 | ||
Hardware: | PC | ||
OS: | Windows 7 x64 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | The fixed script |
Description
micheleg
2010-05-21 12:29:28 UTC
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 |