Previous mail
Next mail
Formatted
Overview 10 days
Subject
Date
Thread
Author
From gpc-owner+M7983@gnu.de Mon Apr 21 09:17:45 2008
Received: from localhost ([127.0.0.1] helo=gnu.de)
by ngc224.gerwinski.de with smtp (Exim 4.50 #1 (Debian))
id 1JnqDe-0002CJ-VR; Mon, 21 Apr 2008 09:13:43 +0200
Received: from smtp-out.vodafone.nl ([195.232.199.126] helo=smtp.vodafone.nl)
by ngc224.gerwinski.de with esmtp (Exim 4.50 #1 (Debian))
id 1JnqDS-00027z-5C
for <gpc@gnu.de>; Mon, 21 Apr 2008 09:13:39 +0200
Received: from conversion-daemon.vfnlw43s.vfnl.dc-ratingen.de by
vfnlw43s.vfnl.dc-ratingen.de
(Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006))
id <0JZN00301YHX3200@vfnlw43s.vfnl.dc-ratingen.de>
(original mail from gpc@microbizz.nl) for gpc@gnu.de; Mon,
21 Apr 2008 09:12:58 +0200 (MEST)
Received: from [212.56.242.41] by vfnlw43s.vfnl.dc-ratingen.de
(Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006))
with ESMTPA id <0JZN0037YYPFE070@vfnlw43s.vfnl.dc-ratingen.de> for gpc@gnu.de;
Mon, 21 Apr 2008 09:12:58 +0200 (MEST)
Date: Mon, 21 Apr 2008 09:12:50 +0200
From: Adriaan van Os <gpc@microbizz.nl>
Subject: Re: Building latest gpc on Intel OS X
In-reply-to: <1208699120.12559.290258@goedel.fjf.gnu.de>
To: gpc@gnu.de
Reply-to: gpc@gnu.de
Message-id: <480C3E72.6030409@microbizz.nl>
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
References: <1208302112.16725.758233@goedel.fjf.gnu.de>
<48059C0C.7010401@microbizz.nl> <4805B564.5000408@microbizz.nl>
<1208567397.5430.136596@goedel.fjf.gnu.de> <48099BBC.7080805@microbizz.nl>
<4809A8B3.9020703@microbizz.nl> <1208699120.12559.290258@goedel.fjf.gnu.de>
User-Agent: Thunderbird 1.5.0.4 (Macintosh/20060516)
X-Spam-Score: 0.1 (/)
Precedence: bulk
Sender: gpc-owner@gnu.de
>> Thanks. -- Apparently it doesn't like ";" after labels and branches,
>> and wants a newline. So try this:
>>
>> --- p/utils/mk-t-inc.orig Sun Apr 20 15:38:25 2008
>> +++ p/utils/mk-t-inc Sun Apr 20 15:41:16 2008
>> @@ -72,6 +72,11 @@
>> cat "$GCCDIR/tree.def"
>> echo 'DEFTREECODE (LAST_AND_UNUSED_C_TREE_CODE, "unused", '"'x', 0)"
>> sed -e '/#ifdef EGCS/,${/#ifdef EGCS/d;/#else/,/#endif/d;}' "$GCCDIR/p/p-tree.def"
>> -} | sed -ne ':loop;/\\$/{N;bloop;};/^DEFTREECODE/{s,/\*.*\*/,,;s/["'"'"']x["'"'"'].*/'"'x', 0)/;p;}"
>> +} | sed -ne ':loop
>> + /\\$/{
>> + N
>> + bloop
>> + }
>> + /^DEFTREECODE/{s,/\*.*\*/,,;s/["'"'"']x["'"'"'].*/'"'x'"', 0)/;p;}'
>>
>> } > "$2" || { rm -f "$2"; false; }
>
> This fixes the problem, thanks.
That's what I thought -- but there still is a problem. The tree.inc created with the patched
p/utils/mk-t-inc and the Darwin system-sed doesn't have any #ifdef GCC_xx conditions and this
results in duplicate symbols:
"/Users/adriaan/gnu/gpc/gpc346u3/gcc-3.4.6/gcc/p/utils/mk-t-inc"
"/Users/adriaan/gnu/gpc/gpc346u3/gcc-3.4.6/gcc" "tree.inc"
../.././xgpc -B../.././ -L../.. -I../rts --automake --executable-file-name -W -Wall
-Wmissing-prototypes -Wmissing-declarations -g --executable-path=.
--unit-path=/Users/adriaan/gnu/gpc/gpc346u3/gcc-3.4.6/gcc/p/rts
--unit-path=/Users/adriaan/gnu/gpc/gpc346u3/gcc-3.4.6/gcc/p/units -I. -I
"/Users/adriaan/gnu/gpc/gpc346u3/gcc-3.4.6/gcc/p"
"/Users/adriaan/gnu/gpc/gpc346u3/gcc-3.4.6/gcc/p/utils/gpidump.pas"
/Users/adriaan/gnu/gpc/gpc346u3/gcc-3.4.6/gcc/p/utils/gpidump.pas: In procedure `ProcessFile':
/Users/adriaan/gnu/gpc/gpc346u3/gcc-3.4.6/gcc/p/utils/gpidump.pas:45: error: redeclaration of `In_expr'
/Users/adriaan/gnu/gpc/gpc346u3/gcc-3.4.6/gcc/p/utils/gpidump.pas:45: error: previous declaration
/Users/adriaan/gnu/gpc/gpc346u3/gcc-3.4.6/gcc/p/utils/gpidump.pas:45: error: redeclaration of
`Operator_decl'
/Users/adriaan/gnu/gpc/gpc346u3/gcc-3.4.6/gcc/p/utils/gpidump.pas:45: error: previous declaration
Here is the diff for tree.inc
--- tree-ok.inc 2008-04-21 08:13:44.000000000 +0200
+++ tree-bad.inc 2008-04-21 07:55:53.000000000 +0200
@@ -1,4 +1,4 @@
-{ Generated automatically by /Users/adriaan/gnu/gpc/gpc346u2/gcc-3.4.6/gcc/p/utils/mk-t-inc for
GCC version 3.4.6. }
+{ Generated automatically by /Users/adriaan/gnu/gpc/gpc346u3/gcc-3.4.6/gcc/p/utils/mk-t-inc for
GCC version 3.4.6. }
{ DO NOT CHANGE THIS FILE MANUALLY! }
{$ifndef GCC_VERSION_SET}
@@ -265,7 +265,6 @@
DEFTREECODE (SWITCH_EXPR, "switch_expr", 'e', 2)
DEFTREECODE (EXC_PTR_EXPR, "exc_ptr_expr", 'e', 0)
DEFTREECODE (LAST_AND_UNUSED_C_TREE_CODE, "unused", 'x', 0)
-#ifdef GCC_4_0
DEFTREECODE (OPERATOR_DECL, "operator_decl", tcc_declaration, 0)
DEFTREECODE (INTERFACE_NAME_NODE, "interface_name_node", tcc_exceptional, 3)
DEFTREECODE (IMPORT_NODE, "import_node", tcc_exceptional, 4)
@@ -277,10 +276,7 @@
DEFTREECODE (RANGE_CHECK_EXPR, "range_check_expr", tcc_expression, 3)
DEFTREECODE (IO_RANGE_CHECK_EXPR, "io_range_check_expr", tcc_expression, 3)
DEFTREECODE (IN_EXPR, "in_expr", tcc_binary, 2)
-#ifdef GCC_4_1
DEFTREECODE (PASCAL_SET_CONSTRUCTOR, "pascal_set_constructor", tcc_expression, 1)
-#endif
-#else
DEFTREECODE (OPERATOR_DECL, "operator_decl", 'd', 0)
DEFTREECODE (INTERFACE_NAME_NODE, "interface_name_node", 'x', 0)
DEFTREECODE (IMPORT_NODE, "import_node", 'x', 0)
@@ -291,4 +287,3 @@
DEFTREECODE (SYMDIFF_EXPR, "symdiff_expr", '2', 2)
DEFTREECODE (RANGE_CHECK_EXPR, "range_check_expr", 'e', 3)
DEFTREECODE (IO_RANGE_CHECK_EXPR, "io_range_check_expr", 'e', 3)
-#endif
Regards,
Adriaan van Os
Previous mail
Next mail
Formatted
Overview 10 days
Subject
Date
Thread
Author
| Author | Subject | Date |
|---|---|---|
| Frank Heckenbach | Building latest gpc on Intel OS X | 21 Apr 2008, 16:12:25 |
| Adriaan van Os | Building latest gpc on Intel OS X | 28 Apr 2008, 17:03:44 |
Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.
Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.
This page was created by Crystal 0.999 (Linux 2.4.27/i686).