chu11 / freeipmi-mirror

Mirror of GNU FreeIPMI Git Repo - http://savannah.gnu.org/projects/freeipmi/. I maintain the upstream of FreeIPMI and can accept Github pull requests.
GNU General Public License v3.0
12 stars 16 forks source link

Failure to build on Ubuntu with GCC 7.3.0 #25

Open chu11 opened 6 years ago

chu11 commented 6 years ago

From from mailing list

Please also see my question and answer on SO:

https://stackoverflow.com/questions/49565383/gcc-ver-7-3-0-preprocessor-fails-if-output-file-doesnt-exist

---------- Forwarded message ----------
From: Aleksey Yakovlev <aleksey.yakovlev@gmail.com>
Date: Thu, Mar 29, 2018 at 5:52 PM
Subject: Failure to build on Ubuntu with GCC 7.3.0
To: freeipmi-users@gnu.org

I got a problem building the FreeIPMI Ver 1.6.1 on a box with GCC 7.3.0.
The 'make' tool enters the 'man' subdirectory and calls the GCC
preprocessor, and it looks like it's unable to process input files.

Can anybody please take a look and invent some way to overcome that?
chu11 commented 6 years ago

and comment from stackoverflow

The invocation format for the GCC 7.3.0 preprocessor has been changed - the output filename has to be prepended by the -o option, and all the free-standing filenames on the command line are considered input files.

Also the preprocessor became more strict about input formats it supports, so it can't be used to generate man-pages for the FreeIPMI anymore.