[llvm-commits] [llvm] r81249 - in /llvm/trunk: include/llvm/System/Program.h lib/System/Unix/Program.inc lib/System/Win32/Program.inc

Xerxes RĂ„nby xerxes at zafena.se
Tue Sep 8 13:12:46 PDT 2009


Hi Mikhail!
Your recent change sets of r81246 to r81249 seems to fail on 64 bit systems.

make[1]: Entering directory `/home/buildbot/buildslave/llvm-x86_64/build/lib/System'
llvm[1]: Compiling Alarm.cpp for Debug build 
llvm[1]: Compiling Atomic.cpp for Debug build 
llvm[1]: Compiling Disassembler.cpp for Debug build 
llvm[1]: Compiling DynamicLibrary.cpp for Debug build 
llvm[1]: Compiling Errno.cpp for Debug build 
llvm[1]: Compiling Host.cpp for Debug build 
llvm[1]: Compiling IncludeFile.cpp for Debug build 
llvm[1]: Compiling Memory.cpp for Debug build 
llvm[1]: Compiling Path.cpp for Debug build 
llvm[1]: Compiling Mutex.cpp for Debug build 
llvm[1]: Compiling Process.cpp for Debug build 
llvm[1]: Compiling Program.cpp for Debug build 
llvm[1]: Compiling RWMutex.cpp for Debug build 
llvm[1]: Compiling Signals.cpp for Debug build 
llvm[1]: Compiling ThreadLocal.cpp for Debug build 
llvm[1]: Compiling Threading.cpp for Debug build 
llvm[1]: Compiling TimeValue.cpp for Debug build 
In file included from Program.cpp:56:
Unix/Program.inc: In member function 'unsigned int llvm::sys::Program::GetPid() const':
Unix/Program.inc:42: error: cast from 'void*' to 'unsigned int' loses precision
Unix/Program.inc: In member function 'int llvm::sys::Program::Wait(unsigned int, std::string*)':
Unix/Program.inc:244: error: cast from 'void*' to 'pid_t' loses precision
Unix/Program.inc: In member function 'bool llvm::sys::Program::Kill(std::string*)':
Unix/Program.inc:297: error: cast from 'void*' to 'pid_t' loses precision
make[1]: *** [/home/buildbot/buildslave/llvm-x86_64/build/lib/System/Debug/Program.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/buildbot/buildslave/llvm-x86_64/build/lib/System'
make: *** [all] Error 1


check the x86_64 buildbots:
http://google1.osuosl.org:8011/builders/llvm-x86_64-linux/builds/7479
http://google1.osuosl.org:8011/builders/clang-x86_64-linux/builds/4807

Cheers and have a great day!
Xerxes

Den 2009-09-08 21:51, Mikhail Glushenkov skrev:
> Author: foldr
> Date: Tue Sep  8 14:51:39 2009
> New Revision: 81249
>
> URL: http://llvm.org/viewvc/llvm-project?rev=81249&view=rev
> Log:
> Const-correctness.
>
> Modified:
>     llvm/trunk/include/llvm/System/Program.h
>     llvm/trunk/lib/System/Unix/Program.inc
>     llvm/trunk/lib/System/Win32/Program.inc
>
> Modified: llvm/trunk/include/llvm/System/Program.h
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/System/Program.h?rev=81249&r1=81248&r2=81249&view=diff
>
> ==============================================================================
> --- llvm/trunk/include/llvm/System/Program.h (original)
> +++ llvm/trunk/include/llvm/System/Program.h Tue Sep  8 14:51:39 2009
> @@ -40,7 +40,7 @@
>      ~Program();
>  
>      /// Return process ID of this program.
> -    unsigned GetPid();
> +    unsigned GetPid() const;
>  
>      /// This function executes the program using the \p arguments provided.  The
>      /// invoked program will inherit the stdin, stdout, and stderr file
>
> Modified: llvm/trunk/lib/System/Unix/Program.inc
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Unix/Program.inc?rev=81249&r1=81248&r2=81249&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/System/Unix/Program.inc (original)
> +++ llvm/trunk/lib/System/Unix/Program.inc Tue Sep  8 14:51:39 2009
> @@ -38,7 +38,7 @@
>  
>  Program::~Program() {}
>  
> -unsigned Program::GetPid() {
> +unsigned Program::GetPid() const {
>    return reinterpret_cast<unsigned>(Data_);
>  }
>  
>
> Modified: llvm/trunk/lib/System/Win32/Program.inc
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/System/Win32/Program.inc?rev=81249&r1=81248&r2=81249&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/System/Win32/Program.inc (original)
> +++ llvm/trunk/lib/System/Win32/Program.inc Tue Sep  8 14:51:39 2009
> @@ -35,7 +35,7 @@
>    }
>  }
>  
> -unsigned Program::GetPid() {
> +unsigned Program::GetPid() const {
>    HANDLE hProcess = reinterpret_cast<HANDLE>(Data_);
>    return GetProcessId(hProcess);
>  }
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>   





More information about the llvm-commits mailing list