GCC 5 for i9100/I9300/N7100

Search This thread

rpdroky

Senior Member
Nov 13, 2014
710
1,683
Hy guyz , i'm trying to compile ROM with uber 5.3.1 but it gave me this error:

Code:
target thumb C: libbacktrace <= system/core/libbacktrace/thread_utils.c
target StaticLib: libziparchive (/home/suzuki/cm13.0/out/target/product/i9300/obj/STATIC_LIBRARIES/libziparchive_intermediates/libziparchive.a)
target SharedLib: libexpat (/home/suzuki/cm13.0/out/target/product/i9300/obj/SHARED_LIBRARIES/libexpat_intermediates/LINKED/libexpat.so)
target thumb C++: libui <= frameworks/native/libs/ui/Fence.cpp
frameworks/base/libs/androidfw/ResourceTypes.cpp: In member function 'android::status_t android::ResStringPool::setTo(const void*, size_t, bool)':
frameworks/base/libs/androidfw/ResourceTypes.cpp:571:28: error: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Werror=parentheses]
                 (!mHeader->flags&ResStringPool_header::UTF8_FLAG &&
                            ^
cc1plus: all warnings being treated as errors
make: *** [/home/suzuki/cm13.0/out/target/product/i9300/obj/SHARED_LIBRARIES/libandroidfw_intermediates/ResourceTypes.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/suzuki/cm13.0'

coul'd someone help me out with it? Thanks in advance :)
Edit: all i need is the files i need to change to make the toolchain work , i don't care how many they are :)
 
Last edited:
  • Like
Reactions: duttyend

rpdroky

Senior Member
Nov 13, 2014
710
1,683
ok , so i found out that the error is in android_frameworks_base/libs/androidfw/ResourceTypes.cpp in the line
Code:
        if ((mHeader->flags&ResStringPool_header::UTF8_FLAG &&
                ((uint8_t*)mStrings)[mStringPoolSize-1] != 0) ||
                (!mHeader->flags&ResStringPool_header::UTF8_FLAG &&
                ((uint16_t*)mStrings)[mStringPoolSize-1] != 0)) {
            ALOGW("Bad string block: last string is not 0-terminated\n");
            return (mError=BAD_TYPE);
can someone tell me how to fix it? thx in advance
 
  • Like
Reactions: duttyend

rpdroky

Senior Member
Nov 13, 2014
710
1,683
Hello! I'm not much of a ROM Developer (I can only basically merge ROM sources and device-tree) but here's the original source code from AOSP, it might help :):
https://android.googlesource.com/platform/frameworks/base/+/master/libs/androidfw/ResourceTypes.cpp

Line 561 onwards is where your error is
Hope I helped and again, I'm not a professional developer so don't expect too much from me :D

Well it is the same line CM has to , but thanks anyway for trying at last :)
 

rpdroky

Senior Member
Nov 13, 2014
710
1,683
Most of the rom is compiling now by cherry-picking this , this and this, but now i'm stuck to this error
Code:
[COLOR="Green"]target SharedLib:[/COLOR] libhwconverter (/home/rpdroky/cm13.0/out/target/product/i9300/obj/SHARED_LIBRARIES/libhwconverter_intermediates/LINKED/libhwconverter.so)
/home/rpdroky/cm13.0/out/target/product/i9300/obj/SHARED_LIBRARIES/libhwconverter_intermediates/HardwareConverter.o:HardwareConverter.cpp:function HardwareConverter::HardwareConverter(): error: undefined reference to 'SecFimc::create(SecFimc::DEV, SecFimc::MODE, int)'
collect2: error: ld returned 1 exit status
make: *** [/home/rpdroky/cm13.0/out/target/product/i9300/obj/SHARED_LIBRARIES/libhwconverter_intermediates/LINKED/libhwconverter.so] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory `/home/rpdroky/cm13.0'
i guess this is the last one , hopefully someone can help me out with it :)
 
Last edited:

rpdroky

Senior Member
Nov 13, 2014
710
1,683
This is the problematic line is in /hardware/samsung/exynos4/hal/libhwconverter/HardwareConverter.cpp , if you remove this line , the rom will compile but i dont know if there are side efects by removeing it ... :)

Code:
{
    SecFimc* handle_fimc = new SecFimc();
    mSecFimc = (void *)handle_fimc;

    if (handle_fimc->create(SecFimc::DEV_0, SecFimc::MODE_MULTI_BUF, 1) == false)
        bHWconvert_flag = 0;
    else
        bHWconvert_flag = 1;
}

Edit: The camera is force closeing and some apps crash , all the rest works

Cheers :highfive:
 
Last edited:
  • Like
Reactions: duttyend

Ost268

Senior Member
Nov 11, 2014
156
177
39
Iv-Frankivsk
Compile zimage gcc5-6

Compile zimage gcc5-6 n7100 Marshmalow
Build Omni Rom N7100 Marshmallow with ubergcc5.3.1 optimized
 

Attachments

  • zimage_gcc6.0.zip
    3.5 MB · Views: 59
  • zimage_gcc5.2.zip
    6.9 MB · Views: 12
  • zimage_gcc5.3.1.zip
    6.9 MB · Views: 20
Last edited:
  • Like
Reactions: duttyend

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Hy guyz , i'm trying to compile ROM with uber 5.3.1 but it gave me this error:

    Code:
    target thumb C: libbacktrace <= system/core/libbacktrace/thread_utils.c
    target StaticLib: libziparchive (/home/suzuki/cm13.0/out/target/product/i9300/obj/STATIC_LIBRARIES/libziparchive_intermediates/libziparchive.a)
    target SharedLib: libexpat (/home/suzuki/cm13.0/out/target/product/i9300/obj/SHARED_LIBRARIES/libexpat_intermediates/LINKED/libexpat.so)
    target thumb C++: libui <= frameworks/native/libs/ui/Fence.cpp
    frameworks/base/libs/androidfw/ResourceTypes.cpp: In member function 'android::status_t android::ResStringPool::setTo(const void*, size_t, bool)':
    frameworks/base/libs/androidfw/ResourceTypes.cpp:571:28: error: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Werror=parentheses]
                     (!mHeader->flags&ResStringPool_header::UTF8_FLAG &&
                                ^
    cc1plus: all warnings being treated as errors
    make: *** [/home/suzuki/cm13.0/out/target/product/i9300/obj/SHARED_LIBRARIES/libandroidfw_intermediates/ResourceTypes.o] Error 1
    make: *** Waiting for unfinished jobs....
    make: Leaving directory `/home/suzuki/cm13.0'

    coul'd someone help me out with it? Thanks in advance :)
    Edit: all i need is the files i need to change to make the toolchain work , i don't care how many they are :)
    1
    ok , so i found out that the error is in android_frameworks_base/libs/androidfw/ResourceTypes.cpp in the line
    Code:
            if ((mHeader->flags&ResStringPool_header::UTF8_FLAG &&
                    ((uint8_t*)mStrings)[mStringPoolSize-1] != 0) ||
                    (!mHeader->flags&ResStringPool_header::UTF8_FLAG &&
                    ((uint16_t*)mStrings)[mStringPoolSize-1] != 0)) {
                ALOGW("Bad string block: last string is not 0-terminated\n");
                return (mError=BAD_TYPE);
    can someone tell me how to fix it? thx in advance
    1
    This is the problematic line is in /hardware/samsung/exynos4/hal/libhwconverter/HardwareConverter.cpp , if you remove this line , the rom will compile but i dont know if there are side efects by removeing it ... :)

    Code:
    {
        SecFimc* handle_fimc = new SecFimc();
        mSecFimc = (void *)handle_fimc;
    
        if (handle_fimc->create(SecFimc::DEV_0, SecFimc::MODE_MULTI_BUF, 1) == false)
            bHWconvert_flag = 0;
        else
            bHWconvert_flag = 1;
    }

    Edit: The camera is force closeing and some apps crash , all the rest works

    Cheers :highfive:
    1
    Compile zimage gcc5-6

    Compile zimage gcc5-6 n7100 Marshmalow
    Build Omni Rom N7100 Marshmallow with ubergcc5.3.1 optimized
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone