Quantcast

Error in Building UHD on Windows

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Error in Building UHD on Windows

Zooz
Dear All,

I am trying to install UHD on windows from source code. I have installed the prerequisites:

cmake-2.8.10.2-win32-x86
boost_1_51_setup32
python-2.6.6
Cheetah-2.2.2.win32-py2.6
msysGit-fullinstall-1.8.1.2-preview20130201
Visual studio 2010 express

I follwowed the steps detailed here: http://files.ettus.com/uhd_docs/manual/html/build.html#build-instructions-windows. After applying the fifth step in CMake I get the following error message.

Do you have any idea why this is happening?

Thank you,

Zo

The C compiler identification is MSVC 16.0.30319.1

The CXX compiler identification is MSVC 16.0.30319.1

Check for working C compiler using: Visual Studio 10

Check for working C compiler using: Visual Studio 10 -- broken

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):

The C compiler "C:/Program Files (x86)/Microsoft Visual Studio

10.0/VC/bin/cl.exe" is not able to compile a simple test program.

It fails with the following output:

Change Dir: C:/UHD/host/build/CMakeFiles/CMakeTmp

Run Build Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe

cmTryCompileExec215809703.vcxproj /p:Configuration=Debug

/p:VisualStudioVersion=10.0

Microsoft (R) Build Engine version 4.0.30319.17929

[Microsoft .NET Framework, version 4.0.30319.18034]

Copyright (C) Microsoft Corporation. All rights reserved.

Build started 25/04/2013 21:57:38.

Project

"C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj"

on node 1 (default targets).

PrepareForBuild:

Creating directory "cmTryCompileExec215809703.dir\Debug\".

Creating directory "C:\UHD\host\build\CMakeFiles\CMakeTmp\Debug\".

InitializeBuildStatus:

Creating "cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec215809703.dir\Debug\\" /Fd"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c /Zm1000

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86

Copyright (C) Microsoft Corporation. All rights reserved.

cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec215809703.dir\Debug\\" /Fd"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c /Zm1000

testCCompiler.c

ManifestResourceCompile:

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /nologo /fo"cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.embed.manifest.res" cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703_manifest.rc

Link:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:"C:\UHD\host\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec215809703.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /ManifestFile:"cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb" /SUBSYSTEM:CONSOLE /STACK:"10000000" /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.lib" /MACHINE:X86 cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.embed.manifest.res

cmTryCompileExec215809703.dir\Debug\testCCompiler.obj /machine:X86 /debug

LINK : fatal error LNK1123: failure during conversion to COFF: file invalid

or corrupt

[C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj]

Done Building Project

"C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj"

(default targets) -- FAILED.

Build FAILED.

"C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj"

(default target) (1) ->

(Link target) ->

LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt [C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj]

0 Warning(s)

1 Error(s)

Time Elapsed 00:00:00.64

CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

CMake Warning (dev) in CMakeLists.txt:

No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.8)

should be added at the top of the file. The version specified may be lower

if you wish to support older CMake versions for this project. For more

information run "cmake --help-policy CMP0000".

This warning is for project developers. Use -Wno-dev to suppress it.

Configuring incomplete, errors occurred!



_______________________________________________
Discuss-gnuradio mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error in Building UHD on Windows

Zooz
I think I am missing something in the build variables. What are the variables that need to be set?

Cheers,
Zo


From: [hidden email]
To: [hidden email]
Subject: Error in Building UHD on Windows
Date: Thu, 25 Apr 2013 20:27:38 +0000

Dear All,

I am trying to install UHD on windows from source code. I have installed the prerequisites:

cmake-2.8.10.2-win32-x86
boost_1_51_setup32
python-2.6.6
Cheetah-2.2.2.win32-py2.6
msysGit-fullinstall-1.8.1.2-preview20130201
Visual studio 2010 express

I follwowed the steps detailed here: http://files.ettus.com/uhd_docs/manual/html/build.html#build-instructions-windows. After applying the fifth step in CMake I get the following error message.

Do you have any idea why this is happening?

Thank you,

Zo

The C compiler identification is MSVC 16.0.30319.1

The CXX compiler identification is MSVC 16.0.30319.1

Check for working C compiler using: Visual Studio 10

Check for working C compiler using: Visual Studio 10 -- broken

CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):

The C compiler "C:/Program Files (x86)/Microsoft Visual Studio

10.0/VC/bin/cl.exe" is not able to compile a simple test program.

It fails with the following output:

Change Dir: C:/UHD/host/build/CMakeFiles/CMakeTmp

Run Build Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe

cmTryCompileExec215809703.vcxproj /p:Configuration=Debug

/p:VisualStudioVersion=10.0

Microsoft (R) Build Engine version 4.0.30319.17929

[Microsoft .NET Framework, version 4.0.30319.18034]

Copyright (C) Microsoft Corporation. All rights reserved.

Build started 25/04/2013 21:57:38.

Project

"C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj"

on node 1 (default targets).

PrepareForBuild:

Creating directory "cmTryCompileExec215809703.dir\Debug\".

Creating directory "C:\UHD\host\build\CMakeFiles\CMakeTmp\Debug\".

InitializeBuildStatus:

Creating "cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.unsuccessfulbuild" because "AlwaysCreate" was specified.

ClCompile:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec215809703.dir\Debug\\" /Fd"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c /Zm1000

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86

Copyright (C) Microsoft Corporation. All rights reserved.

cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec215809703.dir\Debug\\" /Fd"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb" /Gd /TC /analyze- /errorReport:queue testCCompiler.c /Zm1000

testCCompiler.c

ManifestResourceCompile:

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe /nologo /fo"cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.embed.manifest.res" cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703_manifest.rc

Link:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe /ERRORREPORT:QUEUE /OUT:"C:\UHD\host\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec215809703.exe" /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /ManifestFile:"cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb" /SUBSYSTEM:CONSOLE /STACK:"10000000" /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.lib" /MACHINE:X86 cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.embed.manifest.res

cmTryCompileExec215809703.dir\Debug\testCCompiler.obj /machine:X86 /debug

LINK : fatal error LNK1123: failure during conversion to COFF: file invalid

or corrupt

[C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj]

Done Building Project

"C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj"

(default targets) -- FAILED.

Build FAILED.

"C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj"

(default target) (1) ->

(Link target) ->

LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt [C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj]

0 Warning(s)

1 Error(s)

Time Elapsed 00:00:00.64

CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

CMake Warning (dev) in CMakeLists.txt:

No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.8)

should be added at the top of the file. The version specified may be lower

if you wish to support older CMake versions for this project. For more

information run "cmake --help-policy CMP0000".

This warning is for project developers. Use -Wno-dev to suppress it.

Configuring incomplete, errors occurred!



_______________________________________________
Discuss-gnuradio mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error in Building UHD on Windows

Josh Blum-3
In reply to this post by Zooz


On 04/25/2013 03:27 PM, Zooz Engineer wrote:

>
>
>
> Dear All,
>
> I am trying to install UHD on windows from source code. I have
> installed the prerequisites:
>
> cmake-2.8.10.2-win32-x86 boost_1_51_setup32 python-2.6.6
> Cheetah-2.2.2.win32-py2.6
> msysGit-fullinstall-1.8.1.2-preview20130201 Visual studio 2010
> express
>
> I follwowed the steps detailed here:
> http://files.ettus.com/uhd_docs/manual/html/build.html#build-instructions-windows.
> After applying the fifth step in CMake I get the following error
> message.
>
> Do you have any idea why this is happening?
>

If you google for "failure during conversion to COFF: file invalid",
have tried any of the things suggested in the stack overflow forums?

Many of the posts seem to indicate that its a visual studio 2012
stomping on files in 2010 or some .net installer doing something similar.

-josh

> Thank you,
>
> Zo
>
> The C compiler identification is MSVC 16.0.30319.1 The CXX compiler
> identification is MSVC 16.0.30319.1 Check for working C compiler
> using: Visual Studio 10 Check for working C compiler using: Visual
> Studio 10 -- broken CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
> The C compiler "C:/Program Files (x86)/Microsoft Visual Studio
> 10.0/VC/bin/cl.exe" is not able to compile a simple test program.
>
> It fails with the following output:
>
> Change Dir: C:/UHD/host/build/CMakeFiles/CMakeTmp
>
>
>
> Run Build
> Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
> cmTryCompileExec215809703.vcxproj /p:Configuration=Debug
> /p:VisualStudioVersion=10.0
>
> Microsoft (R) Build Engine version 4.0.30319.17929
>
> [Microsoft .NET Framework, version 4.0.30319.18034]
>
> Copyright (C) Microsoft Corporation.  All rights reserved.
>
>
>
> Build started 25/04/2013 21:57:38.
>
> Project
> "C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj"
>
>
on node 1 (default targets).

>
> PrepareForBuild:
>
> Creating directory "cmTryCompileExec215809703.dir\Debug\". Creating
> directory "C:\UHD\host\build\CMakeFiles\CMakeTmp\Debug\".
>
> InitializeBuildStatus:
>
> Creating
> "cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.unsuccessfulbuild"
> because "AlwaysCreate" was specified.
>
> ClCompile:
>
> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c
> /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D
> "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise
> /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec215809703.dir\Debug\\"
> /Fd"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb"
> /Gd /TC /analyze- /errorReport:queue testCCompiler.c  /Zm1000
> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01
> for 80x86 Copyright (C) Microsoft Corporation.  All rights reserved.
>
> cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D
> "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise
> /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec215809703.dir\Debug\\"
> /Fd"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb"
> /Gd /TC /analyze- /errorReport:queue testCCompiler.c  /Zm1000
>
> testCCompiler.c
>
> ManifestResourceCompile:
>
> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe
> /nologo
> /fo"cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.embed.manifest.res"
> cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703_manifest.rc
>
>
> Link:
>
> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe
> /ERRORREPORT:QUEUE
> /OUT:"C:\UHD\host\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec215809703.exe"
> /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib
> shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib
> /MANIFEST
> /ManifestFile:"cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.intermediate.manifest"
> /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG
> /PDB:"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb"
> /SUBSYSTEM:CONSOLE /STACK:"10000000" /TLBID:1 /DYNAMICBASE /NXCOMPAT
> /IMPLIB:"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.lib"
> /MACHINE:X86
> cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.embed.manifest.res
>
>
cmTryCompileExec215809703.dir\Debug\testCCompiler.obj  /machine:X86 /debug
>
> LINK : fatal error LNK1123: failure during conversion to COFF: file
> invalid or corrupt
> [C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj]
>
>  Done Building Project
> "C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj"
>
>
(default targets) -- FAILED.

>
>
>
> Build FAILED.
>
>
>
> "C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj"
>
>
(default target) (1) ->

>
> (Link target) ->
>
> LINK : fatal error LNK1123: failure during conversion to COFF: file
> invalid or corrupt
> [C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj]
>
>
>
>
> 0 Warning(s) 1 Error(s)
>
>
>
> Time Elapsed 00:00:00.64
>
>
>
>
>
> CMake will not be able to correctly generate this project. Call Stack
> (most recent call first):
>
>
>
> CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required
> command is present.  A line of code such as
>
> cmake_minimum_required(VERSION 2.8)
>
> should be added at the top of the file.  The version specified may be
> lower if you wish to support older CMake versions for this project.
> For more information run "cmake --help-policy CMP0000". This warning
> is for project developers.  Use -Wno-dev to suppress it.
>
> Configuring incomplete, errors occurred!
>
>
>
>
>
> _______________________________________________ Discuss-gnuradio
> mailing list [hidden email]
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>

_______________________________________________
Discuss-gnuradio mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Error in Building UHD on Windows

Zooz
This post has NOT been accepted by the mailing list yet.
Dear Josh,

Thanks for the hint. The issue occurred after Visual Studio 2012 installation and is resolved by replacing the cvtres.exe from VS2010 with the one from VS2012.

Best,

Zo


Date: Thu, 25 Apr 2013 14:54:37 -0700
From: [hidden email]
To: [hidden email]
Subject: Re: Error in Building UHD on Windows



On 04/25/2013 03:27 PM, Zooz Engineer wrote:

>
>
>
> Dear All,
>
> I am trying to install UHD on windows from source code. I have
> installed the prerequisites:
>
> cmake-2.8.10.2-win32-x86 boost_1_51_setup32 python-2.6.6
> Cheetah-2.2.2.win32-py2.6
> msysGit-fullinstall-1.8.1.2-preview20130201 Visual studio 2010
> express
>
> I follwowed the steps detailed here:
> http://files.ettus.com/uhd_docs/manual/html/build.html#build-instructions-windows.
> After applying the fifth step in CMake I get the following error
> message.
>
> Do you have any idea why this is happening?
>
If you google for "failure during conversion to COFF: file invalid",
have tried any of the things suggested in the stack overflow forums?

Many of the posts seem to indicate that its a visual studio 2012
stomping on files in 2010 or some .net installer doing something similar.

-josh

> Thank you,
>
> Zo
>
> The C compiler identification is MSVC 16.0.30319.1 The CXX compiler
> identification is MSVC 16.0.30319.1 Check for working C compiler
> using: Visual Studio 10 Check for working C compiler using: Visual
> Studio 10 -- broken CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
> The C compiler "C:/Program Files (x86)/Microsoft Visual Studio
> 10.0/VC/bin/cl.exe" is not able to compile a simple test program.
>
> It fails with the following output:
>
> Change Dir: C:/UHD/host/build/CMakeFiles/CMakeTmp
>
>
>
> Run Build
> Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
> cmTryCompileExec215809703.vcxproj /p:Configuration=Debug
> /p:VisualStudioVersion=10.0
>
> Microsoft (R) Build Engine version 4.0.30319.17929
>
> [Microsoft .NET Framework, version 4.0.30319.18034]
>
> Copyright (C) Microsoft Corporation.  All rights reserved.
>
>
>
> Build started 25/04/2013 21:57:38.
>
> Project
> "C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj"
>
>
on node 1 (default targets).

>
> PrepareForBuild:
>
> Creating directory "cmTryCompileExec215809703.dir\Debug\". Creating
> directory "C:\UHD\host\build\CMakeFiles\CMakeTmp\Debug\".
>
> InitializeBuildStatus:
>
> Creating
> "cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.unsuccessfulbuild"
> because "AlwaysCreate" was specified.
>
> ClCompile:
>
> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c
> /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D
> "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise
> /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec215809703.dir\Debug\\"
> /Fd"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb"
> /Gd /TC /analyze- /errorReport:queue testCCompiler.c  /Zm1000
> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01
> for 80x86 Copyright (C) Microsoft Corporation.  All rights reserved.
>
> cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D
> "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise
> /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec215809703.dir\Debug\\"
> /Fd"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb"
> /Gd /TC /analyze- /errorReport:queue testCCompiler.c  /Zm1000
>
> testCCompiler.c
>
> ManifestResourceCompile:
>
> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe
> /nologo
> /fo"cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.embed.manifest.res"
> cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703_manifest.rc
>
>
> Link:
>
> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe
> /ERRORREPORT:QUEUE
> /OUT:"C:\UHD\host\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec215809703.exe"
> /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib
> shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib
> /MANIFEST
> /ManifestFile:"cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.intermediate.manifest"
> /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG
> /PDB:"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb"
> /SUBSYSTEM:CONSOLE /STACK:"10000000" /TLBID:1 /DYNAMICBASE /NXCOMPAT
> /IMPLIB:"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.lib"
> /MACHINE:X86
> cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.embed.manifest.res
>
>
cmTryCompileExec215809703.dir\Debug\testCCompiler.obj  /machine:X86 /debug
>
> LINK : fatal error LNK1123: failure during conversion to COFF: file
> invalid or corrupt
> [C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj]
>
>  Done Building Project
> "C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj"
>
>
(default targets) -- FAILED.

>
>
>
> Build FAILED.
>
>
>
> "C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj"
>
>
(default target) (1) ->

>
> (Link target) ->
>
> LINK : fatal error LNK1123: failure during conversion to COFF: file
> invalid or corrupt
> [C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj]
>
>
>
>
> 0 Warning(s) 1 Error(s)
>
>
>
> Time Elapsed 00:00:00.64
>
>
>
>
>
> CMake will not be able to correctly generate this project. Call Stack
> (most recent call first):
>
>
>
> CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required
> command is present.  A line of code such as
>
> cmake_minimum_required(VERSION 2.8)
>
> should be added at the top of the file.  The version specified may be
> lower if you wish to support older CMake versions for this project.
> For more information run "cmake --help-policy CMP0000". This warning
> is for project developers.  Use -Wno-dev to suppress it.
>
> Configuring incomplete, errors occurred!
>
>
>
>
>
> _______________________________________________ Discuss-gnuradio
> mailing list [hidden email]
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
_______________________________________________
Discuss-gnuradio mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



If you reply to this email, your message will be added to the discussion below:
http://gnuradio.4.n7.nabble.com/Error-in-Building-UHD-on-Windows-tp41004p41007.html
To start a new topic under GnuRadio, email [hidden email]
To unsubscribe from GnuRadio, click here.
NAML
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error in Building UHD on Windows

Zooz
In reply to this post by Josh Blum-3
Dear Josh,

Thanks for the hint. The issue occurred after Visual Studio 2012 installation and is resolved by replacing the cvtres.exe from VS2010 with the one from VS2012.

Best,

Zo



Date: Thu, 25 Apr 2013 14:54:37 -0700
From: [hidden email]
To: [hidden email]
Subject: Re: Error in Building UHD on Windows



On 04/25/2013 03:27 PM, Zooz Engineer wrote:

>
>
>
> Dear All,
>
> I am trying to install UHD on windows from source code. I have
> installed the prerequisites:
>
> cmake-2.8.10.2-win32-x86 boost_1_51_setup32 python-2.6.6
> Cheetah-2.2.2.win32-py2.6
> msysGit-fullinstall-1.8.1.2-preview20130201 Visual studio 2010
> express
>
> I follwowed the steps detailed here:
> http://files.ettus.com/uhd_docs/manual/html/build.html#build-instructions-windows.
> After applying the fifth step in CMake I get the following error
> message.
>
> Do you have any idea why this is happening?
>
If you google for "failure during conversion to COFF: file invalid",
have tried any of the things suggested in the stack overflow forums?

Many of the posts seem to indicate that its a visual studio 2012
stomping on files in 2010 or some .net installer doing something similar.

-josh

> Thank you,
>
> Zo
>
> The C compiler identification is MSVC 16.0.30319.1 The CXX compiler
> identification is MSVC 16.0.30319.1 Check for working C compiler
> using: Visual Studio 10 Check for working C compiler using: Visual
> Studio 10 -- broken CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
> The C compiler "C:/Program Files (x86)/Microsoft Visual Studio
> 10.0/VC/bin/cl.exe" is not able to compile a simple test program.
>
> It fails with the following output:
>
> Change Dir: C:/UHD/host/build/CMakeFiles/CMakeTmp
>
>
>
> Run Build
> Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
> cmTryCompileExec215809703.vcxproj /p:Configuration=Debug
> /p:VisualStudioVersion=10.0
>
> Microsoft (R) Build Engine version 4.0.30319.17929
>
> [Microsoft .NET Framework, version 4.0.30319.18034]
>
> Copyright (C) Microsoft Corporation.  All rights reserved.
>
>
>
> Build started 25/04/2013 21:57:38.
>
> Project
> "C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj"
>
>
on node 1 (default targets).

>
> PrepareForBuild:
>
> Creating directory "cmTryCompileExec215809703.dir\Debug\". Creating
> directory "C:\UHD\host\build\CMakeFiles\CMakeTmp\Debug\".
>
> InitializeBuildStatus:
>
> Creating
> "cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.unsuccessfulbuild"
> because "AlwaysCreate" was specified.
>
> ClCompile:
>
> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c
> /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D
> "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise
> /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec215809703.dir\Debug\\"
> /Fd"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb"
> /Gd /TC /analyze- /errorReport:queue testCCompiler.c  /Zm1000
> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01
> for 80x86 Copyright (C) Microsoft Corporation.  All rights reserved.
>
> cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D
> "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise
> /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec215809703.dir\Debug\\"
> /Fd"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb"
> /Gd /TC /analyze- /errorReport:queue testCCompiler.c  /Zm1000
>
> testCCompiler.c
>
> ManifestResourceCompile:
>
> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe
> /nologo
> /fo"cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.embed.manifest.res"
> cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703_manifest.rc
>
>
> Link:
>
> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe
> /ERRORREPORT:QUEUE
> /OUT:"C:\UHD\host\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec215809703.exe"
> /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib
> shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib
> /MANIFEST
> /ManifestFile:"cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.intermediate.manifest"
> /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG
> /PDB:"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb"
> /SUBSYSTEM:CONSOLE /STACK:"10000000" /TLBID:1 /DYNAMICBASE /NXCOMPAT
> /IMPLIB:"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.lib"
> /MACHINE:X86
> cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.embed.manifest.res
>
>
cmTryCompileExec215809703.dir\Debug\testCCompiler.obj  /machine:X86 /debug
>
> LINK : fatal error LNK1123: failure during conversion to COFF: file
> invalid or corrupt
> [C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj]
>
>  Done Building Project
> "C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj"
>
>
(default targets) -- FAILED.

>
>
>
> Build FAILED.
>
>
>
> "C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj"
>
>
(default target) (1) ->

>
> (Link target) ->
>
> LINK : fatal error LNK1123: failure during conversion to COFF: file
> invalid or corrupt
> [C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj]
>
>
>
>
> 0 Warning(s) 1 Error(s)
>
>
>
> Time Elapsed 00:00:00.64
>
>
>
>
>
> CMake will not be able to correctly generate this project. Call Stack
> (most recent call first):
>
>
>
> CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required
> command is present.  A line of code such as
>
> cmake_minimum_required(VERSION 2.8)
>
> should be added at the top of the file.  The version specified may be
> lower if you wish to support older CMake versions for this project.
> For more information run "cmake --help-policy CMP0000". This warning
> is for project developers.  Use -Wno-dev to suppress it.
>
> Configuring incomplete, errors occurred!
>
>
>
>
>
> _______________________________________________ Discuss-gnuradio
> mailing list [hidden email]
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
_______________________________________________
Discuss-gnuradio mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



If you reply to this email, your message will be added to the discussion below:
http://gnuradio.4.n7.nabble.com/Error-in-Building-UHD-on-Windows-tp41004p41007.html
To start a new topic under GnuRadio, email [hidden email]
To unsubscribe from GnuRadio, click here.
NAML

_______________________________________________
Discuss-gnuradio mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error in Building UHD on Windows

Zooz
However, I have some 27 warnings in MSVC and I don't know how important they are:

C4244: '=' : conversion from 'double' to 'uint32_t', possible loss of data
C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
C4305: '=' : truncation from 'double' to 'float'

Can they be fixed or I can just ignore them?

Best,
Zo


From: [hidden email]
To: [hidden email]
Subject: RE: Error in Building UHD on Windows
Date: Thu, 2 May 2013 07:34:12 +0000

Dear Josh,

Thanks for the hint. The issue occurred after Visual Studio 2012 installation and is resolved by replacing the cvtres.exe from VS2010 with the one from VS2012.

Best,

Zo



Date: Thu, 25 Apr 2013 14:54:37 -0700
From: [hidden email]
To: [hidden email]
Subject: Re: Error in Building UHD on Windows



On 04/25/2013 03:27 PM, Zooz Engineer wrote:

>
>
>
> Dear All,
>
> I am trying to install UHD on windows from source code. I have
> installed the prerequisites:
>
> cmake-2.8.10.2-win32-x86 boost_1_51_setup32 python-2.6.6
> Cheetah-2.2.2.win32-py2.6
> msysGit-fullinstall-1.8.1.2-preview20130201 Visual studio 2010
> express
>
> I follwowed the steps detailed here:
> http://files.ettus.com/uhd_docs/manual/html/build.html#build-instructions-windows.
> After applying the fifth step in CMake I get the following error
> message.
>
> Do you have any idea why this is happening?
>
If you google for "failure during conversion to COFF: file invalid",
have tried any of the things suggested in the stack overflow forums?

Many of the posts seem to indicate that its a visual studio 2012
stomping on files in 2010 or some .net installer doing something similar.

-josh

> Thank you,
>
> Zo
>
> The C compiler identification is MSVC 16.0.30319.1 The CXX compiler
> identification is MSVC 16.0.30319.1 Check for working C compiler
> using: Visual Studio 10 Check for working C compiler using: Visual
> Studio 10 -- broken CMake Error at C:/Program Files (x86)/CMake
> 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
> The C compiler "C:/Program Files (x86)/Microsoft Visual Studio
> 10.0/VC/bin/cl.exe" is not able to compile a simple test program.
>
> It fails with the following output:
>
> Change Dir: C:/UHD/host/build/CMakeFiles/CMakeTmp
>
>
>
> Run Build
> Command:C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
> cmTryCompileExec215809703.vcxproj /p:Configuration=Debug
> /p:VisualStudioVersion=10.0
>
> Microsoft (R) Build Engine version 4.0.30319.17929
>
> [Microsoft .NET Framework, version 4.0.30319.18034]
>
> Copyright (C) Microsoft Corporation.  All rights reserved.
>
>
>
> Build started 25/04/2013 21:57:38.
>
> Project
> "C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj"
>
>
on node 1 (default targets).

>
> PrepareForBuild:
>
> Creating directory "cmTryCompileExec215809703.dir\Debug\". Creating
> directory "C:\UHD\host\build\CMakeFiles\CMakeTmp\Debug\".
>
> InitializeBuildStatus:
>
> Creating
> "cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.unsuccessfulbuild"
> because "AlwaysCreate" was specified.
>
> ClCompile:
>
> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\CL.exe /c
> /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D
> "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise
> /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec215809703.dir\Debug\\"
> /Fd"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb"
> /Gd /TC /analyze- /errorReport:queue testCCompiler.c  /Zm1000
> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01
> for 80x86 Copyright (C) Microsoft Corporation.  All rights reserved.
>
> cl /c /Zi /W3 /WX- /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D _DEBUG /D
> "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise
> /Zc:wchar_t /Zc:forScope /Fo"cmTryCompileExec215809703.dir\Debug\\"
> /Fd"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb"
> /Gd /TC /analyze- /errorReport:queue testCCompiler.c  /Zm1000
>
> testCCompiler.c
>
> ManifestResourceCompile:
>
> C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\rc.exe
> /nologo
> /fo"cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.embed.manifest.res"
> cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703_manifest.rc
>
>
> Link:
>
> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\link.exe
> /ERRORREPORT:QUEUE
> /OUT:"C:\UHD\host\build\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec215809703.exe"
> /INCREMENTAL /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib
> shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib
> /MANIFEST
> /ManifestFile:"cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.intermediate.manifest"
> /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG
> /PDB:"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.pdb"
> /SUBSYSTEM:CONSOLE /STACK:"10000000" /TLBID:1 /DYNAMICBASE /NXCOMPAT
> /IMPLIB:"C:/UHD/host/build/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec215809703.lib"
> /MACHINE:X86
> cmTryCompileExec215809703.dir\Debug\cmTryCompileExec215809703.exe.embed.manifest.res
>
>
cmTryCompileExec215809703.dir\Debug\testCCompiler.obj  /machine:X86 /debug
>
> LINK : fatal error LNK1123: failure during conversion to COFF: file
> invalid or corrupt
> [C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj]
>
>  Done Building Project
> "C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj"
>
>
(default targets) -- FAILED.

>
>
>
> Build FAILED.
>
>
>
> "C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj"
>
>
(default target) (1) ->

>
> (Link target) ->
>
> LINK : fatal error LNK1123: failure during conversion to COFF: file
> invalid or corrupt
> [C:\UHD\host\build\CMakeFiles\CMakeTmp\cmTryCompileExec215809703.vcxproj]
>
>
>
>
> 0 Warning(s) 1 Error(s)
>
>
>
> Time Elapsed 00:00:00.64
>
>
>
>
>
> CMake will not be able to correctly generate this project. Call Stack
> (most recent call first):
>
>
>
> CMake Warning (dev) in CMakeLists.txt: No cmake_minimum_required
> command is present.  A line of code such as
>
> cmake_minimum_required(VERSION 2.8)
>
> should be added at the top of the file.  The version specified may be
> lower if you wish to support older CMake versions for this project.
> For more information run "cmake --help-policy CMP0000". This warning
> is for project developers.  Use -Wno-dev to suppress it.
>
> Configuring incomplete, errors occurred!
>
>
>
>
>
> _______________________________________________ Discuss-gnuradio
> mailing list [hidden email]
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
_______________________________________________
Discuss-gnuradio mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



If you reply to this email, your message will be added to the discussion below:
http://gnuradio.4.n7.nabble.com/Error-in-Building-UHD-on-Windows-tp41004p41007.html
To start a new topic under GnuRadio, email [hidden email]
To unsubscribe from GnuRadio, click here.
NAML

_______________________________________________
Discuss-gnuradio mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error in Building UHD on Windows

Marcus Müller-2
If everything works fine: Ignore them.
The first one seems interesting, but does not necessarily imply an
error.
(sometimes you really just want to check if a double is still
in initialized state, e.g. filled with zeros and therefore use it as a
boolean; some compilers interpret that as cast to int)
However, could you point out the file that warning occurred, just to
help check things for consistency?

Thanks,
Marcus Müller

Am 02.05.2013 10:42, schrieb Zooz Engineer:

> However, I have some 27 warnings in MSVC and I don't know how important
> they are:
>
> C4244: '=' : conversion from 'double' to 'uint32_t', possible loss of data
> C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
> C4305: '=' : truncation from 'double' to 'float'
>
> Can they be fixed or I can just ignore them?
>
> Best,
> Zo


_______________________________________________
Discuss-gnuradio mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Error in Building UHD on Windows

Zooz
This post has NOT been accepted by the mailing list yet.
Hi Marcus,

Please find attached the txt file with the warnings.

Cheers,

Zo




Date: Thu, 2 May 2013 11:18:59 -0700
From: [hidden email]
To: [hidden email]
Subject: Re: Error in Building UHD on Windows

If everything works fine: Ignore them.
The first one seems interesting, but does not necessarily imply an
error.
(sometimes you really just want to check if a double is still
in initialized state, e.g. filled with zeros and therefore use it as a
boolean; some compilers interpret that as cast to int)
However, could you point out the file that warning occurred, just to
help check things for consistency?

Thanks,
Marcus Müller

Am 02.05.2013 10:42, schrieb Zooz Engineer:

> However, I have some 27 warnings in MSVC and I don't know how important
> they are:
>
> C4244: '=' : conversion from 'double' to 'uint32_t', possible loss of data
> C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
> C4305: '=' : truncation from 'double' to 'float'
>
> Can they be fixed or I can just ignore them?
>
> Best,
> Zo

_______________________________________________
Discuss-gnuradio mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



If you reply to this email, your message will be added to the discussion below:
http://gnuradio.4.n7.nabble.com/Error-in-Building-UHD-on-Windows-tp41004p41109.html
To start a new topic under GnuRadio, email [hidden email]
To unsubscribe from GnuRadio, click here.
NAML

warning.txt (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error in Building UHD on Windows

Zooz
Hi Marcus,

Please find attached the txt file with the warnings.

Cheers,

Zo




Date: Thu, 2 May 2013 11:18:59 -0700
From: [hidden email]
To: [hidden email]
Subject: Re: Error in Building UHD on Windows

If everything works fine: Ignore them.
The first one seems interesting, but does not necessarily imply an
error.
(sometimes you really just want to check if a double is still
in initialized state, e.g. filled with zeros and therefore use it as a
boolean; some compilers interpret that as cast to int)
However, could you point out the file that warning occurred, just to
help check things for consistency?

Thanks,
Marcus Müller

Am 02.05.2013 10:42, schrieb Zooz Engineer:

> However, I have some 27 warnings in MSVC and I don't know how important
> they are:
>
> C4244: '=' : conversion from 'double' to 'uint32_t', possible loss of data
> C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
> C4305: '=' : truncation from 'double' to 'float'
>
> Can they be fixed or I can just ignore them?
>
> Best,
> Zo

_______________________________________________
Discuss-gnuradio mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio



If you reply to this email, your message will be added to the discussion below:
http://gnuradio.4.n7.nabble.com/Error-in-Building-UHD-on-Windows-tp41004p41109.html
To start a new topic under GnuRadio, email [hidden email]
To unsubscribe from GnuRadio, click here.
NAML

_______________________________________________
Discuss-gnuradio mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

warning.txt (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error in Building UHD on Windows

Marcus Müller-2
Looked at those code lines, since I wasn't used to the
compiler output of msvc; everything looks fine.

Cheers,
Marcus
Am 03.05.2013 13:12, schrieb Zooz Engineer:

> Hi Marcus,
>
> Please find attached the txt file with the warnings.
>
> Cheers,
>
> Zo
>
>
>
> ------------------------------------------------------------------------
> Date: Thu, 2 May 2013 11:18:59 -0700
> From: [hidden email]
> To: [hidden email]
> Subject: Re: Error in Building UHD on Windows
>
> If everything works fine: Ignore them.
> The first one seems interesting, but does not necessarily imply an
> error.
> (sometimes you really just want to check if a double is still
> in initialized state, e.g. filled with zeros and therefore use it as a
> boolean; some compilers interpret that as cast to int)
> However, could you point out the file that warning occurred, just to
> help check things for consistency?
>
> Thanks,
> Marcus Müller
>
> Am 02.05.2013 10:42, schrieb Zooz Engineer:
>
>  > However, I have some 27 warnings in MSVC and I don't know how important
>  > they are:
>  >
>  > C4244: '=' : conversion from 'double' to 'uint32_t', possible loss of
> data
>  > C4800: 'int' : forcing value to bool 'true' or 'false' (performance
> warning)
>  > C4305: '=' : truncation from 'double' to 'float'
>  >
>  > Can they be fixed or I can just ignore them?
>  >
>  > Best,
>  > Zo
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> [hidden email]
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://gnuradio.4.n7.nabble.com/Error-in-Building-UHD-on-Windows-tp41004p41109.html
>
> To start a new topic under GnuRadio, email [hidden email]
> To unsubscribe from GnuRadio, click here
> <
> NAML
> <
http://gnuradio.4.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble:email.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble:email.naml-instant_emails%21nabble:email.naml-send_instant_email%21nabble:email.naml>
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> [hidden email]
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>


_______________________________________________
Discuss-gnuradio mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Error in Building UHD on Windows

Josh Blum-3
In reply to this post by Zooz


On 05/03/2013 06:12 AM, Zooz Engineer wrote:
> Hi Marcus,
>
> Please find attached the txt file with the warnings.
>

These are just implicit casts that cause default warnings in MSVC, but
not GCC. We generally fix these by just explicitly casting. There is
nothing to worry about.

I will add the explicit casts in due time. Thats for the report though.
I think that will be helpful!

Cheers,
-josh

_______________________________________________
Discuss-gnuradio mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Loading...