[LLVMbugs] [Bug 7099] New: Duplicate macro "instantiated from" messages in building googletest

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat May 8 12:11:16 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7099

           Summary: Duplicate macro "instantiated from" messages in
                    building googletest
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: jyasskin at google.com
                CC: llvmbugs at cs.uiuc.edu


To reproduce, check out r423 of http://googletest.googlecode.com/svn/trunk. Use
autoreconf -i to create configure. configure with CC=clang and CXX=clang++.
Then make and make check. During the make check, you'll get the following. Note
that gtest_unittest.cc:3280:3 appears 5 times, gtest.h:1681:3 appears 3 times,
and gtest.h:1681:52 appears twice.


/bin/sh ./libtool --tag=CXX   --mode=link
/Users/jyasskin/src/llvm/clang/obj/Release-Asserts/bin/clang++ -D_THREAD_SAFE 
-DGTEST_HAS_PTHREAD=1 -g -O2   -o samples/sample10_unittest
samples/sample10_unittest.o lib/libgtest.la 
libtool: link: /Users/jyasskin/src/llvm/clang/obj/Release-Asserts/bin/clang++
-D_THREAD_SAFE -DGTEST_HAS_PTHREAD=1 -g -O2 -o samples/.libs/sample10_unittest
samples/sample10_unittest.o -Wl,-bind_at_load  lib/.libs/libgtest.dylib
depbase=`echo test/gtest_all_test.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
    /Users/jyasskin/src/llvm/clang/obj/Release-Asserts/bin/clang++
-DHAVE_CONFIG_H -I. -I../src -I./build-aux  -I../src -I../src/include 
-D_THREAD_SAFE  -DGTEST_HAS_PTHREAD=1 -g -O2 -MT test/gtest_all_test.o -MD -MP
-MF $depbase.Tpo -c -o test/gtest_all_test.o ../src/test/gtest_all_test.cc &&\
    mv -f $depbase.Tpo $depbase.Po
In file included from ../src/test/gtest_all_test.cc:46:
../src/test/gtest_unittest.cc:3280:3: warning: 'gtest_msg' is always NULL in
this context
  EXPECT_THROW({  // NOLINT
  ^
In file included from ../src/test/gtest_all_test.cc:36:
In file included from ../src/test/gtest-filepath_test.cc:42:
../src/include/gtest/gtest.h:1681:3: note: instantiated from:
  GTEST_TEST_THROW_(statement, expected_exception, GTEST_NONFATAL_FAILURE_)
  ^
In file included from ../src/test/gtest_all_test.cc:46:
../src/test/gtest_unittest.cc:3280:3: note: instantiated from:
  EXPECT_THROW({  // NOLINT
  ^
In file included from ../src/test/gtest_all_test.cc:36:
In file included from ../src/test/gtest-filepath_test.cc:42:
../src/include/gtest/gtest.h:1681:52: note: instantiated from:
  GTEST_TEST_THROW_(statement, expected_exception, GTEST_NONFATAL_FAILURE_)
                                                   ^
In file included from ../src/test/gtest_all_test.cc:36:
In file included from ../src/test/gtest-filepath_test.cc:42:
In file included from ../src/include/gtest/gtest.h:57:
../src/include/gtest/internal/gtest-internal.h:798:3: note: instantiated from:
  GTEST_MESSAGE_(message, ::testing::TestPartResult::kNonFatalFailure)
  ^
In file included from ../src/test/gtest_all_test.cc:46:
../src/test/gtest_unittest.cc:3280:3: note: instantiated from:
  EXPECT_THROW({  // NOLINT
  ^
In file included from ../src/test/gtest_all_test.cc:36:
In file included from ../src/test/gtest-filepath_test.cc:42:
../src/include/gtest/gtest.h:1681:3: note: instantiated from:
  GTEST_TEST_THROW_(statement, expected_exception, GTEST_NONFATAL_FAILURE_)
  ^
In file included from ../src/test/gtest_all_test.cc:46:
../src/test/gtest_unittest.cc:3280:3: note: instantiated from:
  EXPECT_THROW({  // NOLINT
  ^
In file included from ../src/test/gtest_all_test.cc:36:
In file included from ../src/test/gtest-filepath_test.cc:42:
../src/include/gtest/gtest.h:1681:52: note: instantiated from:
  GTEST_TEST_THROW_(statement, expected_exception, GTEST_NONFATAL_FAILURE_)
                                                   ^
In file included from ../src/test/gtest_all_test.cc:46:
../src/test/gtest_unittest.cc:3280:3: note: instantiated from:
  EXPECT_THROW({  // NOLINT
  ^
In file included from ../src/test/gtest_all_test.cc:36:
In file included from ../src/test/gtest-filepath_test.cc:42:
../src/include/gtest/gtest.h:1681:3: note: instantiated from:
  GTEST_TEST_THROW_(statement, expected_exception, GTEST_NONFATAL_FAILURE_)
  ^
In file included from ../src/test/gtest_all_test.cc:36:
In file included from ../src/test/gtest-filepath_test.cc:42:
In file included from ../src/include/gtest/gtest.h:57:
../src/include/gtest/internal/gtest-internal.h:832:12: note: instantiated from:
      fail(gtest_msg)
           ^

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list