You Are Here:

Community: Developer Discussion Boards

#1 Old compiling Py S60 3rd failure - 2006-08-02, 17:23

Join Date: May 2003
Posts: 96
mikfi
Offline
Regular Contributor
Hello guys,

first of all, congratulations for Python S60 3rd beta-release!


Did anyone had problem on installing it on pc?
I did and still I’m not able to compile it.
I’m using S60 SDK 3rd_MR, GCCE.

A] :::::::::::::::::::::::
running:
> setup.py configure 30

produces errors:
Running "bldmake bldfiles"
** .\BLD.INF:0: malformed option `-D ARMV5_ABIV2~=_____ARMV5_ABIV2~'
** BLDMAKE ERROR: ERROR: cpp.exe returned non-zero exit status (8448)
** cpp.EXE -undef -nostdinc -+ -I ..\..\epoc32\include -I . -I .\ -D ARMV5_ABIV2~=_____ARMV5_ABIV2~ -D EPOC32=_____EPOC32 -D MARM=_____MARM -D E
ABI=_____EABI -D GENERIC_MARM=_____GENERIC_MARM -D MARM_ARMV5=_____MARM_ARMV5 -I "..\..\epoc32\include\variant" -include ..\..\epoc32\include\variant
\Symbian_OS_v9.1.hrh ".\BLD.INF"
**
Traceback (most recent call last):
File "V:\PyS603rd\src\setup.py", line 544, in ?
getattr(sys.modules['__main__'],funcname)(sys.argv[2:])
File "V:\PyS603rd\src\setup.py", line 285, in cmd_configure
run_in('.','bldmake bldfiles')
File "V:\PyS603rd\src\setup.py", line 229, in run_in
run_command_and_check_log(cmd,verbose=verbose,ignore_errors=ignore_errors)
File "V:\PyS603rd\src\setup.py", line 220, in run_command_and_check_log
raise BuildFailedException, 'Command "%s" failed:\n%s'%(cmd,out['stdout'])
BuildFailedException: Command "bldmake bldfiles" failed:
.\BLD.INF:0: malformed option `-D ARMV5_ABIV2~=_____ARMV5_ABIV2~'
BLDMAKE ERROR: ERROR: cpp.exe returned non-zero exit status (8448)
cpp.EXE -undef -nostdinc -+ -I ..\..\epoc32\include -I . -I .\ -D ARMV5_ABIV2~=_____ARMV5_ABIV2~ -D EPOC32=_____EPOC32 -D MARM=_____MARM -D E
ABI=_____EABI -D GENERIC_MARM=_____GENERIC_MARM -D MARM_ARMV5=_____MARM_ARMV5 -I "..\..\epoc32\include\variant" -include ..\..\epoc32\include\variant
\Symbian_OS_v9.1.hrh ".\BLD.INF"

Any hint?

B]:::::::::::::::::::::::::::
compilation “by hand” fails with this problem:
V:\PyS603rd\src\core>abld build gcce udeb
make -r -f "\EPOC32\BUILD\PyS603rd\src\core\EXPORT.make" EXPORT VERBOSE=-s
Nothing to do
make -r -f "\EPOC32\BUILD\PyS603rd\src\core\GCCE.make" MAKEFILE VERBOSE=-s
perl -S makmake.pl -D \PyS603rd\src\core\CORE GCCE
make -r -f "\EPOC32\BUILD\PyS603rd\src\core\GCCE.make" LIBRARY VERBOSE=-s
make -s -r -f "\EPOC32\BUILD\PyS603rd\src\core\CORE\GCCE\CORE.GCCE" LIBRARY
make -r -f "\EPOC32\BUILD\PyS603rd\src\core\GCCE.make" RESOURCE CFG=UDEB VERBOSE=-s
make -s -r -f "\EPOC32\BUILD\PyS603rd\src\core\CORE\GCCE\CORE.GCCE" RESOURCEUDEB
make -r -f "\EPOC32\BUILD\PyS603rd\src\core\GCCE.make" TARGET CFG=UDEB VERBOSE=-s
make -s -r -f "\EPOC32\BUILD\PyS603rd\src\core\CORE\GCCE\CORE.GCCE" UDEB
Cspyinterpreter.cpp
Config.c
cc1.exe: warning: command line option "-Wno-ctor-dtor-privacy" is valid for C++/ObjC++ but not for C
In file included from include/longobject.h:21,
from include/Python.h:74,
from Symbian\\Config.c:15:
..//..//..//EPOC32//include/e32def.h:2769: error: initializer element is not constant
make[1]: *** [..\..\..\EPOC32\BUILD\PyS603rd\src\core\CORE\GCCE\UDEB\config.o] Error 1
make: *** [TARGETCORE] Error 2
make -r -f "\EPOC32\BUILD\PyS603rd\src\core\GCCE.make" FINAL CFG=UDEB VERBOSE=-s


This problem is usually happening in situations when there are imports of C++ headers in C files using GCCE from command line (without extern “C”).
It compiles for WINSCW UDEB.

Any hint?

Thanks,
Mik
Reply With Quote

#2 Old Re: compiling Py S60 3rd failure - 2006-08-02, 23:25

Join Date: Aug 2004
Posts: 290
simo.salminen
Offline
Regular Contributor
Maybe some path problem. Make sure that "cpp.exe" is the symbian one, not some cygwin or other stuff.
Reply With Quote

#3 Old Re: compiling Py S60 3rd failure - 2006-08-03, 10:23

Join Date: May 2003
Posts: 96
mikfi
Offline
Regular Contributor
Hi,
I was thinking about a PATH problem as well... but then shoudln't neither the Symbian HelloWorldBasic give errors on compiling it?
that works....

Anyway my PATH:
V:\PyS603rd\src>echo %PATH%
C:\Program Files\Common Files\Symbian\Tools;C:\Program Files\ARM\bin\win_32-pentium;C:\Program Files\ARM\RVD\Core\1.8.1\464\win_32-pentium\bin;C:\Prog
ram Files\ARM\RVCT\Programs\2.2\503\win_32-pentium;C:\Program Files\CSL Arm Toolchain\bin;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Syste
m32\Wbem;C:\Program Files\Nokia\CodeWarrior for Symbian v3.1\Bin;C:\Program Files\Nokia\CodeWarrior for Symbian v3.1\Symbian_Tools\Command_Line_Tools;
C:\Program Files\ARM\Utilities\FLEXlm\9.2\release\win_32-pentium;C:\Python24;

Thanks anyway,
Mik
Reply With Quote

#4 Old Re: compiling Py S60 3rd failure - 2006-08-03, 20:27

Join Date: Aug 2004
Posts: 290
simo.salminen
Offline
Regular Contributor
Hmm. Try to remove all those ARM stuff from path, leavy only CSL Arm toolchain. I think the RCVT is conflicting somehow with gcce.
Reply With Quote

#5 Old Re: compiling Py S60 3rd failure - 2006-09-26, 00:57

Join Date: Oct 2003
Posts: 31
jiayaoyu
Offline
Registered User
Hi,

I'm having exactly the same compiling error:
Q:\pys60\core>abld build gcce urel
make -r -f "\EPOC32\BUILD\pys60\core\EXPORT.make" EXPORT VERBOSE=-s
Nothing to do
make -r -f "\EPOC32\BUILD\pys60\core\GCCE.make" MAKEFILE VERBOSE=-s
perl -S makmake.pl -D \pys60\core\CORE GCCE
make -r -f "\EPOC32\BUILD\pys60\core\GCCE.make" LIBRARY VERBOSE=-s
make -s -r -f "\EPOC32\BUILD\pys60\core\CORE\GCCE\CORE.GCCE" LIBRARY
make -r -f "\EPOC32\BUILD\pys60\core\GCCE.make" RESOURCE CFG=UREL VERBOSE=-s
make -s -r -f "\EPOC32\BUILD\pys60\core\CORE\GCCE\CORE.GCCE" RESOURCEUREL
make -r -f "\EPOC32\BUILD\pys60\core\GCCE.make" TARGET CFG=UREL VERBOSE=-s
make -s -r -f "\EPOC32\BUILD\pys60\core\CORE\GCCE\CORE.GCCE" UREL
Cspyinterpreter.cpp
Config.c
cc1.exe: warning: command line option "-Wno-ctor-dtor-privacy" is valid for C++/
ObjC++ but not for C
In file included from include/longobject.h:21,
from include/Python.h:74,
from Symbian\\Config.c:15:
..//..//EPOC32//include/e32def.h:2769: error: initializer element is not constan
t
make[1]: *** [..\..\EPOC32\BUILD\pys60\core\CORE\GCCE\UREL\config.o] Error 1
make: *** [TARGETCORE] Error 2
make -r -f "\EPOC32\BUILD\pys60\core\GCCE.make" FINAL CFG=UREL VERBOSE=-s


I have trimmed my path to the bare minimum and still have the same problem:
C:\Program Files\Common Files\Symbian\Tools;d:\Program Files\CSL Arm Toolchain\bin;D:\Python24\.;C:\Perl\bin\;C:\WINNT\system32;C:\WINNT;

Have you solved this problem, Mikfi?
Reply With Quote

#6 Old Re: compiling Py S60 3rd failure - 2006-09-26, 01:18

Join Date: Oct 2003
Posts: 31
jiayaoyu
Offline
Registered User
Problem solved. I've just noticed there is a patch on the symbian header files in pys60-fix-3rded-sdk.diff !
I compiled the GCCE after applying the patch.
Reply With Quote

#7 Old Re: compiling Py S60 3rd failure - 2006-09-26, 14:40

Join Date: Sep 2006
Posts: 7
Santehnik.UA
Offline
Registered User
How you patch?I can't find GNU Patch
Can you send me (santehnik "'at'" mabila.ua) utiliy ?
Reply With Quote

#8 Old Smile Re: compiling Py S60 3rd failure - 2006-09-26, 16:12

Join Date: Oct 2003
Posts: 31
jiayaoyu
Offline
Registered User
i downloaded the latest GNU patch http://www.gnu.org/software/patch/patch.html

However, I got some errors when trying to apply the patch. Then I opened the diff file and found only a couple of places need to be patched. So I just manually changed the header files !
Reply With Quote

#9 Old Re: compiling Py S60 3rd failure - 2007-12-14, 22:53

Join Date: Feb 2007
Posts: 82
rpunskyy
Offline
Regular Contributor
probably missing platform in the bld.inf

try putting something like :

PRJ_PLATFORMS
DEFAULT GCCE
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Sync for S60 / S60 3rd Devices bmenke PC Suite API and PC Connectivity SDK 4 2006-09-17 07:24
Filelist example S60 3rd failure to compile FBulovic Tools and SDK Feedback 0 2006-06-20 08:49
What is going on with Vibration on S60? amd_rikus Mobile Java General 3 2006-06-16 01:29
A problem in Compiling a program with S60 SDK 3rd symbian-newbie General Symbian C++ 1 2006-05-12 08:21
A problem in Compiling a program with S60 SDK 3rd symbian-newbie General Symbian C++ 7 2006-05-12 05:41

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia