Problem with cygwin (solved)

Hi,

I just can’t understand what’s happening : I was using ROOT the whole day without any problem, but after a crash & reboot, there’s no more prompt when I start it ! :question: :question: :question:

I’m using the win32gdk v4.03.02 version under cygwin and Win Me. There are no problems under cygwin bash shell (except the fact that there is no graphical output :wink: ) or MS-DOS window (no output either).

What should I do ? I know you may need more infos but what kind of info ?

Thanks in advance.

Regards.

Hi,

I don’t understand - you’re saying there are no problems under bash nor under the windows command prompt, but you don’t get a prompt? What graphical output?

Could you tell me what you type, what you see, and what you expect to see?
Axel.

Hi Axel,

under bash or windows command, I see :

[code] *******************************************

  •                                     *
    
  •    W E L C O M E  to  R O O T       *
    
  •                                     *
    
  • Version 4.02/00 20 December 2004 *
  •                                     *
    
  • You are welcome to visit our Web site *
  •      http://root.cern.ch            *
    
  •                                     *
    

FreeType Engine v2.1.3 used to render TrueType fonts.
Compiled for linux with thread support.

CINT/ROOT C/C++ Interpreter version 5.15.159, Nov 14 2004
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0]
[/code]
so for me that’s ok. But when trying “hello world” or to print a canvas, there is no output. Under xterm, I expect to see the same screen - as until yesterday afternoon… -, but there is no prompt :

[code] *******************************************

  •                                     *
    
  •    W E L C O M E  to  R O O T       *
    
  •                                     *
    
  • Version 4.02/00 20 December 2004 *
  •                                     *
    
  • You are welcome to visit our Web site *
  •      http://root.cern.ch            *
    
  •                                     *
    

FreeType Engine v2.1.3 used to render TrueType fonts.
Compiled for linux with thread support.

CINT/ROOT C/C++ Interpreter version 5.15.159, Nov 14 2004
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
[/code]
and I have to quit with CTRL-C…

(Note that version details are false here, this is the labo screen under linux, not mine under cygwin…)

Hi,

uh, okay. This sounds like a wrong setting of your env vars, +maybe some broken / missing files. Please send the output of “env” from a bash shell, and of “set” from a command.com (of whatever the name of cmd.exe under WinME was). Please check that the ROOT welcome “screen” on your computer really says “win32gdk” - otherwise things are different… And please send me the output of “ls -l $ROOTSYS/bin” from a cygwin bash.

Axel.

Hi Axel, here they are :

synapses@homer ~
$ env
!C:=C:\utils\cygwin\bin
BLASTER=A220 I5 D1 T4 P330
CMDLINE=bash --login -i
COMSPEC=C:\WINDOWS\COMMAND.COM
CVS_RSH=/bin/ssh
DISPLAY=:0.0
HOME=/HOME/SYNAPSES
HOSTNAME=homer
INCLUDE=C:\UTILS\VC__~1\ATL\INCLUDE;C:\UTILS\VC__~1\INCLUDE;C:\UTILS\VC__~1\MFC\INCLUDE;
INFOPATH=/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:
LIB=C:\UTILS\VC__~1\LIB;C:\UTILS\VC__~1\MFC\LIB;
LOGNAME=synapses
MAKE_MODE=unix
MANPATH=/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man:/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man:/usr/X11R6/man:/usr/ssl/man:/usr/X11R6/man
MSDEVDIR=C:\UTILS\VISUAL~1\msdev98
MSVCDIR=C:\UTILS\VC__~1
OLDPWD=/HOME/SYNAPSES
PATH=c:/utils/cygwin/home/synapses/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:c:/utils/cygwin/home/synapses/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/UTILS/VISUAL~1/MSDEV98/BIN:
/cygdrive/c/UTILS/VC__~1/BIN:/cygdrive/c/UTILS/VISUAL~1/TOOLS/WIN95:/cygdrive/c/UTILS/VISUAL~1/TOOLS:/cygdrive/c/WINDOWS/SYSTEM:/HOME/SYNAPSES/ROOT/BIN:/cygdrive/c/UTILS/MIKTEX/MIKTEX/BIN:
/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/COMMAND:/cygdrive/c/UTILS/GTK/2.0/BIN:/cygdrive/c/PROGRA~1/FICHIE~1/GTK/2.0/BIN:/cygdrive/c/UTILS/VC++/BIN:/cygdrive/c/UTILS/VC++/BIN
PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig
PRINTER=
PROMPT=$p$g
PS1=\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ 
PWD=/HOME/SYNAPSES
ROOTSYS=c:/utils/cygwin/home/synapses/root
SHLVL=2
SYSTEMROOT=C:\WINDOWS
TEMP=/cygdrive/c/WINDOWS/TEMP
TERM=xterm
TERMCAP=xterm-r6|xterm|xterm X11R6 version:am:km:mi:ms:xn:co#80:it#8:li#24:AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:ae=^O:al=\E[L:as=^N:bl=^G:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:
cm=\E[%i%d;%dH:cr=^M:cs=\E[%i%d;%dr:ct=\E[3g:dc=\E[P:dl=\E[M:do=^J:ei=\E[4l:ho=\E[H:im=\E[4h:is=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:
k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:kD=\E[3~:kI=\E[2~:kN=\E[6~:kP=\E[5~:kd=\EOB:ke=\E[?1l\E>:kh=\E[1~:kl=\EOD:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:
md=\E[1m:me=\E[m:mr=\E[7m:nd=\E[C:rc=\E8:sc=\E7:se=\E[m:sf=^J:so=\E[7m:sr=\EM:ta=^I:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:ue=\E[m:up=\E[A:us=\E[4m:kb=\010:
TMP=/cygdrive/c/WINDOWS/TEMP
TMPDIR=/TMP
USER=synapses
WINBOOTDIR=C:\WINDOWS
WINDIR=C:\WINDOWS
WINDOWID=10485774
XAPPLRESDIR=/usr/X11R6/lib/X11/app-defaults
XAUTHORITY=/HOME/SYNAPSES/.Xauthority
XCMSDB=/usr/X11R6/lib/X11/Xcms.txt
XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
XNLSPATH=/usr/X11R6/lib/X11/locale
_=/usr/bin/env
synapses@homer ~
$ ls -l $ROOTSYS/bin
total 31920
-rw-r--r--  1 synapses all    5444 Jan 12 08:17 ROOT.py
-rw-r--r--  1 synapses all    5647 Jan 12 08:17 ROOT.pyc
-rw-r--r--  1 synapses all    5647 Jan 12 08:17 ROOT.pyo
-rwxr-xr-x  1 synapses all    8192 Jan 12 07:58 bindexplib.exe
-rwxr-xr-x  1 synapses all    3584 Jan 20 17:30 cint.exe
-rwxr-xr-x  1 synapses all  335872 Jan 13 22:03 gdk-1.3.dll
-rwxr-xr-x  1 synapses all  360316 Jan 12 08:15 glib-1.3.dll
-rwxr-xr-x  1 synapses all  712704 Feb 10 07:44 h2root.exe
-rwxr-xr-x  1 synapses all   28672 Feb 10 07:43 hadd.exe
-rwxr-xr-x  1 synapses all  747486 Jan 12 08:15 iconv-1.3.dll
-rwxr-xr-x  1 synapses all  831488 Feb 10 07:43 libASImage.dll
-rwxr-xr-x  1 synapses all 1146880 Jan 20 17:30 libCint.dll
-rwxr-xr-x  1 synapses all 4788224 Feb 10 07:40 libCore.dll
-rwxr-xr-x  1 synapses all  278528 Feb 10 07:42 libEG.dll
-rwxr-xr-x  1 synapses all 2109440 Feb 10 07:43 libEGPythia6.dll
-rwxr-xr-x  1 synapses all  102400 Feb 10 07:42 libFumili.dll
-rwxr-xr-x  1 synapses all  647168 Feb 10 07:43 libGed.dll
-rwxr-xr-x  1 synapses all   61440 Feb 10 07:42 libGedOld.dll
-rwxr-xr-x  1 synapses all 1949696 Feb 10 07:42 libGeom.dll
-rwxr-xr-x  1 synapses all  233472 Feb 10 07:42 libGeomPainter.dll
-rwxr-xr-x  1 synapses all  634880 Feb 10 07:41 libGpad.dll
-rwxr-xr-x  1 synapses all 1380352 Feb 10 07:41 libGraf.dll
-rwxr-xr-x  1 synapses all  581632 Feb 10 07:41 libGraf3d.dll
-rwxr-xr-x  1 synapses all 2924544 Feb 10 07:41 libGui.dll
-rwxr-xr-x  1 synapses all  311296 Feb 10 07:43 libGuiBld.dll
-rwxr-xr-x  1 synapses all  942080 Feb 10 07:43 libHbook.dll
-rwxr-xr-x  1 synapses all 1638400 Feb 10 07:40 libHist.dll
-rwxr-xr-x  1 synapses all  335872 Feb 10 07:42 libHistPainter.dll
-rwxr-xr-x  1 synapses all  208896 Feb 10 07:42 libHtml.dll
-rwxr-xr-x  1 synapses all  233472 Feb 10 07:42 libMLP.dll
-rwxr-xr-x  1 synapses all 1343488 Feb 10 07:40 libMatrix.dll
-rwxr-xr-x  1 synapses all  270336 Feb 10 07:41 libMinuit.dll
-rwxr-xr-x  1 synapses all   28672 Feb 10 07:40 libNew.dll
-rwxr-xr-x  1 synapses all  319488 Feb 10 07:42 libPhysics.dll
-rwxr-xr-x  1 synapses all  245760 Feb 10 07:42 libPostscript.dll
-rwxr-xr-x  1 synapses all  684032 Feb 10 07:42 libProof.dll
-rwxr-xr-x  1 synapses all   73728 Feb 10 07:42 libProofGui.dll
-rwxr-xr-x  1 synapses all  409600 Feb 10 07:43 libPyROOT.dll
-rwxr-xr-x  1 synapses all  315392 Feb 10 07:43 libQuadp.dll
-rwxr-xr-x  1 synapses all  524288 Feb 10 07:43 libRFIO.dll
-rwxr-xr-x  1 synapses all  368640 Feb 10 07:43 libRGL.dll
-rwxr-xr-x  1 synapses all  348160 Feb 10 07:43 libRXML.dll
-rwxr-xr-x  1 synapses all  163840 Feb 10 07:42 libRint.dll
-rwxr-xr-x  1 synapses all  765952 Feb 10 07:43 libTable.dll
-rwxr-xr-x  1 synapses all  196608 Feb 10 07:43 libThread.dll
-rwxr-xr-x  1 synapses all  864256 Feb 10 07:41 libTree.dll
-rwxr-xr-x  1 synapses all  933888 Feb 10 07:42 libTreePlayer.dll
-rwxr-xr-x  1 synapses all  311296 Feb 10 07:42 libTreeViewer.dll
-rwxr-xr-x  1 synapses all  180224 Feb 10 07:42 libVMC.dll
-rwxr-xr-x  1 synapses all  512000 Feb 10 07:43 libWin32gdk.dll
-rwxr-xr-x  1 synapses all   18432 Jan 12 08:03 makecint.exe
-rwxr-xr-x  1 synapses all    8447 Feb  9 07:09 memprobe
-rwxr-xr-x  1 synapses all    4096 Feb 10 07:43 proofserv.exe
-rwxr-xr-x  1 synapses all   11776 Jan 12 08:03 rlibmap.exe
-rwxr-xr-x  1 synapses all   28672 Jan 12 07:58 rmkdepend.exe
-rwxr-xr-x  1 synapses all   16131 Feb  9 07:09 root-config
-rwxr-xr-x  1 synapses all    5632 Feb 10 07:43 root.exe
-rwxr-xr-x  1 synapses all  122880 Feb  9 16:38 rootcint.exe
-rw-r--r--  1 synapses all   16509 Feb  9 16:38 rootcint.exp
-rw-r--r--  1 synapses all   28232 Feb  9 16:38 rootcint.lib
-rwxr-xr-x  1 synapses all    5632 Feb 10 07:43 rootn.exe

and with command.com :

C:\WINDOWS>set
COMSPEC=C:\WINDOWS\COMMAND.COM
PROMPT=$p$g
TEMP=C:\WINDOWS\TEMP
HOME=C:\UTILS\CYGWIN\HOME\SYNAPSES
TMPDIR=C:\UTILS\CYGWIN\TMP
ROOTSYS=C:\UTILS\CYGWIN\HOME\synapses\ROOT
TMP=C:\WINDOWS\TEMP
PATH=C:\UTILS\CYGWIN\HOME\synapses\ROOT\BIN;C:\utils\miktex\miktex\bin;C:\WINDOWS;C:\WINDOWS\COMMAND;c:\utils\gtk\2.0\bin;c:\progra~1\fichie~1\gtk\2.0\bin;c:\utils\vc++\bin;c:\utils\VC++\bin
winbootdir=C:\WINDOWS
windir=C:\WINDOWS
BLASTER=A220 I5 D1 T4 P330
CMDLINE=doskey /insert

[/code]

Hi,

I never managed to start a win32 (i.e. non-win32gcc) root under a bash shell, be it text or xterm (there seems to be a problem attaching to the terminal). So all I could help you with is getting the graphics output working again, under a windows cmd shell. Could you run “root” without arguments from a windows command prompt, and send the output (including the “WELCOME to ROOT” header) of:
gROOT->IsBatch()
and
gVirtualX->IsA()->GetName()

Axel.

Hi Axel,

If it can help, I have just noticed that I am able to draw a simple TGraph, but defining a TCanvas crashes with an error in GDI.exe. So the results are :

 *******************************************
  *                                         *
  *        W E L C O M E  to  R O O T       *
  *                                         *
  *   Version   4.03/02   9 february 2005   *
  *                                         *
  *  You are welcome to visit our Web site  *
  *          http://root.cern.ch            *
  *                                         *
  *******************************************
 
Compiled for win32 with thread support.
 
CINT/ROOT C/C++ Interpreter version 5.15.159, Nov 14 2004
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }. 
root [0] gROOT->IsBatch()
(const Bool_t)0
root [1] gVirtualX->IsA()->GetName()
(const char* 0x1ee076c)"TGWin32"
root [2]

Hi,

[quote=“berder”]If it can help, I have just noticed that I am able to draw a simple TGraph, but defining a TCanvas crashes with an error in GDI.exe.[/quote]Yes, that helps! You trashed your windows installation. A reinstall (I can only recommend using XP, which IMHO is the first decent OS MS is selling - e.g. you won’t be able to trash it that easily) will fix it.

Axel.

:cry: :cry: :cry:

I’m not sure my old computer will really love it, it seems to me that XP needs much more RAM than Me…

Thanks for all Axel.