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

Some paths are not captured properly (not absoulte path) #4

Open
HansolChoe opened this issue Nov 10, 2021 · 1 comment
Open

Some paths are not captured properly (not absoulte path) #4

HansolChoe opened this issue Nov 10, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@HansolChoe
Copy link
Collaborator

HansolChoe commented Nov 10, 2021

In some cases, paths in projects.json are not recorded in absolute path.

If you capture the build information of gzip-1.11, you may see logs like below:

$ ./configure && cxbuild capture make -j10
...
> eXtension of Compilation Database
-- [Analyzing build Activities]
-- [Build trace preprocessed]
-- [project.json written [/home/vagrant/workspace/gzip-1.11/.xdb/project.json]]
-- [compile_commands.json written [/home/vagrant/workspace/gzip-1.11/.xdb/compile_commands.json]]
  > All dependency should start with '//'. Ignore 'threadlib.c'.
  > All dependency should start with '//'. Ignore 'lock.c'.
-- [artifacts.zip written [/home/vagrant/workspace/gzip-1.11/.xdb/artifacts.zip]]

threadlib.c and lock.c are not absolute path.
In this case, cxbuild is not killed, but it prints warning messages and ignores the two files.

These files may be okay to ignore, but we need to know when these things happen.

@HansolChoe HansolChoe added the bug Something isn't working label Nov 10, 2021
@HansolChoe HansolChoe self-assigned this Nov 10, 2021
@HansolChoe
Copy link
Collaborator Author

HansolChoe commented Nov 11, 2021

I've found that threadlib.c and lock.c is realated to -dumpbase option.
-dumpbase is one of the cc1 options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant