Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Sep 2000 01:15:45 -0400
From:      Mark Abene <phiber@radicalmedia.com>
To:        freebsd-alpha@freebsd.org
Subject:   Re: compaq's C++ compiler?
Message-ID:  <20000902011545.B20148@radicalmedia.com>
In-Reply-To: <20000901222301.A20148@radicalmedia.com>; from Mark Abene on Fri, Sep 01, 2000 at 10:23:01PM -0400
References:  <20000901024909.D28839@radicalmedia.com> <200009011928.NAA37634@harmony.village.org> <20000901222301.A20148@radicalmedia.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000902011545.B20148>