How to build GCCE

You can obtain nice script to build latest gcc series (5.1.0, 5.2.0, 5.3.0, 6.1.0) here .

Download prerequsities manually, then run script and go relax for some hours =)  Run smoothly on MSYS+GCC 4.8.1.

Advertisements
How to build GCCE

Extending S60_5th_Edition_SDK_v1.0

What done:
ld v2.25.1 incorrectly recognized order params in generated makefile, but this order is normal for ld (Symbian ADT Sourcery G++ Lite 4.4-172) 2.19.51.20090709.

SYMBIAN_UREL_LINK_FLAGS contain linker option “–Tdata 0xAA00000”.

This command: “\t\$(LD) “,”\$(STATIC_LIBS) “,”\$(SYMBIAN_UDEB_LINK_FLAGS) “, “\$(SHARED_OBJECT_OPTION) “,  “\$(CODE_SEGMENT_START) “, “\$(DATA_SEGMENT_START) 0x400000 ” treats binutils 2.25.1 like ld –Tdata 0x400000 and value SYMBIAN_UREL_LINK_FLAGS ignored.

This is fix for cl_bpabi.pm:

if ($Bld =~ /DEB/)
{
&main::Output(
“\t\$(LD) “,”\$(STATIC_LIBS) “,”\$(SYMBIAN_UDEB_LINK_FLAGS) “, “\$(SHARED_OBJECT_OPTION) “,
“\$(CODE_SEGMENT_START) “, “\$(DATA_SEGMENT_START) 0x400000 “, “\$(SYMVER_OPTION) “,”\$(SO_NAME_OPTION) “,
“$LinkAs”,”\$(SYMBIAN_UDEB_LINK_FLAGS) ”
);
}
else
{
&main::Output(
“\t\$(LD) “,”\$(STATIC_LIBS) “,”\$(SYMBIAN_UREL_LINK_FLAGS) “,”\$(SHARED_OBJECT_OPTION) “,
“\$(CODE_SEGMENT_START) “, “\$(DATA_SEGMENT_START) 0x400000 “, “\$(SYMVER_OPTION) “,”\$(SO_NAME_OPTION) “,
“$LinkAs”,”\$(SYMBIAN_UREL_LINK_FLAGS) ”
);
}

 

Failed add declaration for operators new and delete conforming C++11/14 in gcce.h… Working from start but not now…

 

Extending S60_5th_Edition_SDK_v1.0