[LLVMbugs] [Bug 3647] New: [llvm2.5prerelease2] utils/ unittests fails to build on OpenBSD 4.4 with gcc 4.2

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Feb 22 01:16:22 PST 2009


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

           Summary: [llvm2.5prerelease2] utils/unittests fails to build on
                    OpenBSD 4.4 with gcc 4.2
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Using gcc 4.2.0 20070307 (prerelease) from the OpenBSD 4.4 package, and
configuring llvm like this (egcc is the 4.2.0 version, gcc is 3.3.5):
./configure CC=egcc CXX=eg++

It fails during make in utils/unittest/:
gmake[3]: Entering directory `/home/edwin/llvm-2.5/utils/unittest/googletest'
llvm[3]: Compiling gtest.cc for Release build
In file included from
/home/edwin/llvm-2.5/utils/unittest/googletest/include/gtest/gtest.h:65,
                 from gtest.cc:34:
/home/edwin/llvm-2.5/utils/unittest/googletest/include/gtest/internal/gtest-internal.h:274:
error: 'testing::internal::FormatForComparisonFailureMessage' declared as an
'inline' variable
/home/edwin/llvm-2.5/utils/unittest/googletest/include/gtest/internal/gtest-internal.h:274:
error: 'testing::internal::String
testing::internal::FormatForComparisonFailureMessage' redeclared as different
kind of symbol
/home/edwin/llvm-2.5/utils/unittest/googletest/include/gtest/internal/gtest-internal.h:271:
error: previous declaration of 'testing::internal::String
testing::internal::FormatForComparisonFailureMessage(const char*, const
std::string&)'
/home/edwin/llvm-2.5/utils/unittest/googletest/include/gtest/internal/gtest-internal.h:274:
error: 'std::wstring' has not been declared
/home/edwin/llvm-2.5/utils/unittest/googletest/include/gtest/internal/gtest-internal.h:274:
error: 'str' was not declared in this scope
/home/edwin/llvm-2.5/utils/unittest/googletest/include/gtest/internal/gtest-internal.h:274:
error: expected primary-expression before 'const'
/home/edwin/llvm-2.5/utils/unittest/googletest/include/gtest/internal/gtest-internal.h:274:
error: expected unqualified-id before '::' token
/home/edwin/llvm-2.5/utils/unittest/googletest/include/gtest/internal/gtest-internal.h:274:
error: expected ',' or '...' before '::' token
/home/edwin/llvm-2.5/utils/unittest/googletest/include/gtest/internal/gtest-internal.h:
In function 'testing::internal::String
testing::internal::FormatForComparisonFailureMessage()':
/home/edwin/llvm-2.5/utils/unittest/googletest/include/gtest/internal/gtest-internal.h:274:
error: 'str' was not declared in this scope
In file included from
/home/edwin/llvm-2.5/utils/unittest/googletest/include/gtest/gtest.h:68,
                 from gtest.cc:34:
/home/edwin/llvm-2.5/utils/unittest/googletest/include/gtest/gtest-message.h:
At global scope:
/home/edwin/llvm-2.5/utils/unittest/googletest/include/gtest/gtest-message.h:172:
error: expected unqualified-id before '&' token
/home/edwin/llvm-2.5/utils/unittest/googletest/include/gtest/gtest-message.h:172:
error: expected ',' or '...' before '&' token
/home/edwin/llvm-2.5/utils/unittest/googletest/include/gtest/gtest-message.h:172:
error: 'testing::Message& testing::Message::operator<<()' must take exactly one
argument
In file included from gtest.cc:34:
/home/edwin/llvm-2.5/utils/unittest/googletest/include/gtest/gtest.h:575:
error: expected unqualified-id before '&' token
/home/edwin/llvm-2.5/utils/unittest/googletest/include/gtest/gtest.h:575:
error: expected ',' or '...' before '&' token
/home/edwin/llvm-2.5/utils/unittest/googletest/include/gtest/gtest.h: In
function 'testing::internal::String
testing::internal::FormatForFailureMessage()':
/home/edwin/llvm-2.5/utils/unittest/googletest/include/gtest/gtest.h:576:
error: 'wstr' was not declared in this scope
/home/edwin/llvm-2.5/utils/unittest/googletest/include/gtest/gtest.h: At global
scope:
/home/edwin/llvm-2.5/utils/unittest/googletest/include/gtest/gtest.h:824:
error: expected unqualified-id before '&' token
/home/edwin/llvm-2.5/utils/unittest/googletest/include/gtest/gtest.h:824:
error: expected ',' or '...' before '&' token
/home/edwin/llvm-2.5/utils/unittest/googletest/include/gtest/gtest.h:827:
error: expected unqualified-id before '&' token
/home/edwin/llvm-2.5/utils/unittest/googletest/include/gtest/gtest.h:827:
error: expected ',' or '...' before '&' token
gtest.cc:872: error: expected unqualified-id before '&' token
gtest.cc:872: error: expected ',' or '...' before '&' token
gtest.cc:872: error: 'testing::Message& testing::Message::operator<<()' must
take exactly one argument
gtest.cc:1280: error: expected unqualified-id before '&' token
gtest.cc:1280: error: expected ',' or '...' before '&' token
gtest.cc: In function 'testing::AssertionResult testing::IsSubstring(const
char*, const char*)':
gtest.cc:1281: error: 'needle' was not declared in this scope
gtest.cc:1281: error: 'haystack' was not declared in this scope
gtest.cc: At global scope:
gtest.cc:1286: error: expected unqualified-id before '&' token
gtest.cc:1286: error: expected ',' or '...' before '&' token
gtest.cc: In function 'testing::AssertionResult testing::IsNotSubstring(const
char*, const char*)':
gtest.cc:1287: error: 'needle' was not declared in this scope
gtest.cc:1287: error: 'haystack' was not declared in this scope
gtest.cc: At global scope:
gtest.cc:847: warning: 'void testing::internal::StreamWideCharsToMessage(const
wchar_t*, size_t, testing::Message*)' defined but not used
gmake[3]: *** [/home/edwin/llvm-2.5/utils/unittest/googletest/Release/gtest.o]
Error 1
gmake[3]: Leaving directory `/home/edwin/llvm-2.5/utils/unittest/googletest'
gmake[2]: *** [googletest/.makeall] Error 2

I have removed the unittest/unittests from the Makefile, and see if I can build
without it on OpenBSD.


-- 
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