Bug Hunting Session
Bug 55324 - Too many preprocessors (cpp)
Summary: Too many preprocessors (cpp)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: difficultyBeginner, easyHack, skillScript, topicCleanup
Depends on:
Blocks:
 
Reported: 2012-09-25 15:50 UTC by Michael Stahl (CIB)
Modified: 2017-02-14 08:58 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Stahl (CIB) 2012-09-25 15:50:29 UTC
during the build too many weird C preprocessors (cpp) are built;
it would be good to consolidate that down to one.

the UNO IDL compiler is shipped with the SDK and currently
uses "ucpp" preprocessor, so we cannot get rid of that one.

others such as the "cpp.lcc" built in soltools could probably be
replaced with ucpp, or usage of the system cpp (latter requires
further investigation).
Comment 1 Don't use this account, use tml@iki.fi 2012-09-25 15:53:48 UTC
s/system cpp/compiler's -E functionality
Comment 2 David Tardon 2012-10-03 04:53:55 UTC
(In reply to comment #0)
> during the build too many weird C preprocessors (cpp) are built;
> it would be good to consolidate that down to one.

YES!

> others such as the "cpp.lcc" built in soltools could probably be
> replaced with ucpp, or usage of the system cpp (latter requires
> further investigation).

I have tried that once. The problem is that the various CONCATn macros used in scp2 often produce strings that are not valid preprocessor tokens (e.g., library names with dot in them), thus causing errors. It would be interesting to try it with ucpp. Anyway, the problem should not be hard to fix by introducing a new family of macros, let's say CONCATSTRn, that shall stringify the args and put them side by side (e.g., CONCATSTR3(foo,..,so) -> "foo" "." "so"), and teaching pre2par.pl to handle that.
Comment 3 Björn Michaelsen 2013-10-04 18:48:14 UTC
adding LibreOffice developer list as CC to unresolved EasyHacks for better visibility.

see e.g. http://nabble.documentfoundation.org/minutes-of-ESC-call-td4076214.html for details
Comment 4 Robinson Tryon (qubit) 2015-12-14 06:54:52 UTC Comment hidden (obsolete)
Comment 5 Robinson Tryon (qubit) 2016-02-18 14:52:40 UTC Comment hidden (obsolete)
Comment 6 jani 2016-05-17 06:01:18 UTC
*** Bug 99879 has been marked as a duplicate of this bug. ***
Comment 7 jani 2016-05-17 08:03:33 UTC Comment hidden (obsolete)
Comment 8 jani 2016-05-17 08:36:05 UTC Comment hidden (obsolete)