Opened 5 years ago

Closed 4 years ago

#59258 closed defect (fixed)

source-highlight @3.1.8: fails to make docs: outlang.map:1: wrong specificationhtml = html.outlang

Reported by: dubiousjim Owned by: ken-cunningham-webuse
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: iEFdev, Schamschula (Marius Schamschula), dershow, rmottola (Riccardo), RobK88, ryandesign (Ryan Carsten Schmidt)
Port: source-highlight

Description (last modified by mf2k (Frank Schima))

I have source-highlight @3.1.8_4 installed and cannot upgrade to source-highlight @3.1.8_5. This is a different problem than reported in #59004.

Build fails with:

Making all in doc
make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_source-highlight/source-highlight/work/source-highlight-3.1.8/doc'
Makefile:1643: warning: overriding commands for target `styleformatter.h.texinfo'
Makefile:1634: warning: ignoring old commands for target `styleformatter.h.texinfo'
../src/source-highlight --data-dir ../src/ -s java -f html  --style-file ../src/default.style  -i ./Hello.java -o Hello1.html
../src/source-highlight --data-dir ../src/ -s java -f html  --style-file ../src/default.style  --input ./Hello.java --output Hello2.html --doc
../src/source-highlight --data-dir ../src/ -s java -f html  --style-file ../src/default.style  -i ./Hello.java -o Hello3.html --title "Happy Java with java2html :-)" --tab 3
../src/source-highlight --data-dir ../src/ -s java -f html  --style-file ../src/default.style  < ./Hello.java > Hello4.html --title "and what about CSS :-)" --css "Hello.css"
outlaoutlanng.map:ogu.tmla1n:g .mwaapp:1r::oong  1w: wrsruoong pspeecctlnagin sfiicpaetigc.fmoapni:caihfi1c: taitotnmilohwt r=omn nhtg sl =pec ihmhlftimtl.cm.louattliao non=html u=tglang html.out
 htlmaln.goutlang
make[2]: *** [Hello3.html] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [Hello2.html] Error 1
make[2]: *** [Hello1.html] Error 1
make[2]: *** [Hello4.html] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_source-highlight/source-highlight/work/source-highlight-3.1.8/doc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_source-highlight/source-highlight/work/source-highlight-3.1.8'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_source-highlight/source-highlight/work/source-highlight-3.1.8'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_source-highlight/source-highlight/work/source-highlight-3.1.8" && /usr/bin/make -j4 -w all 
Exit code: 2
Error: Failed to build source-highlight: command execution failed

Log attached.

Attachments (5)

source-highlight.log (132.7 KB) - added by dubiousjim 5 years ago.
source-highlight.2.log (131.9 KB) - added by dubiousjim 5 years ago.
log after: sudo port upgrade source-highlight build.jobs=1
main.log (154.9 KB) - added by rmottola (Riccardo) 5 years ago.
Build log on 10.5 with clang 5.0
source-highlight_build_jobs-1_main.log (147.9 KB) - added by iEFdev 5 years ago.
main.2.log (147.7 KB) - added by rmottola (Riccardo) 4 years ago.
build log 10.7 - 3.1.9

Download all attachments as: .zip

Change History (21)

Changed 5 years ago by dubiousjim

Attachment: source-highlight.log added

comment:1 Changed 5 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:2 in reply to:  description ; Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to dubiousjim:

outlaoutlanng.map:ogu.tmla1n:g .mwaapp:1r::oong  1w: wrsruoong pspeecctlnagin sfiicpaetigc.fmoapni:caihfi1c: taitotnmilohwt r=omn nhtg sl =pec ihmhlftimtl.cm.louattliao non=html u=tglang html.out
 htlmaln.goutlang

This looks like a jumbled error message resulting from error messages from several different jobs being merged together. Could you try sudo port upgrade source-highlight build.jobs=1 and if it fails again, attach that main.log, so that we can see what the real problem is?

Changed 5 years ago by dubiousjim

Attachment: source-highlight.2.log added

log after: sudo port upgrade source-highlight build.jobs=1

comment:3 Changed 5 years ago by rmottola (Riccardo)

I think I have a similar issue, source-highlight is not building for me. I tried both apple gcc 4.2 and clang 5.0, no difference, build log is attached.

Changed 5 years ago by rmottola (Riccardo)

Attachment: main.log added

Build log on 10.5 with clang 5.0

comment:4 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: iEFdev Schamschula dershow added
Summary: source-highlight fails to make docssource-highlight @3.1.8: fails to make docs: outlang.map:1: wrong specificationhtml = html.outlang

Has duplicate #59586.

Riccardo, the error in your log is not the same and should be filed as a new ticket since it will likely need a different solution.

comment:5 in reply to:  2 Changed 5 years ago by iEFdev

Replying to ryandesign:

Could you try sudo port upgrade source-highlight build.jobs=1 and if it fails again, attach that main.log, so that we can see what the real problem is?

The garbled names are gone, but gives this error output:

_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_source-highlight/source-highlight/work/source-highlight-3.1.9/doc'
:info:build Makefile:1643: warning: overriding commands for target `styleformatter.h.texinfo'
:info:build Makefile:1634: warning: ignoring old commands for target `styleformatter.h.texinfo'
:info:build ../src/source-highlight --data-dir ../src/ -s java -f html  --style-file ../src/default.style  -i ./Hello.java -o Hello1.html
:info:build outlang.map:1: wrong specificationhtml = html.outlang
:info:build make[2]: *** [Hello1.html] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_source-highlight/source-highlight/work/source-highlight-3.1.9/doc'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_source-highlight/source-highlight/work/source-highlight-3.1.9'
:info:build make: *** [all] Error 2

Changed 5 years ago by iEFdev

comment:6 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: rmottola RobK88 added

Has duplicate #59669.

comment:7 Changed 5 years ago by kencu (Ken)

Another duplicate, I believe -- #59664.

I also have this error on several systems, and pegged back source-highlight while it is sorted out.

comment:8 Changed 5 years ago by lemzwerg (Werner Lemberg)

Any progress?

comment:9 Changed 5 years ago by RobK88

Has there been any progress fixing this bug? If not, is there a way one can use an old version of source-highlight that still compiles instead?

Last edited 5 years ago by RobK88 (previous) (diff)

comment:10 Changed 4 years ago by rmottola (Riccardo)

Any progress? I think I still have the same error... I am unable to upgrade source-highlight since years... I attach the log of a clean build today build.jobs=1

make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_source-highlight/source-highlight/work/source-highlight-3.1.9/doc'
Makefile:1643: warning: overriding commands for target `styleformatter.h.texinfo'
Makefile:1634: warning: ignoring old commands for target `styleformatter.h.texinfo'
../src/source-highlight --data-dir ../src/ -s java -f html  --style-file ../src/default.style  -i ./Hello.java -o Hello1.html
outlang.map:1: wrong specificationhtml = html.outlang
make[2]: *** [Hello1.html] Error 1
make[2]: Leaving directory `/opt/local/var/ma

Changed 4 years ago by rmottola (Riccardo)

Attachment: main.2.log added

build log 10.7 - 3.1.9

comment:11 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

I have filed a bug report with the developers of source-highlight: https://savannah.gnu.org/bugs/index.php?60449

comment:12 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign added

The code in source-highlight's langmap.cpp that prints the wrong specification message is:

    while (read_line(in, line)) {
        if (line.size()) {
            boost::cmatch what;
            if (!boost::regex_match(line.c_str(), what, assoc_exp))
                throw ParserException("wrong specification" + line, filename,
                        lineno);
            else if (!what[3].matched) // not all spaces
                langmap[what[1]] = what[2];
        }
        ++lineno;
    }

The use of boost in this code suggests that the problem could be a broken boost installation. If source-highlight is not building for you, it might be helpful for us to know the details of the boost that you have installed. Run port -v installed boost. source-highlight @3.1.9_0+universal built fine for me just now on High Sierra with:

$ port -v installed boost
The following ports are currently installed:
  boost @1.71.0_3+no_single+no_static+python38+universal (active) platform='darwin 17' archs='i386 x86_64' date='2020-08-16T01:12:42-0500'

comment:13 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

The same problem does also occur on our 10.7 buildbot worker:

https://build.macports.org/builders/ports-10.7_x86_64-builder/builds/51054/steps/install-port/logs/stdio

We have successful builds on 10.8 and later.

comment:14 in reply to:  13 ; Changed 4 years ago by RJVB (René Bertin)

Replying to ryandesign:

We have successful builds on 10.8 and later.

Strange, I'm not seeing the binary image for 10.9 .

FWIW, I got the exact same error rebuilding source-highlight 3.1.8 with the Xcode clang, against boost 1.71.0_3 . The solution was to build with a newer clang (I used configure.compiler=macports-clang-9.0 but my guess is that 5.0 would work too and be somewhat faster).

comment:15 in reply to:  14 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to RJVB:

Strange, I'm not seeing the binary image for 10.9 .

Not strange, since source-highlight is not distributable.

comment:16 Changed 4 years ago by ken-cunningham-webuse

Owner: set to ken-cunningham-webuse
Resolution: fixed
Status: newclosed

In 706932e16f9382b0670c735b0017daeb5b5fb47d/macports-ports (master):

source-highlight: fix build on < 10.8

build succeeds with a newer compiler
closes: #59258

Note: See TracTickets for help on using tickets.