dajobe / raptor

Redland Raptor RDF syntax library
https://librdf.org/raptor/
Other
154 stars 62 forks source link

No rule to make target 'turtle_lexer.c' #67

Open waarmond opened 3 months ago

waarmond commented 3 months ago

I'm trying to build at ArchLinux with GCC 13 and these lines:

  ./configure \
    --prefix='/usr' \
    --disable-static \
    --with-icu-config='/usr/bin/icu-config'
  make

Result:

Making all in src
make[1]: Entering directory '/home/papa/aur/_speed_perf/raptor/src/raptor-master/src'
make[1]: *** No rule to make target 'turtle_lexer.c', needed by 'all'.  Stop.
dajobe commented 2 months ago

If you are building from GIT sources rather than a tarball, you need to do more than just run configure. It's described in the install file which is easier to read at https://librdf.org/raptor/INSTALL.html

waarmond commented 1 month ago

I've actually been executing bash autogen.sh, just omitted it in my post:

  ./autogen.sh
  ./configure \
    --prefix='/usr' \
    --disable-static \
    --with-icu-config='/usr/bin/icu-config'
  LC_ALL=C make
Raptor build summary:
  RDF parsers available     : rdfxml ntriples turtle trig guess rss-tag-soup rdfa nquads grddl json
  RDF parsers enabled       : rdfxml ntriples turtle trig guess rss-tag-soup rdfa nquads grddl json
  RDF serializers available : rdfxml rdfxml-abbrev turtle mkr ntriples rss-1.0 dot html json atom nquads
  RDF serializers enabled   : rdfxml rdfxml-abbrev turtle mkr ntriples rss-1.0 dot html json atom nquads
  XML parser                : libxml 2.13.0 via xml2-config
  WWW library               : libcurl 8.8.0 via curl-config
  NFC check library         : ICU UC 75.1
Making all in librdfa
[..]
libtool: link: ( cd ".libs" && rm -f "librdfa.la" && ln -s "../librdfa.la" "librdfa.la" )
make[1]: Leaving directory './librdfa'
Making all in src
[..]

→ Error

dajobe commented 1 month ago

Looks like I have a documentation gap. You need to add '--enable-maintainer-mode' to configure (or autogen.sh) to enable the flex generation rules in Makefile.am

dajobe commented 1 month ago

actually autogen.sh will do that... so there's something else. If you can paste the output of the ./autogen.sh run then maybe it'll show the problem.

waarmond commented 1 month ago

autogen output: https://pastebin.com/MbUuzqZs

adding --enable-maintainer-mode to ./configure fixed my problem!

dajobe commented 1 month ago

Great, I'm not sure I have anything to fix. I've added more words to the INSTALL.html doc in GIT head

dajobe commented 1 month ago

Oh now I see, you ran configure after autogen.sh

I guess it wasn't clear you can do ./autogen.sh arguments to configure