From owner-freebsd-current@freebsd.org Sat May 20 17:39:22 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8DCA1D761DC for ; Sat, 20 May 2017 17:39:22 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1b.ore.mailhop.org (outbound1b.ore.mailhop.org [54.200.247.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 73E8E1A4C for ; Sat, 20 May 2017 17:39:22 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 54fb0bf9-3d83-11e7-bfb5-0d159cd3c324 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound1.ore.mailhop.org (Halon) with ESMTPSA id 54fb0bf9-3d83-11e7-bfb5-0d159cd3c324; Sat, 20 May 2017 17:39:53 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id v4KHdEb0006915; Sat, 20 May 2017 11:39:15 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1495301954.89384.39.camel@freebsd.org> Subject: Re: cpp behavior? From: Ian Lepore To: sgk@troutmask.apl.washington.edu, freebsd-current@freebsd.org, freebsd-toolchain@freebsd.org Date: Sat, 20 May 2017 11:39:14 -0600 In-Reply-To: <20170520000747.GA26861@troutmask.apl.washington.edu> References: <20170520000747.GA26861@troutmask.apl.washington.edu> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 May 2017 17:39:22 -0000 On Fri, 2017-05-19 at 17:07 -0700, Steve Kargl wrote: > % which cpp > /usr/bin/cpp > troutmask:kargl[408] cpp --version > FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on > LLVM 4.0.0) > Target: x86_64-unknown-freebsd12.0 > Thread model: posix > InstalledDir: /usr/bin > troutmask:kargl[409] cpp --help |grep trad >   -traditional-cpp        Enable some traditional CPP emulation > troutmask:kargl[410] cpp -traditional-cpp boxmuller.F90  > cpp: error: unable to execute command: Executable "gcc" doesn't > exist! > > OK, so what is the preprocessor for clang? > It looks like the problem is that it sees the .F90 and wants to "do the right thing" for fortran sources, which is "invoke gcc".  I got a clue by adding '-###' (quotes required) to see what cpp was trying to do internally. You might get the effect you want by either adding something like -x assembler-with-cpp, or maybe by hiding the filetype from cpp:  cat boxmuller.F90 | cpp -traditional-cpp -- Ian