All of lore.kernel.org
 help / color / mirror / Atom feed
* Problems adding OpenMP to the cross-toolchain installer
@ 2018-05-22 21:59 Kaushik Datta
  0 siblings, 0 replies; only message in thread
From: Kaushik Datta @ 2018-05-22 21:59 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1718 bytes --]

Hello Yocto Project,

I’m having problems adding OpenMP headers/libraries to the SDK that is installed by the Yocto-generated cross-toolchain installer.  Here are the steps that I currently take to add both the dynamic and static OpenMP libraries:


  1.  I downloaded the poky distribution of Yocto (pyro branch).
  2.  In order to generate a toolchain installer for the zcu102-zynqmp machine, I also added the “meta-xilinx” layer, using the pyro branch for this as well.
  3.  At the end of the conf/local.conf file, I added the following:
MACHINE = "zcu102-zynqmp"
IMAGE_INSTALL_append = " libgomp libgomp-dev libgomp-staticdev glibc-staticdev"
SDKIMAGE_FEATURES += " dev-pkgs dbg-pkgs staticdev-pkgs"

  1.  I generated the toolchain installer with the command: “bitbake meta-toolchain”
  2.  I ran the toolchain installer (tmp/deploy/sdk/poky-glibc-x86_64-meta-toolchain-aarch64-toolchain-2.3.4.sh) .

During the build, there are OMP library/header files created in the build directory (under tmp/work/aarch64-poky-linux/).  However, after the toolchain installer is generated and run, the installed SDK directory only includes the following OpenMP library:
sysroots/aarch64-poky-linux/usr/lib/.debug/libgomp.so.1.0.0

The problem is that there are no OpenMP header files nor static OpenMP library files in the SDK directory, so OpenMP code can’t be compiled dynamically or statically.

I want the toolchain installer to install both the dynamic and static OpenMP libraries and corresponding header files in the appropriate paths under the SDK directory.

Any help with this would be appreciated.  Please let me know if you’d like further clarification.

Thanks,
Kaushik


[-- Attachment #2: Type: text/html, Size: 6283 bytes --]

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

only message in thread, other threads:[~2018-05-22 21:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-22 21:59 Problems adding OpenMP to the cross-toolchain installer Kaushik Datta

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.