There is curently no documented way of updating the *.opt.url files. a) It requires Texinfo 6.8 or higher, this should be mentioned in https://gcc.gnu.org/install/prerequisites.html , according to https://gcc.gnu.org/pipermail/gcc/2025-September/246675.html b) The method itself is only documented in the mailing list, for example in https://gcc.gnu.org/pipermail/fortran/2024-September/061030.html .
The advertised method of installing Texinfo >= 6.8 does not work: tkoenig@cfarm120 trunk-bin]$ make -C gcc regenerate-opt-urls make: Entering directory '/home/tkoenig/trunk-bin/gcc' ../../trunk/gcc/regenerate-opt-urls.py /home/tkoenig/trunk-bin/gcc/HTML/gcc-16.0.0 ../../trunk make: Leaving directory '/home/tkoenig/trunk-bin/gcc' [tkoenig@cfarm120 trunk]$ git status On branch master Your branch is up to date with 'origin/master'. Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) modified: gcc/fortran/frontend-passes.cc modified: gcc/fortran/lang.opt modified: gcc/fortran/options.cc Notice the absence of modifications to gcc/fortran/lang.opt.urls .
We should document that it needs Python too. (In reply to Thomas Koenig from comment #1) Is the patch somewhere for us to play with? I want to see if I can repro.
Created attachment 62389 [details] Patch which does not regenerate *.urls Here's the patch. Configure was ../trunk/configure --prefix=$HOME --enable-languages=c,c++,fortran
Sorry about this; taking a look.
The patch doesn't contain documentation for the new option. Looks like there's a bug in regenerate-opt-urls.py where it fails to emit a comment mentioning options with no documentation.
(In reply to David Malcolm from comment #5) > The patch doesn't contain documentation for the new option. > > Looks like there's a bug in regenerate-opt-urls.py where it fails to emit a > comment mentioning options with no documentation. That seems to have been the case - It worked when I added the documentation (as I should :-)