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

f2c: new recipe #23417

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from
Draft

f2c: new recipe #23417

wants to merge 14 commits into from

Conversation

valgur
Copy link
Contributor

@valgur valgur commented Apr 8, 2024

Adds f2c, a Fortran 77 to C translator from Netlib - the authors of BLAS and LAPACK.

It also includes an fc shell script that acts as a drop-in wrapper to emulate GFortran-like Fortran compilers by translating to C and compiling with $CC.

On Repology:

  • f2c: Packaging status
  • libf2c: Packaging status
  • libf2c2: Packaging status

Includes most patches provided by Debian:

@AbrilRBS AbrilRBS self-assigned this Apr 8, 2024
@conan-center-bot

This comment has been minimized.

@conan-center-bot conan-center-bot added the Missing dependencies Build failed due missing dependencies in Conan Center label Apr 8, 2024
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@valgur valgur marked this pull request as draft April 9, 2024 08:07
@conan-center-bot

This comment has been minimized.

@conan-center-bot conan-center-bot added Service Under Maintenance and removed Failed Missing dependencies Build failed due missing dependencies in Conan Center labels Apr 13, 2024
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ❌

Failure in build 9 (abb30f94a3da47be124384972cb4c36ae9671086):

  • f2c/20240312:
    CI failed to create some packages (All logs)

    Logs for packageID f1d8d8ea0e4f2a3b65193c0ffd72754418c08c20:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=9
    os=Linux
    [options]
    f2c:shared=True
    
    [...]
    [env]
    [conf]
    tools.system.package_manager:mode=install
    tools.system.package_manager:sudo=True
    
    f2c/20240312: Forced build from source
    Installing package: f2c/20240312
    Requirements
        f2c/20240312 from local cache - Cache
    Packages
        f2c/20240312:f1d8d8ea0e4f2a3b65193c0ffd72754418c08c20 - Build
    
    Installing (downloading, building) binaries...
    [HOOK - conan-center.py] pre_source(): [IMMUTABLE SOURCES (KB-H010)] OK
    f2c/20240312: Configuring sources in /home/conan/workspace/prod-v1/bsr/26779/bceed/.conan/data/f2c/20240312/_/_/source/src
    f2c/20240312: 
    f2c/20240312: 
    f2c/20240312: 
    f2c/20240312: Unzipping 268.1KB, this can take a while
    f2c/20240312: 
    [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
    f2c/20240312: Copying sources to build folder
    f2c/20240312: Building your package in /home/conan/workspace/prod-v1/bsr/26779/bceed/.conan/data/f2c/20240312/_/_/build/f1d8d8ea0e4f2a3b65193c0ffd72754418c08c20
    f2c/20240312: Generator txt created conanbuildinfo.txt
    f2c/20240312: Calling generate()
    f2c/20240312: Preset 'release' added to CMakePresets.json. Invoke it manually using 'cmake --preset release'
    f2c/20240312: If your CMake version is not compatible with CMakePresets (<3.19) call cmake like: 'cmake <path> -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE=/home/conan/workspace/prod-v1/bsr/26779/bceed/.conan/data/f2c/20240312/_/_/build/f1d8d8ea0e4f2a3b65193c0ffd72754418c08c20/build-release/conan/conan_toolchain.cmake -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=Release'
    f2c/20240312: Aggregating env generators
    [HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] 'fPIC' option not found
    [HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] OK
    f2c/20240312: Calling build()
    f2c/20240312: Apply patch (conan): Pass libf2c flags to cc in fc
    f2c/20240312: Apply patch (conan): Respect CC environment variable
    f2c/20240312: Apply patch (conan): Enable building of shared library
    f2c/20240312: 
    WARN: *** Conan 1 is legacy and on a deprecation path ***
    WARN: *** Please upgrade to Conan 2 ***
    f2c/20240312: 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
    f2c/20240312: 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
    f2c/20240312: ERROR: Package 'f1d8d8ea0e4f2a3b65193c0ffd72754418c08c20' build failed
    f2c/20240312: WARN: Build folder /home/conan/workspace/prod-v1/bsr/26779/bceed/.conan/data/f2c/20240312/_/_/build/f1d8d8ea0e4f2a3b65193c0ffd72754418c08c20/build-release
    ERROR: f2c/20240312: Error in build() method, line 147
    	self._build_libf2c()
    while calling '_build_libf2c', line 128
    	autotools.make(args=["-f", "makefile.u"], target=self._target)
    while calling '_target', line 114
    	if is_apple_os(self):
    	NameError: name 'is_apple_os' is not defined
    

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.


Conan v2 pipeline ❌

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping @conan-io/barbarians on the PR and we will help you.

See details:

Failure in build 9 (abb30f94a3da47be124384972cb4c36ae9671086):

  • f2c/20240312:
    CI failed to create some packages (All logs)

    Logs for packageID c4b28042ac93dada375be3f06a8395c190bed3e0:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.cppstd=17
    compiler.libcxx=libstdc++11
    compiler.version=11
    os=Linux
    [options]
    */*:shared=True
    
    [...]
    ======== Computing necessary packages ========
    f2c/20240312: Forced build from source
    Requirements
        f2c/20240312#794ad8723d44c62a02fa78e986b4298e:c4b28042ac93dada375be3f06a8395c190bed3e0 - Build
    
    ======== Installing packages ========
    f2c/20240312: Calling source() in /home/conan/workspace/prod-v2/bsr/23853/afccd/p/f2c285710161d2cf/s/src
    f2c/20240312: Sources for ['https://github.com/valgur/f2c/releases/download/f2c-20240312/f2c-20240312.tgz', 'https://netlib.org/f2c/src.tgz'] found in remote backup https://c3i.jfrog.io/artifactory/conan-center-backup-sources/
    f2c/20240312: Sources for ['https://salsa.debian.org/debian/f2c/-/raw/b17b7c087db97f96ef9f603dcea5424093669799/fc', 'https://github.com/valgur/f2c/releases/download/f2c-20240312/fc', 'https://www.netlib.org/f2c/fc'] found in remote backup https://c3i.jfrog.io/artifactory/conan-center-backup-sources/
    f2c/20240312: Sources for ['https://github.com/valgur/f2c/releases/download/libf2c-20240130/libf2c-20240130.zip', 'https://www.netlib.org/f2c/libf2c.zip'] found in remote backup https://c3i.jfrog.io/artifactory/conan-center-backup-sources/
    f2c/20240312: Unzipping 268.1KB, this can take a while
    
    
    -------- Installing package f2c/20240312 (1 of 1) --------
    f2c/20240312: Building from source
    f2c/20240312: Package f2c/20240312:c4b28042ac93dada375be3f06a8395c190bed3e0
    f2c/20240312: Copying sources to build folder
    f2c/20240312: Building your package in /home/conan/workspace/prod-v2/bsr/23853/afccd/p/b/f2cf791929c030a2/b
    f2c/20240312: Calling generate()
    f2c/20240312: Generators folder: /home/conan/workspace/prod-v2/bsr/23853/afccd/p/b/f2cf791929c030a2/b/build-release/conan
    f2c/20240312: CMakeToolchain generated: conan_toolchain.cmake
    f2c/20240312: CMakeToolchain generated: CMakePresets.json
    f2c/20240312: Generating aggregated env files
    f2c/20240312: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
    f2c/20240312: Calling build()
    f2c/20240312: Apply patch (file): patches/f2c/0002-prototype-rmdir.patch
    f2c/20240312: Apply patch (file): patches/f2c/0004-fc-script-path-and-tmpfile.patch
    f2c/20240312: Apply patch (file): patches/f2c/0005-sysdep-tmpfiles.patch
    f2c/20240312: Apply patch (file): patches/f2c/0008-typos.patch
    f2c/20240312: Apply patch (conan): Pass libf2c flags to cc in fc
    f2c/20240312: Apply patch (conan): Respect CC environment variable
    f2c/20240312: Apply patch (file): patches/libf2c/0003-C-tweaks.patch
    f2c/20240312: Apply patch (file): patches/libf2c/0004-add-clapack-files.patch
    f2c/20240312: Apply patch (file): patches/libf2c/0006-weak-MAIN__.patch
    f2c/20240312: Apply patch (file): patches/libf2c/0007-format-security-sprintf.patch
    f2c/20240312: Apply patch (file): patches/libf2c/0008-XintXX_t.patch
    f2c/20240312: Apply patch (file): patches/libf2c/0009-F77_aloc-type.patch
    f2c/20240312: Apply patch (file): patches/libf2c/0010-largefile_source-redefinition.patch
    f2c/20240312: Apply patch (file): patches/libf2c/0011-cross.patch
    f2c/20240312: Apply patch (conan): Enable building of shared library
    f2c/20240312: ERROR: 
    Package 'c4b28042ac93dada375be3f06a8395c190bed3e0' build failed
    f2c/20240312: WARN: Build folder /home/conan/workspace/prod-v2/bsr/23853/afccd/p/b/f2cf791929c030a2/b/build-release
    ERROR: f2c/20240312: Error in build() method, line 147
    	self._build_libf2c()
    while calling '_build_libf2c', line 128
    	autotools.make(args=["-f", "makefile.u"], target=self._target)
    while calling '_target', line 114
    	if is_apple_os(self):
    	NameError: name 'is_apple_os' is not defined
    

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.

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