请选择 进入手机版 | 继续访问电脑版
论坛
登录 | 立即注册 设为首页收藏本站 切换到宽版
查看: 123|回复: 1

JSON例程,编译时出现一堆can't find .debug_ranges section

[复制链接]

4

主题

5

帖子

61

积分

注册会员

Rank: 2

积分
61
发表于 2018-10-24 09:35:44 | 显示全部楼层 |阅读模式
环境:win10 家庭版 64位
CSDTK42
GPRS_C_SDK_V2112.7z

JSON例程是github里面的demo下载下来的,编译时出现一堆错误,但是,也正常生成HEX文件,烧录后,也是可以运行的。
请问是什么问题呢?
//---------------------------------------------------------------------------------------------------------------------------------
以下是错误信息

PS C:\CSDTK42\GPRS_C_SDK> ./build.bat demo json
CSDTK PATH: C:\CSDTK42
build folder exist
number of processors: 8
Build host is WINDOWS

MAKE              init

MAKE              libs

MAKE              demo/json


LDGEN  by csdk    cust.ld
LD                json.elf
ElfCombine        Elf binary & map file

GEN               stripped (rm syms) elf file json.elf
hex/json/json.elf: In function `cJSON_Delete':
C:\CSDTK42\GPRS_C_SDK\demo\json/src/cJSON.c:232: multiple definition of `cJSON_Delete'
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.


mips-elf-ld.exe: Dwarf Error: Can't find .debug_ranges section.
hex/json/SW_V2112_csdk.elf:E:\main\projects\RDA_GPRS\GPRS-C-SDK-SRC\platform\service\net\json/src/./cJSON/cJSON.c:219: first defined here
Cannot merge elf

CP                AUDIO CFP FILE......
AUDIO CFG         No audio cfp file
SREC              json.srec for flash/romulator

LODTOBIN  C:/CSDTK42/GPRS_C_SDK/hex/json/json_flash.lod
LODTOBIN          Sucessful
LODCOMBINE        Combine user lod with Platform lod
LODCOMBINE        Combine sucessful

-------------------------------------------------
ROM    total:1048576 Bytes     used:5520 Bytes
RAM    total:1048576 Bytes     used:32 Bytes
=================================================
Start Time : 09:26:19.42
End   Time : 09:26:29.91
Build Time : 10.49s
=================================================
PS C:\CSDTK42\GPRS_C_SDK>



回复

使用道具 举报

4

主题

5

帖子

61

积分

注册会员

Rank: 2

积分
61
 楼主| 发表于 2018-10-24 10:48:03 | 显示全部楼层
把SDK升级到v2.124版本后,问题解决了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|安信可论坛    

GMT+8, 2018-12-16 15:46 , Processed in 0.023338 second(s), 12 queries , Redis On.

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表