New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spicy 1.1.0 fails to build under FreeBSD 13-p3. #959
Comments
Please post the full Also, I don't see |
Yes, flex is installed: root@zeekmgmt:/tmp # whereis flex configure output: -- The ASM compiler identification is Clang ====================| Spicy Build Summary |==================== Version: 1.1.0 Build type: RelWithDebInfo Host system: FreeBSD 13.0-RELEASE-p3 (amd64) Building toolchain: yes Use ccache: yes Warnings are errors: no Bison version: 3.7.6 ================================================================ -- Configuring done |
I just tried it with a fresh FreeBSD 13 box and can't reproduce it, it all works fine for me. I tried it with both the 1.1.0 release tarball and with current
Output:
Not sure why this is not working for you? |
Yep ... I think I know where I've made the mistake ... I have not added the /proc entry in the fstab file. Now everything works correctly ... Many thanks @rsmmr Now, when I try to install spicy plugin using zkg, fails: root@norway:~ # cat /opt/zeek/var/lib/zkg/testing/spicy-plugin/clones/spicy-plugin/build/CMakeFiles/CMakeOutput.log The output was: Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out" The CXX compiler identification is Clang, found in "/opt/zeek/var/lib/zkg/testing/spicy-plugin/clones/spicy-plugin/build/CMakeFiles/3.20.4/CompilerIdCXX/a.out" Detecting CXX compiler ABI info compiled with the following output: Run Build Command(s):/usr/bin/make -f Makefile cmTC_84c00/fast && /usr/bin/make -f CMakeFiles/cmTC_84c00.dir/build.make CMakeFiles/cmTC_84c00.dir/build Parsed CXX implicit include dir info from above output: rv=done Parsed CXX implicit link information from above output: Performing C++ SOURCE FILE Test cxx17_already_works succeeded with the following output: Run Build Command(s):/usr/bin/make -f Makefile cmTC_2a405/fast && /usr/bin/make -f CMakeFiles/cmTC_2a405.dir/build.make CMakeFiles/cmTC_2a405.dir/build Source file was: Command used is "zkg install zeek/zeek/spicy-plugin" |
Sorry, spicy log: root@norway:/opt/zeek/var/lib/zkg/logs # more spicy-plugin-build.log ====================| Spicy Installation Summary |==================== Found Spicy: yes Version: () ======================================================================== ====================| Zeek Installation Summary |==================== Found Zeek: yes Version: 4.0.3 (40003) ======================================================================== CMake Error at plugin/CMakeLists.txt:162 (set_target_properties): ====================| Spicy Zeek Plugin |==================== Version: 1.1.1 (10101) ======================================================================== === STDOUT === |
Is |
Yes. My current env variables: addsuffix |
I have tried this as well now and it goes smoothly for me:
What is |
Failed: root@norway:/tmp # zkg -vvvv install spicy-plugin Proceed? [Y/n] |
So no idea right now why this isn't working for you. Something's wrong with cmake looking for Spicy. For comparison, this is my
|
Uhmm ... one second ... My spicy release is 1.1.0 ... I can try to recompile release 1.1.1 |
Yep ... @rsmmr this is wrong: Version: 1.1.1 (10101) My modules and scripts dirs are not located under /usr/local. They are under /opt/spicy .... Maybe is this the problem? |
Iirc, it's picking those paths from the Zeek installation prefix (and that may have changed recently in |
My Zeek install is under /opt/zeek also .... |
Looks like it's finding a |
During compilation, spicy has located zeek-config in /opt/zeek/bin/zeek-config: -- Found zeek-config: /opt/zeek/bin/zeek-config |
But there's a different one in |
No. There is no zeek-config in /usr/local: root@norway:/opt/zeek/lib/zeek/plugins # ls -la /usr/local/zeek* |
Ah, I was getting confused. Ok, then back to not knowing what's going on unfortunately, not sure what's different your system (other than the Zeek prefix, but that shouldn't matter, I'm using |
I will keep an eye out for future versions of spicy and see if we can get it to work under FreeBSD. In the meantime, any test needed, let me know. Many thanks for your help @rsmmr |
just to check on this again - is there perhaps a zeek-config in /usr/local/bin? It seems you only might have looked in /usr/local :) |
No. There is no any Zeek's component under /usr/local .... All Zeek software is installed under /opt/zeek. root@norway:/usr/local/bin # ls -l |
weird - thank you very much. |
You could give current |
I'll close this as we can't reproduce it. Suggest you try the recent 1.2 release and see if that changes anything for you. |
Good morning,
When I try to compile spicy 1.1.0 under a FreeBSD 13 host, the following errors appears:
ninja: Entering directory `build'
[6/338] cd /tmp/kk/build/hilti/runtime && /usr/local/bin/python3.8 /tmp/kk/scripts/autogen-version --header /tmp/kk/build/include/hilti/rt/autogen/version.h --git-root /tmp/kk
1.1.0-branch (72d88fb)
[291/338] Generating ../cache/spicy/precompiled_libhilti.h
FAILED: cache/spicy/precompiled_libhilti.h
cd /tmp/kk/build/hilti && /usr/local/bin/cmake -E env SPICY_CACHE=/tmp/kk/build/cache/spicy /tmp/kk/scripts/precompile-headers.sh --hilti-config /tmp/kk/build/bin/hilti-config
Abort trap
Error: could not determine location of libhilti.h
[292/338] [BISON][parser_spicy] Building parser with bison 3.7.6
ninja: build stopped: subcommand failed.
*** Error code 1
Stop.
I am using the following configure options:
./configure --prefix=/opt/spicy --enable-ccache --generator=Ninja
Packages installed on this host:
bash-5.1.8 GNU Project's Bourne Again SHell
bison-3.7.6,1 Parser generator from FSF, (mostly) compatible with Yacc
ca_root_nss-3.63 Root certificate bundle from the Mozilla Project
ccache-3.7.1_1 Tool to minimize the compile time of C/C++ programs
cmake-3.20.4 Cross-platform Makefile generator
curl-7.77.0 Command line tool and library for transferring data with URLs
cvsps-2.1_2 Create patchset information from CVS
expat-2.4.1 XML 1.0 parser written in C
gettext-runtime-0.21 GNU gettext runtime libraries and programs
git-2.32.0_1 Distributed source code management tool
indexinfo-0.3.1 Utility to regenerate the GNU info page index
jq-1.6 Lightweight and flexible command-line JSON processor
jsoncpp-1.9.4 JSON reader and writer library for C++
lbl-cf-1.2.5 Unix time to formatted time and date filter
lbl-hf-1.9 Address to hostname filter
libarchive-3.5.1,1 Library to create and read several streaming archive formats
libedit-3.1.20210216,1 Command line editor library
libevent-2.1.12 API for executing callback functions on events or timeouts
libffi-3.3_1 Foreign Function Interface
libiconv-1.16 Character set conversion library
liblz4-1.9.3,1 LZ4 compression library, lossless and very fast
libmaxminddb-1.6.0 Library for the MaxMind DB file format used for GeoIP2
libnghttp2-1.43.0 HTTP/2.0 C Library
libtextstyle-0.21 Text styling library
libuv-1.41.0 Multi-platform support library with a focus on asynchronous I/O
libzmq4-4.3.4 ZeroMQ core library (Version 4)
m4-1.4.18_1,1 GNU M4
mpdecimal-2.5.1 C/C++ arbitrary precision decimal floating point libraries
ninja-1.10.2,2 Small build system closest in spirit to Make
norm-1.5r6_1 NACK-Oriented Reliable Multicast (NORM)
oniguruma-6.9.7.1 Regular expressions library compatible with POSIX/GNU/Perl
openpgm-5.2.122_6 Implementation of the PGM reliable multicast protocol
p5-Authen-SASL-2.16_1 Perl5 module for SASL authentication
p5-CGI-4.53 Handle Common Gateway Interface requests and responses
p5-Clone-0.45 Recursively copy Perl datatypes
p5-Digest-HMAC-1.04 Perl5 interface to HMAC Message-Digest Algorithms
p5-Encode-Locale-1.05 Determine the locale encoding
p5-Error-0.17029 Error/exception handling in object-oriented programming style
p5-GSSAPI-0.28_1 Perl extension providing access to the GSSAPIv2 library
p5-HTML-Parser-3.76 Perl5 module for parsing HTML documents
p5-HTML-Tagset-3.20_1 Some useful data table in parsing HTML
p5-HTTP-Date-6.05 Conversion routines for the HTTP protocol date formats
p5-HTTP-Message-6.32 Representation of HTTP style messages
p5-IO-HTML-1.001_1 Open an HTML file with automatic charset detection
p5-IO-Socket-INET6-2.72_1 Perl module with object interface to AF_INET6 domain sockets
p5-IO-Socket-SSL-2.071 Perl5 interface to SSL sockets
p5-LWP-MediaTypes-6.04 Guess media type for a file or a URL
p5-Mozilla-CA-20200520 Perl extension for Mozilla CA cert bundle in PEM format
p5-Net-SSLeay-1.90 Perl5 interface to SSL
p5-Socket6-0.29 IPv6 related part of the C socket.h defines and structure manipulators
p5-TimeDate-2.33,1 Perl5 module containing a better/faster date parser for absolute dates
p5-URI-5.09 Perl5 interface to Uniform Resource Identifier (URI) references
pcre-8.44 Perl Compatible Regular Expressions library
pcre2-10.37 Perl Compatible Regular Expressions library, version 2
perl5-5.32.1_1 Practical Extraction and Report Language
pkg-1.16.3 Package manager
py38-backports-1 Shared namespace shim for py-backports.* ports
py38-btest-0.68 Simple driver for basic unit tests
py38-configparser-3.5.3_1,1 INI style configuration file parser
py38-ddt-1.4.2 Data-Driven Tests for Python Unittest
py38-gitdb-4.0.7 Git Object Database
py38-gitpython-3.1.18 Python Git Library
py38-pyzmq-22.1.0 Python bindings for ZeroMQ
py38-semantic-version-2.8.5 Python library provides a few tools to handle SemVer in Python
py38-setuptools-57.0.0 Python packages installer
py38-smmap-4.0.0 Sliding-window memory map manager
py38-sqlite3-3.8.10_7 Standard Python binding to the SQLite3 library (Python 3.8)
py38-typing-extensions-3.10.0.0 Backported and Experimental Type Hints for Python 3.5+
python38-3.8.10 Interpreted object-oriented programming language
readline-8.1.1 Library for editing command lines as they are typed
rhash-1.4.1 Utility and library for computing and checking of file hashes
rsync-3.2.3_1 Network file distribution/synchronization utility
sqlite3-3.35.5_3,1 SQL database engine in a C library
swig-4.0.2 Generate wrappers for calling C/C++ code from other languages
tmux-3.2a Terminal Multiplexer
xxhash-0.8.0 Extremely fast non-cryptographic hash algorithm
zstd-1.5.0 Fast real-time compression algorithm
Many thanks for your help
The text was updated successfully, but these errors were encountered: