4
responses

I am having this issue on both Ubuntu and FreeBSD. While trying to compile the pattern parser, it is failing because xcc doesn't exist:

Ubuntu:

xcc -b -i patterndb_parser.xcc -o patterndb_parser.c
/bin/bash: xcc: command not found
make[5]: [Makefile:738: patterndb_parser.c] Error 127 (ignored)

FreeBSD:

Making all in pattern
xcc -b -i patterndb_parser.xcc -o patterndb_parser.c
make[4]: exec(xcc) failed (No such file or directory)
*** Error code 1 (ignored)

Both of these lead to the build failing because patterndb_parser.c was not generated:

Ubuntu:

gcc: error: patterndb_parser.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
make[5]: *** [Makefile:480: patterndb_parser.lo] Error 1

FreeBSD:

cc: error: no such file or directory: 'patterndb_parser.c'
cc: error: no input files
*** Error code 1

Stop.

Where does xcc come from? Google is not helping me at all, nor find, nor looking though the git repository.

AskedDecember 31, 2018 - 8:26pm

Answers (2)

The source tarball should have the xcc generated source files.

Comments (2)

  • alg's picture

    XCC ("XML Compiler Compiler" was written by Evgeny Stambulchik.
    XCC is GPL-licensed, at least the initial versions that were released.

    Is access to the GPL-licensed version allowed to be restricted, especially if the generated code from XCC is crucial to the compilation of nxlog-ce (which is also GPL-licensed)?

  • b0ti's picture
    (NXLog)

    XCC itself is licensed under the GPL, however the files that it generates are not. This is similar to bison and flex (and gcc for the record), both of which are also used by nxlog-ce.

    NXLog CE isn't GPL licensed either, see https://nxlog.co/nxlog-public-license .