[英]problems compiling TCC on ubuntu for arm
I tried to compile tcc for ARM using gcc 4.6.3 . 我尝试使用gcc 4.6.3为ARM编译tcc。 but I got following error while compiling in both shared/static lib mod :
但是在共享/静态lib mod中编译时出现以下错误:
root@localhost:/p/tcc/tcc# make
gcc -o tcc tcc.o libtcc.so.1.0 -lm -ldl -Wall -g -O2 -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -D_FORTIFY_SOURCE=0 -Wl,-rpath,"/usr/local/lib" libtcc.so.1.0: undefined reference to `vrotb'
collect2: ld returned 1 exit status
make: *** [tcc] Error 1
I am using lastest branch from tcc github 我正在使用来自tcc github的最新分支
Just checked it on raspberry pi (ARMv6 CPU). 只需在树莓派(ARMv6 CPU)上进行检查。 https://github.com/TinyCC/TinyCC repository, removed
static
qualifier from vrotb
function in tccgen.c (line 945). https://github.com/TinyCC/TinyCC存储库,从
vrotb
函数中删除了static
限定符(第945行)。 It builds and passes 'hello world'. 它建立并通过了“ hello world”。
Since that's obvious mistake likely to be introduced by some change that they forgot to adapt for ARM - i suggest performing further tests to ensure it works as intended. 由于这是一个明显的错误,很可能是由于他们忘记适应ARM而进行了一些更改而引入的-我建议执行进一步的测试以确保其按预期工作。 Bug report should be filed - probably on github.
错误报告应该归档-可能在github上。
I know it is little confusing, but your problem is that you are using wrong repository. 我知道这有点令人困惑,但是您的问题是您使用了错误的存储库。 Fabrice Bellard does not work any more on TinyCC (see http://bellard.org/tcc/ ).
Fabrice Bellard在TinyCC上不再起作用(请参阅http://bellard.org/tcc/ )。 He keeps his repositories for personal/historical reasons.
他出于个人/历史原因保留自己的存储库。 However all development has moved to http://repo.or.cz/w/tinycc.git .
但是,所有开发都转移到了http://repo.or.cz/w/tinycc.git 。 To confuse things even more the 0.9.26 release from Fabrice's web site is actually from the http://repo.or.cz/w/tinycc.git repository, and not Fabrice's own.
令Fabrice网站上的0.9.26版本更加令人困惑的是,实际上来自http://repo.or.cz/w/tinycc.git存储库,而不是Fabrice自己的。 But this is all just communication issue.
但这仅仅是通信问题。 In short you should use new repository.
简而言之,您应该使用新的存储库。 On the repository web site is a link to a mailing list where you should report any problems in case the new repo code does not compile.
在存储库网站上,有一个指向邮件列表的链接,如果新的回购代码无法编译,您应该在其中报告任何问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.