CTSRD-CHERI / binutils

Obsolete Port of the GNU Assembler to the CHERI/MIPS
GNU General Public License v2.0
1 stars 3 forks source link

Compiling binutils fails due to compiling documentation #6

Open KoviRobi opened 8 years ago

KoviRobi commented 8 years ago

You get an error like:

bfd.texinfo:326: unknown command `colophon'
bfd.texinfo:337: unknown command `cygnus'
./elf.texi:11: raising the section level of @subsubsection which is too low
Makefile:388: recipe for target 'bfd.info' failed

This is just the documentation failing to compile. A hack is to run this before make:

find -name '*.texinfo' | sed 's/texinfo$/info/' | xargs touch

This works because it updates the timestamps on the documentation, so that make will not build it.

(Putting this here as a workaround, should somebody else also encounter this. Sorry if it is the wrong place for this.)

brooksdavis commented 8 years ago

The workaround we use in Jenkins is to build with MAKEINFO=missing in the environment of configure and make. This causes the documentation make targets to be disabled.

arichardson commented 8 years ago

You can also use cheribuild.py binutils from https://github.com/RichardsonAlex/cheri-scripts which will automatically set all the required flags like MAKEINFO=missing and also forcing -std=gnu89