conda-forge / omniorb-feedstock

A conda-smithy repository for omniorb.
BSD 3-Clause "New" or "Revised" License
0 stars 9 forks source link

Omniidl not present in ARM builds #56

Closed ymontmarin closed 1 month ago

ymontmarin commented 1 month ago

Solution to issue cannot be found in the documentation.

Issue

In the ARM migration of a downstream package https://github.com/conda-forge/gepetto-viewer-corba-feedstock/pull/25 the build is failling for ARM build due to missing omniidl:

CMake Error at cmake/idl.cmake:75 (message):
  cannot find omniidl.
Call Stack (most recent call first):
  src/CMakeLists.txt:25 (generate_idl_cpp)

Installed packages

libcxx:                             18.1.8-hef8daea_0          conda-forge
    libedit:                            3.1.20191231-h0678c8f_2    conda-forge
    libev:                              4.33-h10d778d_2            conda-forge
    libexpat:                           2.6.2-h73e2aa4_0           conda-forge
    libffi:                             3.4.2-h0d85af4_5           conda-forge
    libgettextpo:                       0.22.5-h5ff76d1_2          conda-forge
    libgettextpo-devel:                 0.22.5-h5ff76d1_2          conda-forge
    libiconv:                           1.17-hd75f5a5_2            conda-forge
    libintl:                            0.22.5-h5ff76d1_2          conda-forge
    libintl-devel:                      0.22.5-h5ff76d1_2          conda-forge
    libllvm16:                          16.0.6-hbedff68_3          conda-forge
    libnghttp2:                         1.58.0-h64cf6d3_1          conda-forge
    libsqlite:                          3.46.0-h1b8f9f3_0          conda-forge
    libssh2:                            1.11.0-hd019ec5_0          conda-forge
    libuv:                              1.48.0-h67532ce_0          conda-forge
    libxml2:                            2.12.7-heaf3512_4          conda-forge
    libzlib:                            1.3.1-h87427d6_1           conda-forge
    llvm-tools:                         16.0.6-hbedff68_3          conda-forge
    lz4-c:                              1.9.4-hf0c8a7f_0           conda-forge
    macosx_deployment_target_osx-arm64: 11.0-h6553868_1            conda-forge
    make:                               4.3-h22f3db7_1             conda-forge
    ncurses:                            6.5-h5846eda_0             conda-forge
    openssl:                            3.3.1-h87427d6_2           conda-forge
    pkg-config:                         0.29.2-hf7e621a_1009       conda-forge
    popt:                               1.16-h7b079dc_2002         conda-forge
    python:                             3.10.14-h00d2728_0_cpython conda-forge
    readline:                           8.2-h9e318b2_1             conda-forge
    rhash:                              1.4.4-h0dc2134_0           conda-forge
    rsync:                              3.3.0-h5aaac6a_0           conda-forge
    sed:                                4.7-h3efe00b_1000          conda-forge
    sigtool:                            0.1.3-h88f4db0_0           conda-forge
    tapi:                               1100.0.11-h9ce4665_0       conda-forge
    tk:                                 8.6.13-h1abcd95_1          conda-forge
    tzdata:                             2024a-h0c530f3_0           conda-forge
    xxhash:                             0.8.2-h4140336_0           conda-forge
    xz:                                 5.2.6-h775f41a_0           conda-forge
    zstd:                               1.5.6-h915ae27_0           conda-forge

Environment info

See [CI](https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=981482&view=logs&j=1b8be447-c2bd-5772-b66a-a1146441bf88&t=0da7bde9-21e8-5d19-f418-738876121ca7) of the related package.
beenje commented 1 month ago

Yes, this is a known issue. I asked the author of omniorb and there is no way to generate omniidl when cross-compiling. This is why it's missing from the osx-arm64 conda-forge package.

But you are cross-compiling as well. My guess is that you need to add omniorb # [build_platform != target_platform] in the build requirements.

ymontmarin commented 1 month ago

@beenje Thank you very much for your help. I am going to try with that.