Bug 127689 - gcc 9.2.1 sanity check error
Summary: gcc 9.2.1 sanity check error
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.4.0.0.alpha1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-21 19:48 UTC by Jonathan Aquilina
Modified: 2019-09-22 15:53 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
config.log (72.57 KB, text/x-log)
2019-09-21 19:48 UTC, Jonathan Aquilina
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Aquilina 2019-09-21 19:48:07 UTC
Created attachment 154351 [details]
config.log

when running autogen.sh --with-dbgutil I get the following error

configure: error: C++ preprocessor "/lib/cpp" fails sanity check


Config.log will be attached
Comment 1 Julien Nabet 2019-09-22 09:09:34 UTC
I noticed:
g++: command not found

Could you follow https://wiki.documentfoundation.org/Development/BuildingOnLinux ?
Comment 2 Jonathan Aquilina 2019-09-22 15:44:27 UTC
Hi Julian, 

it seems like that did the trick i somehow didnt see the ability to run sudo dnf builddep libreoffice like you can do on debian derivitives. 

My question though is if you are just running autogen.sh why it doesnt tell ou what you are missing as all it told me was about a sanity check. Would it make sense to have a message saying kindly check you have either the build dependencies installed with maybe a reference to the link on where it would be in the documentation, or show in this case that g++ is missing.
Comment 3 Julien Nabet 2019-09-22 15:53:27 UTC
When building code, at least you must README.
Here's some extract from README.md:
     60 For more information see the build instructions for your platform in the
     61 [TDF wiki](https://wiki.documentfoundation.org/Development).

In TDF link, you'll find the link I provided about Linux building and prerequisites.
For the rest, I can't tell.
Anyway let's put this one to WFM then.

Don't hesitate to propose some patch about sanity check.