Bug 20733 - Failed to build aarch64_be-linux-gnu GDBserver
Summary: Failed to build aarch64_be-linux-gnu GDBserver
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: server (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: 7.12.1
Assignee: Yao Qi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-24 10:01 UTC by Yao Qi
Modified: 2016-10-24 11:01 UTC (History)
0 users

See Also:
Host: aarch64_be-linux-gnu
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yao Qi 2016-10-24 10:01:50 UTC
I see the following fail if I build GDBserver for aarch64_be-linux-gnu,


git/gdb/gdbserver/linux-aarch64-low.c:1539:39: error: invalid conversion from 'void*' to 'uint32_t* {aka unsigned int*}' [-fpermissive]
       uint32_t *le_buf = xmalloc (byte_len);
Comment 1 Yao Qi 2016-10-24 10:03:06 UTC
I'll give a fix.
Comment 2 Sourceware Commits 2016-10-24 10:18:49 UTC
The master branch has been updated by Yao Qi <qiyao@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=cb93dc7f262978bafe36397a41a56e409a302042

commit cb93dc7f262978bafe36397a41a56e409a302042
Author: Yao Qi <yao.qi@linaro.org>
Date:   Mon Oct 24 10:59:11 2016 +0100

    [GDBserver] Fix conversion warning
    
    I got the following warning if I build GDBserver for aarch64_be-linux-gnu,
    
    git/gdb/gdbserver/linux-aarch64-low.c:1539:39: error: invalid conversion from 'void*' to 'uint32_t* {aka unsigned int*}' [-fpermissive]
       uint32_t *le_buf = xmalloc (byte_len);
                                           ^
    The patch is to fix the warning.
    
    gdb/gdbserver:
    
    2016-10-24  Yao Qi  <yao.qi@linaro.org>
    
    	PR server/20733
    	* linux-aarch64-low.c (append_insns): Cast the return value to
    	'uint32_t *'.
Comment 3 Sourceware Commits 2016-10-24 10:59:27 UTC
The gdb-7.12-branch branch has been updated by Yao Qi <qiyao@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a945860b6cb4f8a26343ac5dcb0b42fe5fb2f68a

commit a945860b6cb4f8a26343ac5dcb0b42fe5fb2f68a
Author: Yao Qi <yao.qi@linaro.org>
Date:   Mon Oct 24 10:59:11 2016 +0100

    [GDBserver] Fix conversion warning
    
    I got the following warning if I build GDBserver for aarch64_be-linux-gnu,
    
    git/gdb/gdbserver/linux-aarch64-low.c:1539:39: error: invalid conversion from 'void*' to 'uint32_t* {aka unsigned int*}' [-fpermissive]
       uint32_t *le_buf = xmalloc (byte_len);
                                           ^
    The patch is to fix the warning.
    
    gdb/gdbserver:
    
    2016-10-24  Yao Qi  <yao.qi@linaro.org>
    
    	PR server/20733
    	* linux-aarch64-low.c (append_insns): Cast the return value to
    	'uint32_t *'.
Comment 4 Yao Qi 2016-10-24 11:01:04 UTC
Fixed.