Closed dilyanpalauzov closed 1 year ago
---inst2---
running install
/home/me/cc/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_ext
building 'codechecker_analyzer.ld_logger.lib.ldlogger' extension
creating build/temp.linux-x86_64-cpython-311
creating build/temp.linux-x86_64-cpython-311/analyzer
creating build/temp.linux-x86_64-cpython-311/analyzer/tools
creating build/temp.linux-x86_64-cpython-311/analyzer/tools/build-logger
creating build/temp.linux-x86_64-cpython-311/analyzer/tools/build-logger/src
gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D__LOGGER_MAIN__ -D_GNU_SOURCE -I/home/me/cc/include -I/usr/include/python3.11 -c analyzer/tools/build-logger/src/ldlogger-hooks.c -o build/temp.linux-x86_64-cpython-311/analyzer/tools/build-logger/src/ldlogger-hooks.o
analyzer/tools/build-logger/src/ldlogger-hooks.c: In function ‘unsetLDPRELOAD’:
analyzer/tools/build-logger/src/ldlogger-hooks.c:46:64: warning: the comparison will always evaluate as ‘true’ for the pointer operand in ‘pos + -1’ must not be NULL [-Waddress]
46 | if ((prefix_length == pos_number) && ( pos_number == 0 || (pos-1 && *--pos == '/')))
| ^~~
gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D__LOGGER_MAIN__ -D_GNU_SOURCE -I/home/me/cc/include -I/usr/include/python3.11 -c analyzer/tools/build-logger/src/ldlogger-logger.c -o build/temp.linux-x86_64-cpython-311/analyzer/tools/build-logger/src/ldlogger-logger.o
gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D__LOGGER_MAIN__ -D_GNU_SOURCE -I/home/me/cc/include -I/usr/include/python3.11 -c analyzer/tools/build-logger/src/ldlogger-tool-gcc.c -o build/temp.linux-x86_64-cpython-311/analyzer/tools/build-logger/src/ldlogger-tool-gcc.o
gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D__LOGGER_MAIN__ -D_GNU_SOURCE -I/home/me/cc/include -I/usr/include/python3.11 -c analyzer/tools/build-logger/src/ldlogger-tool-javac.c -o build/temp.linux-x86_64-cpython-311/analyzer/tools/build-logger/src/ldlogger-tool-javac.o
gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D__LOGGER_MAIN__ -D_GNU_SOURCE -I/home/me/cc/include -I/usr/include/python3.11 -c analyzer/tools/build-logger/src/ldlogger-tool.c -o build/temp.linux-x86_64-cpython-311/analyzer/tools/build-logger/src/ldlogger-tool.o
gcc -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D__LOGGER_MAIN__ -D_GNU_SOURCE -I/home/me/cc/include -I/usr/include/python3.11 -c analyzer/tools/build-logger/src/ldlogger-util.c -o build/temp.linux-x86_64-cpython-311/analyzer/tools/build-logger/src/ldlogger-util.o
creating build/lib.linux-x86_64-cpython-311
creating build/lib.linux-x86_64-cpython-311/codechecker_analyzer
creating build/lib.linux-x86_64-cpython-311/codechecker_analyzer/ld_logger
creating build/lib.linux-x86_64-cpython-311/codechecker_analyzer/ld_logger/lib
gcc -shared -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,--build-id=sha1 -g -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,--build-id=sha1 -g build/temp.linux-x86_64-cpython-311/analyzer/tools/build-logger/src/ldlogger-hooks.o build/temp.linux-x86_64-cpython-311/analyzer/tools/build-logger/src/ldlogger-logger.o build/temp.linux-x86_64-cpython-311/analyzer/tools/build-logger/src/ldlogger-tool-gcc.o build/temp.linux-x86_64-cpython-311/analyzer/tools/build-logger/src/ldlogger-tool-javac.o build/temp.linux-x86_64-cpython-311/analyzer/tools/build-logger/src/ldlogger-tool.o build/temp.linux-x86_64-cpython-311/analyzer/tools/build-logger/src/ldlogger-util.o -L/usr/lib64 -o build/lib.linux-x86_64-cpython-311/codechecker_analyzer/ld_logger/lib/ldlogger.so -O2 -fomit-frame-pointer -fvisibility=hidden -pedantic -Wl,--no-as-needed -ldl
running build_scripts
creating build/scripts-3.11
copying and adjusting scripts/gerrit_changed_files_to_skipfile.py -> build/scripts-3.11
changing mode of build/scripts-3.11/gerrit_changed_files_to_skipfile.py from 644 to 755
running install_lib
creating /home/me/cc/lib64/python3.11/site-packages/codechecker_analyzer
creating /home/me/cc/lib64/python3.11/site-packages/codechecker_analyzer/ld_logger
creating /home/me/cc/lib64/python3.11/site-packages/codechecker_analyzer/ld_logger/lib
copying build/lib.linux-x86_64-cpython-311/codechecker_analyzer/ld_logger/lib/ldlogger.so -> /home/me/cc/lib64/python3.11/site-packages/codechecker_analyzer/ld_logger/lib
running install_data
creating /home/me/cc/share
creating /home/me/cc/share/codechecker
creating /home/me/cc/share/codechecker/docs
copying docs/README.md -> /home/me/cc/share/codechecker/docs
creating /home/me/cc/share/codechecker/analyzer
copying analyzer/requirements.txt -> /home/me/cc/share/codechecker/analyzer
creating /home/me/cc/share/codechecker/web
copying web/requirements.txt -> /home/me/cc/share/codechecker/web
creating /home/me/cc/share/codechecker/ld_logger
creating /home/me/cc/share/codechecker/ld_logger/include
copying analyzer/tools/build-logger/src/ldlogger-hooks.h -> /home/me/cc/share/codechecker/ld_logger/include
copying analyzer/tools/build-logger/src/ldlogger-tool.h -> /home/me/cc/share/codechecker/ld_logger/include
copying analyzer/tools/build-logger/src/ldlogger-util.h -> /home/me/cc/share/codechecker/ld_logger/include
running install_egg_info
error: error in 'egg_base' option: 'build_dist/CodeChecker/lib/python3' does not exist or is not a directory
Hi,
It is also required to install the Python dependencies of CodeChecker. So before make package
you should execute make venv
which installs further pip packages to the virtual env.
Indeed, I have not followed precisely the documentation.
I want to install CodeChecker at commit eac25bc8 (current master) on Window—WSL2—Fedora with python 3.11.2. I have installed node16 and have set «export NODE_OPTIONS=--openssl-legacy-provider».
I create and enter a virtualenv
https://github.com/Ericsson/codechecker/ says «make package» shall be sufficient for the installation, but it does not install codechecker under virtenv-bin. However «pip list» does show
Then I call «python setup.py install |& tee -a inst2»
Calling now «python setup.py install» produces:
Below is the content of «inst», followed by the content of inst2.
The problem report is, that code checker is not installed in virtualenv-bin.
---- inst ----