Skip to content
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

Creating dependency list with the compiler fails (failure zip / no-sources) #1483

Open
martong opened this issue Mar 23, 2018 · 3 comments
Open
Labels
analyzer 📈 Related to the analyze commands (analysis driver) bug 🐛

Comments

@martong
Copy link
Contributor

martong commented Mar 23, 2018

Creating dependency list with the compiler fails during failure zip creation when compile commands json contains such entries: -DPACKAGE_STRING=\"tmux 2.6\" .

@martong
Copy link
Contributor Author

martong commented Mar 23, 2018

See for example tmux with with git tag 2.6

@martong
Copy link
Contributor Author

martong commented Mar 23, 2018

	{
		"directory": "/home/egbomrt/WORK/CodeCheckerProjects/tmux",
		"command": "/usr/bin/gcc -DPACKAGE_NAME=\"tmux\" -DPACKAGE_TARNAME=\"tmux\" -DPACKAGE_VERSION=\"2.6\" -DPACKAGE_STRING=\"tmux 2.6\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"tmux\" -DVERSION=\"2.6\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -D__EXTENSIONS__=1 -D_ALL_SOURCE=1 -D_GNU_SOURCE=1 -D_POSIX_PTHREAD_SEMANTICS=1 -D_TANDEM_SOURCE=1 -DHAVE_DIRENT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_PATHS_H=1 -DHAVE_PTY_H=1 -DHAVE_STDINT_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_DIRFD=1 -DHAVE_FLOCK=1 -DHAVE_PRCTL=1 -DHAVE_SYSCONF=1 -DHAVE_ASPRINTF=1 -DHAVE_CFMAKERAW=1 -DHAVE_MEMMEM=1 -DHAVE_SETENV=1 -DHAVE_STRCASESTR=1 -DHAVE_STRNDUP=1 -DHAVE_STRSEP=1 -DHAVE_NCURSES_H=1 -DHAVE_B64_NTOP=1 -DHAVE_DAEMON=1 -DHAVE_FORKPTY=1 -DHAVE___PROGNAME=1 -DHAVE_PROGRAM_INVOCATION_SHORT_NAME=1 -DHAVE_PR_SET_NAME=1 -DHAVE_PROC_PID=1 -I/home/egbomrt/WORK/CodeCheckerProjects/tmux -DTMUX_CONF=\"/etc/tmux.conf\" -iquote. -D_GNU_SOURCE -std=gnu99 -O2 -MT alerts.o -MD -MP -MF .deps/alerts.Tpo -c -o /home/egbomrt/WORK/CodeCheckerProjects/tmux/alerts.o /home/egbomrt/WORK/CodeCheckerProjects/tmux/alerts.c",
		"file": "/home/egbomrt/WORK/CodeCheckerProjects/tmux/alerts.c"
	}

@martong
Copy link
Contributor Author

martong commented Mar 23, 2018

Here is the root cause of the problem:

command = action.original_command.split(' ')

https://github.com/Ericsson/codechecker/blob/master/libcodechecker/analyze/analysis_manager.py#L131

@whisperity whisperity added bug 🐛 analyzer 📈 Related to the analyze commands (analysis driver) labels Jul 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer 📈 Related to the analyze commands (analysis driver) bug 🐛
Projects
None yet
Development

No branches or pull requests

2 participants