On 01.07.2011 09:22, Koen Kooi wrote:
> 
> Op 1 jul 2011, om 08:57 heeft Steffen Sledz het volgende geschreven:
> 
>> On 01.07.2011 08:49, Koen Kooi wrote:
>>>
>>> Op 27 jun 2011, om 17:43 heeft Steffen Sledz het volgende geschreven:
>>>
>>>> I tried to make an Ångström build using the oebb.sh from the oe-core 
>>>> branch following the instructions in [1] (hope they are valid for this 
>>>> branch too).
>>>>
>>>> MACHINE=beagleboard ./oebb.sh config beagleboard
>>>> MACHINE=beagleboard ./oebb.sh update
>>>>
>>>> made no problems, but
>>>>
>>>> MACHINE=beagleboard ./oebb.sh bitbake virtual/kernel
>>>>
>>>> resulted in this error
>>>>
>>>> ---------->snip<---------------
>>>> Executing: MACHINE=beagleboard bitbake virtual/kernel
>>>> Pseudo is not present but is required, building this first before the main 
>>>> build
>>>> ERROR: Execution of event handler 'check_sanity_eventhandler' failed
>>>> ERROR:  Poky's config sanity checker detected a potential misconfiguration.
>>>>   Either fix the cause of this error or at your own risk disable the 
>>>> checker (see sanity.conf).
>>>>   Following is the list of potential problems / advisories:
>>>>
>>>>   You have a 32-bit libc, but no 32-bit headers.  You must install the 
>>>> 32-bit libc headers.
>>>> ---------->snip<---------------
>>>>
>>>> I suppose that the library structure openSUSE is using (/usr/lib for 32bit 
>>>> stuff, /usr/lib64 for 64bit stuff) is the cause. Right? And how can this 
>>>> be fixed?
>>>
>>> As the message says: "You must install the 32-bit libc headers."
>>
>> Just for my understanding, what are they used for?
>>
>> In my opinion the tools running at the build host (compiler, cross-compiler, 
>> ..) should be 64-bit apps. 
> 
> If so, why do you have a 32bit libc installed then? If you have 32bit libs 
> installed, you need 32bit headers as well.

They are installed in openSUSE by default (e.g. by patterns-openSUSE-base) to 
enable the execution of 32bit binaries.

And installing the 32bit headers does not really help. :(

------------------------------>snip<---------------------------------
| gcc 
-isystem/home/sledz/work/angstrom-setup-scripts-oe-core/build/tmp-angstrom_2010_x-eglibc/sysroots/x86_64-linux/usr/include
 -O2 -pipe -pipe -std=gnu99 -Wall -W -Wextra -fPIC -D_LARGEFILE64_SOURCE 
-D_ATFILE_SOURCE -m32 
-DPSEUDO_PREFIX='"/home/sledz/work/angstrom-setup-scripts-oe-core/build/tmp-angstrom_2010_x-eglibc/sysroots/x86_64-linux/usr"'
 -DPSEUDO_SUFFIX='""' -DPSEUDO_BINDIR='"bin"' 
-DPSEUDO_LIBDIR='"lib/pseudo/lib"' -DPSEUDO_LOCALSTATEDIR='"var/pseudo"' 
-DPSEUDO_VERSION='"1.1.1"' -O2 -g 
-L/home/sledz/work/angstrom-setup-scripts-oe-core/build/tmp-angstrom_2010_x-eglibc/sysroots/x86_64-linux/usr/lib
 
-I/home/sledz/work/angstrom-setup-scripts-oe-core/build/tmp-angstrom_2010_x-eglibc/sysroots/x86_64-linux/usr/include
 
-Wl,-R/home/sledz/work/angstrom-setup-scripts-oe-core/build/tmp-angstrom_2010_x-eglibc/sysroots/x86_64-linux/usr/lib
 -shared -o lib/pseudo/lib/libpseudo.so \
|       pseudo_client.o pseudo_ipc.o \
|       pseudo_wrappers.o pseudo_tables.o pseudo_util.o -ldl -lpthread
| /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: 
skipping incompatible /usr/lib64/gcc/x86_64-suse-linux/4.5/libgcc.a when 
searching for -lgcc
| /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: 
cannot find -lgcc
| /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: 
skipping incompatible /usr/lib64/gcc/x86_64-suse-linux/4.5/libgcc_s.so when 
searching for -lgcc_s
| /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: 
cannot find -lgcc_s
| collect2: ld returned 1 exit status
| make: *** [lib/pseudo/lib/libpseudo.so] Error 1
| + die 'oe_runmake failed'
| + bbfatal 'oe_runmake failed'
| + echo 'ERROR: oe_runmake failed'
| ERROR: Function 'do_compile' failed (see 
/home/sledz/work/angstrom-setup-scripts-oe-core/build/tmp-angstrom_2010_x-eglibc/work/x86_64-linux/pseudo-native-1.1.1-r1/temp/log.do_compile.16846
 for further information)
------------------------------>snip<---------------------------------

I guess the problem comes from the directory layout openSUSE is using as i 
mentioned above (/usr/lib64 for 64bit libs, /usr/lib for additional 32bit 
libs). So the default path for the host libs on an 64bit system is /usr/lib64 
and *not* /usr/lib.

Steffen

-- 
DResearch Fahrzeugelektronik GmbH
Otto-Schmirgal-Str. 3, 10319 Berlin, Germany
Tel: +49 30 515932-237 mailto:sl...@dresearch-fe.de
Fax: +49 30 515932-299
Geschäftsführer: Dr. Michael Weber, Werner Mögle;
Amtsgericht Berlin Charlottenburg; HRB 130120 B;
Ust.-IDNr. DE273952058

_______________________________________________
Angstrom-distro-devel mailing list
Angstrom-distro-devel@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-devel

Reply via email to