Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coin-osi: conan v2 support #15834

Merged
merged 4 commits into from
Feb 15, 2023
Merged

Conversation

SpaceIm
Copy link
Contributor

@SpaceIm SpaceIm commented Feb 9, 2023

Specify library name and version: lib/1.0


@SpaceIm
Copy link
Contributor Author

SpaceIm commented Feb 9, 2023

This PR needs #15746 (to fix pkg_config_name of PkgConfigDeps generator).

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@SpaceIm
Copy link
Contributor Author

SpaceIm commented Feb 11, 2023

Perhaps you should add the directory containing `coinutils.pc'
to the PKG_CONFIG_PATH environment variable
Package 'coinutils', required by 'virtual:world', not found
coin-osi/0.108.6: 
configure: WARNING: Failed to find a Fortran compiler!
configure: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config.
configure: error: Required package CoinUtils not available.
configure: error: /bin/sh '/c/j/w/prod/buildsinglereference@3/.conan/data/coin-osi/0.108.6/_/_/build/e363b996481dec7f9909b333d17ccaa8bb269381/src/Osi/configure' failed for Osi

Works fine with legacy AutotoolsBuildEnvironment but not with AutotoolsToolchain... Could it come from a missing unix_path() conversion here https://github.com/conan-io/conan/blob/1.58.0/conan/tools/gnu/autotoolstoolchain.py#L142?

@SpaceIm
Copy link
Contributor Author

SpaceIm commented Feb 11, 2023

Perhaps you should add the directory containing `coinutils.pc'
to the PKG_CONFIG_PATH environment variable
Package 'coinutils', required by 'virtual:world', not found
coin-osi/0.108.6: 
configure: WARNING: Failed to find a Fortran compiler!
configure: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config.
configure: error: Required package CoinUtils not available.
configure: error: /bin/sh '/c/j/w/prod/buildsinglereference@3/.conan/data/coin-osi/0.108.6/_/_/build/e363b996481dec7f9909b333d17ccaa8bb269381/src/Osi/configure' failed for Osi

Works fine with legacy AutotoolsBuildEnvironment but not with AutotoolsToolchain... Could it come from a missing unix_path() conversion here https://github.com/conan-io/conan/blob/1.58.0/conan/tools/gnu/autotoolstoolchain.py#L142?

Well no, it doesn't change anything in generated conanautotoolstoolchain.sh:

echo "echo Restoring environment" > "C:\Users\spaceim\.conan\data\coin-osi\0.108.7\_\_\build\836812841adeb5158788d3ad3822fa734ac759f4\build-release\conan\deactivate_conanautotoolstoolchain.sh"
for v in CC CXX CPPFLAGS CXXFLAGS CFLAGS LDFLAGS PKG_CONFIG_PATH LD AR
do
    is_defined="true"
    value=$(printenv $v) || is_defined="" || true
    if [ -n "$value" ] || [ -n "$is_defined" ]
    then
        echo export "$v='$value'" >> "C:\Users\spaceim\.conan\data\coin-osi\0.108.7\_\_\build\836812841adeb5158788d3ad3822fa734ac759f4\build-release\conan\deactivate_conanautotoolstoolchain.sh"
    else
        echo unset $v >> "C:\Users\spaceim\.conan\data\coin-osi\0.108.7\_\_\build\836812841adeb5158788d3ad3822fa734ac759f4\build-release\conan\deactivate_conanautotoolstoolchain.sh"
    fi
done


export CC="cl -nologo"
export CXX="cl -nologo"
export CPPFLAGS="$CPPFLAGS -DNDEBUG"
export CXXFLAGS="$CXXFLAGS -MD -O2 -Ob2 -EHsc -FS"
export CFLAGS="$CFLAGS -MD -O2 -Ob2 -FS"
export LDFLAGS="$LDFLAGS"
export PKG_CONFIG_PATH="/c/users/spaceim/.conan/data/coin-osi/0.108.7/_/_/build/836812841adeb5158788d3ad3822fa734ac759f4/build-release/conan:$PKG_CONFIG_PATH"
export LD="link -nologo"
export AR="lib -nologo"

This file seems correct, so I don't understand what's wrong.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 5 (aa92d624b614488edf620d21ae69bef70c348d68):

  • coin-osi/0.108.6@:
    All packages built successfully! (All logs)

  • coin-osi/0.108.7@:
    All packages built successfully! (All logs)


Conan v2 pipeline (informative, not required for merge) ❌

Note: Conan v2 builds are informative and they are not required for the PR to be merged.

The v2 pipeline failed. Please, review the errors and note this will be required for pull requests to be merged in the near future.

See details:

Failure in build 5 (aa92d624b614488edf620d21ae69bef70c348d68):

  • coin-osi/0.108.6@:
    Error running command conan graph info --requires coin-osi/0.108.6@#240b6073ba876a3f7da1bd81731981e0 -f json -pr:h /home/conan/w/prod-v2_cci_PR-15834/5/8c8e0989-fb22-4524-a546-274a5f0b2d32/profile_linux_11_libstdcpp11_gcc_release_64.-shared-False.txt -pr:b /home/conan/w/prod-v2_cci_PR-15834/5/8c8e0989-fb22-4524-a546-274a5f0b2d32/profile_linux_11_libstdcpp11_gcc_release_64.-shared-False.txt:

    -------- Input profiles --------
    Profile host:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=11
    os=Linux
    [options]
    */*:shared=False
    
    Profile build:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=11
    os=Linux
    [options]
    */*:shared=False
    
    
    -------- Computing dependency graph --------
    coin-utils/2.11.6: Not found in local cache, looking in remotes...
    coin-utils/2.11.6: Checking remote: conan-center-v2
    coin-utils/2.11.6: Trying with 'conan-center-v2'...
    Downloading conanfile.py
    Downloading conan_export.tgz
    Downloading conanmanifest.txt
    Decompressing conan_export.tgz
    coin-utils/2.11.6: Downloaded recipe revision 2937fc99817108d36c6bdd7e6049e5f4
    bzip2/1.0.8: Not found in local cache, looking in remotes...
    bzip2/1.0.8: Checking remote: conan-center-v2
    bzip2/1.0.8: Trying with 'conan-center-v2'...
    Downloading conan_export.tgz
    Downloading conanfile.py
    Downloading conanmanifest.txt
    Decompressing conan_export.tgz
    bzip2/1.0.8: Downloaded recipe revision 23cc41191fd58460207c5db046033507
    zlib/1.2.13: Not found in local cache, looking in remotes...
    zlib/1.2.13: Checking remote: conan-center-v2
    zlib/1.2.13: Trying with 'conan-center-v2'...
    Downloading conanfile.py
    Downloading conan_export.tgz
    Downloading conanmanifest.txt
    Decompressing conan_export.tgz
    zlib/1.2.13: Downloaded recipe revision 13c96f538b52e1600c40b88994de240f
    gnu-config/cci.20210814: Not found in local cache, looking in remotes...
    gnu-config/cci.20210814: Checking remote: conan-center-v2
    gnu-config/cci.20210814: Trying with 'conan-center-v2'...
    Downloading conan_export.tgz
    Downloading conanfile.py
    Downloading conanmanifest.txt
    Decompressing conan_export.tgz
    gnu-config/cci.20210814: Downloaded recipe revision eb941b98dbf40f3eb1753f6b1f05861f
    pkgconf/1.9.3: Not found in local cache, looking in remotes...
    pkgconf/1.9.3: Checking remote: conan-center-v2
    Graph root
        virtual
    Requirements
        bzip2/1.0.8#23cc41191fd58460207c5db046033507 - Downloaded (conan-center-v2)
        coin-osi/0.108.6#240b6073ba876a3f7da1bd81731981e0 - Cache
        coin-utils/2.11.6#2937fc99817108d36c6bdd7e6049e5f4 - Downloaded (conan-center-v2)
        zlib/1.2.13#13c96f538b52e1600c40b88994de240f - Downloaded (conan-center-v2)
    Build requirements
        gnu-config/cci.20210814#eb941b98dbf40f3eb1753f6b1f05861f - Cache
    Graph error
        Package 'pkgconf/1.9.3' not resolved: Unable to find 'pkgconf/1.9.3' in remotes
    ERROR: Package 'pkgconf/1.9.3' not resolved: Unable to find 'pkgconf/1.9.3' in remotes
    
  • coin-osi/0.108.7@:
    Error running command conan graph info --requires coin-osi/0.108.7@#e73f5c02baacc47f130bd3a05871205f -f json -pr:h /home/conan/w/prod-v2_cci_PR-15834/5/b9667034-0f3a-4687-860f-5722b9f3e22d/profile_linux_11_libstdcpp11_gcc_release_64.-shared-False.txt -pr:b /home/conan/w/prod-v2_cci_PR-15834/5/b9667034-0f3a-4687-860f-5722b9f3e22d/profile_linux_11_libstdcpp11_gcc_release_64.-shared-False.txt:

    -------- Input profiles --------
    Profile host:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=11
    os=Linux
    [options]
    */*:shared=False
    
    Profile build:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=11
    os=Linux
    [options]
    */*:shared=False
    
    
    -------- Computing dependency graph --------
    coin-utils/2.11.6: Not found in local cache, looking in remotes...
    coin-utils/2.11.6: Checking remote: conan-center-v2
    coin-utils/2.11.6: Trying with 'conan-center-v2'...
    Downloading conanfile.py
    Downloading conan_export.tgz
    Downloading conanmanifest.txt
    Decompressing conan_export.tgz
    coin-utils/2.11.6: Downloaded recipe revision 2937fc99817108d36c6bdd7e6049e5f4
    bzip2/1.0.8: Not found in local cache, looking in remotes...
    bzip2/1.0.8: Checking remote: conan-center-v2
    bzip2/1.0.8: Trying with 'conan-center-v2'...
    Downloading conanmanifest.txt
    Downloading conanfile.py
    Downloading conan_export.tgz
    Decompressing conan_export.tgz
    bzip2/1.0.8: Downloaded recipe revision 23cc41191fd58460207c5db046033507
    zlib/1.2.13: Not found in local cache, looking in remotes...
    zlib/1.2.13: Checking remote: conan-center-v2
    zlib/1.2.13: Trying with 'conan-center-v2'...
    Downloading conan_export.tgz
    Downloading conanmanifest.txt
    Downloading conanfile.py
    Decompressing conan_export.tgz
    zlib/1.2.13: Downloaded recipe revision 13c96f538b52e1600c40b88994de240f
    gnu-config/cci.20210814: Not found in local cache, looking in remotes...
    gnu-config/cci.20210814: Checking remote: conan-center-v2
    gnu-config/cci.20210814: Trying with 'conan-center-v2'...
    Downloading conan_export.tgz
    Downloading conanfile.py
    Downloading conanmanifest.txt
    Decompressing conan_export.tgz
    gnu-config/cci.20210814: Downloaded recipe revision eb941b98dbf40f3eb1753f6b1f05861f
    pkgconf/1.9.3: Not found in local cache, looking in remotes...
    pkgconf/1.9.3: Checking remote: conan-center-v2
    Graph root
        virtual
    Requirements
        bzip2/1.0.8#23cc41191fd58460207c5db046033507 - Downloaded (conan-center-v2)
        coin-osi/0.108.7#e73f5c02baacc47f130bd3a05871205f - Cache
        coin-utils/2.11.6#2937fc99817108d36c6bdd7e6049e5f4 - Downloaded (conan-center-v2)
        zlib/1.2.13#13c96f538b52e1600c40b88994de240f - Downloaded (conan-center-v2)
    Build requirements
        gnu-config/cci.20210814#eb941b98dbf40f3eb1753f6b1f05861f - Cache
    Graph error
        Package 'pkgconf/1.9.3' not resolved: Unable to find 'pkgconf/1.9.3' in remotes
    ERROR: Package 'pkgconf/1.9.3' not resolved: Unable to find 'pkgconf/1.9.3' in remotes
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@conan-center-bot conan-center-bot merged commit ec9d00a into conan-io:master Feb 15, 2023
@SpaceIm SpaceIm deleted the coin-osi-conan-v2 branch February 15, 2023 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants