Error building

Hi

There is an error building clang:

Platform: Win7
cmake generator: cmake -G "MinGW Makefiles"

\llvm\tools\clang\lib\Frontend\CompilerInstance.cpp:713:29: error:
'BACKEND_PACKAGE_STRING' was not declared in this scope
        << " based upon " << BACKEND_PACKAGE_STRING

Hi

There is an error building clang:

Platform: Win7
cmake generator: cmake -G "MinGW Makefiles"

\llvm\tools\clang\lib\Frontend\CompilerInstance.cpp:713:29: error:
'BACKEND_PACKAGE_STRING' was not declared in this scope
         << " based upon " << BACKEND_PACKAGE_STRING

Hi,

Which SVN revision are you using? Can you describe your build configuration such as the flags passed to CMake?

Thanks
Alp.

Hi

Building daily from the trunk.
Error started 14-7 days ago.
With old config.
I also generated a new config.

My build config is generated by:

cd buildmingw
cmake -G "MinGW Makefiles" ..\llvm

then i set params with cmake-gui:
CMAKE_BUILD_TYPE to Release
CMAKE_BINARY_NSIS to checked
CPACK_SOURCE_ZIP to checked

and then

make package

regards

Can you check this using current SVN trunk, making sure to clear all intermediate build files?

The macro was unset for a very brief period in SVN and I suspect you caught it at the wrong moment.

Please confirm that it's working now (and be sure to CC me in on the reply).

Alp.

Hi

From few days ago there are some new bugs starting at 4%.

make
.....
[ 4%] Building CXX object
lib/TableGen/CMakeFiles/LLVMTableGen.dir/StringMatcher.cpp.obj
[ 4%] Building CXX object
lib/TableGen/CMakeFiles/LLVMTableGen.dir/TableGenBackend.cpp.obj
[ 4%] Building CXX object
lib/TableGen/CMakeFiles/LLVMTableGen.dir/TGLexer.cpp.obj
[ 4%] Building CXX object
lib/TableGen/CMakeFiles/LLVMTableGen.dir/TGParser.cpp.obj
Linking CXX static library ..\libLLVMTableGen.a
BFD: BFD 2.17.50 20060824 internal error, aborting at
../../src/bfd/coffcode.h line 841 in handle_COMDAT

BFD: Please report this bug.

I can continue with another make

make
[ 5%] Building CXX object
utils/TableGen/CMakeFiles/llvm-tblgen.dir/X86ModRMFilters.cpp.obj
[ 5%] Building CXX object
utils/TableGen/CMakeFiles/llvm-tblgen.dir/X86RecognizableInstr.cpp.obj
[ 5%] Building CXX object
utils/TableGen/CMakeFiles/llvm-tblgen.dir/CTagsEmitter.cpp.obj
Linking CXX executable ..\..\bin\llvm-tblgen.exe
CMakeFiles\llvm-tblgen.dir/objects.a(AsmMatcherEmitter.cpp.obj):AsmMatcherEmitter.cpp:(.text+0x23aa):
undefined reference to `llvm::Record::getName() const'
CMakeFiles\llvm-tblgen.dir/objects.a(AsmMatcherEmitter.cpp.obj):AsmMatcherEmitter.cpp:(.text+0x2929):
undefined reference to `llvm::Record::getName() const'
CMakeFiles\llvm-tblgen.dir/objects.a(AsmMatcherEmitter.cpp.obj):AsmMatcherEmitter.cpp:(.text+0x3487):
undefined reference to
`llvm::Record::getValueAsListOfDefs(llvm::StringRef) const'
CMakeFiles\llvm-tblgen.dir/objects.a(AsmMatcherEmitter.cpp.obj):AsmMatcherEmitter.cpp:(.text+0x3639):
undefined reference to `llvm::Record::getValueAsBit(llvm::StringRef)
const'
CMakeFiles\llvm-tblgen.dir/objects.a(AsmMatcherEmitter.cpp.obj):AsmMatcherEmitter.cpp:(.text+0x38e6):
undefined reference to `llvm::StringInit::get(llvm::StringRef)'
CMakeFiles\llvm-tblgen.dir/objects.a(AsmMatcherEmitter.cpp.obj):AsmMatcherEmitter.cpp:(.text+0x392b):
undefined reference to `llvm::StringInit::get(llvm::StringRef)'
CMakeFiles\llvm-tblgen.dir/objects.a(AsmMatcherEmitter.cpp.obj):AsmMatcherEmitter.cpp:(.text+0x3ccb):
undefined reference to `llvm::PrintFatalError(llvm::ArrayRef<llvm::SMLoc>,
llvm::Twine const&)'
CMakeFiles\llvm-tblgen.dir/objects.a(AsmMatcherEmitter.cpp.obj):AsmMatcherEmitter.cpp:(.text+0x3cfb):
undefined reference to `llvm::PrintFatalError(llvm::ArrayRef<llvm::SMLoc>,
llvm::Twine const&)'
.....

regards

I ran into this too. In my case, the problem was that I was using an autoconf-based build long ago that I had converted to a cmake-based one, and the autoconf-generated llvm/tools/clang/include/clang/Config/config.h was still around. After deleting that file, the cmake-generated config.h in my build directory was getting picked up correctly and the error went away.