[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnubol: gcc compile error w/COBOL



Matthew,

When building the compiler I follow the following procedure:

0. I am running Red Hat linux 6.1 very standard

1. Create the objdir and install directories. Then from objdir...

2. configure --enable-languages=c,toy,exa,cobol
--prefix=/home/tim/egcs_snaps/cob-egcs/install --disable-cpplib

3. nice make bootstrap LANGUAGES=c
(the above is because things don't work very well until the c
compiler is built and building the other things - three times -
is a waste of time at this stage)

4. nice make install LANGUAGES="c cobol exe toy"
(This builds the cobol etc once. You may need to install autogen
from the cygnus site for this step, probably not)

5. "Set the path to include the install/bin directory"

6. run the tests from the objdir/gcc directory

make check-toy
make check-exa
make check-cobol

(requires various programs like 'expect' and tcl to be installed)

...
The make process is quite flakey IMO so I follow these steps
religiously.

It looks from your error message that it is not finding the (I
think) GCC intrinsic ATTRIBUTE_UNUSED which suppresses the unused
error message for that parameter. Maybe your GCC is a little old.
If this is a problem we can put in a conditional #define for it
as follows:

#ifdef ???something???
#define ATTRIBUTE_UNUSED /* nothing */
#endif

RSN does mean real soon now. I have parsed that construct but
there is no code generation for it yet. Once I have the garbage
collection done probably this weekend function will get added
fast - all the foundations are built then.

Tim Josling

--
This message was sent through the gnu-cobol mailing list.  To remove yourself
from this mailing list, send a message to majordomo@lusars.net with the
words "unsubscribe gnu-cobol" in the message body.  For more information on
the GNU COBOL project, send mail to gnu-cobol-owner@lusars.net.