Issue 126996 - windows build breaks in module extensions - activex
Summary: windows build breaks in module extensions - activex
Status: CONFIRMED
Alias: None
Product: Build Tools
Classification: Code
Component: code (show other issues)
Version: 4.2.0-dev
Hardware: PC Windows 7
: P5 (lowest) Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-12 08:13 UTC by Oliver Brinzing
Modified: 2016-06-12 10:57 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Oliver Brinzing 2016-06-12 08:13:11 UTC
with svn revision 1747860 windows debug build breaks in:

\trunk\main\solver\420\wntmsci12\inc\osl/endian.h(160) : fatal error C1189: #error : undetermined endianness
dmake:  Error code 2, while making '../../../wntmsci12/slo/x64/so_activex.obj'

i think this is a configuration error:

"\trunk\main\solver\420\wntmsci12\inc\osl\endian.h" starts with

#ifdef _WIN32
#    if defined(_M_IX86)
#        define _LITTLE_ENDIAN
# [...]

but i cannot find a -D_WIN32 and -D_M_IX86

possible workaround:

#ifdef _WIN32
#    define _LITTLE_ENDIAN
#endif 

--
: &&     PATH=/cygdrive/c/build_tmp/trunk/main/solver/420/wntmsci12/bin${PATH:+:${PATH}} C:/build_tmp/trunk/main/solver/420/wntmsci12/bin/makedepend -f - -p../../../wntmsci12/res -o.res  -DWNT -DWNT -DNT351 -DMSC -DM1500 -DINTEL -D_STLP_DEBUG -D_X86_=1 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NON_CONFORMING_SWPRINTFS -DFULL_DESK -DBOOST_MEM_FN_ENABLE_CDECL -D_MT -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 -DCPPU_ENV=msci -DSUPD=420 -DDEBUG -DDBG_UTIL -DOSL_DEBUG_LEVEL=2 -DCUI -DSOLAR_JAVA   -DDLLPOSTFIX= -I. -I../../../inc -I../inc -I../../../WIN/inc -I../../../wntmsci12/inc -IC:/build_tmp/trunk/main/solenv/inc so_activex.rc >> ../../../wntmsci12/misc/so_activex.dprc
cat ../../../wntmsci12/res/so_activex.res > ../../../wntmsci12/misc/so_activex.res
link /MACHINE:IX86 /IGNORE:4102 /IGNORE:4197 @C:/build/cygwin/tmp/mkhIiuXe
if [ -f ../../../wntmsci12/bin/so_activex.dll.manifest ] ; then mt.exe  -manifest ../../../wntmsci12/bin/so_activex.dll.manifest -outputresource:../../../wntmsci12/bin/so_activex.dll\;2 ; fi
if [ -f ../../../wntmsci12/bin/so_activex.dll.manifest ] ; then /bin/rm -f ../../../wntmsci12/bin/so_activex.dll.manifest ; fi
if [ -f ../../../wntmsci12/bin/so_activex.dll.tmanifest ] ; then /bin/rm -f ../../../wntmsci12/bin/so_activex.dll.tmanifest ; fi
Making:    so_activex.dll
Microsoft (R) Incremental Linker Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

-safeseh -nxcompat -dynamicbase -NODEFAULTLIB -DEBUG -DEBUG -safeseh -nxcompat -dynamicbase /SUBSYSTEM:CONSOLE /DLL -out:../../../wntmsci12/bin/so_activex.dll -map:../../../wntmsci12/misc/so_activex.map -def:so_activex.def -implib:../../../wntmsci12/lib/iso_activex_t1.lib ../../../wntmsci12/slo/so_activex.obj ../../../wntmsci12/slo/SOActiveX.obj ../../../wntmsci12/slo/SOComWindowPeer.obj ../../../wntmsci12/slo/SODispatchInterceptor.obj ../../../wntmsci12/slo/SOActionsApproval.obj ../../../wntmsci12/slo/StdAfx2.obj uuid.lib advapi32.lib ole32.lib oleaut32.lib gdi32.lib urlmon.lib shlwapi.lib C:/WinDDK/760016~1.1/lib/ATL/i386/atls.lib C:/WinDDK/760016~1.1/lib/ATL/i386/atlthunk.lib msvcrt.lib msvcprt.lib kernel32.lib user32.lib oldnames.lib ../../../wntmsci12/misc/so_activex.res 
------------------------------
Making: ../../../wntmsci12/slo/x64/so_activex.obj
so_activex.def : warning LNK4222: exported symbol 'DllCanUnloadNow' should not be assigned an ordinal
so_activex.def : warning LNK4222: exported symbol 'DllGetClassObject' should not be assigned an ordinal
so_activex.def : warning LNK4222: exported symbol 'DllRegisterServer' should not be assigned an ordinal
so_activex.def : warning LNK4222: exported symbol 'DllUnregisterServer' should not be assigned an ordinal
   Creating library ../../../wntmsci12/lib/iso_activex_t1.lib and object ../../../wntmsci12/lib/iso_activex_t1.exp
mkdir.exe ../../../wntmsci12/slo/x64/
C:/PROGRA~2/MICROS~1.0/VC/bin/amd64/cl.exe -c -nologo -Gs  -Zm500 -Zc:wchar_t- -GR -Zi -Fd../../../wntmsci12/misc/x64/so_activex.pdb  -Ob1 -I. -I../../../wntmsci12/inc/so_activex -IC:/WinDDK/760016~1.1/inc/atl71 -I../../../wntmsci12/misc -I../inc -I../../../inc/pch -I../../../inc -I../../../WIN/inc -I../../../wntmsci12/inc -I. -IC:/build_tmp/trunk/main/solver/420/wntmsci12/incdont_use_stl -IC:/build_tmp/trunk/main/solver/420/wntmsci12/inc/external -IC:/build_tmp/trunk/main/solver/420/wntmsci12/inc -IC:/build_tmp/trunk/main/solenv/wntmsci12/inc -IC:/build_tmp/trunk/main/solenv/inc -IC:/build_tmp/trunk/main/res -IC:/build_tmp/trunk/main/tools/inc -IC:/build_tmp/trunk/main/comphelper/inc -IC:/PROGRA~2/Java/JDK17~1.0/include/win32 -IC:/PROGRA~2/Java/JDK17~1.0/include -IC:/PROGRA~1/MICROS~1/Windows/v7.0/include -IC:/PROGRA~2/MICROS~1.0/VC/include -IC:/PROGRA~2/MICROS~1/include -IC:/PROGRA~2/MICROS~1/include  -IC:/build_tmp/trunk/main/solver/420/wntmsci12/inc/offuh -I. -I../../../res -I.  -MT -DWIN32 -D_AMD64_=1 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NON_CONFORMING_SWPRINTFS -DDEBUG -DWNT -DWNT -DNT351 -DMSC -DM1500 -DINTEL -D_STLP_DEBUG -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NON_CONFORMING_SWPRINTFS -DFULL_DESK -DBOOST_MEM_FN_ENABLE_CDECL -D_MT -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 -DCPPU_ENV=msci -DSUPD=420 -DDEBUG -DDBG_UTIL -DOSL_DEBUG_LEVEL=2 -DCUI -DSOLAR_JAVA  -D_MT -D_DLL -D_MT -D_DLL   -DEXCEPTIONS_OFF  -Fo../../../wntmsci12/slo/x64/so_activex.obj C:/build_tmp/trunk/main/extensions/source/activex/main/so_activex.cpp 
mkdir: cannot create directory '../../../wntmsci12/slo/x64/': File exists
mkdir: cannot create directory '../../../wntmsci12/misc/x64': File exists
so_activex.cpp
linking ../../../wntmsci12/bin/so_activex.dll.manifest ...
Microsoft (R) Manifest Tool version 5.2.3790.2076

Copyright (c) Microsoft Corporation 2005. 

All rights reserved.

------------------------------
Making: ../../../wntmsci12/slo/x64/SOActiveX.obj
mkdir.exe ../../../wntmsci12/slo/x64/
C:/PROGRA~2/MICROS~1.0/VC/bin/amd64/cl.exe -c 
-nologo -Gs  -Zm500 -Zc:wchar_t- -GR -Zi -Fd../../../wntmsci12/misc/x64/SOActiveX.pdb  
-Ob1 -I. -I../../../wntmsci12/inc/so_activex -IC:/WinDDK/760016~1.1/inc/atl71 
-I../../../wntmsci12/misc -I../inc -I../../../inc/pch -I../../../inc 
-I../../../WIN/inc -I../../../wntmsci12/inc -I. -IC:/build_tmp/trunk/main/solver/420/wntmsci12/incdont_use_stl 
-IC:/build_tmp/trunk/main/solver/420/wntmsci12/inc/external -IC:/build_tmp/trunk/main/solver/420/wntmsci12/inc 
-IC:/build_tmp/trunk/main/solenv/wntmsci12/inc -IC:/build_tmp/trunk/main/solenv/inc -IC:/build_tmp/trunk/main/res 
-IC:/build_tmp/trunk/main/tools/inc -IC:/build_tmp/trunk/main/comphelper/inc -IC:/PROGRA~2/Java/JDK17~1.0/include/win32 
-IC:/PROGRA~2/Java/JDK17~1.0/include -IC:/PROGRA~1/MICROS~1/Windows/v7.0/include -IC:/PROGRA~2/MICROS~1.0/VC/include 
-IC:/PROGRA~2/MICROS~1/include -IC:/PROGRA~2/MICROS~1/include  -IC:/build_tmp/trunk/main/solver/420/wntmsci12/inc/offuh 
-I. -I../../../res -I.  -MT -DWIN32 -D_AMD64_=1 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NON_CONFORMING_SWPRINTFS 
-DDEBUG -DWNT -DWNT -DNT351 -DMSC -DM1500 -DINTEL -D_STLP_DEBUG -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE 
-D_CRT_NON_CONFORMING_SWPRINTFS -DFULL_DESK -DBOOST_MEM_FN_ENABLE_CDECL -D_MT -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 
-D_WIN32_IE=0x0500 -DCPPU_ENV=msci -DSUPD=420 -DDEBUG -DDBG_UTIL -DOSL_DEBUG_LEVEL=2 -DCUI -DSOLAR_JAVA  
-D_MT -D_DLL -D_MT -D_DLL   -DEXCEPTIONS_OFF  -Fo../../../wntmsci12/slo/x64/SOActiveX.obj 
C:/build_tmp/trunk/main/extensions/source/activex/main/SOActiveX.cpp 

mkdir: cannot create directory '../../../wntmsci12/slo/x64/': File exists

C:\build_tmp\trunk\main\solver\420\wntmsci12\inc\osl/endian.h(160) : fatal error C1189: #error :  undetermined endianness

mkdir: cannot create directory '../../../wntmsci12/misc/x64': File exists
dmake:  Error code 2, while making '../../../wntmsci12/slo/x64/so_activex.obj'
SOActiveX.cpp
Comment 1 damjan 2016-06-12 08:46:27 UTC
You seem to be using an AMD64 compiler:
C:/PROGRA~2/MICROS~1.0/VC/bin/amd64/cl.exe

According to https://msdn.microsoft.com/en-us/library/b0084kay.aspx the _M_IX86 macro is "Defined for compilations that target x86 processors. This is not defined for x64 processors."
Comment 2 Oliver Brinzing 2016-06-12 10:57:43 UTC
that is strange. i did not change my configuration.
do you know where this compiler settings are stored?