On Wed, Aug 26, 2020 at 12:09 PM Alexander Kanavin
<[email protected]> wrote:
>
> You probably need to adjust meson.cross which is written out by meson.bbclass.
I checked gstreamer1.0 which also use meson for compilation and it's doing same:
Source dir: 
/home/marek/projects/project/test/build/tmp/work/aarch64-poky-linux/gstreamer1.0/1.16.2-r0/gstreamer-1.16.2
Build dir: 
/home/marek/projects/project/test/build/tmp/work/aarch64-poky-linux/gstreamer1.0/1.16.2-r0/build
Build type: cross build
Project name: gstreamer
Project version: 1.16.2
No CFLAGS in the environment, not changing global flags.
No LDFLAGS in the environment, not changing global flags.
No CPPFLAGS in the environment, not changing global flags.
Sanity testing C compiler: gcc
Is cross compiler: False.
Sanity check compiler command line: gcc
/home/marek/projects/project/test/build/tmp/work/aarch64-poky-linux/gstreamer1.0/1.16.2-r0/build/meson-private/sanitycheckc.c
-o 
/home/marek/projects/project/test/build/tmp/work/aarch64-poky-linux/gstreamer1.0/1.16.2-r0/build/meson-private/sanitycheckc.exe
-pipe -D_FILE_OFFSET_BITS=64
Sanity check compile stdout:

-----
Sanity check compile stderr:

-----
Running test binary command:
/home/marek/projects/project/test/build/tmp/work/aarch64-poky-linux/gstreamer1.0/1.16.2-r0/build/meson-private/sanitycheckc.exe
C compiler for the build machine: gcc (gcc 5.4.0 "gcc (Ubuntu
5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609")
C linker for the build machine: gcc ld.bfd 2.26.1
Sanity testing C compiler: aarch64-poky-linux-gcc -march=armv8-a+crc
-fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat
-Wformat-security -Werror=format-security
--sysroot=/home/marek/projects/project/test/build/tmp/work/aarch64-poky-linux/gstreamer1.0/1.16.2-r0/recipe-sysroot
Is cross compiler: True.

first check build with my local gcc and then continue with cross
compilation. Can we somehow skip or redirect for checking
native-sysroot gcc from yocto? I can then add cuda-nvcc-native as
dependency.

Also in meson.cross this part looks odd to me:

[host_machine]
system = 'linux'
cpu_family = 'aarch64'
cpu = 'aarch64'
endian = 'little'

[target_machine]
system = 'linux'
cpu_family = 'aarch64'
cpu = 'aarch64'
endian = 'little'

shouldn't be host_machine set to x86?

Marek

> Alex
>
> On Wed, 26 Aug 2020 at 11:58, Marek Belisko <[email protected]> wrote:
>>
>> Hi,
>>
>> I'm trying to compile a simple cuda application which is built using
>> the meson build system. I have an issue that meson looks for nvcc
>> compiler on my host and I don't have installed cuda-nvcc compiler
>> (just use cuda-nvcc-native as dependency). Can we somehow force meson
>> not to search the local host for compilers?
>>
>> Thanks and regards,
>>
>> marek
>>
>> --
>> as simple and primitive as possible
>> -------------------------------------------------
>> Marek Belisko - OPEN-NANDRA
>> Freelance Developer
>>
>> Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
>> Tel: +421 915 052 184
>> skype: marekwhite
>> twitter: #opennandra
>> web: http://open-nandra.com
>> 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#50373): https://lists.yoctoproject.org/g/yocto/message/50373
Mute This Topic: https://lists.yoctoproject.org/mt/76425089/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to