From owner-freebsd-alpha Fri Sep 1 22:15:49 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from eel.radicalmedia.com (eel.radicalmedia.com [204.254.246.9]) by hub.freebsd.org (Postfix) with ESMTP id 97B5B37B424 for ; Fri, 1 Sep 2000 22:15:47 -0700 (PDT) Received: (from phiber@localhost) by eel.radicalmedia.com (8.9.3/8.9.3) id BAA21005 for freebsd-alpha@freebsd.org; Sat, 2 Sep 2000 01:15:46 -0400 (EDT) Date: Sat, 2 Sep 2000 01:15:45 -0400 From: Mark Abene To: freebsd-alpha@freebsd.org Subject: Re: compaq's C++ compiler? Message-ID: <20000902011545.B20148@radicalmedia.com> References: <20000901024909.D28839@radicalmedia.com> <200009011928.NAA37634@harmony.village.org> <20000901222301.A20148@radicalmedia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: <20000901222301.A20148@radicalmedia.com>; from Mark Abene on Fri, Sep 01, 2000 at 10:23:01PM -0400 Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I figured out the problem... The "comp.config" file was missing, which should contain command-line flags for where to search for include files, etc. The "create-comp-config.sh" and "probe_linux.sh" scripts have to be changed to invoke /compat/linux/bin/sh, and the DIST_FILE variable in probe_linux.sh has to point to /compat/linux/etc... in order to find redhat-release. With the generated comp.config file, the C++ compiler now works! However, the regular C compiler seems to be choking on standard header files. For example, if I try to use /compat/linux/usr/bin/ccc on a test program that includes stdio.h, I get a screen full of... cc: Error: /usr/include/libio.h, line 363: Ill-formed parameter type list. (parmtyplist) extern int _IO_vfscanf __P ((_IO_FILE * __restrict, const char * __restrict, -----------------------^ cc: Error: /usr/include/libio.h, line 365: Ill-formed parameter type list. (parmtyplist) extern int _IO_vfprintf __P ((_IO_FILE *__restrict, const char *__restrict, ------------------------^ cc: Error: /usr/include/stdio.h, line 256: Ill-formed parameter type list. (parmtyplist) ...and so on. Fatal errors. I seem to remember Drew (maybe others) who have Compaq's C compiler working, so I'd be curious to hear if they've had this problem, and how to resolve it. Cheers, -Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message