All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [yocto] Standard library header bug when compiling x32 application
       [not found] <165692F8157BFD16.5057@lists.yoctoproject.org>
@ 2021-01-03 18:54 ` Paul D. DeRocco
  0 siblings, 0 replies; only message in thread
From: Paul D. DeRocco @ 2021-01-03 18:54 UTC (permalink / raw)
  To: yocto

> From: Paul D. DeRocco
> 
> Using Yocto 3.2.1 on an Intel target, trying to use the x32 model. I'm
> getting this compile error when I use the SDK to separately compile my
> application. I get no such errors when I build Linux, or the SDK.
> 
> In file included from
>
/opt/poky/3.2.1/i64/sysroots/core2-64-poky-linux/usr/include/sys/cdefs.h:453
> ,
>                  from
>
/opt/poky/3.2.1/i64/sysroots/core2-64-poky-linux/usr/include/features.h:465,
>                  from
> /opt/poky/3.2.1/i64/sysroots/core2-64-poky-linux/usr/include/dirent.h:25,
>                  from ../my_header_file.h:7,
>                  from ../my_source_file.cpp:3:
>
/opt/poky/3.2.1/i64/sysroots/core2-64-poky-linux/usr/include/bits/long-doubl
> e.h:23:10: fatal error: bits/long-double-32.h: No such file 
> or directory

etc., etc.

I solved this myself by building an SDK specific to the x32 configuration,
rather than trying to use the plain 64-bit SDK. What led me to believe that
the 64-bit SDK should work is that the host sysroot includes
/usr/bin/x86_64-poky-linux and /usr/bin/x86_64-poky-linux-gnux32
subdirectories. The latter contains symlinks into the former, which is no
surprise, since one toolchain should be able to do 32, 64, and 64x32, but
the target sysroot include files don't quite work. The only reason I care is
that each SDK is about 2.4GB. So I'm not sure if this is a bug, or whose bug
it is, but 2.4GB seems awfully large for an SDK, especially since this is
the standard SDK, not the ESDK.

-- 

Ciao,               Paul D. DeRocco
Paul                mailto:pderocco@ix.netcom.com


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-03 18:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <165692F8157BFD16.5057@lists.yoctoproject.org>
2021-01-03 18:54 ` [yocto] Standard library header bug when compiling x32 application Paul D. DeRocco

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.