From: Bing-Chang L. <op...@bc...> - 2003-05-15 01:15:06
|
Hi! I want to use Open C++ on Mac OS 10.2 (and above). I checked out the sandbox-kthulhu line using anonymous CVS and it managed to build the occ program. The main 2.6.1 release does not support Mac OS X, so I am unable to get that to compile at all. I have two main problems that I would like some input on: 1. Open C++ doesn't seem to like GCC 3.1's Standard C++ library 2. Enabling AltiVec extensions ==================================================== 1. Open C++ doesn't seem to like GCC 3.1's Standard C++ library ==================================================== Trying to occ on the following C++ program: #include <iostream> int main(int argc, char *argv[]) { return 0; } Fails with: MOP warning: The hash table is full. Expanded... /usr/include/gcc/darwin/3.1/g++-v3/bits/stl_alloc.h:392: parse error before `= *' /usr/include/gcc/darwin/3.1/g++-v3/bits/stl_alloc.h:401: parse error before `__ret ;' /usr/include/gcc/darwin/3.1/g++-v3/bits/stl_construct.h:67: parse error before `namespace std' /usr/include/gcc/darwin/3.1/g++-v3/bits/stl_construct.h:86: parse error before `template <' /usr/include/gcc/darwin/3.1/g++-v3/bits/stl_construct.h:98: parse error before `template <' /usr/include/gcc/darwin/3.1/g++-v3/bits/stl_construct.h:101: parse error before `__last ;' /usr/include/gcc/darwin/3.1/g++-v3/bits/stl_construct.h:101: parse error before `__first )' /usr/include/gcc/darwin/3.1/g++-v3/bits/stl_construct.h:112: parse error before `template <' /usr/include/gcc/darwin/3.1/g++-v3/bits/stl_construct.h:134: parse error before `template <' /usr/include/gcc/darwin/3.1/g++-v3/bits/stl_construct.h:145: parse error before `} namespace' 10 Error(s). OpenC++ stops. Removing the "#include <iostream>" produces an executable. ==================================================== 2. Enabling AltiVec extensions ==================================================== Trying "occ -- -faltivec main.cpp" on: int main(int argc, char *argv[]) { __vector signed char ch; return 0; } Produces main.cpp:2: parse error before `char ch' 1 Error(s). OpenC++ stops. I was under the impression that Open C++ is a front-end. So perhaps all that I need to do is to get Open C++ to accept my "__vector" as a keyword? Thanks in advance. Regards, Bing-Chang Lai PS: Version information $ g++ --version g++ (GCC) 3.1 20020420 (prerelease) Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ occ --version OpenC++ version 2.5.6_testing Copyright (c) 1997-2001 Shigeru Chiba. All Rights Reserved. Copyright (c) 1995, 1996 Xerox Corporation. All Rights Reserved. Copyright (c) 2002 Other Developers. Usage: occ [-l][-s][-V][-v][-E][-m[<file name>]][-c][-n][-p][--regular-c++] [-I<directory>][-D<macro>[=<def>]][-M<option>[=<value>]] [-g][-d<option>][-S<metaclass>] [-- <compiler options>] <source file> -g Produce debugging information -M Specify an <option> with <value> passed to metaobjects -l List metaclasses -S Load a metaclass -s Show program tree on stdout -V Show version -v Verbose mode Building stages options -n Don't preprocess -p Don't translate (stop after parsing) -E Don't compile (stop after translation) -c Don't make executable (stop after compilation) -P Preprocess again after translation -m Compile a metaclass (make a shared library) Preprocessor options -I<directory> Add <directory> to the #include path -D<name>=<def> Define a macro <name> as <def> -d<option> Specify a preprocessor option -C Don't discard comments Other options --regular-c++ Inhibit the extended syntax |
From: Carsten P. <car...@ma...> - 2003-05-15 02:27:58
Attachments:
patch
|
=2D----BEGIN PGP SIGNED MESSAGE----- On Thursday 15 May 2003 03:07, Bing-Chang Lai wrote: Hi, > I was under the impression that Open C++ is a front-end. So perhaps all > that I need to do is to get Open C++ to accept my "__vector" as a > keyword? Yes, the same goes for the __restrict__ keyword. Please try the attached pa= tch=20 (or update from CVS). Cheers Carsten Pfeiffer =2D----BEGIN PGP SIGNATURE----- iQEVAwUBPsL6nqWgYMJuwmZtAQFaSQf/YXCcfzySDgv9CNvA/CruFYoCVeKSEKKP E/xoyNUwy69gTr+apj+M9Tg4hjlLZvYKaYEU3V9VOFstLyqbyS2QAPfavsIu0Pwd de93v0S1IQLHPNA7ZUC+AwWyuMel5t7ZOzC5Qu/TDJG/gxp3tdCeU76DqNV0BtUS wQCfvHPIUGVVaF+zBCJPpxflOfOL02erUfb1ApBKnljPJLxGFvhOSLwNZFOFKHAu rUYhYecmuhosG3kqHlX8Z+YSyeIUmD0TcUtn4nATpHwoY/GaDEh1DTz8PYUNou0y PRHa4BPpydxRcVrZdVY5TCRl/yWnvwCsZuq1kA1cHDkXXgjzh5CCMw=3D=3D =3DRqaz =2D----END PGP SIGNATURE----- |
From: Grzegorz J. <ja...@he...> - 2003-05-15 23:10:51
|
On Thu, 15 May 2003, Carsten Pfeiffer wrote: > -----BEGIN PGP SIGNED MESSAGE----- > > On Thursday 15 May 2003 03:07, Bing-Chang Lai wrote: > > Hi, > > > I was under the impression that Open C++ is a front-end. So perhaps all > > that I need to do is to get Open C++ to accept my "__vector" as a > > keyword? > > Yes, the same goes for the __restrict__ keyword. Please try the attached patch > (or update from CVS). Carsten, thanks for taking care of this. Regards Grzegorz > > Cheers > Carsten Pfeiffer > -----BEGIN PGP SIGNATURE----- > > iQEVAwUBPsL6nqWgYMJuwmZtAQFaSQf/YXCcfzySDgv9CNvA/CruFYoCVeKSEKKP > E/xoyNUwy69gTr+apj+M9Tg4hjlLZvYKaYEU3V9VOFstLyqbyS2QAPfavsIu0Pwd > de93v0S1IQLHPNA7ZUC+AwWyuMel5t7ZOzC5Qu/TDJG/gxp3tdCeU76DqNV0BtUS > wQCfvHPIUGVVaF+zBCJPpxflOfOL02erUfb1ApBKnljPJLxGFvhOSLwNZFOFKHAu > rUYhYecmuhosG3kqHlX8Z+YSyeIUmD0TcUtn4nATpHwoY/GaDEh1DTz8PYUNou0y > PRHa4BPpydxRcVrZdVY5TCRl/yWnvwCsZuq1kA1cHDkXXgjzh5CCMw== > =Rqaz > -----END PGP SIGNATURE----- > ################################################################## # Grzegorz Jakacki Huada Electronic Design # # Senior Engineer, CAD Dept. 1 Gaojiayuan, Chaoyang # # tel. +86-10-64365577 x2074 Beijing 100015, China # # Copyright (C) 2002 Grzegorz Jakacki, HED. All Rights Reserved. # ################################################################## |
From: Carsten P. <car...@ma...> - 2003-05-15 23:44:49
|
=2D----BEGIN PGP SIGNED MESSAGE----- On Friday 16 May 2003 01:11, Grzegorz Jakacki wrote: > > > I was under the impression that Open C++ is a front-end. So perhaps a= ll > > > that I need to do is to get Open C++ to accept my "__vector" as a > > > keyword? > > > > Yes, the same goes for the __restrict__ keyword. Please try the attached > > patch (or update from CVS). > > Carsten, thanks for taking care of this. I should have posted a notice to the list when committing those fixes a few= =20 days ago... OpenC++ compiles and works fine so far with my g++ 3.2=20 installation (i.e. also its STL). Shared libraries also work now. Cheers Carsten Pfeiffer =2D----BEGIN PGP SIGNATURE----- iQEVAwUBPsQmGKWgYMJuwmZtAQGj1ggAvseHBomFasmTA5OvzSUOp6A4x0U41ev6 YjwWpr/VHmHgKDaVIbQbegI63vriAYLl5QclSpcJv4j6OyDZKcHtSFq1DNHiwPfS iDqPqhaTa8KW2l1z3QU1OmbJaTsf86N0O3SaeOhN+H+yqsylW/dtkGtBDDr/zMWu 4TvcFANsNo9EjP4BKGA//Dd0esTdcLrnH0q44k8qwYLCmYwlemGzeiUr05HvdS0c vfbnKMKAdXyQGMptWn1Zxul6Den91bYdrBihnXnvf5BWASdgJX8ma+IpLvCyA+Ls qgMG2qQtWaHPLJxi3A1dYIUf/YaNPJ7iz9pk3BbFrpXNLL9oNxhcuA=3D=3D =3DqcKl =2D----END PGP SIGNATURE----- |
From: Grzegorz J. <ja...@he...> - 2003-05-15 23:12:36
|
On Thu, 15 May 2003, Bing-Chang Lai wrote: > Hi! > > I want to use Open C++ on Mac OS 10.2 (and above). I checked out the > sandbox-kthulhu line using anonymous CVS and it managed to build the > occ program. The main 2.6.1 release does not support Mac OS X, so I am > unable to get that to compile at all. > > I have two main problems that I would like some input on: > > 1. Open C++ doesn't seem to like GCC 3.1's Standard C++ library This is non-trivial problem. Alexandre Tolmos is just getting down to it. Regards Grzegorz > 2. Enabling AltiVec extensions > > ==================================================== > 1. Open C++ doesn't seem to like GCC 3.1's Standard C++ library > ==================================================== > Trying to occ on the following C++ program: > > #include <iostream> > int main(int argc, char *argv[]) { > return 0; > } > > Fails with: > > MOP warning: The hash table is full. Expanded... > /usr/include/gcc/darwin/3.1/g++-v3/bits/stl_alloc.h:392: parse error > before `= *' > /usr/include/gcc/darwin/3.1/g++-v3/bits/stl_alloc.h:401: parse error > before `__ret ;' > /usr/include/gcc/darwin/3.1/g++-v3/bits/stl_construct.h:67: parse error > before `namespace std' > /usr/include/gcc/darwin/3.1/g++-v3/bits/stl_construct.h:86: parse error > before `template <' > /usr/include/gcc/darwin/3.1/g++-v3/bits/stl_construct.h:98: parse error > before `template <' > /usr/include/gcc/darwin/3.1/g++-v3/bits/stl_construct.h:101: parse > error before `__last ;' > /usr/include/gcc/darwin/3.1/g++-v3/bits/stl_construct.h:101: parse > error before `__first )' > /usr/include/gcc/darwin/3.1/g++-v3/bits/stl_construct.h:112: parse > error before `template <' > /usr/include/gcc/darwin/3.1/g++-v3/bits/stl_construct.h:134: parse > error before `template <' > /usr/include/gcc/darwin/3.1/g++-v3/bits/stl_construct.h:145: parse > error before `} namespace' > 10 Error(s). OpenC++ stops. > > Removing the "#include <iostream>" produces an executable. > > ==================================================== > 2. Enabling AltiVec extensions > ==================================================== > Trying "occ -- -faltivec main.cpp" on: > > int main(int argc, char *argv[]) { > __vector signed char ch; > return 0; > } > > Produces > > main.cpp:2: parse error before `char ch' > 1 Error(s). OpenC++ stops. > > I was under the impression that Open C++ is a front-end. So perhaps all > that I need to do is to get Open C++ to accept my "__vector" as a > keyword? > > > Thanks in advance. > > Regards, > Bing-Chang Lai > > > PS: Version information > $ g++ --version > g++ (GCC) 3.1 20020420 (prerelease) > Copyright (C) 2002 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is > NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR > PURPOSE. > > $ occ --version > OpenC++ version 2.5.6_testing > Copyright (c) 1997-2001 Shigeru Chiba. All Rights Reserved. > Copyright (c) 1995, 1996 Xerox Corporation. All Rights Reserved. > Copyright (c) 2002 Other Developers. > > Usage: occ [-l][-s][-V][-v][-E][-m[<file > name>]][-c][-n][-p][--regular-c++] > [-I<directory>][-D<macro>[=<def>]][-M<option>[=<value>]] > [-g][-d<option>][-S<metaclass>] > [-- <compiler options>] <source file> > > -g Produce debugging information > -M Specify an <option> with <value> passed to > metaobjects > -l List metaclasses > -S Load a metaclass > -s Show program tree on stdout > -V Show version > -v Verbose mode > > Building stages options > -n Don't preprocess > -p Don't translate (stop after parsing) > -E Don't compile (stop after translation) > -c Don't make executable (stop after compilation) > -P Preprocess again after translation > -m Compile a metaclass (make a shared library) > > Preprocessor options > -I<directory> Add <directory> to the #include path > -D<name>=<def> Define a macro <name> as <def> > -d<option> Specify a preprocessor option > -C Don't discard comments > > Other options > --regular-c++ Inhibit the extended syntax > > > > ------------------------------------------------------- > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara > The only event dedicated to issues related to Linux enterprise solutions > www.enterpriselinuxforum.com > > _______________________________________________ > Opencxx-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opencxx-users > > ################################################################## # Grzegorz Jakacki Huada Electronic Design # # Senior Engineer, CAD Dept. 1 Gaojiayuan, Chaoyang # # tel. +86-10-64365577 x2074 Beijing 100015, China # # Copyright (C) 2002 Grzegorz Jakacki, HED. All Rights Reserved. # ################################################################## |