Mantis Bug Tracker

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000573LoaderPlatform Specific Commspublic2012-05-23 00:132012-08-29 19:03
Reportermalcom2073 
Assigned Tosean94z 
PriorityhighSeverityfeatureReproducibilityalways
StatusassignedResolutionopen 
PlatformMicrosoftOSWindowsOS VersionXP
Product Version 
Target VersionFixed in Version 
Summary0000573: Unable to compile using MSVC
DescriptionIn an attempt to have my CIS build the loader, I found out that MSVC is unable to compile the loader. Compiler output below:

C:\freeems-loader\src>c:\qt\4.8.0\bin\qmake
Project MESSAGE: Straight compile on windows (seank only)
Project MESSAGE: Straight compile on windows (seank only)
Project MESSAGE: Straight compile on windows (seank only)

C:\freeems-loader\src>nmake

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.

        "C:\Program Files\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe" -f Make
file.Debug

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.

        c:\Qt\4.8.0\bin\uic.exe about.ui -o ui_about.h
        c:\Qt\4.8.0\bin\uic.exe freeems_loader.ui -o ui_freeems_loader.h
        C:\Qt\4.8.0\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_TH
READ_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -
DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"..\..\Qt\4.8.0\include\QtCore" -
I"..\..\Qt\4.8.0\include\QtGui" -I"..\..\Qt\4.8.0\include" -I"..\..\Qt\4.8.0\inc
lude\ActiveQt" -I"debug" -I"." -I"..\..\Qt\4.8.0\mkspecs\default" -D_MSC_VER=160
0 -DWIN32 inc\freeems_loader.h -o debug\moc_freeems_loader.cpp
        C:\Qt\4.8.0\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_TH
READ_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -
DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"..\..\Qt\4.8.0\include\QtCore" -
I"..\..\Qt\4.8.0\include\QtGui" -I"..\..\Qt\4.8.0\include" -I"..\..\Qt\4.8.0\inc
lude\ActiveQt" -I"debug" -I"." -I"..\..\Qt\4.8.0\mkspecs\default" -D_MSC_VER=160
0 -DWIN32 inc\comms.h -o debug\moc_comms.cpp
        c:\Qt\4.8.0\bin\rcc.exe -name resource-root resource-root.qrc -o debug\q
rc_resource-root.cpp
        cl -c -nologo -Zm200 -Zc:wchar_t- -Wall -Werror -Zi -MDd -GR -EHsc -W3 -
w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_THREAD_SUPPORT -DQT
_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT
_HAVE_MMXEXT -DQT_HAVE_SSE2 -I"..\..\Qt\4.8.0\include\QtCore" -I"..\..\Qt\4.8.0\
include\QtGui" -I"..\..\Qt\4.8.0\include" -I"..\..\Qt\4.8.0\include\ActiveQt" -I
"debug" -I"." -I"..\..\Qt\4.8.0\mkspecs\default" -Fodebug\ @C:\DOCUME~1\Michael\
LOCALS~1\Temp\nm905.tmp
cl : Command line error D8021 : invalid numeric argument '/Werror'
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BI
N\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 10.0\VC\BI
N\nmake.exe"' : return code '0x2'
Stop.

C:\freeems-loader\src>
TagsNo tags attached.
Issue TypeImprovement
Risk of Breakage
Attached Files

- Relationships
related to 0000239assignedsean94z Automated On-Server Cross Platform Build 

-  Notes
User avatar (0001516)
Fred (administrator)
2012-05-29 19:25

Sean, what's required to make this happen?
User avatar (0001517)
sean94z (reporter)
2012-05-29 20:25

I just need to make some time to get it done. It's next on my list right after my FreeEMS repo fix.
User avatar (0001518)
Fred (administrator)
2012-05-29 20:30

Which in turn is right after your get binutils mint so your shit doesn't get tossed out on the trash pile! Right? :-)
User avatar (0001519)
sean94z (reporter)
2012-05-29 20:48

Unless I disappear and refuse to fix/maintain it shouldn't get tossed out strait away lol. I don't think.....
User avatar (0001520)
Fred (administrator)
2012-05-29 21:43

Point missed, it needs to be flawless such that someone else's steaming pile of shit CAN get tossed out.
User avatar (0001521)
Fred (administrator)
2012-05-29 21:43

Anyway, answer my question, what's required? Give a noob a run down!
User avatar (0001522)
sean94z (reporter)
2012-05-29 23:21

LOL I like the way you rephrased that ! :)



> Anyway, answer my question, what's required? Give a noob a run down!

I'll have a good look, as soon as I get in tomorrow :)
User avatar (0001523)
sean94z (reporter)
2012-05-30 12:52

It seems I just need to adjust the project file.... :)

"cl : Command line error D8021 : invalid numeric argument '/Werror'"
User avatar (0001524)
Fred (administrator)
2012-05-30 13:02

By adding a diff profile for win with gcc and win with msvc?
User avatar (0001525)
sean94z (reporter)
2012-05-30 13:14

Yes, I know when you compile Qt from source you cant give it the --msvc flag that tells the *builder you are going to compile using mcvc. There may be a more streamlined way to make the determination on the fly, but I suppose users could have both compilers installed. Maybe a message to the user would be best if it fails in "gcc mode".

Most users will just want the binaries anyway.....
User avatar (0001526)
Fred (administrator)
2012-05-30 13:18

It needs to be buildable, from unchanged sources, by Mike's CI box. If the build command needs to have an argument, OK, no problem.
User avatar (0001530)
malcom2073 (updater)
2012-06-07 18:44

I did some more investgating, it turns out that you use a bunch of POSIX calls that are incompatible with MSVC. I assume gcc uses cygwin related stuff to allow it to compile? It would require you to rewrite your low level serial code to use WINAPI in addition to the posix stuff.

Not sure if this is a reasonable request anymore, or something you're even willing to support.
User avatar (0001531)
sean94z (reporter)
2012-06-07 18:46

I'm game. I just have to take care of this linker stuff first. Thx for the additional info!
User avatar (0001532)
Fred (administrator)
2012-06-07 18:47

This app absolutely must be buildable on and for Windows. Whether it is buildable with MSVC or not is a different question. Another question is: Can your CI environment use different compilers? And I believe that the answer is yes. However you may not be willing to put effort into that, I guess.
User avatar (0001669)
sean94z (reporter)
2012-07-19 02:06

Binutils patch posted. MSVC code coming soon!
User avatar (0001964)
malcom2073 (updater)
2012-08-29 14:38

Bump. asyncIntegration doesn't compile for windows, only linux. Master has no such issue
User avatar (0001967)
sean94z (reporter)
2012-08-29 19:03

Thx Mike.
Can you post a note with some output?

It seems to work via MXE.

i686-pc-mingw32-qmake && make
.....
Creating library file: release/libSerialIO0.a
make[1]: Leaving directory `/home/skeys/win-builder/serialIO/FreeEMS-SerialIO'


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker