RE: gcc error in Cygwin

2007-07-15 Thread Dave Korn
On 15 July 2007 22:08, ppanta wrote:

 I'm using the makefile that came with the code I'm working on and I cant
 seem to get it working
 in the Cygwin system even though it works perfectly fine in SUN.

  That's because it was written for Sun's C compiler and not gcc, and Sun uses
Sun's C compiler and Cygwin uses gcc.

 The errors I received state something like
 
 cc: Unrecognized option '-Xc'
 cc: language 04 not recognized
 linker input file unused because linking not done

 CFLAGS=   -xO4 -dalign -fsimple -fsingle -v -Xc

  Yep, gcc understands different command-line options from Sun's compiler.
This isn't a Sun mailing list, so there's no guarantee anyone round here will
know what those are supposed to do.

 Note that I dont know most of what the options do. So if you can point me to
 a good reference I'd be greatly appreciate.

  Yep, there's a good reference, it's called 'TFM'.  Read the docs for the Sun
compiler, see what those options do, read the docs for gcc, see how to achieve
equivalent effect using options for gcc, edit the makefile to replace the one
by the other.

  Docs for gcc can be called up on cygwin using info gcc.  I don't know what
documentation system your Sun uses but man cc is almost bound to work.


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: gcc error on cygwin

2002-11-07 Thread Ajitha

Hi,
  Thank you. Please find attached the cygcheck.txt and the sample
program which gives the follwoing error message. The cygwin version is
1.3-13 DLL.  On executing check.exe (I am not able to understand why it
gives check.exe instead of just 'check' on g77 -o check check.f command)
it gives the following error
$g77 -o check check.f
$./check.exe
open: illegal unit number
apparent state: internal I/O
lately writing direct unformatted external IO
Aborted (core dumped)

Any suggestion is welcome. Thank you,
With best regards,
Ajitha.




On Wed, 6 Nov 2002, Harig, Mark A. wrote:


 As requested at http://cygwin.com/bugs.html:

 o Please describe how to reproduce the problem,
   including a test case, if possible.

 o Please include at least the version number of the
   Cygwin release you are using along with the
   operating system name and its version number,
   for example, cygwin v1.3.13 under NT 4.0.

 o Most of the information about your Cygwin environment
   is listed by running 'cygcheck -s -v -r  cygcheck.txt'.
   Please include cygcheck.txt *AS AN ATTACHMENT* to your
   report.  It is important that you include it as an
   attachment so that searches of the mailing-list archives
   give fewer false matches.

 For your test case, it would be helpful for you to
 provide:

   1. A small amount of code that can reproduce the
  problem.

   2. The compilation/link commands that you are
  using to generate 'a.exe'.

  -Original Message-
  From: Ajitha [mailto:aji;sscu.iisc.ernet.in]
  Sent: Wednesday, November 06, 2002 2:36 AM
  To: [EMAIL PROTECTED]
  Subject: gcc error on cygwin
 
 
 
  Hello,
I installed cygwin with gcc. Some check files are
  compiling. But when I
  compile a file with open unitnumbers, the gcc is compiling
  andthe inspite
  of giving as gcc *.f it produces an a.exe file and on executing
  it, the error comes as
 
  $ ./a.exe
  open: illegal unit number
  apparent state:internal I/O
  lately writing direct unformatted external IO
  Aborted (coredumped)
 
  Any suggestion is very much appreciated.
 
  Thank you,
 
  With best regards,
 
  Ajitha
 
  Research Associate,
  SSCU,
  Indian Institute Of Science, Bangalore 560 012,INDIA
 
 
  --
  Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
  Bug reporting: http://cygwin.com/bugs.html
  Documentation: http://cygwin.com/docs.html
  FAQ:   http://cygwin.com/faq/
 
 


C  Program Check



   implicit double precision(a-h,o-z)

   implicit integer*4 (i-n)

   parameter (nparam=100,max_nn=24,max_type=4,max_orb=9,

  max_sh=30,max_atom=10,npexact=13)



   common/in/li,lj,loi,loj

   common/gd/kshells

   common/upart/U(10,10,max_type),indatom(2*npexact),correl(4)

   dimension tab(10,10,10,10),tabJ(5,5),tabK(5,5),ltb(5)

   dimension dircos(3),coord(nparam,3)

   dimension itype(nparam),nn(nparam,max_nn),noofnn(max_type)

   complex*16  HF(2*npexact,2*npexact),H0(2*npexact,2*npexact),

  wk(40),HU( 2*npexact)

   double precision Xn(2*npexact),Xnnew(2*npexact)

,Xnold(2*npexact)

,Xn2old(2*npexact,2*npexact)

,Xn2(2*npexact,2*npexact)

,Xn2new(2*npexact,2*npexact)



C-Open Files



c   open (unit=500,file='diaU.out',status='unknown')

   open (unit=1253,form='formatted',access='sequential',

status='unknown')

   open (unit=1254,form='formatted',access='sequential',

status='unknown')

   open (unit=1255,form='formatted',access='sequential',

status='unknown')

   open (unit=1256,form='formatted',access='sequential',

status='unknown')

   open (unit=4020,form='formatted',access='sequential',

status='unknown')

   open (unit=4021,form='formatted',access='sequential',

status='unknown')

   open (unit=4025,form='formatted',access='sequential',

status='unknown')





stop

end






Cygwin Win95/NT Configuration Diagnostics

Current System Time: Thu Nov 07 21:11:13 2002



Windows 2000 Professional Ver 5.0 Build 2195 



Path:   C:\Cygwin\usr\local\bin

C:\Cygwin\bin

C:\Cygwin\bin

c:\WINNT\system32

c:\WINNT

c:\WINNT\System32\Wbem

C:\Cygwin\usr\X11R6\bin



SysDir: C:\WINNT\System32

WinDir: C:\WINNT



HOME = `C:\Cygwin\home\Administrator'

MAKE_MODE = `unix'

PWD = `/home/Administrator/clusterhf'

USER = `Administrator'



ALLUSERSPROFILE = `C:\Documents and Settings\All Users'

APPDATA = `C:\Documents and Settings\Administrator\Application Data'

COMMONPROGRAMFILES = `C:\Program Files\Common Files'

COMPUTERNAME = `MEENAKSHI'

COMSPEC = `C:\WINNT\system32\cmd.exe'

HOMEDRIVE = `C:'

HOMEPATH = `\'

LOGONSERVER = `\\MEENAKSHI'

MANPATH = `:/usr/ssl/man

RE: gcc error on cygwin

2002-11-07 Thread Harig, Mark A.
Using cygwin 1.3.15, there is one additional message:

$ ./check.exe 
open: illegal unit number
apparent state: internal I/O
lately writing direct unformatted external IO
4005713 [main] check 1348 sig_send: wait for sig_complete event failed,
signal 6, rc 258, Win32 error 0

You might try:

  1. Set the environment variable CYGWIN (via Start-Control
Panel-System)
 to include error_start=C:/Cygwin/bin/gdb.

  2. Start a new shell that uses the new value of CYGWIN.

  3. Recompile your FORTRAN file with debugging information:

g77 -g -o check check.f

  4. Run ./check.exe.  gdb should start automatically.

 -Original Message-
 From: Ajitha [mailto:aji;sscu.iisc.ernet.in]
 Sent: Thursday, November 07, 2002 11:54 AM
 To: Harig, Mark A.
 Cc: [EMAIL PROTECTED]
 Subject: RE: gcc error on cygwin
 
 
 
 Hi,
   Thank you. Please find attached the cygcheck.txt and the sample
 program which gives the follwoing error message. The cygwin version is
 1.3-13 DLL.  On executing check.exe (I am not able to 
 understand why it
 gives check.exe instead of just 'check' on g77 -o check 
 check.f command)
 it gives the following error
 $g77 -o check check.f
 $./check.exe
 open: illegal unit number
 apparent state: internal I/O
 lately writing direct unformatted external IO
 Aborted (core dumped)
 
 Any suggestion is welcome. Thank you,
 With best regards,
 Ajitha.
 
 
 
 
 On Wed, 6 Nov 2002, Harig, Mark A. wrote:
 
 
  As requested at http://cygwin.com/bugs.html:
 
  o Please describe how to reproduce the problem,
including a test case, if possible.
 
  o Please include at least the version number of the
Cygwin release you are using along with the
operating system name and its version number,
for example, cygwin v1.3.13 under NT 4.0.
 
  o Most of the information about your Cygwin environment
is listed by running 'cygcheck -s -v -r  cygcheck.txt'.
Please include cygcheck.txt *AS AN ATTACHMENT* to your
report.  It is important that you include it as an
attachment so that searches of the mailing-list archives
give fewer false matches.
 
  For your test case, it would be helpful for you to
  provide:
 
1. A small amount of code that can reproduce the
   problem.
 
2. The compilation/link commands that you are
   using to generate 'a.exe'.
 
   -Original Message-
   From: Ajitha [mailto:aji;sscu.iisc.ernet.in]
   Sent: Wednesday, November 06, 2002 2:36 AM
   To: [EMAIL PROTECTED]
   Subject: gcc error on cygwin
  
  
  
   Hello,
 I installed cygwin with gcc. Some check files are
   compiling. But when I
   compile a file with open unitnumbers, the gcc is compiling
   andthe inspite
   of giving as gcc *.f it produces an a.exe file and on executing
   it, the error comes as
  
   $ ./a.exe
   open: illegal unit number
   apparent state:internal I/O
   lately writing direct unformatted external IO
   Aborted (coredumped)
  
   Any suggestion is very much appreciated.
  
   Thank you,
  
   With best regards,
  
   Ajitha
  
   Research Associate,
   SSCU,
   Indian Institute Of Science, Bangalore 560 012,INDIA
  
  
   --
   Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
   Bug reporting: http://cygwin.com/bugs.html
   Documentation: http://cygwin.com/docs.html
   FAQ:   http://cygwin.com/faq/
  
  
 
 

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: gcc error on cygwin

2002-11-06 Thread Harig, Mark A.

As requested at http://cygwin.com/bugs.html:

o Please describe how to reproduce the problem,
  including a test case, if possible.

o Please include at least the version number of the
  Cygwin release you are using along with the 
  operating system name and its version number,
  for example, cygwin v1.3.13 under NT 4.0.

o Most of the information about your Cygwin environment
  is listed by running 'cygcheck -s -v -r  cygcheck.txt'.
  Please include cygcheck.txt *AS AN ATTACHMENT* to your
  report.  It is important that you include it as an
  attachment so that searches of the mailing-list archives
  give fewer false matches.

For your test case, it would be helpful for you to
provide:

  1. A small amount of code that can reproduce the
 problem.

  2. The compilation/link commands that you are
 using to generate 'a.exe'.

 -Original Message-
 From: Ajitha [mailto:aji;sscu.iisc.ernet.in]
 Sent: Wednesday, November 06, 2002 2:36 AM
 To: [EMAIL PROTECTED]
 Subject: gcc error on cygwin
 
 
 
 Hello,
   I installed cygwin with gcc. Some check files are 
 compiling. But when I
 compile a file with open unitnumbers, the gcc is compiling 
 andthe inspite
 of giving as gcc *.f it produces an a.exe file and on executing
 it, the error comes as
 
 $ ./a.exe
 open: illegal unit number
 apparent state:internal I/O
 lately writing direct unformatted external IO
 Aborted (coredumped)
 
 Any suggestion is very much appreciated.
 
 Thank you,
 
 With best regards,
 
 Ajitha
 
 Research Associate,
 SSCU,
 Indian Institute Of Science, Bangalore 560 012,INDIA
 
 
 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Bug reporting: http://cygwin.com/bugs.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/
 
 

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




gcc error on cygwin

2002-11-05 Thread Ajitha

Hello,
  I installed cygwin with gcc. Some check files are compiling. But when I
compile a file with open unitnumbers, the gcc is compiling andthe inspite
of giving as gcc *.f it produces an a.exe file and on executing
it, the error comes as

$ ./a.exe
open: illegal unit number
apparent state:internal I/O
lately writing direct unformatted external IO
Aborted (coredumped)

Any suggestion is very much appreciated.

Thank you,

With best regards,

Ajitha

Research Associate,
SSCU,
Indian Institute Of Science, Bangalore 560 012,INDIA


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/