Page 1 of 1

Compiling GCC for WinCE in Cygwin

Posted: 09 Oct 2005 22:03
by hamster
Hi, I compiled binutils for WinCE in Cygwin ok, but when I try to compile 'gcc-4.0.0-cvs+wince-diff.tar.bz2', in the libstdc++-v3 configuration part, I get the follow error that I never saw before and I don't know how to solve this... please, help me! I'm very interested in GCC 4.0 for WinCE because it's faster than Embedded VC (isn't it?)

Thanks!

Checking multilib configuration...
multilib.out is unchanged
Configuring in arm-wince-pe/libstdc++-v3
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
configure: loading cache ./config.cache
...
blah, blah, blah...
...
checking for extra compiler flags for building...
configure: WARNING: No native atomic operations are provided for this platform.
configure: WARNING: They cannot be faked when thread support is disabled.
configure: WARNING: Thread-safety of certain classes is not guaranteed.
checking for sys/types.h... (cached) no
checking locale.h usability... no
checking locale.h presence... no
checking for locale.h... no
checking float.h usability... no
checking float.h presence... yes
configure: WARNING: float.h: present but cannot be compiled
configure: WARNING: float.h: check for missing prerequisite headers?
configure: WARNING: float.h: see the Autoconf documentation
configure: WARNING: float.h: section "Present But Cannot Be Compiled"
configure: WARNING: float.h: proceeding with the preprocessor's result
configure: WARNING: float.h: in the future, the compiler will take precedence
configure: WARNING: ## ----------------------------------------- ##
configure: WARNING: ## Report this to the package-unused lists. ##
configure: WARNING: ## ----------------------------------------- ##
checking for float.h... yes
[b]checking for main in -lm... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES.[/b]
make: *** [configure-target-libstdc++-v3] Error 1

Posted: 10 Oct 2005 15:36
by DanBrwn
I am not sure that you can compile this under cygwin. I was going to try the same but could find no instructions that implied you could. I have ended up setting up a linux box but still can not get it built.

Posted: 01 Dec 2005 00:46
by coder
You don't need cygwin for cross compile the wince toolchain from vlc works fine under linux. VMWare is to the rescue if you don't need to remove Windows. I've done it succsefully with a minimal Slackware setup.