最新消息:20210917 已从crifan.com换到crifan.org

【解答】通过回答crosstool-ng中出现的Use obsolete features是什么含义去阐述解决问题的思路

crosstool-ng crifan 2619浏览 0评论

【问】

crosstool-ng 1.20.0 configuration use obsolete features

这里面的obsolete features  是指哪些?

选和不选有什么区别?

help里面只是简单的介绍下

我不知道 对 交叉编译器有没有影响
比如说我现在 想知道  选择y 和 n 对 交叉编译器有哪些影响 需要去哪个文档里面看?
就是我想知道 如何通过查找资料 能够完成 这些选择的过程

 

【答】
“ 如何通过查找资料 能够完成 这些选择的过程”
基本思路就只是:
1.要么是自己看makefile,一点点分析所涉及到哪些东西
->这样最考验自己的知识面和对于makefile和编译过程的掌握理解程度
2.另外一个通用的办法就是:
google搜索技术资料,然后自己分析研究:
我就是去搜:
crosstool-ng use obsolete features(NEW)
然后找到一些,你所需要的资料:
(1)Andy Pevy – Re: crosstool-NG with GCC V3.X.X

如果选了Use obsolete features,那么就用gcc-3.x.x的gcc,即3.4.6
(2)

crosstool-ng: config/global/ct-behave.in@069f43a215cc

可以看到对应的makefile和config文件的内容:

     5 config OBSOLETE
     6     bool
     7     prompt "Use obsolete features"
     8     help
     9       If you set this to Y, you will be able to select obsolete features.
    10       
    11       Such obsolete features are the use of old kernel headers, old gcc
    12       versions, etc… for which maintaining support in crosstool-NG
    13       would be very costly.
    14       
    15       It does not however mean that the specific feature or version has been
    16       marked obsolete by the upstream team.

很明显说的意思是:
如果选了,就会去用那些,被标记为obsolete的东西,包括旧版本的头文件,gcc等等。
->而具体是哪些,则明显是需要你自己去调研
->比如去搜索整个crosstool-ng的makefile和config文件,找到所有出现obsolete的地方,然后就应该可以分析具体是哪些旧版本的头文件和gcc等内容了。
->linux系统中,学会用find,grep等等工具去搜索即可。
Windows中可以借助于SourceInsight这种工具去搜索即可。

(3)Yann E. MORIN – Re: [crosstool-NG] Design discussion

> The first three options in the first menu aren't immediately useful to a 
> newbie like me:
> 
>   [ ] Use obsolete features
>   [ ] Try features marked as EXPERIMENTAL (NEW)
>   [ ] Debug crosstool-NG (NEW)
> I dunno what your obsolete versions are, I don't know what your experimental 
> options are, and I dunno what debugging crosstool-ng does.  I am not 
> currently qualified to make any decisions about them, because I don't know 
> what they actually control.
> Looking at the help... the "obsolete features" thing seems useless?  We've 
> already got menus to select kernel and gcc versions, this just hides some of 
> those versions?  Why?  (Shouldn't it default to the newest stable version?  
> If it doesn't, shouldn't it be _obvious_ that the newest stable version is 
> probably what you want?)
OK, obsolete means that I can't afford ensuring that they still build.

> Marking old versions "deprecated" might make a certain mount of sense.  
> marking them obsolete and hiding them, but still having them available, less 
> so.

OK, deprecated is much meaningful, I admit to it. Let's set for
s/OBSOLETE/DEPRECATED/, then.

可以看出:

经过上述别人和crosstool-ng的作者Yann E. MORIN的讨论得知:

作者也承认了,实际上此处的obsolete过时的,改为deprecated废弃的(以后就不再(常)用的)会更加符合此处的含义。

->所以,根据此句话的意思,那么实际上此处在搞懂了obsolete会涉及到哪些旧版本的头文件和gcc的话,如果不是特殊需求,那么也就尽量不要再去用那些旧版本的,已经被废弃的版本了。

 

【总结】

以后有其他类似的问题,也可以根据此思路一点点深入探讨,逐步找到解决问题的方法。

上述就是解决问题的思路和具体的实现方法:

先利用已有的东西去尝试帮助分析问题(此处crosstool-ng中已有的是help帮助说明的信息,以及相关的makefile)

其次再去利用搜索引擎搜索别人遇到类似的问题,解释,讨论等,给你正面或侧面的参考,提示,以便于帮助你解决问题:

注:

搜素引擎的话:

google:可以搜到精准的技术点和相关资料;

百度:搜到的更多的都是广告,或者某技术点的浅显的解释

->一般搜索技术资料,很少或者极其少去用百度。一般都是去用google,才能搜索到你真正想要查找的资料,尤其是技术资料

->由于众所周知的原因,google在国内无法访问,所以需要你自己学会翻墙,以便于方便利用google搜素技术资料

->翻墙方面的工具,目前比较好用的有:GoAgent

->如何下载和安装,配置GoAgent,详见教程:

【记录】折腾goagent代理

https://www.crifan.org/play_with_goagent-2/

 

【记录】再次折腾goagent以实现翻墙

https://www.crifan.org/sencond_time_use_goagent_to_unblock_foreign_website/

 

->关于如何利用google搜你要的资料,可参考:

【crifan推荐】利用搜索引擎google帮助你解决问题

https://www.crifan.org/crifan_recommand_utilize_search_engine_google_to_help_you_solve_problem/

转载请注明:在路上 » 【解答】通过回答crosstool-ng中出现的Use obsolete features是什么含义去阐述解决问题的思路

与本文相关的文章

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
93 queries in 0.190 seconds, using 23.65MB memory