Re: [Cegcc-devel] link errors dlls

2006-11-13 Thread Peter Schojer
Nuno Lucas wrote:
> On 11/10/06, Peter Schojer <[EMAIL PROTECTED]> wrote:
>   
>> Hi all,
>> I recently discovered cegcc and I'm trying to compile a library as dll.
>> system: Cygwin
>> cegcc: subversion 20061009
>>
>> The following statement gives me a undefined reference to
>> GetDurrentDirectoryW not found (though it is defined in winbase.h):
>> 
>
> It's defined because we use the mingw32 headers, but Windows CE has no
> concept of current directory, so that will never work (I'm not sure if
> we should go all the way to hidding this functions from the mingw32
> headers. If yes, then this can be considered a bug).
>   
Thx for your answer but unfortunately it is not only GetCurrentDirectoryW.
But if I read it correctly methods are defined which are not 
implemented? That actually prevents one
from using WinCE emulation packages (which add implementations for these 
missing functions but
now fail  to compile due to the existing entry/-ies in winbase.h).

So it would be desirable to get rid of them, though, considering this is 
a version 0.1,
you have done a great job so far. I was impressed that my code compiled 
nearly out of the box,
it's just the linkage now :-)

br
Peter

> As you are using the "posix like" cegcc compiler you can try using
> getcwd(). I believe newlib emulates a current directory on windows ce.
>
>
> Regards,
> ~Nuno Lucas
>
> -
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ___
> Cegcc-devel mailing list
> Cegcc-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cegcc-devel
>
>   


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel


Re: [Cegcc-devel] link errors dlls

2006-11-13 Thread Pedro Alves
Peter Schojer wrote:

>Nuno Lucas wrote:
>  
>
>>On 11/10/06, Peter Schojer <[EMAIL PROTECTED]> wrote:
>>  
>>
>>
>>>Hi all,
>>>I recently discovered cegcc and I'm trying to compile a library as dll.
>>>system: Cygwin
>>>cegcc: subversion 20061009
>>>
>>>The following statement gives me a undefined reference to
>>>GetDurrentDirectoryW not found (though it is defined in winbase.h):
>>>
>>>  
>>>
>>It's defined because we use the mingw32 headers, but Windows CE has no
>>concept of current directory, so that will never work (I'm not sure if
>>we should go all the way to hidding this functions from the mingw32
>>headers. If yes, then this can be considered a bug).
>>  
>>
>>
>Thx for your answer but unfortunately it is not only GetCurrentDirectoryW.
>But if I read it correctly methods are defined which are not 
>implemented? That actually prevents one
>from using WinCE emulation packages (which add implementations for these 
>missing functions but
>now fail  to compile due to the existing entry/-ies in winbase.h).
>
>So it would be desirable to get rid of them, though, considering this is 
>a version 0.1,
>you have done a great job so far. I was impressed that my code compiled 
>nearly out of the box,
>it's just the linkage now :-)
>
>  
>

If you are using cegcc instead of mingw32ce, some of those functions are 
implemented in cegcc.dll.
Take a look using:
arm-wince-cegcc-nm -A /opt/cegcc/arm-wince-cegcc/libcegcc.dll.a | grep ' 
T ' | grep XCE

Most of those functions are still unfortunatly undocumented, but by 
their names, you can guess what they do.

Concerning hiding the functions in w32api that are not implemented:
My current approach is to disable them as I stumble on them. There are 
so many, that going through all of them, would
litter the code with #ifndef _WIN32_WCE. Not sure if it's a good idea. I 
am sure most people will stumble
on a limitted set of them. For the rest, the linker will still error out.

(Just as a note: I am currently using mingw32ce on all my projects.)

Cheers,
Pedro Alves


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel


[Cegcc-devel] mingw32ce CYGWIN build broken

2006-11-13 Thread Peter Schojer
Hi,
I tried to compile cegcc on an up-to-date Cygwin installation,
I have the latest svn version 805.

- src/build-cegcc.sh is working
- but src/build-mingw32ce.sh yields the following error:

Making  in profile...
make[1]: Entering directory 
`/cygdrive/p/cegcc/src/build-mingw32ce/mingw/profile
'
arm-wince-mingw32ce-gcc -c  -g -O2   -I 
/cygdrive/p/cegcc/src/mingw/profile/../.
./w32api/include -I/cygdrive/p/cegcc/src/mingw/profile 
-I/cygdrive/p/cegcc/src/m
ingw/profile/../include -nostdinc -iwithprefixbefore include  
/cygdrive/p/cegcc/
src/mingw/profile/gmon.c -o gmon.o
arm-wince-mingw32ce-gcc -c  -g -O2   -I 
/cygdrive/p/cegcc/src/mingw/profile/../.
./w32api/include -I/cygdrive/p/cegcc/src/mingw/profile 
-I/cygdrive/p/cegcc/src/m
ingw/profile/../include -nostdinc -iwithprefixbefore include  
/cygdrive/p/cegcc/
src/mingw/profile/mcount.c -o mcount.o
/cygdrive/p/cegcc/src/mingw/profile/mcount.c:66: warning: 'regparm' 
attribute di
rective ignored
/cygdrive/p/cegcc/src/mingw/profile/mcount.c: In function 'mcount':
/cygdrive/p/cegcc/src/mingw/profile/mcount.c:178: warning: unsupported 
argument
to '__builtin_return_address'
/cygdrive/c/DOCUME~1/peter/LOCALS~1/Temp/ccywBNjY.s: Assembler messages:
/cygdrive/c/DOCUME~1/peter/LOCALS~1/Temp/ccywBNjY.s:28: Error: bad 
instruction `
pushl %eax'
/cygdrive/c/DOCUME~1/peter/LOCALS~1/Temp/ccywBNjY.s:29: Error: bad 
instruction `
pushl %ecx'
/cygdrive/c/DOCUME~1/peter/LOCALS~1/Temp/ccywBNjY.s:30: Error: bad 
instruction `
pushl %edx'
/cygdrive/c/DOCUME~1/peter/LOCALS~1/Temp/ccywBNjY.s:137: Error: bad 
instruction
$
/cygdrive/c/DOCUME~1/peter/LOCALS~1/Temp/ccywBNjY.s:138: Error: bad 
instruction
`popl %ecx'
/cygdrive/c/DOCUME~1/peter/LOCALS~1/Temp/ccywBNjY.s:139: Error: bad 
instruction
`popl %eax'
/cygdrive/c/DOCUME~1/peter/LOCALS~1/Temp/ccywBNjY.s:184: Error: bad 
instruction
`popl %edx'
/cygdrive/c/DOCUME~1/peter/LOCALS~1/Temp/ccywBNjY.s:185: Error: bad 
instruction
`popl %ecx'
/cygdrive/c/DOCUME~1/peter/LOCALS~1/Temp/ccywBNjY.s:186: Error: bad 
instruction
`popl %eax'
make[1]: *** [mcount.o] Error 1
make[1]: Leaving directory 
`/cygdrive/p/cegcc/src/build-mingw32ce/mingw/profile'

make: *** [profile] Error 1

br
Peter
>
>
> (Just as a note: I am currently using mingw32ce on all my projects.)
>
> Cheers,
> Pedro Alves
>
>


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel


Re: [Cegcc-devel] mingw32ce CYGWIN build broken

2006-11-13 Thread Pedro Alves
Peter Schojer wrote:

>Hi,
>I tried to compile cegcc on an up-to-date Cygwin installation,
>I have the latest svn version 805.
>
>- src/build-cegcc.sh is working
>- but src/build-mingw32ce.sh yields the following error:
>
>Making  in profile...
>make[1]: Entering directory 
>`/cygdrive/p/cegcc/src/build-mingw32ce/mingw/profile
>'
>  
>

(Hopefully, but not tested,) Fixed in svn rev 806.

The problem was the relying on the ARM preprocessor symbol instead of 
__arm__.
I've moved the ARM definition to the w32api headers, so if none is 
included, ARM will not be defined.
This matches the behaviour of the i386 gcc based compilers that use 
w32api (at least Cygwin and MinGW).

Cheers,
Pedro Alves


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel


Re: [Cegcc-devel] mingw32ce CYGWIN build broken

2006-11-13 Thread Peter Schojer
Pedro Alves wrote:
> Peter Schojer wrote:
>
>> Hi,
>> I tried to compile cegcc on an up-to-date Cygwin installation,
>> I have the latest svn version 805.
>>
>> - src/build-cegcc.sh is working
>> - but src/build-mingw32ce.sh yields the following error:
>>
>> Making  in profile...
>> make[1]: Entering directory 
>> `/cygdrive/p/cegcc/src/build-mingw32ce/mingw/profile
>> '
>>  
>>
>
> (Hopefully, but not tested,) Fixed in svn rev 806.
>
> The problem was the relying on the ARM preprocessor symbol instead of 
> __arm__.
> I've moved the ARM definition to the w32api headers, so if none is 
> included, ARM will not be defined.
> This matches the behaviour of the i386 gcc based compilers that use 
> w32api (at least Cygwin and MinGW).

Thanks for the quick fix. Mingw/profile compiles now for me.
cu
Peter

>
> Cheers,
> Pedro Alves
>
>


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel


[Cegcc-devel] Pkfuncs.h?

2006-11-13 Thread Kevin O'Connor
Hi,

I noticed that HaRET has a whole bunch of functions defined locally
that are in the MSDN docs.  For example, the functions:

ForcePageout
AllocPhysMem
FreePhysMem
SetKMode
VirtualCopy
SetProcPermissions
etc.

All of these can be found on MSDN at:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcemain4/html/cmconKernelFunctions.asp

According to MSDN, they all seem to be defined in a file "pkfuncs.h".
This file is not currently in cegcc.  Also, since the defs were
manually defined in the original (MSVC compiled) haret, I'm not sure
they're part of the ms toolkit.

In order to make the haret code more clear, I'm going to build a
pkfuncs.h file.  If there is interest, I'll push it to cegcc.

-Kevin

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel