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

libffi - fix to support updated automake recipe #14460

Conversation

paulharris
Copy link
Contributor

Waiting on #12898

Pushing this up now to get the ball rolling.

Note that the original commented out line of code was:
env.define("AR", f"{unix_path(self, self.conf.get('tools.automake:ar-lib'))}")
but I needed to do this for it to work:
env.define("AR", f"{unix_path(self, self.conf.get('user.automake:ar-lib'))}")

Perhaps there are still things to change in automake / conan before this is merged?

Comment on lines -134 to -138
ar_wrapper = unix_path(self, os.path.join(self.dependencies.direct_build['automake'].cpp_info.resdirs[0], f"automake-{automake_version}", "ar-lib"))
env.define("CC", f"{compile_wrapper}")
env.define("CXX", f"{compile_wrapper}")
env.define("LD", "link -nologo")
env.define("AR", f"{ar_wrapper} \"lib -nologo\"")
Copy link
Contributor

@SpaceIm SpaceIm Nov 29, 2022

Choose a reason for hiding this comment

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

automake doesn't yet define this conf, and the fix here is not correct. Not sure it's worth struggling c3i for something we know fails for the moment.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline

Failure in build 2 (10c2fe97b0a425c07b1d6de01710fcdfc930f34f):

  • libffi/3.4.3@:
    Didn't run or was cancelled before finishing

  • libffi/3.4.2@:
    Didn't run or was cancelled before finishing

  • libffi/3.3@:
    CI failed to create some packages (All logs)

    Logs for packageID 6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=Visual Studio
    compiler.runtime=MD
    compiler.version=15
    os=Windows
    [options]
    libffi:shared=False
    
    [...]
    Downloading conan_package.tgz
    .msys2/cci.latest: Package installed eee3fba89db6d777329de604625af8c30d46f080
    msys2/cci.latest: Downloaded package revision 79911a36167185a5ba9d653559f17ed3
    autoconf/2.71: Retrieving package 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 from remote 'conan-center' 
    Downloading conanmanifest.txt
    Downloading conaninfo.txt
    Downloading conan_package.tgz
    autoconf/2.71: Package installed 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
    autoconf/2.71: Downloaded package revision 4a39e37f7a41b87df26ca40794260c4b
    automake/1.16.5: Retrieving package 3e48e69237f7f2196164383ef9dedf0f93cbf249 from remote 'conan-center' 
    Downloading conanmanifest.txt
    Downloading conaninfo.txt
    Downloading conan_package.tgz
    automake/1.16.5: Package installed 3e48e69237f7f2196164383ef9dedf0f93cbf249
    automake/1.16.5: Downloaded package revision 2a69ff077743103f5c3f891d94b0da90
    m4/1.4.19: Appending PATH environment variable: C:\J\w\prod\BuildSingleReference@3\.conan\data\m4\1.4.19\_\_\package\0a420ff5c47119e668867cdb51baff0eca1fdb68\bin
    msys2/cci.latest: Creating MSYS_ROOT env var : C:\J\w\prod\BuildSingleReference@3/s\9fc206\1\bin\msys64
    msys2/cci.latest: Creating MSYS_BIN env var : C:\J\w\prod\BuildSingleReference@3/s\9fc206\1\bin\msys64\usr\bin
    msys2/cci.latest: Appending PATH env var with : C:\J\w\prod\BuildSingleReference@3/s\9fc206\1\bin\msys64\usr\bin
    autoconf/2.71: Defining AC_MACRODIR environment variable: /c/j/w/prod/buildsinglereference@3/.conan/data/autoconf/2.71/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/res/autoconf
    autoconf/2.71: Defining AUTOM4TE_PERLLIBDIR environment variable: /c/j/w/prod/buildsinglereference@3/.conan/data/autoconf/2.71/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/res/autoconf
    autoconf/2.71: Defining AUTOCONF environment variable: /c/j/w/prod/buildsinglereference@3/.conan/data/autoconf/2.71/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/bin/autoconf
    autoconf/2.71: Defining AUTORECONF environment variable: /c/j/w/prod/buildsinglereference@3/.conan/data/autoconf/2.71/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/bin/autoreconf
    autoconf/2.71: Defining AUTOHEADER environment variable: /c/j/w/prod/buildsinglereference@3/.conan/data/autoconf/2.71/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/bin/autoheader
    autoconf/2.71: Defining AUTOM4TE environment variable: /c/j/w/prod/buildsinglereference@3/.conan/data/autoconf/2.71/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/bin/autom4te
    automake/1.16.5: Appending PATH environment variable:: C:\J\w\prod\BuildSingleReference@3\.conan\data\automake\1.16.5\_\_\package\3e48e69237f7f2196164383ef9dedf0f93cbf249\bin
    automake/1.16.5: Appending ACLOCAL environment variable with: /c/j/w/prod/buildsinglereference@3/.conan/data/automake/1.16.5/_/_/package/3e48e69237f7f2196164383ef9dedf0f93cbf249/bin/aclocal.exe
    automake/1.16.5: Setting AUTOMAKE_DATADIR to /c/j/w/prod/buildsinglereference@3/.conan/data/automake/1.16.5/_/_/package/3e48e69237f7f2196164383ef9dedf0f93cbf249/res
    automake/1.16.5: Setting AUTOMAKE_LIBDIR to /c/j/w/prod/buildsinglereference@3/.conan/data/automake/1.16.5/_/_/package/3e48e69237f7f2196164383ef9dedf0f93cbf249/res/automake-1.16
    automake/1.16.5: Setting AUTOMAKE_PERLLIBDIR to /c/j/w/prod/buildsinglereference@3/.conan/data/automake/1.16.5/_/_/package/3e48e69237f7f2196164383ef9dedf0f93cbf249/res/automake-1.16
    automake/1.16.5: Setting AUTOMAKE to /c/j/w/prod/buildsinglereference@3/.conan/data/automake/1.16.5/_/_/package/3e48e69237f7f2196164383ef9dedf0f93cbf249/bin/automake.exe
    automake/1.16.5: Append M4 include directories to AUTOMAKE_CONAN_INCLUDES environment variable
    libffi/3.3: Applying build-requirement: msys2/cci.latest
    libffi/3.3: Applying build-requirement: automake/1.16.5
    libffi/3.3: Applying build-requirement: autoconf/2.71
    libffi/3.3: Applying build-requirement: m4/1.4.19
    [HOOK - conan-center.py] pre_source(): [IMMUTABLE SOURCES (KB-H010)] OK
    libffi/3.3: Configuring sources in C:\J\w\prod\BuildSingleReference@3\.conan\data\libffi\3.3\_\_\source\src
    libffi/3.3: 
    [HOOK - conan-center.py] post_source(): [LIBCXX MANAGEMENT (KB-H011)] OK
    [HOOK - conan-center.py] post_source(): [CPPSTD MANAGEMENT (KB-H022)] OK
    [HOOK - conan-center.py] post_source(): [SHORT_PATHS USAGE (KB-H066)] OK
    libffi/3.3: Copying sources to build folder
    libffi/3.3: Building your package in C:\J\w\prod\BuildSingleReference@3\.conan\data\libffi\3.3\_\_\build\6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7
    libffi/3.3: Generator txt created conanbuildinfo.txt
    libffi/3.3: Calling generate()
    libffi/3.3: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    ERROR: libffi/3.3: Error in generate() method, line 135
    	env.define("AR", f"{unix_path(self, self.conf.get('user.automake:ar-lib'))}")
    	TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
    

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.

@paulharris
Copy link
Contributor Author

Ok, I'll close this and can start again when automake is done...

@paulharris paulharris closed this Nov 30, 2022
@paulharris paulharris deleted the libffi-support-new-automake-recipe branch February 1, 2023 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants