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

[bug] Autoconf failures in test_other_client_can_link_autotools, test_autotools_lib_template tests #13577

Open
Apteryks opened this issue Mar 30, 2023 · 0 comments

Comments

@Apteryks
Copy link

Environment details

  • Operating System+version: Guix System
  • Compiler+version: GCC 10.3.0
  • Conan version: 2.0.2
  • Python version: 3.9.9.

Steps to reproduce

  1. Run the test suite on GNU Guix.

Logs

=================================== FAILURES ===================================
_____________________ test_other_client_can_link_autotools _____________________
[gw3] linux -- Python 3.9.9 /gnu/store/slsh0qjv5j68xda2bb6h8gsxwyi1j25a-python-wrapper-3.9.9/bin/python

transitive_shared_client = <conans.test.utils.tools.TestClient object at 0x7fffee5bfd90>

    @pytest.mark.tool("autotools")
    @pytest.mark.skipif(platform.system() == "Windows", reason="Autotools needed")
    def test_other_client_can_link_autotools(transitive_shared_client):
        client = transitive_shared_client
        # https://github.com/conan-io/conan/issues/13000
        # This failed, because of rpath link in Linux
        client = TestClient(servers=client.servers, inputs=["admin", "password"], path_with_spaces=False)
        client.run("new autotools_exe -d name=app -d version=0.1 -d requires=chat/0.1")
>       client.run("create . -o chat/*:shared=True -o hello/*:shared=True")

conans/test/functional/toolchains/cmake/test_shared_cmake.py:84: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
conans/test/utils/tools.py:522: in run
    return self._run_cli(command_line, assert_error=assert_error)
conans/test/utils/tools.py:497: in _run_cli
    self._handle_cli_result(command_line, assert_error=assert_error, error=error, trace=trace)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <conans.test.utils.tools.TestClient object at 0x7fffee38c640>
command = 'create . -o chat/*:shared=True -o hello/*:shared=True'
assert_error = False, error = 1
trace = 'Traceback (most recent call last):\n  File "/tmp/guix-build-conan-2.0.2.drv-0/source/conans/errors.py", line 51, in c...ethod: app/0.1: Error in build() method, line 44\n\tautotools.configure()\n\tConanException: Error 1 while executing\n'

    def _handle_cli_result(self, command, assert_error, error, trace=None):
        if (assert_error and not error) or (not assert_error and error):
            if assert_error:
                msg = " Command succeeded (failure expected): "
            else:
                msg = " Command failed (unexpectedly): "
            exc_message = "\n{header}\n{cmd}\n{output_header}\n{output}\n".format(
                header='{:=^80}'.format(msg),
                output_header='{:=^80}'.format(" Output: "),
                cmd=command,
                output=str(self.stderr) + str(self.stdout) + "\n" + str(self.out)
            )
            if trace:
                exc_message += '{:=^80}'.format(" Traceback: ") + f"\n{trace}"
>           raise Exception(exc_message)
E           Exception: 
E           ======================== Command failed (unexpectedly): ========================
E           create . -o chat/*:shared=True -o hello/*:shared=True
E           =================================== Output: ====================================
E           
E           ======== Exporting recipe to the cache ========
E           app/0.1: Exporting package recipe: /tmp/guix-build-conan-2.0.2.drv-0/tmpzyq9j7x7conans/pathwithoutspaces/conanfile.py
E           app/0.1: Copied 1 '.py' file: conanfile.py
E           app/0.1: Copied 1 '.ac' file: configure.ac
E           app/0.1: Copied 2 '.am' files: Makefile.am, Makefile.am
E           app/0.1: Copied 2 '.cpp' files: app.cpp, main.cpp
E           app/0.1: Copied 1 '.h' file: app.h
E           app/0.1: Exported to cache folder: /tmp/guix-build-conan-2.0.2.drv-0/tmpcpziw2ihconans/pathwithoutspaces/.conan2/p/app446024162abfa/e
E           app/0.1: Exported: app/0.1#2af079693e96408ea7495ed0d947374f (2023-03-30 17:55:07 UTC)
E           
E           ======== Input profiles ========
E           Profile host:
E           [settings]
E           arch=x86_64
E           build_type=Release
E           compiler=gcc
E           compiler.libcxx=libstdc++11
E           compiler.version=8
E           os=Linux
E           [options]
E           chat/*:shared=True
E           hello/*:shared=True
E           
E           Profile build:
E           [settings]
E           arch=x86_64
E           build_type=Release
E           compiler=gcc
E           compiler.libcxx=libstdc++11
E           compiler.version=8
E           os=Linux
E           
E           
E           ======== Computing dependency graph ========
E           chat/0.1: Not found in local cache, looking in remotes...
E           chat/0.1: Checking remote: default
E           chat/0.1: Downloaded recipe revision 5fb41ddcc6cd7381399f488f1dff7123
E           hello/0.1: Not found in local cache, looking in remotes...
E           hello/0.1: Checking remote: default
E           hello/0.1: Downloaded recipe revision 234bf56e60ac669e4bc4897583f19c83
E           Graph root
E               cli
E           Requirements
E               app/0.1#2af079693e96408ea7495ed0d947374f - Cache
E               chat/0.1#5fb41ddcc6cd7381399f488f1dff7123 - Downloaded (default)
E               hello/0.1#234bf56e60ac669e4bc4897583f19c83 - Downloaded (default)
E           
E           ======== Computing necessary packages ========
E           app/0.1: Forced build from source
E           Requirements
E               app/0.1#2af079693e96408ea7495ed0d947374f:9c08b63a45d6bbf93294ed2a469e3fc2e202d11a - Build
E               chat/0.1#5fb41ddcc6cd7381399f488f1dff7123:0eaf9738e59c9117fa4ff046132a23272c3f160a#4528e3b761a08147fd3a73c7c21a343a - Download (default)
E               hello/0.1#234bf56e60ac669e4bc4897583f19c83:0645178f9911c96e0f11d63b451090c571726042#da9d0f9f1d353f770ccf333829dd1564 - Download (default)
E           
E           ======== Installing packages ========
E           
E           -------- Downloading 2 packages --------
E           hello/0.1: Retrieving package 0645178f9911c96e0f11d63b451090c571726042 from remote 'default' 
E           Decompressing conan_package.tgz
E           hello/0.1: Package installed 0645178f9911c96e0f11d63b451090c571726042
E           hello/0.1: Downloaded package revision da9d0f9f1d353f770ccf333829dd1564
E           chat/0.1: Retrieving package 0eaf9738e59c9117fa4ff046132a23272c3f160a from remote 'default' 
E           Decompressing conan_package.tgz
E           chat/0.1: Package installed 0eaf9738e59c9117fa4ff046132a23272c3f160a
E           chat/0.1: Downloaded package revision 4528e3b761a08147fd3a73c7c21a343a
E           
E           -------- Installing package app/0.1 (3 of 3) --------
E           app/0.1: Building from source
E           app/0.1: Package app/0.1:9c08b63a45d6bbf93294ed2a469e3fc2e202d11a
E           app/0.1: Copying sources to build folder
E           app/0.1: Building your package in /tmp/guix-build-conan-2.0.2.drv-0/tmpcpziw2ihconans/pathwithoutspaces/.conan2/p/t/appa1014ece93539/b
E           app/0.1: Calling generate()
E           app/0.1: Generators folder: /tmp/guix-build-conan-2.0.2.drv-0/tmpcpziw2ihconans/pathwithoutspaces/.conan2/p/t/appa1014ece93539/b/build-release/conan
E           app/0.1: Generating aggregated env files
E           app/0.1: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
E           app/0.1: Calling build()
E           app/0.1: RUN: autoreconf --force --install
E           libtoolize: putting auxiliary files in '.'.
E           libtoolize: copying file './ltmain.sh'
E           libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
E           libtoolize: and rerunning libtoolize and aclocal.
E           libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
E           patch-shebang: configure: changing `/bin/sh' to `/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/sh'
E           configure.ac:5: installing './ar-lib'
E           configure.ac:5: installing './compile'
E           configure.ac:6: installing './config.guess'
E           configure.ac:6: installing './config.sub'
E           configure.ac:3: installing './install-sh'
E           configure.ac:3: installing './missing'
E           src/Makefile.am: installing './depcomp'
E           
E           app/0.1: Calling:
E            > "/tmp/guix-build-conan-2.0.2.drv-0/tmpcpziw2ihconans/pathwithoutspaces/.conan2/p/t/appa1014ece93539/b/./configure" --prefix=/ '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' 
E           app/0.1: RUN: "/tmp/guix-build-conan-2.0.2.drv-0/tmpcpziw2ihconans/pathwithoutspaces/.conan2/p/t/appa1014ece93539/b/./configure" --prefix=/ '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' 
E           checking for a BSD-compatible install... /gnu/store/8fpk2cja3f07xls48jfnpgrzrljpqivr-coreutils-8.32/bin/install -c
E           checking whether build environment is sane... yes
E           checking for a thread-safe mkdir -p... /gnu/store/8fpk2cja3f07xls48jfnpgrzrljpqivr-coreutils-8.32/bin/mkdir -p
E           checking for gawk... gawk
E           checking whether make sets $(MAKE)... no
E           checking whether make supports nested variables... yes
E           checking for g++... g++
E           checking whether the C++ compiler works... yes
E           checking for C++ compiler default output file name... a.out
E           checking for suffix of executables... 
E           checking whether we are cross compiling... configure: error: in `/tmp/guix-build-conan-2.0.2.drv-0/tmpcpziw2ihconans/pathwithoutspaces/.conan2/p/t/appa1014ece93539/b/build-release':
E           configure: error: cannot run C++ compiled programs.
E           If you meant to cross compile, use `--host'.
E           See `config.log' for more details
E           
E           app/0.1: ERROR: 
E           Package '9c08b63a45d6bbf93294ed2a469e3fc2e202d11a' build failed
E           app/0.1: WARN: Build folder /tmp/guix-build-conan-2.0.2.drv-0/tmpcpziw2ihconans/pathwithoutspaces/.conan2/p/t/appa1014ece93539/b/build-release
E           *********************************************************
E           Recipe 'app/0.1' cannot build its binary
E           It is possible that this recipe is not Conan 2.0 ready
E           If the recipe comes from ConanCenter check: https://conan.io/cci-v2.html
E           If it is your recipe, check if it is updated to 2.0
E           *********************************************************
E           
E           ERROR: app/0.1: Error in build() method, line 44
E               autotools.configure()
E               ConanException: Error 1 while executing
E           
E           
E           ================================== Traceback: ==================================
E           Traceback (most recent call last):
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conans/errors.py", line 51, in conanfile_exception_formatter
E               yield
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conans/client/conanfile/build.py", line 13, in run_build_method
E               conanfile.build()
E             File "/tmp/guix-build-conan-2.0.2.drv-0/tmpcpziw2ihconans/pathwithoutspaces/.conan2/p/app446024162abfa/e/conanfile.py", line 44, in build
E               autotools.configure()
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conan/tools/gnu/autotools.py", line 59, in configure
E               self._conanfile.run(cmd)
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conans/model/conan_file.py", line 318, in run
E               raise ConanException("Error %d while executing" % retcode)
E           conans.errors.ConanException: Error 1 while executing
E           
E           During handling of the above exception, another exception occurred:
E           
E           Traceback (most recent call last):
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conans/test/utils/tools.py", line 486, in _run_cli
E               command.run(args)
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conan/cli/cli.py", line 171, in run
E               command.run(self._conan_api, self._commands[command_argument].parser, args[0][1:])
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conan/cli/command.py", line 156, in run
E               info = self._method(conan_api, parser, *args)
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conan/cli/commands/create.py", line 83, in create
E               conan_api.install.install_binaries(deps_graph=deps_graph, remotes=remotes)
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conan/api/subapi/install.py", line 22, in install_binaries
E               installer.install(deps_graph, remotes)
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conans/client/installer.py", line 252, in install
E               self._handle_package(package, install_reference, None, handled_count, package_count)
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conans/client/installer.py", line 315, in _handle_package
E               self._handle_node_build(package, package_layout)
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conans/client/installer.py", line 385, in _handle_node_build
E               pref = builder.build_package(node, pkg_layout)
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conans/client/installer.py", line 159, in build_package
E               raise exc
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conans/client/installer.py", line 152, in build_package
E               self._build(conanfile, pref)
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conans/client/installer.py", line 101, in _build
E               raise exc
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conans/client/installer.py", line 94, in _build
E               run_build_method(conanfile, self._hook_manager)
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conans/client/conanfile/build.py", line 16, in run_build_method
E               raise
E             File "/gnu/store/65i3nhcwmz0p8rqbg48gaavyky4g4hwk-python-3.9.9/lib/python3.9/contextlib.py", line 137, in __exit__
E               self.gen.throw(typ, value, traceback)
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conans/errors.py", line 66, in conanfile_exception_formatter
E               _raise_conanfile_exc(exc)
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conans/errors.py", line 48, in _raise_conanfile_exc
E               raise ConanExceptionInUserConanfileMethod(m)
E           conans.errors.ConanExceptionInUserConanfileMethod: app/0.1: Error in build() method, line 44
E               autotools.configure()
E               ConanException: Error 1 while executing

conans/test/utils/tools.py:563: Exception
_________________________ test_autotools_lib_template __________________________
[gw18] linux -- Python 3.9.9 /gnu/store/slsh0qjv5j68xda2bb6h8gsxwyi1j25a-python-wrapper-3.9.9/bin/python

    @pytest.mark.skipif(platform.system() not in ["Linux", "Darwin"], reason="Requires Autotools")
    @pytest.mark.tool("autotools")
    def test_autotools_lib_template():
        client = TestClient(path_with_spaces=False)
        client.run("new autotools_lib -d name=hello -d version=0.1")
    
        # Local flow works
        client.run("install .")
        client.run("build .")
    
        client.run("export-pkg .")
        package_id = re.search(r"Packaging to (\S+)", str(client.out)).group(1)
        ref = RecipeReference.loads("hello/0.1")
        pref = client.get_latest_package_reference(ref, package_id)
        package_folder = client.get_latest_pkg_layout(pref).package()
        assert os.path.exists(os.path.join(package_folder, "include", "hello.h"))
        assert os.path.exists(os.path.join(package_folder, "lib", "libhello.a"))
    
        # Local flow for shared library works
        client.save({}, clean_first=True)
        client.run("new autotools_lib -d name=hello -d version=0.1")
        client.run("install . -o hello/*:shared=True")
        client.run("build . -o hello/*:shared=True")
>       client.run("export-pkg . -o hello/*:shared=True")

conans/test/functional/toolchains/gnu/test_v2_autotools_template.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
conans/test/utils/tools.py:522: in run
    return self._run_cli(command_line, assert_error=assert_error)
conans/test/utils/tools.py:497: in _run_cli
    self._handle_cli_result(command_line, assert_error=assert_error, error=error, trace=trace)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <conans.test.utils.tools.TestClient object at 0x7fffee892970>
command = 'export-pkg . -o hello/*:shared=True', assert_error = False, error = 1
trace = 'Traceback (most recent call last):\n  File "/tmp/guix-build-conan-2.0.2.drv-0/source/conans/errors.py", line 51, in c...(test package): Error in build() method, line 20\n\tautotools.configure()\n\tConanException: Error 1 while executing\n'

    def _handle_cli_result(self, command, assert_error, error, trace=None):
        if (assert_error and not error) or (not assert_error and error):
            if assert_error:
                msg = " Command succeeded (failure expected): "
            else:
                msg = " Command failed (unexpectedly): "
            exc_message = "\n{header}\n{cmd}\n{output_header}\n{output}\n".format(
                header='{:=^80}'.format(msg),
                output_header='{:=^80}'.format(" Output: "),
                cmd=command,
                output=str(self.stderr) + str(self.stdout) + "\n" + str(self.out)
            )
            if trace:
                exc_message += '{:=^80}'.format(" Traceback: ") + f"\n{trace}"
>           raise Exception(exc_message)
E           Exception: 
E           ======================== Command failed (unexpectedly): ========================
E           export-pkg . -o hello/*:shared=True
E           =================================== Output: ====================================
E           
E           ======== Exporting recipe to the cache ========
E           hello/0.1: Exporting package recipe: /tmp/guix-build-conan-2.0.2.drv-0/tmpguj34la7conans/pathwithoutspaces/conanfile.py
E           hello/0.1: Copied 1 '.py' file: conanfile.py
E           hello/0.1: Copied 1 '.ac' file: configure.ac
E           hello/0.1: Copied 2 '.am' files: Makefile.am, Makefile.am
E           hello/0.1: Copied 1 '.cpp' file: hello.cpp
E           hello/0.1: Copied 1 '.h' file: hello.h
E           hello/0.1: Copied 1 '.in' file: Makefile.in
E           hello/0.1: Exported to cache folder: /tmp/guix-build-conan-2.0.2.drv-0/tmpv4txz0o6conans/pathwithoutspaces/.conan2/p/hello199849b3e6c54/e
E           hello/0.1: Exported: hello/0.1#5cfde34132e33dadbbd2f335ec9b4d7d (2023-03-30 17:55:32 UTC)
E           
E           ======== Computing dependency graph ========
E           Graph root
E               conanfile.py (hello/0.1): /tmp/guix-build-conan-2.0.2.drv-0/tmpguj34la7conans/pathwithoutspaces/conanfile.py
E           
E           ======== Computing necessary packages ========
E           
E           ======== Installing packages ========
E           conanfile.py (hello/0.1): Calling generate()
E           conanfile.py (hello/0.1): Generators folder: /tmp/guix-build-conan-2.0.2.drv-0/tmpguj34la7conans/pathwithoutspaces/build-release/conan
E           conanfile.py (hello/0.1): Generating aggregated env files
E           conanfile.py (hello/0.1): Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
E           
E           ======== Exporting recipe and package to the cache ========
E           conanfile.py (hello/0.1): Exporting binary from user folder to Conan cache
E           conanfile.py (hello/0.1): Packaging to 0645178f9911c96e0f11d63b451090c571726042
E           conanfile.py (hello/0.1): Generating the package
E           conanfile.py (hello/0.1): Temporary package folder /tmp/guix-build-conan-2.0.2.drv-0/tmpv4txz0o6conans/pathwithoutspaces/.conan2/p/t/hellof713b93beebfa/p
E           conanfile.py (hello/0.1): Calling package()
E           conanfile.py (hello/0.1): RUN: make install DESTDIR=/tmp/guix-build-conan-2.0.2.drv-0/tmpv4txz0o6conans/pathwithoutspaces/.conan2/p/t/hellof713b93beebfa/p -j24
E           Making install in src
E           make[1]: Entering directory '/tmp/guix-build-conan-2.0.2.drv-0/tmpguj34la7conans/pathwithoutspaces/build-release/src'
E           make[2]: Entering directory '/tmp/guix-build-conan-2.0.2.drv-0/tmpguj34la7conans/pathwithoutspaces/build-release/src'
E            /gnu/store/8fpk2cja3f07xls48jfnpgrzrljpqivr-coreutils-8.32/bin/mkdir -p '/tmp/guix-build-conan-2.0.2.drv-0/tmpv4txz0o6conans/pathwithoutspaces/.conan2/p/t/hellof713b93beebfa/p//lib'
E            /gnu/store/8fpk2cja3f07xls48jfnpgrzrljpqivr-coreutils-8.32/bin/mkdir -p '/tmp/guix-build-conan-2.0.2.drv-0/tmpv4txz0o6conans/pathwithoutspaces/.conan2/p/t/hellof713b93beebfa/p//include'
E            /gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/sh ../libtool   --mode=install /gnu/store/8fpk2cja3f07xls48jfnpgrzrljpqivr-coreutils-8.32/bin/install -c   libhello.la '/tmp/guix-build-conan-2.0.2.drv-0/tmpv4txz0o6conans/pathwithoutspaces/.conan2/p/t/hellof713b93beebfa/p//lib'
E            /gnu/store/8fpk2cja3f07xls48jfnpgrzrljpqivr-coreutils-8.32/bin/install -c -m 644 /tmp/guix-build-conan-2.0.2.drv-0/tmpguj34la7conans/pathwithoutspaces/./src/hello.h '/tmp/guix-build-conan-2.0.2.drv-0/tmpv4txz0o6conans/pathwithoutspaces/.conan2/p/t/hellof713b93beebfa/p//include'
E           libtool: install: /gnu/store/8fpk2cja3f07xls48jfnpgrzrljpqivr-coreutils-8.32/bin/install -c .libs/libhello.so.0.0.0 /tmp/guix-build-conan-2.0.2.drv-0/tmpv4txz0o6conans/pathwithoutspaces/.conan2/p/t/hellof713b93beebfa/p//lib/libhello.so.0.0.0
E           libtool: install: (cd /tmp/guix-build-conan-2.0.2.drv-0/tmpv4txz0o6conans/pathwithoutspaces/.conan2/p/t/hellof713b93beebfa/p//lib && { ln -s -f libhello.so.0.0.0 libhello.so.0 || { rm -f libhello.so.0 && ln -s libhello.so.0.0.0 libhello.so.0; }; })
E           libtool: install: (cd /tmp/guix-build-conan-2.0.2.drv-0/tmpv4txz0o6conans/pathwithoutspaces/.conan2/p/t/hellof713b93beebfa/p//lib && { ln -s -f libhello.so.0.0.0 libhello.so || { rm -f libhello.so && ln -s libhello.so.0.0.0 libhello.so; }; })
E           libtool: install: /gnu/store/8fpk2cja3f07xls48jfnpgrzrljpqivr-coreutils-8.32/bin/install -c .libs/libhello.lai /tmp/guix-build-conan-2.0.2.drv-0/tmpv4txz0o6conans/pathwithoutspaces/.conan2/p/t/hellof713b93beebfa/p//lib/libhello.la
E           make[2]: Leaving directory '/tmp/guix-build-conan-2.0.2.drv-0/tmpguj34la7conans/pathwithoutspaces/build-release/src'
E           make[1]: Leaving directory '/tmp/guix-build-conan-2.0.2.drv-0/tmpguj34la7conans/pathwithoutspaces/build-release/src'
E           make[1]: Entering directory '/tmp/guix-build-conan-2.0.2.drv-0/tmpguj34la7conans/pathwithoutspaces/build-release'
E           make[2]: Entering directory '/tmp/guix-build-conan-2.0.2.drv-0/tmpguj34la7conans/pathwithoutspaces/build-release'
E           make[2]: Nothing to be done for 'install-exec-am'.
E           make[2]: Nothing to be done for 'install-data-am'.
E           make[2]: Leaving directory '/tmp/guix-build-conan-2.0.2.drv-0/tmpguj34la7conans/pathwithoutspaces/build-release'
E           make[1]: Leaving directory '/tmp/guix-build-conan-2.0.2.drv-0/tmpguj34la7conans/pathwithoutspaces/build-release'
E           libtool: warning: remember to run 'libtool --finish //lib'
E           
E           conanfile.py (hello/0.1): package(): Packaged 2 '.0' files: libhello.so.0.0.0, libhello.so.0
E           conanfile.py (hello/0.1): package(): Packaged 1 '.so' file: libhello.so
E           conanfile.py (hello/0.1): package(): Packaged 1 '.la' file: libhello.la
E           conanfile.py (hello/0.1): package(): Packaged 1 '.h' file: hello.h
E           conanfile.py (hello/0.1): Created package revision a509699490ff2805ab2df0c9a331bea9
E           conanfile.py (hello/0.1): Package '0645178f9911c96e0f11d63b451090c571726042' created
E           conanfile.py (hello/0.1): Full package reference: hello/0.1#5cfde34132e33dadbbd2f335ec9b4d7d:0645178f9911c96e0f11d63b451090c571726042#a509699490ff2805ab2df0c9a331bea9
E           conanfile.py (hello/0.1): Package folder /tmp/guix-build-conan-2.0.2.drv-0/tmpv4txz0o6conans/pathwithoutspaces/.conan2/p/hello3cf69c3500cf8/p
E           conanfile.py (hello/0.1): Exported package binary
E           
E           ======== Launching test_package ========
E           
E           ======== Computing dependency graph ========
E           Graph root
E               hello/0.1 (test package): /tmp/guix-build-conan-2.0.2.drv-0/tmpguj34la7conans/pathwithoutspaces/test_package/conanfile.py
E           Requirements
E               hello/0.1#5cfde34132e33dadbbd2f335ec9b4d7d - Cache
E           
E           ======== Computing necessary packages ========
E           Requirements
E               hello/0.1#5cfde34132e33dadbbd2f335ec9b4d7d:0645178f9911c96e0f11d63b451090c571726042#a509699490ff2805ab2df0c9a331bea9 - Cache
E           
E           ======== Installing packages ========
E           hello/0.1: Already installed! (1 of 1)
E           
E           ======== Testing the package ========
E           Removing previously existing 'test_package' build folder: /tmp/guix-build-conan-2.0.2.drv-0/tmpguj34la7conans/pathwithoutspaces/test_package/build-release
E           hello/0.1 (test package): Test package build: build-release
E           hello/0.1 (test package): Test package build folder: /tmp/guix-build-conan-2.0.2.drv-0/tmpguj34la7conans/pathwithoutspaces/test_package/build-release
E           hello/0.1 (test package): Writing generators to /tmp/guix-build-conan-2.0.2.drv-0/tmpguj34la7conans/pathwithoutspaces/test_package/build-release/conan
E           hello/0.1 (test package): Generator 'AutotoolsToolchain' calling 'generate()'
E           hello/0.1 (test package): Generator 'AutotoolsDeps' calling 'generate()'
E           hello/0.1 (test package): Generating aggregated env files
E           hello/0.1 (test package): Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh']
E           
E           ======== Testing the package: Building ========
E           hello/0.1 (test package): Calling build()
E           hello/0.1 (test package): RUN: autoreconf --force --install
E           patch-shebang: configure: changing `/bin/sh' to `/gnu/store/4y5m9lb8k3qkb1y9m02sw9w9a6hacd16-bash-minimal-5.1.8/bin/sh'
E           
E           hello/0.1 (test package): Calling:
E            > "/tmp/guix-build-conan-2.0.2.drv-0/tmpguj34la7conans/pathwithoutspaces/test_package/./configure" --prefix=/ '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' 
E           hello/0.1 (test package): RUN: "/tmp/guix-build-conan-2.0.2.drv-0/tmpguj34la7conans/pathwithoutspaces/test_package/./configure" --prefix=/ '--bindir=${prefix}/bin' '--sbindir=${prefix}/bin' '--libdir=${prefix}/lib' '--includedir=${prefix}/include' '--oldincludedir=${prefix}/include' 
E           checking for a BSD-compatible install... /gnu/store/8fpk2cja3f07xls48jfnpgrzrljpqivr-coreutils-8.32/bin/install -c
E           checking whether build environment is sane... yes
E           checking for a thread-safe mkdir -p... /gnu/store/8fpk2cja3f07xls48jfnpgrzrljpqivr-coreutils-8.32/bin/mkdir -p
E           checking for gawk... gawk
E           checking whether make sets $(MAKE)... no
E           checking whether make supports nested variables... yes
E           checking for g++... g++
E           checking whether the C++ compiler works... yes
E           checking for C++ compiler default output file name... a.out
E           checking for suffix of executables... 
E           checking whether we are cross compiling... configure: error: in `/tmp/guix-build-conan-2.0.2.drv-0/tmpguj34la7conans/pathwithoutspaces/test_package/build-release':
E           configure: error: cannot run C++ compiled programs.
E           If you meant to cross compile, use `--host'.
E           See `config.log' for more details
E           
E           *********************************************************
E           Recipe 'hello/0.1 (test package)' cannot build its binary
E           It is possible that this recipe is not Conan 2.0 ready
E           If the recipe comes from ConanCenter check: https://conan.io/cci-v2.html
E           If it is your recipe, check if it is updated to 2.0
E           *********************************************************
E           
E           ERROR: hello/0.1 (test package): Error in build() method, line 20
E               autotools.configure()
E               ConanException: Error 1 while executing
E           
E           
E           ================================== Traceback: ==================================
E           Traceback (most recent call last):
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conans/errors.py", line 51, in conanfile_exception_formatter
E               yield
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conans/client/conanfile/build.py", line 13, in run_build_method
E               conanfile.build()
E             File "/tmp/guix-build-conan-2.0.2.drv-0/tmpguj34la7conans/pathwithoutspaces/test_package/conanfile.py", line 20, in build
E               autotools.configure()
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conan/tools/gnu/autotools.py", line 59, in configure
E               self._conanfile.run(cmd)
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conans/model/conan_file.py", line 318, in run
E               raise ConanException("Error %d while executing" % retcode)
E           conans.errors.ConanException: Error 1 while executing
E           
E           During handling of the above exception, another exception occurred:
E           
E           Traceback (most recent call last):
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conans/test/utils/tools.py", line 486, in _run_cli
E               command.run(args)
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conan/cli/cli.py", line 171, in run
E               command.run(self._conan_api, self._commands[command_argument].parser, args[0][1:])
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conan/cli/command.py", line 156, in run
E               info = self._method(conan_api, parser, *args)
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conan/cli/commands/export_pkg.py", line 95, in export_pkg
E               deps_graph = run_test(conan_api, test_conanfile_path, ref, profile_host, profile_build,
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conan/cli/commands/test.py", line 70, in run_test
E               test_package(conan_api, deps_graph, path, tested_python_requires)
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conan/cli/commands/create.py", line 140, in test_package
E               conan_api.local.build(conanfile)
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conan/api/subapi/local.py", line 97, in build
E               run_build_method(conanfile, app.hook_manager)
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conans/client/conanfile/build.py", line 16, in run_build_method
E               raise
E             File "/gnu/store/65i3nhcwmz0p8rqbg48gaavyky4g4hwk-python-3.9.9/lib/python3.9/contextlib.py", line 137, in __exit__
E               self.gen.throw(typ, value, traceback)
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conans/errors.py", line 66, in conanfile_exception_formatter
E               _raise_conanfile_exc(exc)
E             File "/tmp/guix-build-conan-2.0.2.drv-0/source/conans/errors.py", line 48, in _raise_conanfile_exc
E               raise ConanExceptionInUserConanfileMethod(m)
E           conans.errors.ConanExceptionInUserConanfileMethod: hello/0.1 (test package): Error in build() method, line 20
E               autotools.configure()
E               ConanException: Error 1 while executing

conans/test/utils/tools.py:563: Exception
=============================== warnings summary ===============================
conans/test/integration/toolchains/gnu/test_autotoolsdeps.py::test_cpp_info_aggregation
conans/test/integration/toolchains/gnu/test_autotoolsdeps.py::test_cpp_info_aggregation
  /tmp/guix-build-conan-2.0.2.drv-0/tmpdi5m85flconans/path with spaces/conanfile.py:12: DeprecationWarning: invalid escape sequence \i
    env = deps.environment

conans/test/integration/toolchains/gnu/test_autotoolsdeps.py::test_cpp_info_aggregation
conans/test/integration/toolchains/gnu/test_autotoolsdeps.py::test_cpp_info_aggregation
  /tmp/guix-build-conan-2.0.2.drv-0/tmpdi5m85flconans/path with spaces/conanfile.py:15: DeprecationWarning: invalid escape sequence \l
    env.remove("LDFLAGS", "dep2_shared_link_flag")

conans/test/integration/toolchains/gnu/test_autotoolsdeps.py::test_cpp_info_aggregation
conans/test/integration/toolchains/gnu/test_autotoolsdeps.py::test_cpp_info_aggregation
  /tmp/guix-build-conan-2.0.2.drv-0/tmp2dn4nkiyconans/path with spaces/.conan2/p/dep1c5db8abbaa6d4/e/conanfile.py:12: DeprecationWarning: invalid escape sequence \i
    self.cpp_info.includedirs.append("other\include\path\{}".format(self.name))

conans/test/integration/toolchains/gnu/test_autotoolsdeps.py::test_cpp_info_aggregation
conans/test/integration/toolchains/gnu/test_autotoolsdeps.py::test_cpp_info_aggregation
  /tmp/guix-build-conan-2.0.2.drv-0/tmp2dn4nkiyconans/path with spaces/.conan2/p/dep1c5db8abbaa6d4/e/conanfile.py:15: DeprecationWarning: invalid escape sequence \l
    self.cpp_info.libdirs.append("one\lib\path\{}".format(self.name))

conans/test/integration/toolchains/gnu/test_autotoolsdeps.py::test_cpp_info_aggregation
conans/test/integration/toolchains/gnu/test_autotoolsdeps.py::test_cpp_info_aggregation
  /tmp/guix-build-conan-2.0.2.drv-0/tmp2dn4nkiyconans/path with spaces/.conan2/p/dep24bfd446af2d8a/e/conanfile.py:12: DeprecationWarning: invalid escape sequence \i
    self.cpp_info.includedirs.append("other\include\path\{}".format(self.name))

conans/test/integration/toolchains/gnu/test_autotoolsdeps.py::test_cpp_info_aggregation
conans/test/integration/toolchains/gnu/test_autotoolsdeps.py::test_cpp_info_aggregation
  /tmp/guix-build-conan-2.0.2.drv-0/tmp2dn4nkiyconans/path with spaces/.conan2/p/dep24bfd446af2d8a/e/conanfile.py:15: DeprecationWarning: invalid escape sequence \l
    self.cpp_info.libdirs.append("one\lib\path\{}".format(self.name))

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
FAILED conans/test/functional/toolchains/cmake/test_shared_cmake.py::test_other_client_can_link_autotools
FAILED conans/test/functional/toolchains/gnu/test_v2_autotools_template.py::test_autotools_lib_template
= 2 failed, 3019 passed, 321 skipped, 165 xfailed, 9 xpassed, 12 warnings in 121.14s (0:02:01) =

Attached is a config.log from one of the above failure. The config error appears to be:

configure:2738: g++ -o conftest  -m64 -O3  -DNDEBUG -I/tmp/guix-build-conan-2.0.2.drv-0/tmpv4txz0o6conans/pathwithoutspaces/.conan2/p/hello3cf69c3500cf8/p/include  -m64 -L/tmp/guix-build-conan-2.0.2.drv-0/tmpv4txz0o6conans/pathwithoutspaces/.conan2/p/hello3cf69c3500cf8/p/lib conftest.cpp  -lhello >&5
configure:2742: $? = 0
configure:2749: ./conftest
[config.log](https://github.com/conan-io/conan/files/11114657/config.log)

./conftest: error while loading shared libraries: libhello.so.0: cannot open shared object file: No such file or directory
configure:2753: $? = 127
configure:2760: error: in `/tmp/guix-build-conan-2.0.2.drv-0/tmpguj34la7conans/pathwithoutspaces/test_package/build-release':
configure:2762: error: cannot run C++ compiled programs.

The environment contains:

autoconf-wrapper@2.69 automake@1.16.3 cmake@3.25.1 coreutils@8.32 git-minimal@2.39.2
+ libtool@2.4.6 meson@0.60.3 ninja@1.10.2 pkg-config@0.29.2 python-bottle@0.12.23 python-colorama@0.4.4
+ python-dateutil@2.8.2 python-distro@1.6.0 python-fasteners@0.15 python-future@0.18.2 python-jinja2@3.1.1
+ python-mock@3.0.5 python-node-semver@0.8.1 python-parameterized@0.7.4 python-patch-ng@1.17.4
+ python-pluginbase@1.0.1 python-pygments@2.12.0 python-pyjwt@2.6.0 python-pytest-xdist@2.1.0
+ python-pytest@6.2.5 python-pyyaml@5.4.1 python-requests@2.28.1 python-six@1.16.0 python-tqdm@4.64.1
+ python-urllib3@1.26.9 python-webtest@2.0.35 which@2.21
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

No branches or pull requests

1 participant