[LLVMbugs] Can't build LLVM after last changes in SystemUtils.cpp

Vladimir Merzliakov wanderer at rsu.ru
Sat Jul 24 14:16:40 PDT 2004


As temporary fix use:
1) add #include <signal.h>
In Linux and FreeBSD kill declaration in this file

2) replace SA_NOMASK by SA_NODEFER
FreeBSD dosn't have SA_NOMASK define but have (and Linux also) SA_NODEFER

I don't undestand configure magic so can't prepare patch, sorry :(

> I can't build LLVM at FreeBSD 5.1 after last chages in SystemUtils.cpp
>
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040719/016417.html
>
> Error log:
> ----8x------------------------------
> Compiling SystemUtils.cpp
> /home/wanderer/pkg/build/llvm/src/llvm/lib/Support/SystemUtils.cpp: In
> function `int llvm::RunProgramWithTimeout(const std::string&, const
char**,
> const std::string&, const std::string&, const std::string&, unsigned
int)':
> /home/wanderer/pkg/build/llvm/src/llvm/lib/Support/SystemUtils.cpp:177:
> error: `SA_NOMASK' was not declared in this scope
> /home/wanderer/pkg/build/llvm/src/llvm/lib/Support/SystemUtils.cpp:178:
> error: no matching function for call to `sigaction::sigaction(int,
> sigaction*, sigaction*)'
> /usr/include/sys/signal.h:215: note: candidates are:
sigaction::sigaction()
> /usr/include/sys/signal.h:215: note:
> sigaction::sigaction(const sigaction&)
> /home/wanderer/pkg/build/llvm/src/llvm/lib/Support/SystemUtils.cpp:189:
> error: `kill' was not declared in this scope
> /home/wanderer/pkg/build/llvm/src/llvm/lib/Support/SystemUtils.cpp:195:
> error: no matching function for call to `sigaction::sigaction(int,
> sigaction*, int)'
> /usr/include/sys/signal.h:215: note: candidates are:
sigaction::sigaction()
> /usr/include/sys/signal.h:215: note:
> sigaction::sigaction(const sigaction&)
> /home/wanderer/pkg/build/llvm/src/llvm/lib/Support/SystemUtils.cpp:204:
> error: no matching function for call to `sigaction::sigaction(int,
> sigaction*, int)'
> /usr/include/sys/signal.h:215: note: candidates are:
sigaction::sigaction()
> /usr/include/sys/signal.h:215: note:
> sigaction::sigaction(const sigaction&)
> gmake[1]: ***
> [/usr/home/wanderer/pkg/build/llvm/obj/lib/Support/Debug/SystemUtils.lo]
> Error 1
> gmake[1]: Leaving directory
> `/usr/home/wanderer/pkg/build/llvm/obj/lib/Support'
> ----x8------------------------------
>
> Vladimir
>
>
> _______________________________________________
> LLVMbugs mailing list
> LLVMbugs at cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmbugs
>





More information about the llvm-bugs mailing list