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

Re: [creduce-bugs] localize_headers bug



Hi Tzafrir, I can build folly on an Ubuntu 14.04 box but I cannot build its test suite nor can I compile the program you mention below, I get this:

regehr@klein:~/folly/folly/experimental/io$ clang++ -std=gnu++0x -I/home/regehr/folly HugePages.cpp
In file included from HugePages.cpp:17:
In file included from /home/regehr/folly/folly/experimental/io/HugePages.h:30:
In file included from /home/regehr/folly/folly/Range.h:23:
/home/regehr/folly/folly/Portability.h:174:27: error: no type named 'max_align_t' in the global namespace
namespace std { typedef ::max_align_t max_align_t; }
                        ~~^
1 error generated.

Does that ring an bells for you? I followed the instructions in the README for this OS.

John


On 11/4/15 2:39 PM, Tzafrir Poupko wrote:
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
<mailto:creduce-bugs@flux.utah.edu>./"

Best,
Tzafrir