Issue Details (XML | Word | Printable)

Key: PCC-271
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Anders Magnusson
Reporter: Detlef Riekenberg
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
pcc

CLONE -cpp ran out of macro space (with patch)

Created: 04/Mar/11 04:59 PM   Updated: 12/Mar/11 08:23 AM
Component/s: C preprocessor
Affects Version/s: None
Fix Version/s: None

Environment: i686/linux


 Description  « Hide
pcc failed to build many parts of Wine with the message:
error: out of macro space!

The attached patch inreased SBSIZE to get compilation of Wine further.
(I added code to dump the used size and got values >915000)

--
By by ... Detlef


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Detlef Riekenberg added a comment - 04/Mar/11 05:04 PM
PCC-255 is still not fixed for Wine:

pcc -c -I../../../src/dlls/dxguid -I. -I../../../src/include -I../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wstrict-prototypes -Wtype-limits -Wwrite-strings -Wpointer-arith -v -g -o dxguid.o ../../../src/dlls/dxguid/dxguid.c

/usr/local/libexec/cpp -v -D__PCC__=1 -D__PCC_MINOR__=1 -D__PCC_MINORMINOR__=0 -D__GNUC__=4 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=1 -D__GNUC_STDC_INLINE__=1 -D__VERSION__="pcc 1.1.0.DEVEL 20110221 for i686-pc-linux-gnu, detlef@asus" -D__SCHAR_MAX__=127 -D__SHRT_MAX__=32767 -D__INT_MAX__=0x7fffffff -D__LONG_MAX__=0x7fffffff -D__LONG_LONG_MAX__=0x7fffffffffffffffLL -D__REGISTER_PREFIX__= -D__USER_LABEL_PREFIX__= -D__linux__ -D__ELF__ -D__STDC_ISO_10646__=200009L -D__WCHAR_TYPE__=int -D__SIZEOF_WCHAR_T__=4 -D__WCHAR_MAX__=2147483647 -D__WINT_TYPE__=unsigned int -D__SIZE_TYPE__=unsigned long -D__PTRDIFF_TYPE__=long int -D__SIZEOF_WINT_T__=4 -D__i386__ -I../../../src/dlls/dxguid -I. -I../../../src/include -I../../include -D__WINESRC__ -D_REENTRANT -S /usr/local/include/pcc/ -S /usr/include/ -S /usr/local/lib/pcc/i686-pc-linux-gnu/1.1.0.DEVEL/include/ ../../../src/dlls/dxguid/dxguid.c /tmp/ctm.0NaEXG

../../../src/include/dplay8.h:849: error: Too much defining

I increased SBSIZE to 900000 and compiled Wine with the patched pcc.
Max. value for sbf used: 852000

That's better as the 915000 before, but still much more as the reserved 600000 byte.


"Clone an issue" didn't allow me to update the text before creating the bug report.
I will never use that option again...

--
By by ... Detlef


Anders Magnusson added a comment - 12/Mar/11 08:23 AM
I've wrapped SBSIZE to 1000000. This must be fixed after 1.0.