i have updated gcc version 4.6 5.4. clear, have both versions using sudo update-alternatives --config g++ switch between versions.
vies7605@eso9265:~/projects/u-boot/u-boot-x86$ sudo update-alternatives --config g++ there 2 choices 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 keep current choice[*], or type selection number: vies7605@eso9265:~/projects/u-boot/u-boot-x86$ sudo update-alternatives --config gcc there 2 choices 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
i building u-boot source code(latest git version x86), gcc compiler. when using version 4.6 build fine. when use gcc version 5.4 build fails error message,
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 `__normal___udivdi3' make: *** [u-boot] error 1
i not sure why happening, on topic helpful.
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. free software; see source copying conditions. there no warranty; not merchantability or fitness particular purpose.
it seems not have config_use_private_libgcc set.
Comments
Post a Comment