[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[creduce-bugs] localize_headers bug



Hi,

I'm trying to use localize_headers on a file from folly open source project
https://github.com/facebook/folly

I'm using the following configuration section

my $FILE = "/home/tzafrir/folly-0.39.0/folly/experimental/io/HugePages.cpp";
my $COMP = "clang++";
my $CPP = "-x c++";
my $CFLAGS = "-std=gnu++0x -I/home/tzafrir/folly-0.39.0";
my $EXT = ".cpp";

When I run
$ clang++ -std=gnu++0x -I/home/tzafrir/folly-0.39.0 HugePages.cpp on the local files copied

I get the below error output:

In file included from HugePages.cpp:17:
In file included from ./HugePages.h:30:
In file included from ./Range.h:24:
In file included from ./FBString.h:61:
In file included from ./Hash.h:21:
./stdint.h_1:29:24: warning: #include_next with absolute path
#if __STDC_HOSTED__ && __has_include_next(<stdint.h>)
                       ^
In file included from HugePages.cpp:17:
In file included from ./HugePages.h:30:
In file included from ./Range.h:31:
In file included from ./logging.h:75:
./stdint.h_1:29:24: warning: #include_next with absolute path
#if __STDC_HOSTED__ && __has_include_next(<stdint.h>)
                       ^
In file included from HugePages.cpp:17:
In file included from ./HugePages.h:30:
In file included from ./Range.h:31:
In file included from ./logging.h:81:
In file included from ./inttypes.h_1:26:
In file included from ./inttypes.h:27:
./stdint.h_1:29:24: warning: #include_next with absolute path
#if __STDC_HOSTED__ && __has_include_next(<stdint.h>)
                       ^
In file included from HugePages.cpp:17:
In file included from ./HugePages.h:30:
In file included from ./Range.h:31:
In file included from ./logging.h:85:
./gflags.h:38:2: error: localize_headers should not have tried to include foo.h /usr/include/foo.h
#error localize_headers should not have tried to include foo.h /usr/include/foo.h

And it goes on a bit.

Also,

You might want to place this section below the diff output, as the diff is too large to fit in one screen page, and the notice is gone.
"Now we'll print the diffs between the preprocessed version of your
original file (which you can find as out1.c) and the preprocessed
version of the file emitted by this script (out2.c). If the diffs
are empty then localize_headers most likely worked properly. If there
are diffs, something went wrong and you might want to report the
circumstances to creduce-bugs@flux.utah.edu.
"

Best,
Tzafrir