[WinCE/ARMv4][tbcload] ./configure fails with "compiler cannot create executables"

Posted by bfo on 2014-03-14 02:44
Forums: TDK discussion | OS: Windows XP Pro

Hello,

I am trying to build tbcload dll for Windows CE using MS Visual eMbedded C++ 4.0. I am using MinGW/MSYS environment and the following scipt:

export OSVERSION="wce420"
export PLATFORM="POCKET PC 2003"
export WCEROOT="/d/programy/microsoft-embedded-c++-4.0"
export SDKROOT="/d/programy/Windows CE Tools"

export PATH="${WCEROOT}/Common/EVC/Bin:${WCEROOT}/EVC/${OSVERSION}/bin:$PATH"
export INCLUDE="${SDKROOT}/${OSVERSION}/${PLATFORM}/include/ARMV4:${SDKROOT}/${OSVERSION}/${PLATFORM}/MFC/include:${SDKROOT}/${OSVERSION}/${PLATFORM}/ATL/include"
export LIB="${SDKROOT}/${OSVERSION}/${PLATFORM}/lib/ARMV4:${SDKROOT}/${OSVERSION}/${PLATFORM}/MFC/lib/ARMV4:${SDKROOT}/${OSVERSION}/${PLATFORM}/ATL/lib/ARMV4"

export CC="clarm.exe"

export TARGETCPU=ARMV4
export CFG=none

./configure --enable-wince

The relevant part of the configure log:

PATH: /d/programy/microsoft-embedded-c++-4.0/Common/EVC/Bin
PATH: /d/programy/microsoft-embedded-c++-4.0/EVC/wce420/bin
PATH: .
PATH: /usr/local/bin
PATH: /mingw/bin
PATH: /bin

<<snip>>

## ----------- ##
## Core tests. ##
## ----------- ##

configure:1324: checking for correct TEA configuration
configure:1343: result: ok (TEA 3.9)
configure:1350: checking for cygpath
configure:1377: result: echo
configure:1479: checking for Tcl configuration
configure:1606: result: found /c/Progra~1/Tcl/lib/tclConfig.sh
configure:1612: checking for existence of /c/Progra~1/Tcl/lib/tclConfig.sh
configure:1616: result: loading
configure:1732: --prefix defaulting to TCL_PREFIX C:/Program Files/tcl
configure:1744: --exec-prefix defaulting to TCL_EXEC_PREFIX C:/Program Files/tcl
configure:1818: checking for gcc
configure:1844: result: clarm.exe
configure:2088: checking for C compiler version
configure:2091: clarm.exe --version </dev/null >&5
Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 for ARM
Copyright (C) Microsoft Corp 1984-2002. All rights reserved.

Command line warning D4002 : ignoring unknown option '--version'
Command line error D2003 : missing source filename
configure:2094: $? = 2
configure:2096: clarm.exe -v </dev/null >&5
Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 for ARM
Copyright (C) Microsoft Corp 1984-2002. All rights reserved.

Command line warning D4002 : ignoring unknown option '-v'
Command line error D2003 : missing source filename
configure:2099: $? = 2
configure:2101: clarm.exe -V </dev/null >&5
Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 for ARM
Copyright (C) Microsoft Corp 1984-2002. All rights reserved.

Command line error D2004 : '/V' requires an argument
configure:2104: $? = 2
configure:2127: checking for C compiler default output file name
configure:2130: clarm.exe    conftest.c  >&5
Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 for ARM
Copyright (C) Microsoft Corp 1984-2002. All rights reserved.

conftest.c
Microsoft (R) Incremental Linker Version 6.24.3077
Copyright (C) Microsoft Corporation.  All rights reserved.

-out:conftest.exe
conftest.obj
LINK : fatal error LNK1195: target machine 'ARM' requires '/SUBSYSTEM:WINDOWSCE'
configure:2133: $? = 2
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "tbcload"
| #define PACKAGE_TARNAME "tbcload"
| #define PACKAGE_VERSION "1.7"
| #define PACKAGE_STRING "tbcload 1.7"
| #define PACKAGE_BUGREPORT ""
| #define BUILD_tbcload 1
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2172: error: C compiler cannot create executables

Unfortunately, I'm stuck with this particular CE toolchain.

How to properly use ./configure to generate this dll?

edoroe | Wed, 2015-02-11 05:03

managed to compile tbcload for wince ?