Problems with both the 1.9 Release and the CVS on Cygwin

Hi,

I am back into working on LLVM now and am having problems with Cygwin builds.

Problems with both the 1.9 Release and the CVS on Cygwin…

LLVM CVS Release build :-

/usr/src/llvm/configure --prefix=/usr/llvm
make tools-only ENABLE_OPTIMIZED=1

make[3]: Entering directory /usr/src/lib/Bytecode/Writer' llvm[3]: Compiling SlotCalculator.cpp for Release build llvm[3]: Compiling Writer.cpp for Release build /usr/src/llvm/lib/Bytecode/Writer/Writer.cpp: In member function void llvm::BytecodeWriter::outputConstant(const llvm::Constant*)‘:
/usr/src/llvm/lib/Bytecode/Writer/Writer.cpp:329: error: call of overloaded output_vbr(uint32_t)' is ambiguous /usr/src/llvm/lib/Bytecode/Writer/Writer.cpp:82: note: candidates are: void llvm::BytecodeWriter::output_vbr(uint64_t) /usr/src/llvm/lib/Bytecode/Writer/Writer.cpp:96: note: void llvm::BytecodeWriter::output_vbr(unsigned int) /usr/src/llvm/lib/Bytecode/Writer/Writer.cpp:119: note: void llvm::BytecodeWriter::output_vbr(int64_t) /usr/src/llvm/lib/Bytecode/Writer/Writer.cpp:127: note: void llvm::BytecodeWriter::output_vbr(int) make[3]: *** [/usr/src/lib/Bytecode/Writer/Release/Writer.o] Error 1 make[3]: Leaving directory /usr/src/lib/Bytecode/Writer’
make[2]: *** [Writer/.makeall] Error 2
make[2]: Leaving directory /usr/src/lib/Bytecode' make[1]: *** [Bytecode/.makeall] Error 2 make[1]: Leaving directory /usr/src/lib’
make: *** [all] Error 1

LLVM CVS Debug build :-

/usr/src/llvm/configure --prefix=/usr/llvm
make tools-only

make[3]: Entering directory /usr/src/build/lib/Bytecode/Writer' llvm[3]: Compiling SlotCalculator.cpp for Debug build llvm[3]: Compiling Writer.cpp for Debug build /usr/src/llvm/lib/Bytecode/Writer/Writer.cpp:73: error: prototype for void llvm::BytecodeWriter::output(int32_t)’ does not match any in class llvm::BytecodeWriter' /usr/src/llvm/lib/Bytecode/Writer/WriterInternals.h:93: error: candidates are: void llvm::BytecodeWriter::output(const std::string&) /usr/src/llvm/lib/Bytecode/Writer/WriterInternals.h:79: error: void llvm::BytecodeWriter::output(int) /usr/src/llvm/lib/Bytecode/Writer/Writer.cpp:59: error: void llvm::BytecodeWriter::output(unsigned int, int) /usr/src/llvm/lib/Bytecode/Writer/Writer.cpp: In member function void llvm::BytecodeWriter::output(int32_t)‘:
/usr/src/llvm/lib/Bytecode/Writer/Writer.cpp:74: error: call of overloaded output(uint32_t)' is ambiguous /usr/src/llvm/lib/Bytecode/Writer/Writer.cpp:59: note: candidates are: void llvm::BytecodeWriter::output(unsigned int, int) /usr/src/llvm/lib/Bytecode/Writer/WriterInternals.h:79: note: void llvm::BytecodeWriter::output(int) /usr/src/llvm/lib/Bytecode/Writer/Writer.cpp:73: note: void llvm::BytecodeWriter::output(int32_t) /usr/src/llvm/lib/Bytecode/Writer/Writer.cpp: At global scope: /usr/src/llvm/lib/Bytecode/Writer/Writer.cpp:96: error: prototype for void llvm
::BytecodeWriter::output_vbr(uint32_t)’ does not match any in class llvm::BytecodeWriter' /usr/src/llvm/lib/Bytecode/Writer/WriterInternals.h:91: error: candidates are: void llvm::BytecodeWriter::output_vbr(int) /usr/src/llvm/lib/Bytecode/Writer/WriterInternals.h:88: error: void llvm::BytecodeWriter::output_vbr(int64_t) /usr/src/llvm/lib/Bytecode/Writer/WriterInternals.h:85: error: void llvm::BytecodeWriter::output_vbr(unsigned int) /usr/src/llvm/lib/Bytecode/Writer/Writer.cpp:82: error: void llvm::BytecodeWriter::output_vbr(uint64_t) /usr/src/llvm/lib/Bytecode/Writer/WriterInternals.h:85: warning: inline function void llvm::BytecodeWriter::output_vbr(unsigned int)’ used but never defined
make[3]: *** [/usr/src/build/lib/Bytecode/Writer/Debug/Writer.o] Error 1
make[3]: Leaving directory /usr/src/build/lib/Bytecode/Writer' make[2]: *** [Writer/.makeall] Error 2 make[2]: Leaving directory /usr/src/build/lib/Bytecode’
make[1]: *** [Bytecode/.makeall] Error 2
make[1]: Leaving directory `/usr/src/build/lib’
make: *** [all] Error 1

1.9 Release

/usr/src/llvm-1.9/configure --prefix=/usr/llvm
make tools-only

Hi,

Okay GCC 4.1.1 works on Cygwin; but not MinGW :frowning:

Download and compile it under Cygwin, stick it on your path, and LD library path.

LD_LIBRARY_PATH=/usr/gcc-4.1.1/lib:$LD_LIBRARY_PATH

Note that I have not tried building LLVM 1.9 or CVS or LLVM-GCC4.0.1 frontend yet though, as I have a slow machine.

I will report back when I have more progress.

Aaron

Hello, Aaron.

Okay GCC 4.1.1 works on Cygwin; but not MinGW :frowning:

TOT is ok with Mingw (gcc 3.4.6). llvm-gcc also builds ok.

Still having problems with Writer.cpp and WriterInternals.h :-

/usr/src/llvm/lib/Bytecode/Writer/Writer.cpp:74: error: prototype for ‘void llvm::BytecodeWriter::output(int32_t)’ does not match any in class ‘llvm::BytecodeWriter’
/usr/src/llvm/lib/Bytecode/Writer/WriterInternals.h:89: error: candidates are: void llvm::BytecodeWriter::output(const std::string&)
/usr/src/llvm/lib/Bytecode/Writer/WriterInternals.h:74: error: void llvm::BytecodeWriter::output(int)
/usr/src/llvm/lib/Bytecode/Writer/Writer.cpp:60: error: void llvm::BytecodeWriter::output(unsigned int, int)
/usr/src/llvm/lib/Bytecode/Writer/Writer.cpp: In member function ‘void llvm::BytecodeWriter::output(int32_t)’:
/usr/src/llvm/lib/Bytecode/Writer/Writer.cpp:75: error: call of overloaded ‘output(uint32_t)’ is ambiguous
/usr/src/llvm/lib/Bytecode/Writer/Writer.cpp:60: note: candidates are: void llvm::BytecodeWriter::output(unsigned int, int)
/usr/src/llvm/lib/Bytecode/Writer/WriterInternals.h:74: note: void llvm::BytecodeWriter::output(int)
/usr/src/llvm/lib/Bytecode/Writer/Writer.cpp:74: note: void llvm::BytecodeWriter::output(int32_t)
/usr/src/llvm/lib/Bytecode/Writer/Writer.cpp: At global scope:
/usr/src/llvm/lib/Bytecode/Writer/Writer.cpp:97: error: prototype for ‘void llvm
::BytecodeWriter::output_vbr(uint32_t)’ does not match any in class ‘llvm::BytecodeWriter’
/usr/src/llvm/lib/Bytecode/Writer/WriterInternals.h:86: error: candidates are: void llvm::BytecodeWriter::output_vbr(int)
/usr/src/llvm/lib/Bytecode/Writer/WriterInternals.h:83: error: void llvm::BytecodeWriter::output_vbr(int64_t)
/usr/src/llvm/lib/Bytecode/Writer/WriterInternals.h:80: error: void llvm::BytecodeWriter::output_vbr(unsigned int)
/usr/src/llvm/lib/Bytecode/Writer/Writer.cpp:83: error: void llvm::BytecodeWriter::output_vbr(uint64_t)
/usr/src/llvm/lib/Bytecode/Writer/WriterInternals.h:80: warning: inline function ‘void llvm::BytecodeWriter::output_vbr(unsigned int)’ used but never defined
make[3]: *** [/usr/build/llvm/lib/Bytecode/Writer/Debug/Writer.o] Error 1
make[3]: Leaving directory /usr/build/llvm/lib/Bytecode/Writer' make[2]: *** [Writer/.makeall] Error 2 make[2]: Leaving directory /usr/build/llvm/lib/Bytecode’
make[1]: *** [Bytecode/.makeall] Error 2
make[1]: Leaving directory `/usr/build/llvm/lib’
make: *** [all] Error 1

Aaron