From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,55f67640f3c703c0 X-Google-Attributes: gidf678f,public From: sysmark@helios.physics.utoronto.ca (Mark Bartelt) Subject: life is easier if you use existing tools (was Re: DEC/OSF1 assembler dies if fd=0 is closed) Date: 1995/04/12 Message-ID: #1/1 X-Deja-AN: 100355248 sender: news@info.physics.utoronto.ca (System Administrator) references: organization: Canadian Institute for Theoretical Astrophysics reply-to: mark@cita.toronto.edu newsgroups: comp.unix.osf.misc [ Chris McDonald ] | When using gcc (2.6.*) on our DEC Alpha OSF1v2, I've found that if file | descriptor 0 has been closed before the assembler is (eventually) invoked, | the assembler will choke with a useless error such as: | | as1: Error: , line 0: Obsolete or corrupt binasm file: /tmp/ctmaaagAoa [...] | The program below demonstrates the problem - if invoked with any arguments | the assembler will fail. [ 57-line C program deleted ] This reply is a bit off-topic, but it nonetheless seems worthwhile to point out that instead of going to the bother of providing a C program which shows the bug, it could more easily be demonstrated with a /bin/sh one-liner: gcc -c try.c <&- To quote from Kernighan and Pike: ... let other people do the work. Use programs that already exist ... Mark Bartelt 416/978-5619 Canadian Institute for mark@cita.toronto.edu Theoretical Astrophysics mark@cita.utoronto.ca "Sheep not busy being shorn are busy frying" - Dylan, at a NZ lamb barbecue [ singing "It's all right, ma (I'm only bleating)" ]