Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
From: Adriaan van Os
Subject: Building GPC with GCC-3.2.1 on Darwin
Date: 24 Dec 2002, 19:47:18
Here is a first report of my attempt to build GPC-20021128 with the
GCC-3.2.1 backend on Mac OS X "Darwin". The GPC build is on a 1.1 GB
450 MHz PowerMac G4 running Mac OS X 10.2.
Note: I am also trying to build GPC with an Apple-patched GCC backend
(named "GCC3-1151"), but I will report about that separately.
P r o b l e m 1
During Configure, conftest crashes, but the Configure process happily
continues. This is not a GPC problem. The crash also appears if I try
to build GCC-3.2.1 (without GPC).
**********
Date/Time: 2002-12-24 14:40:01 +0100
OS Version: 10.2 (Build 6C115)
Host: G4.local.
Command: conftest
PID: 3948
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_INVALID_ADDRESS (0x0001) at 0x00088000
Thread 0 Crashed:
#0 0x000026d4 in test_1 (configure:127)
#1 0x00002a9c in main (configure:237)
#2 0x00002298 in _start (crt.c:267)
#3 0x00002118 in start
PPC Thread State:
srr0: 0x000026d4 srr1: 0x0000f030 vrsave: 0x00000000
xer: 0x00000000 lr: 0x000026b8 ctr: 0x90015040 mq: 0x00000000
r0: 0x00000001 r1: 0xbffffb40 r2: 0x84000482 r3: 0x000025e0
r4: 0x00000000 r5: 0x00000000 r6: 0x90015040 r7: 0x00000000
r8: 0x00000000 r9: 0x00001000 r10: 0x00087000 r11: 0xa0004254
r12: 0x90015040 r13: 0x00000000 r14: 0x00000000 r15: 0x00000000
r16: 0x00000000 r17: 0x00000000 r18: 0x00000000 r19: 0x00000000
r20: 0x00000000 r21: 0x00000000 r22: 0x00000000 r23: 0x00000000
r24: 0x00000000 r25: 0x00000000 r26: 0xbffffd70 r27: 0x00000008
r28: 0x00000001 r29: 0x000033a8 r30: 0xbffffd74 r31: 0x000025e0
P r o b l e m 2
The file "builtin-attrs.def" causes problems. This is not a GPC problem
either: same problems if I try to build GCC (without GPC). Being a C
ignoramus, I simply commented away the offending lines (in order to at
least continue the build process).
In file included from /Users/adriaan/gpcx/gcc/c-common.c:4110:
/Users/adriaan/gpcx/gcc/builtin-attrs.def:94: parse error before "_0"
/Users/adriaan/gpcx/gcc/builtin-attrs.def:95: redefinition of
`ATTR_PRINTF_1'
/Users/adriaan/gpcx/gcc/builtin-attrs.def:94: `ATTR_PRINTF_1'
previously defined here
/Users/adriaan/gpcx/gcc/builtin-attrs.def:95: redefinition of
`ATTR_FORMAT_PRINTF_1'
/Users/adriaan/gpcx/gcc/builtin-attrs.def:94: `ATTR_FORMAT_PRINTF_1'
previously defined here
/Users/adriaan/gpcx/gcc/builtin-attrs.def:97: redefinition of
`ATTR_PRINTF_2'
/Users/adriaan/gpcx/gcc/builtin-attrs.def:96: `ATTR_PRINTF_2'
previously defined here
/Users/adriaan/gpcx/gcc/builtin-attrs.def:97: redefinition of
`ATTR_FORMAT_PRINTF_2'
/Users/adriaan/gpcx/gcc/builtin-attrs.def:96: `ATTR_FORMAT_PRINTF_2'
previously defined here
/Users/adriaan/gpcx/gcc/builtin-attrs.def:99: redefinition of
`ATTR_PRINTF_3'
/Users/adriaan/gpcx/gcc/builtin-attrs.def:98: `ATTR_PRINTF_3'
previously defined here
/Users/adriaan/gpcx/gcc/builtin-attrs.def:99: redefinition of
`ATTR_FORMAT_PRINTF_3'
/Users/adriaan/gpcx/gcc/builtin-attrs.def:98: `ATTR_FORMAT_PRINTF_3'
previously defined here
/Users/adriaan/gpcx/gcc/builtin-attrs.def:101: redefinition of
`ATTR_SCANF_1'
/Users/adriaan/gpcx/gcc/builtin-attrs.def:100: `ATTR_SCANF_1'
previously defined here
/Users/adriaan/gpcx/gcc/builtin-attrs.def:101: redefinition of
`ATTR_FORMAT_SCANF_1'
/Users/adriaan/gpcx/gcc/builtin-attrs.def:100: `ATTR_FORMAT_SCANF_1'
previously defined here
/Users/adriaan/gpcx/gcc/builtin-attrs.def:103: redefinition of
`ATTR_SCANF_2'
/Users/adriaan/gpcx/gcc/builtin-attrs.def:102: `ATTR_SCANF_2'
previously defined here
/Users/adriaan/gpcx/gcc/builtin-attrs.def:103: redefinition of
`ATTR_FORMAT_SCANF_2'
/Users/adriaan/gpcx/gcc/builtin-attrs.def:102: `ATTR_FORMAT_SCANF_2'
previously defined here
/Users/adriaan/gpcx/gcc/builtin-attrs.def:170:3: warning: style of line
directive is a GCC extension
/Users/adriaan/gpcx/gcc/c-common.c:4225:3: warning: style of line
directive is a GCC extension
In file included from /Users/adriaan/gpcx/gcc/c-common.c:4225:
/Users/adriaan/gpcx/gcc/builtin-attrs.def:2:3: warning: style of line
directive is a GCC extension
In file included from /Users/adriaan/gpcx/gcc/c-common.c:4225:
/Users/adriaan/gpcx/gcc/builtin-attrs.def: In function
`c_init_attributes':
/Users/adriaan/gpcx/gcc/builtin-attrs.def:94: parse error before "_0"
/Users/adriaan/gpcx/gcc/builtin-attrs.def:94: parse error before "_0"
/Users/adriaan/gpcx/gcc/builtin-attrs.def:95: parse error before "_2"
/Users/adriaan/gpcx/gcc/builtin-attrs.def:95: parse error before "_2"
/Users/adriaan/gpcx/gcc/builtin-attrs.def:96: parse error before "_0"
/Users/adriaan/gpcx/gcc/builtin-attrs.def:96: parse error before "_0"
/Users/adriaan/gpcx/gcc/builtin-attrs.def:97: parse error before "_3"
/Users/adriaan/gpcx/gcc/builtin-attrs.def:97: parse error before "_3"
/Users/adriaan/gpcx/gcc/builtin-attrs.def:98: parse error before "_0"
/Users/adriaan/gpcx/gcc/builtin-attrs.def:98: parse error before "_0"
/Users/adriaan/gpcx/gcc/builtin-attrs.def:99: parse error before "_4"
/Users/adriaan/gpcx/gcc/builtin-attrs.def:99: parse error before "_4"
/Users/adriaan/gpcx/gcc/builtin-attrs.def:100: parse error before "_0"
/Users/adriaan/gpcx/gcc/builtin-attrs.def:100: parse error before "_0"
/Users/adriaan/gpcx/gcc/builtin-attrs.def:101: parse error before "_2"
/Users/adriaan/gpcx/gcc/builtin-attrs.def:101: parse error before "_2"
/Users/adriaan/gpcx/gcc/builtin-attrs.def:102: parse error before "_0"
/Users/adriaan/gpcx/gcc/builtin-attrs.def:102: parse error before "_0"
/Users/adriaan/gpcx/gcc/builtin-attrs.def:103: parse error before "_3"
/Users/adriaan/gpcx/gcc/builtin-attrs.def:103: parse error before "_3"
/Users/adriaan/gpcx/gcc/builtin-attrs.def:104: parse error before "_0"
/Users/adriaan/gpcx/gcc/builtin-attrs.def:104: parse error before "_0"
/Users/adriaan/gpcx/gcc/builtin-attrs.def:105: parse error before "_4"
/Users/adriaan/gpcx/gcc/builtin-attrs.def:105: parse error before "_4"
/Users/adriaan/gpcx/gcc/builtin-attrs.def:170:3: warning: style of line
directive is a GCC extension
/Users/adriaan/gpcx/gcc/c-common.c:4254:3: warning: style of line
directive is a GCC extension
In file included from /Users/adriaan/gpcx/gcc/c-common.c:4254:
/Users/adriaan/gpcx/gcc/builtin-attrs.def:2:3: warning: style of line
directive is a GCC extension
In file included from /Users/adriaan/gpcx/gcc/c-common.c:4254:
/Users/adriaan/gpcx/gcc/builtin-attrs.def: In function
`c_common_insert_default_attributes':
/Users/adriaan/gpcx/gcc/builtin-attrs.def:126: `ATTR_FORMAT_PRINTF_1_2'
undeclared (first use in this function)
/Users/adriaan/gpcx/gcc/builtin-attrs.def:126: (Each undeclared
identifier is reported only once
/Users/adriaan/gpcx/gcc/builtin-attrs.def:126: for each function it
appears in.)
/Users/adriaan/gpcx/gcc/builtin-attrs.def:127: `ATTR_FORMAT_PRINTF_2_3'
undeclared (first use in this function)
/Users/adriaan/gpcx/gcc/builtin-attrs.def:136: `ATTR_FORMAT_SCANF_1_2'
undeclared (first use in this function)
/Users/adriaan/gpcx/gcc/builtin-attrs.def:137: `ATTR_FORMAT_SCANF_2_3'
undeclared (first use in this function)
/Users/adriaan/gpcx/gcc/builtin-attrs.def:139: `ATTR_FORMAT_PRINTF_1_0'
undeclared (first use in this function)
/Users/adriaan/gpcx/gcc/builtin-attrs.def:140: `ATTR_FORMAT_PRINTF_2_0'
undeclared (first use in this function)
/Users/adriaan/gpcx/gcc/builtin-attrs.def:142:
`ATTR_FORMAT_STRFTIME_3_0' undeclared (first use in this function)
/Users/adriaan/gpcx/gcc/builtin-attrs.def:150: `ATTR_FORMAT_PRINTF_3_4'
undeclared (first use in this function)
/Users/adriaan/gpcx/gcc/builtin-attrs.def:151: `ATTR_FORMAT_PRINTF_3_0'
undeclared (first use in this function)
/Users/adriaan/gpcx/gcc/builtin-attrs.def:152: `ATTR_FORMAT_SCANF_1_0'
undeclared (first use in this function)
/Users/adriaan/gpcx/gcc/builtin-attrs.def:153: `ATTR_FORMAT_SCANF_2_0'
undeclared (first use in this function)
/Users/adriaan/gpcx/gcc/builtin-attrs.def:166:
`ATTR_FORMAT_STRFMON_3_4' undeclared (first use in this function)
/Users/adriaan/gpcx/gcc/builtin-attrs.def:170:3: warning: style of line
directive is a GCC extension
make[1]: *** [c-common.o] Error 1
make: *** [all-gcc] Error 2
P r o b l e m 3
A stament in the file stmt.c" causes problems.
/Users/adriaan/gpcx/gcc/stmt.c:5170:21: attempt to use poisoned "calloc"
The C source reads:
if (size > 0 && size < 600000
/* We deliberately use calloc here, not cmalloc, so that we can
suppress
this optimization if we don't have enough memory rather than
aborting, as xmalloc would do. */
&& (cases_seen =
(unsigned char *) really_call_calloc (bytes_needed, 1)) != NULL)
Being a C ignoramus, I changed "really_call_calloc" into "xcalloc" (to
at least continue the build process).
P r o b l e m 4
The next problem seems to be GPC related. I guess that the GPC experts
will be able to help here. The build process ends with the statement:
cpp-precomp: could not open
'RTS_VERSION_CHECK="__GPC_RTS_VERSION_20021128__"'
gcc -o p/util.o -c -DIN_GCC -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -DHAVE_CONFIG_H -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional
-pedantic -Wno-long-long -I. -Ip -I/Users/adriaan/gpcx/gcc
-I/Users/adriaan/gpcx/gcc/p -I/Users/adriaan/gpcx/gcc/config
-I/Users/adriaan/gpcx/gcc/../include -DGPC -I/Users/adriaan/gpcx/gcc/p
-D RTS_VERSION_CHECK="\"__GPC_RTS_VERSION_`cat
/Users/adriaan/gpcx/gcc/p/rts/rts-version`__\""
/Users/adriaan/gpcx/gcc/p/util.c
cpp-precomp: could not open
'RTS_VERSION_CHECK="__GPC_RTS_VERSION_20021128__"'
make[1]: *** [p/util.o] Error 1
make: *** [all-gcc] Error 2
I can send in more information, make and configure files, etcetera.
Regards,
Adriaan van Os
Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
| Author | Subject | Date |
|---|---|---|
| Frank Heckenbach | Building GPC with GCC-3.2.1 on Darwin | 29 Dec 2002, 06:57:50 |
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).