RE: [EXTERNAL] Re: State of AutoFDO in GCC
That eliminates the previous error but there is a new one: eugene@eugene-Virtual-Machine:~/autofdo1/build$ ninja [3/199] Building CXX object CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/perf_reader.cc.o FAILED: CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/perf_reader.cc.o /usr/bin/c++ -I../third_party/perf_data_converter/src -I../third_party/perf_data_converter/src/quipper -I../ -I../third_party/glog/src -I../third_party/abseil -I../util -I. -Ithird_party/glog -std=gnu++1z -MD -MT CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/perf_reader.cc.o -MF CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/perf_reader.cc.o.d -o CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/perf_reader.cc.o -c ../third_party/perf_data_converter/src/quipper/perf_reader.cc ../third_party/perf_data_converter/src/quipper/perf_reader.cc: In member function 'bool quipper::PerfReader::ReadCPUTopologyMetadata(quipper::DataReader*, size_t)': ../third_party/perf_data_converter/src/quipper/perf_reader.cc:1518:46: error: no match for 'operator[]' (operand types are 'const google::protobuf::RepeatedField' and 'int') nrcpus = proto_uint32_metadata.data()[0]; -Original Message- From: Wei Mi Sent: Monday, May 24, 2021 8:54 PM To: Eugene Rozenfeld Cc: Andi Kleen ; Hongtao Yu ; Xinliang David Li ; Jan Hubicka ; gcc@gcc.gnu.org; Wenlei He Subject: Re: [EXTERNAL] Re: State of AutoFDO in GCC It isn't exposed on my platform either. Looks like a bug in perf_data_converter (i.e., quipper). Could you try adding #include in third_party/perf_data_converter/src/quipper/huge_page_deducer.cc and see if it fixes the problem? If it works, I will need to file a bug against perf_data_converter. Thanks, Wei. On Mon, May 24, 2021 at 8:33 PM Eugene Rozenfeld wrote: > > That fixed the error I saw before but the build still fails. The > errors start with > > > > eugene@eugene-Virtual-Machine:~/autofdo1/build$ ninja > > [2/217] Building CXX object > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quippe > r/huge_page_deducer.cc.o > > FAILED: > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quippe > r/huge_page_deducer.cc.o > > /usr/bin/c++ -I../third_party/perf_data_converter/src > -I../third_party/perf_data_converter/src/quipper -I../ > -I../third_party/glog/src -I../third_party/abseil -I../util -I. > -Ithird_party/glog -std=gnu++1z -MD -MT > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/huge_page_deducer.cc.o > -MF > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/huge_page_deducer.cc.o.d > -o > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/huge_page_deducer.cc.o > -c ../third_party/perf_data_converter/src/quipper/huge_page_deducer.cc > > ../third_party/perf_data_converter/src/quipper/huge_page_deducer.cc:14 > 4:26: error: 'unordered_map' in namespace 'std' does not name a > template type > >using container = std::unordered_map; > > ^ > > > > > > > > From: Wei Mi > Sent: Monday, May 24, 2021 8:12 PM > To: Eugene Rozenfeld > Cc: Andi Kleen ; Hongtao Yu ; Xinliang > David Li ; Jan Hubicka ; > gcc@gcc.gnu.org; Wenlei He > Subject: Re: [EXTERNAL] Re: State of AutoFDO in GCC > > > > Sorry, I added dependency for create_gcov but missed it for dump_gcov. Fixed > it at > https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fgoogle%2Fautofdo%2Fcommit%2F6ca36cdc30986f13583a3aef3e27746ca4fc5bf6&data=04%7C01%7CEugene.Rozenfeld%40microsoft.com%7C1bcb2fda4fce4f173c1808d91f30d1fc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637575116816277204%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=hwJ%2BG64Yw%2BEGMAV7kzilOjAOkHoOv3TQpdqkzcHGO%2FM%3D&reserved=0. > > > > Thanks, > > Wei. > > > > On Mon, May 24, 2021 at 6:39 PM Eugene Rozenfeld > wrote: > > Thank you Wei. Looks like something is still missing. This time > perf_data.pb.h is not found. I'm getting the error below (on Ubuntu 18.04 > with cmake 3.12.1): > > eugene@eugene-Virtual-Machine:~/autofdo1/build$ ninja [1/241] Building > CXX object CMakeFiles/dump_gcov_lib.dir/profile.cc.o > FAILED: CMakeFiles/dump_gcov_lib.dir/profile.cc.o > /usr/bin/c++ -I../ -I../third_party/glog/src -I../third_party/abseil > -I../third_party/perf_data_converter/src > -I../third_party/perf_data_converter/src/quipper -I../util -I. > -Ithird_party/glog -std=gnu++1z -MD -MT > CMakeFiles/dump_gcov_lib.dir/profile.cc.o -MF > CMakeFiles/dump_gcov_lib.dir/profile.cc.o.d -o > CMakeFiles/dump_gcov_lib.dir/profile.cc.o -c ../profile.cc > In file included from > ../third_party/perf_data_converter/src/quipper/perf_parser.h:18:0, > from ../sample_reader.h:18, > from ../profile.h:15, >
Re: Regarding __gcov_dump and __gcov_reset usage
Hi Martin, The bug is created : https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100751 Let me know if any more info is required. Thanks, Gejoe From: Martin Li kaSent: Mon, 24 May 2021 19:32:10 To: Gejoe Daniel , gcc@gcc.gnu.org, gcc-h...@gcc.gnu.org Subject: Re: Regarding __gcov_dump and __gcov_reset usage On 5/24/21 1:44 PM, Gejoe Daniel via Gcc wrote: > Adding gcc mailing list for the clarification. > > Thank you team ! > > From: "Gejoe Daniel"<gej...@rediffmail.com>; > Sent: Mon, 24 May 2021 15:02:12 > To: "gcc-h...@gcc.gnu.org";<gcc-h...@gcc.gnu.org>; > Subject: Re: Regarding __gcov_dump and __gcov_reset usage > > Hi team, > > Any info/reply ? > > Thanking you in advance, > Gejoe > > > From: "Gejoe Daniel"<gej...@rediffmail.com>; > Sent: Sun, 16 May 2021 17:37:46 > To: <gcc-h...@gcc.gnu.org>; > Subject: Regarding __gcov_dump and __gcov_reset usage > > Hi team, > > I did go through the online manual of gcc gcov on __gcov_dump() and __gcov_reset() : > https://gcc.gnu.org/onlinedocs/gcc/Gcov-and-Optimization.html#Gcov-and-Optimization > > I tried out using the functions in a sample program (sample-prog.c) that is attached here. > > The steps followed were : > > (1) gcc -fprofile-arcs -ftest-coverage sample-prog.c > (2) ./a.out > (3) gcov sample-prog.c > > While running a.out, when I give character 'g', the __gcov_dump() must be invoked. > What I could observe is that first time __gcov_dump() is invoked , the sample-prog.gcda file gets created. > For the second time and then onwards, __gcov_dump() invocation (by giving 'g' character during the a.out run) doesn't happen. > This is concluded by looking at the time stamp of sample-prog.gcda file in the same folder. It was still having the same time stamp of first time invocation of __gcov_dump(). > > Another thing is that, __gcov_reset() also doesn't appear to work. I tried giving the character 'r' during the run of the program but couldn't see the counters getting reset to 0 in the sample-prog.gcov file. The previous values of lines covered were there. > > Let me know if my approach is correct or if I miss any information here. > > Thanks, > Gejoe > > Hello. Can you please create bug at: https://gcc.gnu.org/bugzilla/ Please upload there a test-case and series of commands executed and the expected result. Thank you, Martin
[patch, committed] fortran/intrinsic.texi: Fix copy'n'paste errors and typos (was: https://gcc.gnu.org/onlinedocs/gcc-11.1.0/gfortran/)
Hi Johannes, hi all, On 24.05.21 23:21, Johannes Nendwich wrote: some more suggestions for corrections in the onlinedocs: thanks for the proof reading. I have converted it into a patch and committed it as attached. Tobias - Mentor Graphics (Deutschland) GmbH, Arnulfstrasse 201, 80634 München Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Frank Thürauf commit 2044a3e3e8343d047344523a1cca98309ce68fdc Author: Tobias Burnus Date: Tue May 25 09:17:07 2021 +0200 fortran/intrinsic.texi: Fix copy'n'paste errors and typos gcc/fortran/ChangeLog: * intrinsic.texi (GERROR, GETARGS, GETLOG, NORM2, PARITY, RANDOM_INIT, RANDOM_NUMBER): Fix typos and copy'n'paste errors. Co-Authored-By: Johannes Nendwich diff --git a/gcc/fortran/intrinsic.texi b/gcc/fortran/intrinsic.texi index ad164137986..c9049b539d5 100644 --- a/gcc/fortran/intrinsic.texi +++ b/gcc/fortran/intrinsic.texi @@ -6835,7 +6835,7 @@ Subroutine @item @emph{Arguments}: @multitable @columnfractions .15 .70 -@item @var{RESULT} @tab Shall of type @code{CHARACTER} and of default +@item @var{RESULT} @tab Shall be of type @code{CHARACTER} and of default kind. @end multitable @item @emph{Example}: @@ -6885,7 +6885,6 @@ Subroutine the default integer kind; @math{@var{POS} \geq 0} @item @var{VALUE} @tab Shall be of type @code{CHARACTER} and of default kind. -@item @var{VALUE} @tab Shall be of type @code{CHARACTER}. @end multitable @item @emph{Return value}: @@ -7259,7 +7258,7 @@ Subroutine @end multitable @item @emph{Return value}: -Stores the current user name in @var{LOGIN}. (On systems where POSIX +Stores the current user name in @var{C}. (On systems where POSIX functions @code{geteuid} and @code{getpwuid} are not available, and the @code{getlogin} function is not implemented either, this will return a blank string.) @@ -11202,7 +11201,7 @@ end program test_nint @table @asis @item @emph{Description}: -Calculates the Euclidean vector norm (@math{L_2} norm) of +Calculates the Euclidean vector norm (@math{L_2} norm) of @var{ARRAY} along dimension @var{DIM}. @item @emph{Standard}: @@ -11555,7 +11554,7 @@ Transformational function @item @emph{Arguments}: @multitable @columnfractions .15 .70 -@item @var{LOGICAL} @tab Shall be an array of type @code{LOGICAL} +@item @var{MASK} @tab Shall be an array of type @code{LOGICAL} @item @var{DIM} @tab (Optional) shall be a scalar of type @code{INTEGER} with a value in the range from 1 to n, where n equals the rank of @var{MASK}. @@ -12005,7 +12004,7 @@ is set to a processor-dependent value. @code{LOGICAL} type, and it is @code{INTENT(IN)}. If it is @code{.true.}, the seed is set to a processor-dependent value that is distinct from th seed set by a call to @code{RANDOM_INIT} in another image. If it is -@code{.false.}, the seed is set value that does depend which image called +@code{.false.}, the seed is set to a value that does depend which image called @code{RANDOM_INIT}. @end multitable @@ -12057,7 +12056,7 @@ Fortran 90 and later Subroutine @item @emph{Syntax}: -@code{RANDOM_NUMBER(HARVEST)} +@code{CALL RANDOM_NUMBER(HARVEST)} @item @emph{Arguments}: @multitable @columnfractions .15 .70
Re: [EXTERNAL] Re: State of AutoFDO in GCC
It looks like some version problem about protobuf-compiler and libprotobuf-dev. Could you check what is the installed version on your end for those two packages and see if they are consistent? On my platform, they are both 3.12.4. On Tue, May 25, 2021 at 12:01 AM Eugene Rozenfeld wrote: > > That eliminates the previous error but there is a new one: > > eugene@eugene-Virtual-Machine:~/autofdo1/build$ ninja > [3/199] Building CXX object > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/perf_reader.cc.o > FAILED: > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/perf_reader.cc.o > /usr/bin/c++ -I../third_party/perf_data_converter/src > -I../third_party/perf_data_converter/src/quipper -I../ > -I../third_party/glog/src -I../third_party/abseil -I../util -I. > -Ithird_party/glog -std=gnu++1z -MD -MT > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/perf_reader.cc.o > -MF > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/perf_reader.cc.o.d > -o > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/perf_reader.cc.o > -c ../third_party/perf_data_converter/src/quipper/perf_reader.cc > ../third_party/perf_data_converter/src/quipper/perf_reader.cc: In member > function 'bool > quipper::PerfReader::ReadCPUTopologyMetadata(quipper::DataReader*, size_t)': > ../third_party/perf_data_converter/src/quipper/perf_reader.cc:1518:46: error: > no match for 'operator[]' (operand types are 'const > google::protobuf::RepeatedField' and 'int') > nrcpus = proto_uint32_metadata.data()[0]; > > -Original Message- > From: Wei Mi > Sent: Monday, May 24, 2021 8:54 PM > To: Eugene Rozenfeld > Cc: Andi Kleen ; Hongtao Yu ; Xinliang > David Li ; Jan Hubicka ; gcc@gcc.gnu.org; > Wenlei He > Subject: Re: [EXTERNAL] Re: State of AutoFDO in GCC > > It isn't exposed on my platform either. Looks like a bug in > perf_data_converter (i.e., quipper). Could you try adding #include > in > third_party/perf_data_converter/src/quipper/huge_page_deducer.cc and see if > it fixes the problem? If it works, I will need to file a bug against > perf_data_converter. > > Thanks, > Wei. > > On Mon, May 24, 2021 at 8:33 PM Eugene Rozenfeld > wrote: > > > > That fixed the error I saw before but the build still fails. The > > errors start with > > > > > > > > eugene@eugene-Virtual-Machine:~/autofdo1/build$ ninja > > > > [2/217] Building CXX object > > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quippe > > r/huge_page_deducer.cc.o > > > > FAILED: > > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quippe > > r/huge_page_deducer.cc.o > > > > /usr/bin/c++ -I../third_party/perf_data_converter/src > > -I../third_party/perf_data_converter/src/quipper -I../ > > -I../third_party/glog/src -I../third_party/abseil -I../util -I. > > -Ithird_party/glog -std=gnu++1z -MD -MT > > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/huge_page_deducer.cc.o > > -MF > > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/huge_page_deducer.cc.o.d > > -o > > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/huge_page_deducer.cc.o > > -c ../third_party/perf_data_converter/src/quipper/huge_page_deducer.cc > > > > ../third_party/perf_data_converter/src/quipper/huge_page_deducer.cc:14 > > 4:26: error: 'unordered_map' in namespace 'std' does not name a > > template type > > > >using container = std::unordered_map; > > > > ^ > > > > > > > > > > > > > > > > From: Wei Mi > > Sent: Monday, May 24, 2021 8:12 PM > > To: Eugene Rozenfeld > > Cc: Andi Kleen ; Hongtao Yu ; Xinliang > > David Li ; Jan Hubicka ; > > gcc@gcc.gnu.org; Wenlei He > > Subject: Re: [EXTERNAL] Re: State of AutoFDO in GCC > > > > > > > > Sorry, I added dependency for create_gcov but missed it for dump_gcov. > > Fixed it at > > https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fgoogle%2Fautofdo%2Fcommit%2F6ca36cdc30986f13583a3aef3e27746ca4fc5bf6&data=04%7C01%7CEugene.Rozenfeld%40microsoft.com%7C1bcb2fda4fce4f173c1808d91f30d1fc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637575116816277204%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=hwJ%2BG64Yw%2BEGMAV7kzilOjAOkHoOv3TQpdqkzcHGO%2FM%3D&reserved=0. > > > > > > > > Thanks, > > > > Wei. > > > > > > > > On Mon, May 24, 2021 at 6:39 PM Eugene Rozenfeld > > wrote: > > > > Thank you Wei. Looks like something is still missing. This time > > perf_data.pb.h is not found. I'm getting the error below (on Ubuntu 18.04 > > with cmake 3.12.1): > > > > eugene@eugene-Virtual-Machine:~/autofdo1/build$ ninja [1/241] Building > > CXX object CMakeFiles/dump_gcov_lib.dir/profile.cc.o > > FAILED: CMakeFiles/dump_gcov_lib.dir/profile.cc.o > > /usr/bin/c++ -I../ -I../third_party/glog/src -I../third_pa
RE: [EXTERNAL] Re: State of AutoFDO in GCC
Both are 3.0.0-9.1ubuntu1: eugene@eugene-Virtual-Machine:~/autofdo1/build$ apt list protobuf-compiler Listing... Done protobuf-compiler/bionic,now 3.0.0-9.1ubuntu1 amd64 [installed] eugene@eugene-Virtual-Machine:~/autofdo1/build$ apt list libprotobuf-dev Listing... Done libprotobuf-dev/bionic,now 3.0.0-9.1ubuntu1 amd64 [installed] -Original Message- From: Wei Mi Sent: Tuesday, May 25, 2021 9:17 AM To: Eugene Rozenfeld Cc: Andi Kleen ; Hongtao Yu ; Xinliang David Li ; Jan Hubicka ; gcc@gcc.gnu.org; Wenlei He Subject: Re: [EXTERNAL] Re: State of AutoFDO in GCC It looks like some version problem about protobuf-compiler and libprotobuf-dev. Could you check what is the installed version on your end for those two packages and see if they are consistent? On my platform, they are both 3.12.4. On Tue, May 25, 2021 at 12:01 AM Eugene Rozenfeld wrote: > > That eliminates the previous error but there is a new one: > > eugene@eugene-Virtual-Machine:~/autofdo1/build$ ninja [3/199] Building > CXX object > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quippe > r/perf_reader.cc.o > FAILED: > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/perf_reader.cc.o > /usr/bin/c++ -I../third_party/perf_data_converter/src > -I../third_party/perf_data_converter/src/quipper -I../ > -I../third_party/glog/src -I../third_party/abseil -I../util -I. > -Ithird_party/glog -std=gnu++1z -MD -MT > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/perf_reader.cc.o > -MF > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/perf_reader.cc.o.d > -o > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/perf_reader.cc.o > -c ../third_party/perf_data_converter/src/quipper/perf_reader.cc > ../third_party/perf_data_converter/src/quipper/perf_reader.cc: In member > function 'bool > quipper::PerfReader::ReadCPUTopologyMetadata(quipper::DataReader*, size_t)': > ../third_party/perf_data_converter/src/quipper/perf_reader.cc:1518:46: error: > no match for 'operator[]' (operand types are 'const > google::protobuf::RepeatedField' and 'int') > nrcpus = proto_uint32_metadata.data()[0]; > > -Original Message- > From: Wei Mi > Sent: Monday, May 24, 2021 8:54 PM > To: Eugene Rozenfeld > Cc: Andi Kleen ; Hongtao Yu ; Xinliang > David Li ; Jan Hubicka ; > gcc@gcc.gnu.org; Wenlei He > Subject: Re: [EXTERNAL] Re: State of AutoFDO in GCC > > It isn't exposed on my platform either. Looks like a bug in > perf_data_converter (i.e., quipper). Could you try adding #include > in > third_party/perf_data_converter/src/quipper/huge_page_deducer.cc and see if > it fixes the problem? If it works, I will need to file a bug against > perf_data_converter. > > Thanks, > Wei. > > On Mon, May 24, 2021 at 8:33 PM Eugene Rozenfeld > wrote: > > > > That fixed the error I saw before but the build still fails. The > > errors start with > > > > > > > > eugene@eugene-Virtual-Machine:~/autofdo1/build$ ninja > > > > [2/217] Building CXX object > > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quip > > pe > > r/huge_page_deducer.cc.o > > > > FAILED: > > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quip > > pe > > r/huge_page_deducer.cc.o > > > > /usr/bin/c++ -I../third_party/perf_data_converter/src > > -I../third_party/perf_data_converter/src/quipper -I../ > > -I../third_party/glog/src -I../third_party/abseil -I../util -I. > > -Ithird_party/glog -std=gnu++1z -MD -MT > > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/huge_page_deducer.cc.o > > -MF > > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/huge_page_deducer.cc.o.d > > -o > > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/huge_page_deducer.cc.o > > -c ../third_party/perf_data_converter/src/quipper/huge_page_deducer.cc > > > > ../third_party/perf_data_converter/src/quipper/huge_page_deducer.cc: > > 14 > > 4:26: error: 'unordered_map' in namespace 'std' does not name a > > template type > > > >using container = std::unordered_map; > > > > ^ > > > > > > > > > > > > > > > > From: Wei Mi > > Sent: Monday, May 24, 2021 8:12 PM > > To: Eugene Rozenfeld > > Cc: Andi Kleen ; Hongtao Yu ; > > Xinliang David Li ; Jan Hubicka > > ; gcc@gcc.gnu.org; Wenlei He > > Subject: Re: [EXTERNAL] Re: State of AutoFDO in GCC > > > > > > > > Sorry, I added dependency for create_gcov but missed it for dump_gcov. > > Fixed it at > > https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fgoogle%2Fautofdo%2Fcommit%2F6ca36cdc30986f13583a3aef3e27746ca4fc5bf6&data=04%7C01%7CEugene.Rozenfeld%40microsoft.com%7C0cd91708868547a3f63608d91f988b90%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637575562315397315%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=9G
Re: GCC 9.4 Release Candidate available
Bootstrapped and tested it on powerpc64 power 7 and 8 BE and 8, 9, and 10 LE and saw nothing untoward. On 5/19/21 5:28 AM, Richard Biener wrote: The first release candidate for GCC 9.4 is available from https://sourceware.org/pub/gcc/snapshots/9.4.0-RC-20210519/ and shortly its mirrors. It has been generated from git commit 8091c46cf736124a106922ddfd1fdb99f33b0241. I have so far bootstrapped and tested the release candidate on {x86_64,i586,aarch64,ppc64le,s390x,riscv64,ppc,ppc64,armv7l}-linux. Please test it and report any issues to bugzilla. If all goes well I'd like to release 9.4 on Friday, June 28th.
Re: [EXTERNAL] Re: State of AutoFDO in GCC
I checked the source of protobuf 3.0.0 and it didn't contain the operator[] in RepeatedField. Need to install a newer version of protobuf. Thanks, Wei. On Tue, May 25, 2021 at 1:49 PM Eugene Rozenfeld wrote: > > Both are 3.0.0-9.1ubuntu1: > > eugene@eugene-Virtual-Machine:~/autofdo1/build$ apt list protobuf-compiler > Listing... Done > protobuf-compiler/bionic,now 3.0.0-9.1ubuntu1 amd64 [installed] > eugene@eugene-Virtual-Machine:~/autofdo1/build$ apt list libprotobuf-dev > Listing... Done > libprotobuf-dev/bionic,now 3.0.0-9.1ubuntu1 amd64 [installed] > > -Original Message- > From: Wei Mi > Sent: Tuesday, May 25, 2021 9:17 AM > To: Eugene Rozenfeld > Cc: Andi Kleen ; Hongtao Yu ; Xinliang > David Li ; Jan Hubicka ; gcc@gcc.gnu.org; > Wenlei He > Subject: Re: [EXTERNAL] Re: State of AutoFDO in GCC > > It looks like some version problem about protobuf-compiler and > libprotobuf-dev. Could you check what is the installed version on your end > for those two packages and see if they are consistent? > > On my platform, they are both 3.12.4. > > On Tue, May 25, 2021 at 12:01 AM Eugene Rozenfeld > wrote: > > > > That eliminates the previous error but there is a new one: > > > > eugene@eugene-Virtual-Machine:~/autofdo1/build$ ninja [3/199] Building > > CXX object > > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quippe > > r/perf_reader.cc.o > > FAILED: > > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/perf_reader.cc.o > > /usr/bin/c++ -I../third_party/perf_data_converter/src > > -I../third_party/perf_data_converter/src/quipper -I../ > > -I../third_party/glog/src -I../third_party/abseil -I../util -I. > > -Ithird_party/glog -std=gnu++1z -MD -MT > > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/perf_reader.cc.o > > -MF > > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/perf_reader.cc.o.d > > -o > > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/perf_reader.cc.o > > -c ../third_party/perf_data_converter/src/quipper/perf_reader.cc > > ../third_party/perf_data_converter/src/quipper/perf_reader.cc: In member > > function 'bool > > quipper::PerfReader::ReadCPUTopologyMetadata(quipper::DataReader*, size_t)': > > ../third_party/perf_data_converter/src/quipper/perf_reader.cc:1518:46: > > error: no match for 'operator[]' (operand types are 'const > > google::protobuf::RepeatedField' and 'int') > > nrcpus = proto_uint32_metadata.data()[0]; > > > > -Original Message- > > From: Wei Mi > > Sent: Monday, May 24, 2021 8:54 PM > > To: Eugene Rozenfeld > > Cc: Andi Kleen ; Hongtao Yu ; Xinliang > > David Li ; Jan Hubicka ; > > gcc@gcc.gnu.org; Wenlei He > > Subject: Re: [EXTERNAL] Re: State of AutoFDO in GCC > > > > It isn't exposed on my platform either. Looks like a bug in > > perf_data_converter (i.e., quipper). Could you try adding #include > > in > > third_party/perf_data_converter/src/quipper/huge_page_deducer.cc and see if > > it fixes the problem? If it works, I will need to file a bug against > > perf_data_converter. > > > > Thanks, > > Wei. > > > > On Mon, May 24, 2021 at 8:33 PM Eugene Rozenfeld > > wrote: > > > > > > That fixed the error I saw before but the build still fails. The > > > errors start with > > > > > > > > > > > > eugene@eugene-Virtual-Machine:~/autofdo1/build$ ninja > > > > > > [2/217] Building CXX object > > > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quip > > > pe > > > r/huge_page_deducer.cc.o > > > > > > FAILED: > > > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quip > > > pe > > > r/huge_page_deducer.cc.o > > > > > > /usr/bin/c++ -I../third_party/perf_data_converter/src > > > -I../third_party/perf_data_converter/src/quipper -I../ > > > -I../third_party/glog/src -I../third_party/abseil -I../util -I. > > > -Ithird_party/glog -std=gnu++1z -MD -MT > > > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/huge_page_deducer.cc.o > > > -MF > > > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/huge_page_deducer.cc.o.d > > > -o > > > CMakeFiles/quipper_perf.dir/third_party/perf_data_converter/src/quipper/huge_page_deducer.cc.o > > > -c ../third_party/perf_data_converter/src/quipper/huge_page_deducer.cc > > > > > > ../third_party/perf_data_converter/src/quipper/huge_page_deducer.cc: > > > 14 > > > 4:26: error: 'unordered_map' in namespace 'std' does not name a > > > template type > > > > > >using container = std::unordered_map; > > > > > > ^ > > > > > > > > > > > > > > > > > > > > > > > > From: Wei Mi > > > Sent: Monday, May 24, 2021 8:12 PM > > > To: Eugene Rozenfeld > > > Cc: Andi Kleen ; Hongtao Yu ; > > > Xinliang David Li ; Jan Hubicka > > > ; gcc@gcc.gnu.org; Wenlei He > > > Subject: Re: [EXTERNAL] Re: State of AutoFDO in GCC > > > > > > > > > > > > Sorry, I added dependency for create_