Skip to contentSkip to conversation

Compile x86 minnowboard max got error

U-Boot li yuqian 3 participants 4 messages Apr 1, 2015 – May 5, 2015

lore
Share & tools
lore

li yuqian

author
#0 lore raw

Hi All,
i am trying to compile the x86 minnowboard max uboot support followed this link http://git.denx.de/?p=u-boot.git;a=blob;f=doc/README.x86 , but i alway got following error

  CC      net/ping.o
  CC      net/tftp.o
  LD      net/built-in.o
  LD      test/built-in.o
  CC      test/dm/cmd_dm.o
  LD      test/dm/built-in.o
  CC      examples/standalone/stubs.o
  LD      examples/standalone/libstubs.o
  CC      examples/standalone/hello_world.o
  LD      examples/standalone/hello_world

OBJCOPY examples/standalone/hello_world.srec
OBJCOPY examples/standalone/hello_world.bin
LDS u-boot.lds
LD u-boot
arch/x86/lib/built-in.o: In function `__wrap___udivdi3':
/usr/src/u-boot/arch/x86/lib/gcc.c:36: undefined reference to __normal___udivdi3' arch/x86/lib/built-in.o: In function __wrap___umoddi3':
/usr/src/u-boot/arch/x86/lib/gcc.c:38: undefined reference to `__normal___umoddi3'
make: *** [u-boot] Error 1
i used master of git version and also tried v2015.04-rc4 and v2015.04-rc3 same issue, how i can fix it? thank you

#1 lore raw
Quoted 13 lines · li yuqian

Hi All,
i am trying to compile the x86 minnowboard max uboot support followed this link http://git.denx.de/?p=u-boot.git;a=blob;f=doc/README.x86 , but i alway got following error

  CC      net/ping.o
  CC      net/tftp.o
  LD      net/built-in.o
  LD      test/built-in.o
  CC      test/dm/cmd_dm.o
  LD      test/dm/built-in.o
  CC      examples/standalone/stubs.o
  LD      examples/standalone/libstubs.o
  CC      examples/standalone/hello_world.o
  LD      examples/standalone/hello_world
Quoted 11 lines

OBJCOPY examples/standalone/hello_world.srec
OBJCOPY examples/standalone/hello_world.bin
LDS u-boot.lds
LD u-boot
arch/x86/lib/built-in.o: In function `__wrap___udivdi3':
/usr/src/u-boot/arch/x86/lib/gcc.c:36: undefined reference to __normal___udivdi3' arch/x86/lib/built-in.o: In function __wrap___umoddi3':
/usr/src/u-boot/arch/x86/lib/gcc.c:38: undefined reference to `__normal___umoddi3'
make: *** [u-boot] Error 1
i used master of git version and also tried v2015.04-rc4 and v2015.04-rc3 same issue, how i can fix it? thank you

What's the version of gcc that you are using?

Regards,
Bin

author
#2 lore raw

gcc --version shows following:
gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
Copyright (C) 2013 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. Thank you

Quoted 36 lines

Date: Wed, 1 Apr 2015 14:19:50 +0800
Subject: Re: [U-Boot] Compile x86 minnowboard max got error
From: bmeng.cn at gmail.com
To: liyuqian08 at outlook.com
CC: u-boot at lists.denx.de

Quoted 13 lines · li yuqian

Hi All,
i am trying to compile the x86 minnowboard max uboot support followed this link http://git.denx.de/?p=u-boot.git;a=blob;f=doc/README.x86 , but i alway got following error

  CC      net/ping.o
  CC      net/tftp.o
  LD      net/built-in.o
  LD      test/built-in.o
  CC      test/dm/cmd_dm.o
  LD      test/dm/built-in.o
  CC      examples/standalone/stubs.o
  LD      examples/standalone/libstubs.o
  CC      examples/standalone/hello_world.o
  LD      examples/standalone/hello_world
Quoted 11 lines

OBJCOPY examples/standalone/hello_world.srec
OBJCOPY examples/standalone/hello_world.bin
LDS u-boot.lds
LD u-boot
arch/x86/lib/built-in.o: In function `__wrap___udivdi3':
/usr/src/u-boot/arch/x86/lib/gcc.c:36: undefined reference to __normal___udivdi3' arch/x86/lib/built-in.o: In function __wrap___umoddi3':
/usr/src/u-boot/arch/x86/lib/gcc.c:38: undefined reference to `__normal___umoddi3'
make: *** [u-boot] Error 1
i used master of git version and also tried v2015.04-rc4 and v2015.04-rc3 same issue, how i can fix it? thank you

What's the version of gcc that you are using?

Regards,
Bin

#3 lore raw

Hi Li,

Quoted 5 lines · li yuqian

gcc --version shows following:
gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
Copyright (C) 2013 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.

I'm not sure if you've already solved this issue, but I ran into the same problem on my Debian 7 machine. The solution was to install the libc6-dev-i386 package.

I thought I'd respond as I found this thread via searching google and others might find it that way, too, so it's worth having a solution response.

Thanks,
Andrew

Quoted 42 lines
Quoted 32 lines

Date: Wed, 1 Apr 2015 14:19:50 +0800
Subject: Re: [U-Boot] Compile x86 minnowboard max got error
From: bmeng.cn at gmail.com
To: liyuqian08 at outlook.com
CC: u-boot at lists.denx.de

Quoted 13 lines · li yuqian

Hi All,
i am trying to compile the x86 minnowboard max uboot support followed this link http://git.denx.de/?p=u-boot.git;a=blob;f=doc/README.x86 , but i alway got following error

  CC      net/ping.o
  CC      net/tftp.o
  LD      net/built-in.o
  LD      test/built-in.o
  CC      test/dm/cmd_dm.o
  LD      test/dm/built-in.o
  CC      examples/standalone/stubs.o
  LD      examples/standalone/libstubs.o
  CC      examples/standalone/hello_world.o
  LD      examples/standalone/hello_world
Quoted 11 lines

OBJCOPY examples/standalone/hello_world.srec
OBJCOPY examples/standalone/hello_world.bin
LDS u-boot.lds
LD u-boot
arch/x86/lib/built-in.o: In function `__wrap___udivdi3':
/usr/src/u-boot/arch/x86/lib/gcc.c:36: undefined reference to __normal___udivdi3' arch/x86/lib/built-in.o: In function __wrap___umoddi3':
/usr/src/u-boot/arch/x86/lib/gcc.c:38: undefined reference to `__normal___umoddi3'
make: *** [u-boot] Error 1
i used master of git version and also tried v2015.04-rc4 and v2015.04-rc3 same issue, how i can fix it? thank you

Quoted 4 lines

What's the version of gcc that you are using?

Regards,
Bin

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot