Henrik Bach
2004-Oct-18 20:16 UTC
[LLVMdev] Compiling errors from OptimizerDriver.cpp when compiling on MinGW
Hi, I didn't get a clear idea what to do whit this problem: OptimizerDriver.cpp seems to be unix platform specific. However, I'm compiling this on MinGW. Shouldn't this be moved to lib/System/<platform>? Any suggestions? -------------------------- c:/Projects/src/llvm/tools/bugpoint/OptimizerDriver.cpp:28:22: sys/wait.h: No such file or directory c:/Projects/src/llvm/tools/bugpoint/OptimizerDriver.cpp: In member function ` bool llvm::BugDriver::runPasses(const std::vector<const llvm::PassInfo*, std::allocator<const llvm::PassInfo*> >&, std::string&, bool, bool) const': c:/Projects/src/llvm/tools/bugpoint/OptimizerDriver.cpp:120: error: `fork' undeclared (first use this function) c:/Projects/src/llvm/tools/bugpoint/OptimizerDriver.cpp:120: error: (Each undeclared identifier is reported only once for each function it appears in.) c:/Projects/src/llvm/tools/bugpoint/OptimizerDriver.cpp:133: error: `wait' undeclared (first use this function) c:/Projects/src/llvm/tools/bugpoint/OptimizerDriver.cpp:138: error: `WIFEXITED' undeclared (first use this function) c:/Projects/src/llvm/tools/bugpoint/OptimizerDriver.cpp:138: error: ` WEXITSTATUS' undeclared (first use this function) c:/Projects/src/llvm/tools/bugpoint/OptimizerDriver.cpp:150: error: ` WIFSIGNALED' undeclared (first use this function) c:/Projects/src/llvm/tools/bugpoint/OptimizerDriver.cpp:151: error: `WTERMSIG' undeclared (first use this function) make[2]: *** [/C/Projects/build/MinGW/llvm/tools/bugpoint/Debug/OptimizerDriver.lo] Error 1 -------------------------- Henrik _________________________________________________________________ Undg� pop-ups med MSN Toolbar - http://toolbar.msn.dk hent den gratis!
Reid Spencer
2004-Oct-18 20:59 UTC
[LLVMdev] Compiling errors from OptimizerDriver.cpp when compiling on MinGW
Yes, it should. Another of the many unportable things that need to go into lib/System. Reid. On Mon, 2004-10-18 at 13:16, Henrik Bach wrote:> Hi, > > I didn't get a clear idea what to do whit this problem: > > OptimizerDriver.cpp seems to be unix platform specific. However, I'm > compiling this on MinGW. Shouldn't this be moved to lib/System/<platform>? > > Any suggestions? > > -------------------------- > c:/Projects/src/llvm/tools/bugpoint/OptimizerDriver.cpp:28:22: sys/wait.h: > No such file or directory > c:/Projects/src/llvm/tools/bugpoint/OptimizerDriver.cpp: In member function > ` > bool llvm::BugDriver::runPasses(const std::vector<const llvm::PassInfo*, > std::allocator<const llvm::PassInfo*> >&, std::string&, bool, bool) > const': > c:/Projects/src/llvm/tools/bugpoint/OptimizerDriver.cpp:120: error: `fork' > undeclared (first use this function) > c:/Projects/src/llvm/tools/bugpoint/OptimizerDriver.cpp:120: error: (Each > undeclared identifier is reported only once for each function it appears > in.) > c:/Projects/src/llvm/tools/bugpoint/OptimizerDriver.cpp:133: error: `wait' > undeclared (first use this function) > c:/Projects/src/llvm/tools/bugpoint/OptimizerDriver.cpp:138: error: > `WIFEXITED' > undeclared (first use this function) > c:/Projects/src/llvm/tools/bugpoint/OptimizerDriver.cpp:138: error: ` > WEXITSTATUS' undeclared (first use this function) > c:/Projects/src/llvm/tools/bugpoint/OptimizerDriver.cpp:150: error: ` > WIFSIGNALED' undeclared (first use this function) > c:/Projects/src/llvm/tools/bugpoint/OptimizerDriver.cpp:151: error: > `WTERMSIG' > undeclared (first use this function) > make[2]: *** > [/C/Projects/build/MinGW/llvm/tools/bugpoint/Debug/OptimizerDriver.lo] Error > 1 > -------------------------- > > Henrik > > _________________________________________________________________ > Undgå pop-ups med MSN Toolbar - http://toolbar.msn.dk hent den gratis! > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20041018/335d8025/attachment.sig>