Gccv5.4未定义对“正常”udivdi3和x27的引用;

Gccv5.4未定义对“正常”udivdi3和x27的引用;,gcc,u-boot,Gcc,U Boot,我已经将gcc从版本4.6更新为5.4。要明确的是,我有两个版本,我正在使用sudo更新替代方案--config g++在两个版本之间切换 vies7605@eso9265:~/Projects/u-boot/u-boot-x86$ sudo update-alternatives --config g++ There are 2 choices for the alternative g++ (providing /usr/bin/g++). Selection Path

我已经将gcc从版本4.6更新为5.4。要明确的是,我有两个版本,我正在使用sudo更新替代方案--config g++在两个版本之间切换

vies7605@eso9265:~/Projects/u-boot/u-boot-x86$ sudo update-alternatives --config g++
There are 2 choices for the alternative g++ (providing /usr/bin/g++).

  Selection    Path              Priority   Status
------------------------------------------------------------
  0            /usr/bin/g++-4.6   20        auto mode
  1            /usr/bin/g++-4.6   20        manual mode
* 2            /usr/bin/g++-5     20        manual mode

Press enter to keep the current choice[*], or type selection number: 

vies7605@eso9265:~/Projects/u-boot/u-boot-x86$ sudo update-alternatives --config gcc
There are 2 choices for the alternative gcc (providing /usr/bin/gcc).

  Selection    Path              Priority   Status
------------------------------------------------------------
  0            /usr/bin/gcc-4.6   20        auto mode
  1            /usr/bin/gcc-4.6   20        manual mode
* 2            /usr/bin/gcc-5     20        manual mode
我正在使用gcc编译器构建u-boot源代码(最新的git版本x86)。当我使用版本4.6时,构建是很好的。 但是当我使用gcc版本5.4时,构建失败并显示错误消息

arch/x86/lib/built-in.o: In function `__wrap___udivdi3':
/home/vies7605/Projects/u-boot/u-boot-x86/arch/x86/lib/gcc.c:25: undefined reference to `__normal___udivdi3'
make: *** [u-boot] Error 1
我不知道为什么会发生这种情况,在这个话题上的任何帮助都会有帮助

vies7605@eso9265:~/Projects/u-boot/u-boot-x86$ gcc --version
gcc (Ubuntu 5.4.0-3ubuntu1~12.04) 5.4.0 20160603
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

似乎您没有配置\u使用\u私有\u LIBGCC集。

似乎您没有配置\u使用\u私有\u LIBGCC集。

问题是我的笔记本电脑是64位系统,u-boot是以32位模式为Minnowboard目标(x86)构建的

安装gcc的多库版本解决了这个问题

sudo apt-get install gcc-6-multilib g++-6-multilib 
sudo apt-get install gcc-5-multilib g++-5-multilib 

问题是我的笔记本电脑是64位系统,u-boot是为Minnowboard target(x86)构建的32位模式

安装gcc的多库版本解决了这个问题

sudo apt-get install gcc-6-multilib g++-6-multilib 
sudo apt-get install gcc-5-multilib g++-5-multilib 

否。它在配置文件中启用。/configs/minnowmax\u defconfig:config\u USE\u PRIVATE\u LIBGCC=yOK,很有趣。您使用的是什么版本的U-Boot?我构建了所有x86,但几乎每天都使用gcc-5.3而不是5.4。使用gcc-4.6的构建很好,但使用gcc-5.4的构建正在崩溃,u-boot是v2016.07-rc1-271-G9F82361否。它在配置文件中启用。/configs/minnowmax\u defconfig:config\u USE\u PRIVATE\u LIBGCC=yOK,很有趣。您使用的是什么版本的U-Boot?我构建了所有x86,但几乎每天都使用gcc-5.3而不是5.4。使用gcc-4.6的构建很好,但使用gcc-5.4的构建正在崩溃,u-boot是v2016.07-rc1-271-g9f82361