[LLVMdev] Re: [llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC32AsmPrinter.cpp

Vladimir Merzliakov wanderer at rsu.ru
Sat Sep 4 05:02:12 PDT 2004


Commit 
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040830/017889.html
break build llvm at FreeBSD:

Compiling PPC32AsmPrinter.cpp
/home/wanderer/pkg/build/llvm/src/llvm/lib/Target/PowerPC/PPC32AsmPrinter.cpp: 
In member function `virtual 
bool<unnamed>::AIXAsmPrinter::doFinalization(llvm::Module&)':
/home/wanderer/pkg/build/llvm/src/llvm/lib/Target/PowerPC/PPC32AsmPrinter.cpp:696: 
error: `log2' was not declared in this scope
gmake[3]: *** 
[/usr/home/wanderer/pkg/build/llvm/obj/lib/Target/PowerPC/Debug/PPC32AsmPrinter.lo] 
Error 1
gmake[3]: Leaving directory 
`/usr/home/wanderer/pkg/build/llvm/obj/lib/Target/PowerPC'
gmake[2]: *** [all] Error 1
gmake[2]: Leaving directory 
`/usr/home/wanderer/pkg/build/llvm/obj/lib/Target'
gmake[1]: *** [Target/.makeall] Error 2
gmake[1]: Leaving directory `/usr/home/wanderer/pkg/build/llvm/obj/lib'
gmake: *** [all] Error 1

Adding in PPC32AsmPrinter.cpp
#include "llvm/Support/MathExtras.h"
fix problem.

Vladimir






More information about the llvm-dev mailing list