From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wilbur.contactoffice.com (wilbur.contactoffice.com [212.3.242.68]) by sourceware.org (Postfix) with ESMTPS id 367023858D32 for ; Mon, 2 Jan 2023 09:50:57 +0000 (GMT) Received: from hologram (hologram.co-bxl [10.2.0.17]) by wilbur.contactoffice.com (Postfix) with ESMTP id 422FB2849; Mon, 2 Jan 2023 10:50:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1672653054; s=20210208-e7xh; d=mailfence.com; i=hanslonsdale@mailfence.com; h=Date:From:To:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; l=1464; bh=x/7A+OefIuf4Y++fMuFHzCKv7DXyElFSdJsSnGd9YBk=; b=khipOxjVZ7HgG089I3Vuqb3EnzGfdFXB1JWkIWzFgc9tjoST861Uf8MoGwCDOQfy JiTrAgoM7/QgBtx1vcONuEjsQIv/6WJxfMbwbEjgOoW+NMAedXQwj4jpKPappNKVy5F gvJ29S1I+0AG+piPKyBdw+2PdhVxqZX6W2AYNq8LO6Q9kB4JkkknWuZFAqSjN/fJULx l7zkZ5dlZw5C7L23JK3/9OmG6HGlz18bwDByYZKXomS9PXRmgCANbmii1BRFLDoZm9u /wNRgekVKlHPlZ0ngVM5LxzcY1DcH8TUvmQ8INlyN1qT9xPiSTBnkVdhUJgvH+vDPhW St2clFy4SQ== Date: Sun, 1 Jan 2023 17:05:01 +0100 (CET) From: Hans Lonsdale To: Tom Kacvinsky , Gcc Help Message-ID: <1655625240.766289.1672589101799@ichabod.co-bxl> In-Reply-To: References: <1311924207.730197.1672533942851@ichabod.co-bxl> <1165150527.763388.1672586042114@ichabod.co-bxl> Subject: Re: no input files when calling gfortran MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mailer: ContactOffice Mail X-ContactOffice-Account: com:377787701 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DATE_IN_PAST_12_24,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > ---------------------------------------- > From: Tom Kacvinsky via Gcc-help > Sent: Sun Jan 01 16:48:06 CET 2023 > To: Gcc Help > Subject: Re: no input files when calling gfortran > > > On Sun, Jan 1, 2023 at 10:34 AM Hans Lonsdale via Gcc-help < > gcc-help@gcc.gnu.org> wrote: > > > > > > > January 1, 2023 at 2:31:28 PM CET Jonathan Wakely > > wrote: > > > > On Sun, 1 Jan 2023, 11:43 Hans Lonsdale via Gcc-help, < > > gcc-help@gcc.gnu.org> wrote: > > > > Am trying to compile a free-format fortran file with some subroutines in > > it, with gfortran complaining > > about the file. What is going on? > > > > gfortran -O3 -ffree-form -o kamkrai-sort.f > > gfortran: fatal error: no input files; unwilling to write output files > > compilation terminated. > > > > The -o option names the output file, but you have told the compiler to use > > your input file as the output file. > > > > What is the appropriate command that generates the object file only ? > > > > gfortran -O3 -ffree-form -c kamkrai-sort.f I tried your suggestion but I am getting recursive subroutine quicksort (array) Error: Unclassifiable statement at (1) end subroutine quicksort Error: Expecting END PROGRAM statement at (1) But this is just a file with some variables and a recursive subroutine. -- Sent with https://mailfence.com Secure and private email