Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Syntax error emerging dev-ml/extlib. Is this a bug?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
happysmash27
Tux's lil' helper
Tux's lil' helper


Joined: 28 Mar 2016
Posts: 142

PostPosted: Mon May 04, 2020 7:50 pm    Post subject: [SOLVED] Syntax error emerging dev-ml/extlib. Is this a bug? Reply with quote

Should I file a bug report for this, or is it a configuration on my part? The error:

Code:
>>> Emerging (1 of 14) dev-ml/extlib-1.7.6::gentoo
 * Fetching files in the background.
 * To view fetch progress, run in another terminal:
 * tail -f /var/log/emerge-fetch.log
 * extlib-1.7.6.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                    [ ok ]
>>> Unpacking source...
>>> Unpacking extlib-1.7.6.tar.gz to /var/tmp/portage/dev-ml/extlib-1.7.6/work
>>> Source unpacked in /var/tmp/portage/dev-ml/extlib-1.7.6/work
>>> Preparing source in /var/tmp/portage/dev-ml/extlib-1.7.6/work/ocaml-extlib-1.7.6 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-ml/extlib-1.7.6/work/ocaml-extlib-1.7.6 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-ml/extlib-1.7.6/work/ocaml-extlib-1.7.6 ...
make -j16 -j1 all
ocamlfind ocamlc -pp "cppo -D \"OCAML 409\"  -D WITH_BYTES" -g -bin-annot -package bytes -i extBytes.ml > extBytes.mli
ocamlfind ocamlc -pp "cppo -D \"OCAML 409\"  -D WITH_BYTES" -g -bin-annot -package bytes -c extBytes.mli extBytes.ml
ocamlfind ocamlc -pp "cppo -D \"OCAML 409\"  -D WITH_BYTES" -g -bin-annot -package bytes -c enum.mli enum.ml
ocamlfind ocamlc -pp "cppo -D \"OCAML 409\"  -D WITH_BYTES" -g -bin-annot -package bytes -c bitSet.mli bitSet.ml
ocamlfind ocamlc -pp "cppo -D \"OCAML 409\"  -D WITH_BYTES" -g -bin-annot -package bytes -c dynArray.mli dynArray.ml
ocamlfind ocamlc -pp "cppo -D \"OCAML 409\"  -D WITH_BYTES" -g -bin-annot -package bytes -c extArray.mli extArray.ml
File "extArray.mli", line 114, characters 2-5:
114 | # 114
        ^^^
Error: Syntax error: 'end' expected
File "extArray.mli", line 29, characters 0-3:
29 | unctions} *)
     ^^^
  This 'sig' might be unmatched
make: *** [Makefile:50: extArray.cmo] Error 2
 * ERROR: dev-ml/extlib-1.7.6::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=dev-ml/extlib-1.7.6::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-ml/extlib-1.7.6::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-ml/extlib-1.7.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-ml/extlib-1.7.6/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-ml/extlib-1.7.6/work/ocaml-extlib-1.7.6/src'
 * S: '/var/tmp/portage/dev-ml/extlib-1.7.6/work/ocaml-extlib-1.7.6'

>>> Failed to emerge dev-ml/extlib-1.7.6, Log file:

>>>  '/var/tmp/portage/dev-ml/extlib-1.7.6/temp/build.log'



Edit: Marked as SOLVED; I eventually found a workaround by using an older version of Ocaml (IIRC) and using an old version of any packages which depended on the newer version of ocaml. The reason I did this, was that the last comment on the no issue page (linked in the first reply) seemed to suggest it was an issue with the newer versions of Ocaml, and the patch from the comment before that worked for compiling extlib, but also created an error for packages which depended on it.


Last edited by happysmash27 on Sat May 09, 2020 7:21 pm; edited 2 times in total
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2786
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Tue May 05, 2020 1:46 am    Post subject: Reply with quote

Seems to be a known issue, see #704146
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum