ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #02871
Re: Fail to build m7tmo (T-Mobile HTC One)
I replaced both display and display-caf with cm-10.1 versions, but now I
get this error:
In file included from
hardware/qcom/display-caf/libexternal/external.cpp:31:0:
/home/thomasjohnarouge/Documents/ubuntu_touch_porting/out/target/product/m7tmo/obj/KERNEL_OBJ/usr/include/video/msm_hdmi_modes.h:
In function 'void MSM_HDMI_MODES_INIT_TIMINGS(msm_hdmi_mode_timing_info*)':
/home/thomasjohnarouge/Documents/ubuntu_touch_porting/out/target/product/m7tmo/obj/KERNEL_OBJ/usr/include/video/msm_hdmi_modes.h:214:43:
error: narrowing conversion of 'i' from 'int' to 'uint32_t {aka unsigned
int}' inside { } is ill-formed in C++11 [-Werror=narrowing]Import includes
file:
/home/thomasjohnarouge/Documents/ubuntu_touch_porting/out/target/product/m7tmo/obj/SHARED_LIBRARIES/copybit.msm8960_intermediates/import_includes
target thumb C++: libmemalloc <=
hardware/qcom/display-caf/libgralloc/ionalloc.cpp
target thumb C++: libmemalloc <=
hardware/qcom/display-caf/libgralloc/alloc_controller.cpp
target thumb C++: audio_policy.msm8960 <=
hardware/qcom/audio-caf/alsa_sound/AudioPolicyManagerALSA.cpp
target thumb C++: copybit.msm8960 <=
hardware/qcom/display-caf/libcopybit/copybit_c2d.cpp
target thumb C++: copybit.msm8960 <=
hardware/qcom/display-caf/libcopybit/software_converter.cpp
cc1plus: all warnings being treated as errors
make: ***
[/home/thomasjohnarouge/Documents/ubuntu_touch_porting/out/target/product/m7tmo/obj/SHARED_LIBRARIES/libexternal_intermediates/external.o]
Error 1
make: *** Waiting for unfinished jobs....
Link to log:
https://docs.google.com/file/d/0B6WIIp8JmreZVHEwVnNRSWszSlk/edit?usp=sharing
On Sat, Jul 13, 2013 at 7:57 PM, David Hacker <davidhackerdvm@xxxxxxxxx>
wrote:
> Try using cm's cm-10.1 branch of hardware/qcom/display
> On Jul 13, 2013 8:55 PM, "Thomas Arouge" <thomasjohnarouge@xxxxxxxxx>
> wrote:
>
>> When I comment out the parts you told me too. I still had the same error
>> but when I commented out
>> "frameworks/base/nfc-extras/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml
>> \" (under Permissions) the error no longer appears. But now... I have
>> another error.
>> make: ***
>> [/home/thomasjohnarouge/Documents/ubuntu_touch_porting/out/target/product/m7tmo/obj/SHARED_LIBRARIES/libexternal_intermediates/external.o]
>> Error 1
>>
>> Link to log:
>> https://docs.google.com/file/d/0B6WIIp8JmreZeGNTNEg1NlhPVTA/edit?usp=sharing
>> (The log is very long)
>>
>> Thank you for helping me out so far. I really appreciate your help!
>>
>> On Sat, Jul 13, 2013 at 8:17 AM, András Mamenyák <mamenyaka@xxxxxxxxx>
>> wrote:
>>
>>> In m7-common/m7-common.mk comment out:
>>>
>>> # NFC
>>> PRODUCT_PACKAGES += \
>>> nfc.msm8960 \
>>> libnfc \
>>> libnfc_ndef \
>>> libnfc_jni \ <-remove "\"
>>> Nfc \ <-this
>>> Tag \ <-this
>>> com.android.nfc_extras <-this
>>>
>>> and all of this:
>>>
>>> # Misc Packages
>>> PRODUCT_PACKAGES += \
>>> DeviceSettings \
>>> Torch
>>>
>>> I commented it out and I no longer get the error, however, I now get
>>>> this message:
>>>>
>>>> make: *** No rule to make target
>>>> `frameworks/base/nfc-extras/com.android.nfc_extras.xml', needed by
>>>> `/home/thomasjohnarouge/Documents/ubuntu_touch_porting/out/target/product/m7tmo/system/etc/permissions/com.android.nfc_extras.xml'.
>>>> Stop.
>>>>
>>>
>>>
>>
>> --
>> Mailing list: https://launchpad.net/~ubuntu-phone
>> Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~ubuntu-phone
>> More help : https://help.launchpad.net/ListHelp
>>
>>
On Sun, Jul 14, 2013 at 3:23 AM, András Mamenyák <mamenyaka@xxxxxxxxx>wrote:
> This is great, I had the same error and was talking about it here on the
> mailing list. When you have this kind of error (Error 1), you need to look
> a little bit into the output, because the real error is some lines before.
> Look:
>
> hardware/qcom/display-caf/libexternal/external.cpp: In member function
> 'bool qhwc::ExternalDisplay::post()':
> hardware/qcom/display-caf/libexternal/external.cpp:693:24: error:
> 'MDP_DISPLAY_COMMIT_OVERLAY' was not declared in this scope
> make: ***
> [/home/thomasjohnarouge/Documents/ubuntu_touch_porting/out/target/product/m7tmo/obj/SHARED_LIBRARIES/libexternal_intermediates/external.o]
> Error 1
>
> The easy solution that I did here was to edit .repo/manifest.xml:
>
> <project path="hardware/qcom/display-caf"
> name="CyanogenMod/android_hardware_qcom_display-caf" remote="github"
> revision="cm-10.1" />
>
> And then just to make sure, in hardware/qcom/display-caf:
> $ git checkout cm-10.1
>
>
> On Sun, Jul 14, 2013 at 3:54 AM, Thomas Arouge <thomasjohnarouge@xxxxxxxxx
> > wrote:
>
>> When I comment out the parts you told me too. I still had the same error
>> but when I commented out
>> "frameworks/base/nfc-extras/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml
>> \" (under Permissions) the error no longer appears. But now... I have
>> another error.
>> make: ***
>> [/home/thomasjohnarouge/Documents/ubuntu_touch_porting/out/target/product/m7tmo/obj/SHARED_LIBRARIES/libexternal_intermediates/external.o]
>> Error 1
>>
>> Link to log:
>> https://docs.google.com/file/d/0B6WIIp8JmreZeGNTNEg1NlhPVTA/edit?usp=sharing
>> (The log is very long)
>>
>> Thank you for helping me out so far. I really appreciate your help!
>>
>>
>> On Sat, Jul 13, 2013 at 8:17 AM, András Mamenyák <mamenyaka@xxxxxxxxx>wrote:
>>
>>> In m7-common/m7-common.mk comment out:
>>>
>>> # NFC
>>> PRODUCT_PACKAGES += \
>>> nfc.msm8960 \
>>> libnfc \
>>> libnfc_ndef \
>>> libnfc_jni \ <-remove "\"
>>> Nfc \ <-this
>>> Tag \ <-this
>>> com.android.nfc_extras <-this
>>>
>>> and all of this:
>>>
>>> # Misc Packages
>>> PRODUCT_PACKAGES += \
>>> DeviceSettings \
>>> Torch
>>>
>>> I commented it out and I no longer get the error, however, I now get
>>>> this message:
>>>>
>>>> make: *** No rule to make target
>>>> `frameworks/base/nfc-extras/com.android.nfc_extras.xml', needed by
>>>> `/home/thomasjohnarouge/Documents/ubuntu_touch_porting/out/target/product/m7tmo/system/etc/permissions/com.android.nfc_extras.xml'.
>>>> Stop.
>>>>
>>>
>>>
>>
>
References