Bug 74 - gmp-native_4.2.1.bb aborts
Summary: gmp-native_4.2.1.bb aborts
Status: RESOLVED OBSOLETE
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: unspecified
Hardware: x86 x86
: medium normal
Target Milestone: ---
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2009-03-10 17:00 UTC by aga
Modified: 2010-12-21 06:07 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aga 2009-03-10 17:00:52 UTC
Just dipping my toe in here!

For my initial try, I ran bitbake less.  It fails as follows:-

ERROR: Task 191 (/home/aga/poky/pinky-3.1/meta/packages/gmp/gmp-native_4.2.1.bb, do_compile) failed

The log gets to here before multiple similar errors show:-

scanf/.libs/vfscanf.o scanf/.libs/vscanf.o scanf/.libs/vsscanf.o  -L/home/aga/poky/pinky-3.1/build/tmp/staging/x86_64-linux/usr/lib  -Wl,-rpath-link -Wl,/home/aga/poky/pinky-3.1/build/tmp/staging/x86_64-linux/usr/lib -Wl,-rpath -Wl,/home/aga/poky/pinky-3.1/build/tmp/staging/x86_64-linux/usr/lib -Wl,-O1 -Wl,-soname -Wl,libgmp.so.3 -o .libs/libgmp.so.3.4.1
.libs/compat.o: In function `__gmpz_fits_uint_p':
compat.c:(.text+0x0): multiple definition of `__gmpz_fits_uint_p'
.libs/assert.o:assert.c:(.text+0x0): first defined here
.libs/compat.o: In function `__gmpz_fits_ulong_p':
compat.c:(.text+0x30): multiple definition of `__gmpz_fits_ulong_p'
.libs/assert.o:assert.c:(.text+0x30): first defined here.........

Don't know enough to debug yet.  Hope you can help.

TIA.

aga
Comment 1 Daniele Venzano 2009-05-06 07:41:21 UTC
I've been hit by the same bug with Poky 3.1.1
Comment 2 Daniele Venzano 2009-05-06 07:52:22 UTC
With the following workaround:

#ls -l /usr/bin/gcc
  /usr/bin/gcc -> /usr/bin/gcc-4.3

#sudo ln -sf /usr/bin/gcc-4.2 /usr/bin/gcc

found here:
http://www.nabble.com/OE-Build-Problems-td19588415.html

It prints some warnings when compiling:
../gmp.h:1637: warning: C99 inline functions are not supported; using GNU89

but completes.
Comment 3 Richard Purdie 2009-07-31 17:53:29 UTC
gmp has been upgraded to version 4.2.4 which should have fixes in to work better with gcc 4.x versions. If problems still exist please open a new bug against that version with an updated error message.