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

sdl2/2.0.12: Error involving flex_installer 2.6.4 #1216

Closed
seanballais opened this issue Jun 9, 2020 · 18 comments
Closed

sdl2/2.0.12: Error involving flex_installer 2.6.4 #1216

seanballais opened this issue Jun 9, 2020 · 18 comments
Labels

Comments

@seanballais
Copy link

seanballais commented Jun 9, 2020

Package and Environment Details (include every applicable attribute)

  • Package Name/Version: sdl2/2.0.12
  • Operating System+version: Linux elementaryOS 5.1.3 Hera
  • Compiler+version: Clang 10
  • Conan version: conan 1.21.1
  • Python version: Python 3.7.4

Conan profile

[settings]
os=Linux
arch=x86_64
compiler=clang
compiler.version=10
compiler.libcxx=libstdc++
build_type=Debug

[env]
CC=/usr/bin/clang-10
CXX=/usr/bin/clang++-10

Conanfile.txt

[requires]
catch2/2.11.0
eastl/3.16.05
entt/3.4.0
sdl2/2.0.12@bincrafters/stable

[generators]
cmake

Steps to reproduce

conan install -pr=</path/to/the/conan/profile> --build missing ..

Logs

Click to expand log
...
libuuid/1.0.3: Downloaded recipe revision 0
libxtst/1.2.3@bincrafters/stable: Not found in local cache, looking in remotes...
libxtst/1.2.3@bincrafters/stable: Trying with 'conan-center'...
libxtst/1.2.3@bincrafters/stable: Trying with 'bintray'...
Downloading conanmanifest.txt completed [0.11k]                                          
Downloading conanfile.py completed [0.77k]                                               
Downloading conan_export.tgz completed [1.19k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
libxtst/1.2.3@bincrafters/stable: Downloaded recipe revision 0
openssl/1.1.1d: Not found in local cache, looking in remotes...
openssl/1.1.1d: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [0.10k]                                          
Downloading conanfile.py completed [31.36k]                                              
Downloading conan_export.tgz completed [0.24k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
openssl/1.1.1d: Downloaded recipe revision 0
opengl/virtual@bincrafters/stable: Not found in local cache, looking in remotes...
opengl/virtual@bincrafters/stable: Trying with 'conan-center'...
opengl/virtual@bincrafters/stable: Trying with 'bintray'...
Downloading conanmanifest.txt completed [0.06k]                                          
Downloading conanfile.py completed [3.13k]                                               
opengl/virtual@bincrafters/stable: Downloaded recipe revision 0
flex_installer/2.6.4@bincrafters/stable: Not found in local cache, looking in remotes...
flex_installer/2.6.4@bincrafters/stable: Trying with 'conan-center'...
flex_installer/2.6.4@bincrafters/stable: Trying with 'bintray'...
Downloading conanmanifest.txt completed [0.82k]                                          
Downloading conanfile.py completed [0.98k]                                               
Downloading conan_export.tgz completed [2.35k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
flex_installer/2.6.4@bincrafters/stable: Downloaded recipe revision 0
ERROR: flex_installer/2.6.4@bincrafters/stable: 'settings.arch_build' value not defined

Notes

This bug also shows up when using sdl2/2.0.10 with the same error message. With sdl2/2.0.8 and sdl2/2.0.9, an error message saying that the package jack is displayed instead. A portion of the log that appears for sdl2/2.0.8 (but is the same with sdl2/2.0.9, save for the package version numbers) is given below:

Click to expand log
...
sdl2/2.0.8@bincrafters/stable: Configuring sources in /home/seanballais/.conan/data/sdl2/2.0.8/bincrafters/stable/source
Downloading SDL2-2.0.8.tar.gz completed [4793.96k]                                       

sdl2/2.0.8@bincrafters/stable: Copying sources to build folder
sdl2/2.0.8@bincrafters/stable: Building your package in /home/seanballais/.conan/data/sdl2/2.0.8/bincrafters/stable/build/7f2cb33362c49a6853398b35448423f801bfc78d
sdl2/2.0.8@bincrafters/stable: Generator cmake created conanbuildinfo.cmake
sdl2/2.0.8@bincrafters/stable: Calling build()
sdl2/2.0.8@bincrafters/stable: 
sdl2/2.0.8@bincrafters/stable: ERROR: Package '7f2cb33362c49a6853398b35448423f801bfc78d' build failed
sdl2/2.0.8@bincrafters/stable: WARN: Build folder /home/seanballais/.conan/data/sdl2/2.0.8/bincrafters/stable/build/7f2cb33362c49a6853398b35448423f801bfc78d
ERROR: sdl2/2.0.8@bincrafters/stable: Error in build() method, line 213
	self.build_cmake()
while calling 'build_cmake', line 278
	cmake = self._configure_cmake()
while calling '_configure_cmake', line 244
	self.check_dependencies()
while calling 'check_dependencies', line 226
	self.check_pkg_config(self.options.jack, 'jack')
while calling 'check_pkg_config', line 218
	if not pkg_config.provides:
	ConanException: pkg-config command ['pkg-config', '--print-provides', 'jack', '--print-errors'] failed with error: Command 'pkg-config --print-provides jack --print-errors' returned non-zero exit status 1.
Package jack was not found in the pkg-config search path.
Perhaps you should add the directory containing `jack.pc'
to the PKG_CONFIG_PATH environment variable
No package 'jack' found
@seanballais seanballais added the bug label Jun 9, 2020
@ericLemanissier
Copy link
Contributor

can you try with -u argument ?

@seanballais
Copy link
Author

seanballais commented Jun 10, 2020

@ericLemanissier, I've ran conan install -pr=</path/to/the/conan/profile> --build missing -u .., and here's a portion of the log I got:

Click to expand log
...
catch2/2.11.0: Retrieving from remote 'conan-center'
catch2/2.11.0: Retrieving from server 'conan-center' 
catch2/2.11.0: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [0.10k]                                          
Downloading conanfile.py completed [2.18k]                                               
Downloading conan_export.tgz completed [0.24k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
catch2/2.11.0: Downloaded recipe revision 0
pulseaudio/13.0@bincrafters/stable: Retrieving from remote 'bintray'...
pulseaudio/13.0@bincrafters/stable: Retrieving from server 'bintray' 
pulseaudio/13.0@bincrafters/stable: Trying with 'bintray'...
Downloading conanmanifest.txt completed [0.10k]                                          
Downloading conanfile.py completed [5.17k]                                               
Downloading conan_export.tgz completed [0.26k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
pulseaudio/13.0@bincrafters/stable: Downloaded recipe revision 0
libsndfile/1.0.28: Not found in local cache, looking in remotes...
libsndfile/1.0.28: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [0.10k]                                          
Downloading conanfile.py completed [3.65k]                                               
Downloading conan_export.tgz completed [0.24k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
libsndfile/1.0.28: Downloaded recipe revision 0
flac/1.3.3: Not found in local cache, looking in remotes...
flac/1.3.3: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [0.17k]                                          
Downloading conanfile.py completed [2.84k]                                               
Downloading conan_export.tgz completed [0.24k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
flac/1.3.3: Downloaded recipe revision 0
glib/2.64.0@bincrafters/stable: Retrieving from remote 'conan-center'...
glib/2.64.0@bincrafters/stable: Retrieving from server 'conan-center' 
glib/2.64.0@bincrafters/stable: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [0.10k]                                          
Downloading conanfile.py completed [6.48k]                                               
Downloading conan_export.tgz completed [0.35k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
glib/2.64.0@bincrafters/stable: Downloaded recipe revision 0
zlib/1.2.11: Retrieving from remote 'conan-center'...
zlib/1.2.11: Retrieving from server 'conan-center' 
zlib/1.2.11: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [0.31k]                                          
Downloading conanfile.py completed [7.88k]                                               
Downloading conan_export.tgz completed [0.31k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
zlib/1.2.11: Downloaded recipe revision 0
libselinux/3.0: Not found in local cache, looking in remotes...
libselinux/3.0: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [0.10k]                                          
Downloading conanfile.py completed [3.04k]                                               
Downloading conan_export.tgz completed [0.32k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
libselinux/3.0: Downloaded recipe revision 0
openssl/1.1.1g: Not found in local cache, looking in remotes...
openssl/1.1.1g: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [0.10k]                                          
Downloading conanfile.py completed [31.36k]                                              
Downloading conan_export.tgz completed [0.24k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
openssl/1.1.1g: Downloaded recipe revision 0
catch2/2.11.0: WARN: Current package is older than remote upstream one
eastl/3.16.05: WARN: Can't update, no package in remote
nasm/2.14: Not found in local cache, looking in remotes...
nasm/2.14: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [0.10k]                                          
Downloading conanfile.py completed [2.86k]                                               
Downloading conan_export.tgz completed [0.25k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
nasm/2.14: Downloaded recipe revision 0
ERROR: nasm/2.14: 'settings.arch_build' value not defined

I also updated my first comment to include the conanfile.txt I use.

Commenting out the other packages and just leaving sdl2 to isolate the problem, and running the same conan command after deleting the previously downloaded packages (via rm -rf ~/.conan/data), I get this log (upper portions removed for brevity):

Click to expand log
...
libice/1.0.10@bincrafters/stable: Not found in local cache, looking in remotes...
libice/1.0.10@bincrafters/stable: Trying with 'conan-center'...
libice/1.0.10@bincrafters/stable: Trying with 'bintray'...
Downloading conanmanifest.txt completed [0.28k]                                          
Downloading conanfile.py completed [0.95k]                                               
Downloading conan_export.tgz completed [2.57k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
libice/1.0.10@bincrafters/stable: Downloaded recipe revision 0
libsm/1.2.3@bincrafters/stable: Not found in local cache, looking in remotes...
libsm/1.2.3@bincrafters/stable: Trying with 'conan-center'...
libsm/1.2.3@bincrafters/stable: Trying with 'bintray'...
Downloading conanmanifest.txt completed [0.28k]                                          
Downloading conanfile.py completed [0.88k]                                               
Downloading conan_export.tgz completed [2.57k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
libsm/1.2.3@bincrafters/stable: Downloaded recipe revision 0
libuuid/1.0.3: Not found in local cache, looking in remotes...
libuuid/1.0.3: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [0.10k]                                          
Downloading conanfile.py completed [2.51k]                                               
Downloading conan_export.tgz completed [0.25k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
libuuid/1.0.3: Downloaded recipe revision 0
libxtst/1.2.3@bincrafters/stable: Not found in local cache, looking in remotes...
libxtst/1.2.3@bincrafters/stable: Trying with 'conan-center'...
libxtst/1.2.3@bincrafters/stable: Trying with 'bintray'...
Downloading conanmanifest.txt completed [0.11k]                                          
Downloading conanfile.py completed [0.77k]                                               
Downloading conan_export.tgz completed [1.19k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
libxtst/1.2.3@bincrafters/stable: Downloaded recipe revision 0
openssl/1.1.1g: Not found in local cache, looking in remotes...
openssl/1.1.1g: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [0.10k]                                          
Downloading conanfile.py completed [31.36k]                                              
Downloading conan_export.tgz completed [0.24k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
openssl/1.1.1g: Downloaded recipe revision 0
opengl/virtual@bincrafters/stable: Not found in local cache, looking in remotes...
opengl/virtual@bincrafters/stable: Trying with 'conan-center'...
opengl/virtual@bincrafters/stable: Trying with 'bintray'...
Downloading conanmanifest.txt completed [0.06k]                                          
Downloading conanfile.py completed [3.13k]                                               
opengl/virtual@bincrafters/stable: Downloaded recipe revision 0
nasm/2.14: Not found in local cache, looking in remotes...
nasm/2.14: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [0.10k]                                          
Downloading conanfile.py completed [2.86k]                                               
Downloading conan_export.tgz completed [0.25k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
nasm/2.14: Downloaded recipe revision 0
ERROR: nasm/2.14: 'settings.arch_build' value not defined

@ericLemanissier
Copy link
Contributor

You should set os_build and arch_build in your profile too. If you are doing native building, they have the same value as os and arch. More information on https://docs.conan.io/en/latest/systems_cross_building/cross_building.html#host-settings-os-build-arch-build-os-target-and-arch-target

@seanballais
Copy link
Author

seanballais commented Jun 10, 2020

I updated the profile to include os_build and arch_build. It's odd though that you still need to specify those two. Anyhow, I ran the same conan install command but without -u. Everything went fine until Conan tried to configure the sources for zlib/1.2.11. Here's a portion of the log with relevant information:

...
xproto/7.0.31@bincrafters/stable: Retrieving package 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 from remote 'bintray' 
Downloading conanmanifest.txt completed [1.89k]                                          
Downloading conaninfo.txt completed [0.26k]                                              
Downloading conan_package.tgz completed [184.51k]                                        
Decompressing conan_package.tgz completed [0.00k]                                        
xproto/7.0.31@bincrafters/stable: Package installed 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
xproto/7.0.31@bincrafters/stable: Downloaded package revision 0
xtrans/1.4.0@bincrafters/stable: Retrieving package 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 from remote 'bintray' 
Downloading conanmanifest.txt completed [0.72k]                                          
Downloading conaninfo.txt completed [0.26k]                                              
Downloading conan_package.tgz completed [50.69k]                                         
Decompressing conan_package.tgz completed [0.00k]                                        
xtrans/1.4.0@bincrafters/stable: Package installed 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
xtrans/1.4.0@bincrafters/stable: Downloaded package revision 0
Downloading conan_sources.tgz completed [6.95k]                                          
Decompressing conan_sources.tgz completed [0.00k]                                        
zlib/1.2.11: Configuring sources in /home/seanballais/.conan/data/zlib/1.2.11/_/_/source
ERROR: zlib/1.2.11: Error in source() method, line 31
	tools.get(**self.conan_data["sources"][self.version])
	TypeError: expected str, bytes or os.PathLike object, not list

I'm running conan install again, but with -u. I'll let you know what happens.

Running conan install with `-u`` still produces the same error message.

@ericLemanissier
Copy link
Contributor

ok, can you upgrade conan and retry ?

@seanballais
Copy link
Author

seanballais commented Jun 10, 2020

Upgrading Conan to 1.25 fixed the problem with zlib. However, I'm now getting a problem with pulseaudio/13.0: I am getting undefined references. Here's the log with the relevant information:

./.libs/module-equalizer-sink.a(module_equalizer_sink_la-module-equalizer-sink.o): In function `module_equalizer_sink_LTX_pa__init':
/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/2f90fa7bc3c26ca3c03a70c823136a990981759d/src/../source_subfolder/src/modules/module-equalizer-sink.c:1184: undefined reference to `fftwf_plan_dft_r2c_1d'
/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/2f90fa7bc3c26ca3c03a70c823136a990981759d/src/../source_subfolder/src/modules/module-equalizer-sink.c:1185: undefined reference to `fftwf_plan_dft_c2r_1d'
./.libs/module-equalizer-sink.a(module_equalizer_sink_la-module-equalizer-sink.o): In function `alloc':
/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/2f90fa7bc3c26ca3c03a70c823136a990981759d/src/../source_subfolder/src/modules/module-equalizer-sink.c:217: undefined reference to `fftwf_malloc'
./.libs/module-equalizer-sink.a(module_equalizer_sink_la-module-equalizer-sink.o): In function `module_equalizer_sink_LTX_pa__done':
/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/2f90fa7bc3c26ca3c03a70c823136a990981759d/src/../source_subfolder/src/modules/module-equalizer-sink.c:1378: undefined reference to `fftwf_destroy_plan'
/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/2f90fa7bc3c26ca3c03a70c823136a990981759d/src/../source_subfolder/src/modules/module-equalizer-sink.c:1379: undefined reference to `fftwf_destroy_plan'
/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/2f90fa7bc3c26ca3c03a70c823136a990981759d/src/../source_subfolder/src/modules/module-equalizer-sink.c:1380: undefined reference to `fftwf_free'
/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/2f90fa7bc3c26ca3c03a70c823136a990981759d/src/../source_subfolder/src/modules/module-equalizer-sink.c:1383: undefined reference to `fftwf_free'
/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/2f90fa7bc3c26ca3c03a70c823136a990981759d/src/../source_subfolder/src/modules/module-equalizer-sink.c:1384: undefined reference to `fftwf_free'
/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/2f90fa7bc3c26ca3c03a70c823136a990981759d/src/../source_subfolder/src/modules/module-equalizer-sink.c:1389: undefined reference to `fftwf_free'
/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/2f90fa7bc3c26ca3c03a70c823136a990981759d/src/../source_subfolder/src/modules/module-equalizer-sink.c:1390: undefined reference to `fftwf_free'
./.libs/module-equalizer-sink.a(module_equalizer_sink_la-module-equalizer-sink.o):/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/2f90fa7bc3c26ca3c03a70c823136a990981759d/src/../source_subfolder/src/modules/module-equalizer-sink.c:1394: more undefined references to `fftwf_free' follow
./.libs/module-equalizer-sink.a(module_equalizer_sink_la-module-equalizer-sink.o): In function `dsp_logic':
/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/2f90fa7bc3c26ca3c03a70c823136a990981759d/src/../source_subfolder/src/modules/module-equalizer-sink.c:390: undefined reference to `fftwf_execute_dft_r2c'
/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/2f90fa7bc3c26ca3c03a70c823136a990981759d/src/../source_subfolder/src/modules/module-equalizer-sink.c:397: undefined reference to `fftwf_execute_dft_c2r'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I have already installed libfftw3-dev and retried, but to no avail.

@ericLemanissier
Copy link
Contributor

Could you please send us the full build log, so that we compare it with a successful one ?

@seanballais
Copy link
Author

You may obtain the full build log here.

Note that I had to re-include the problematic SDL 2 package into my project's conanfile.txt and run Conan to obtain the build log, since I have resorted to using the system-installed SDL 2 package for the time being. The conanfile.txt that I have used has the following contents:

[requires]
catch2/2.11.0
glew/2.1.0@bincrafters/stable
eastl/3.16.05
imgui/1.76
nlohmann_json/3.8.0
sdl2/2.0.12@bincrafters/stable

[generators]
cmake

However, the problem related to SDL 2 is still present.

@ericLemanissier
Copy link
Contributor

It's strange, but it looks like some of your packages are still outdated. pulseaudio should not require x11 package any more https://gist.github.com/seanballais/b4aad1850bb2fd7319bcff86e1189cfe#file-conan-sdl2-bincrafters-build-log-txt-L225
Anyway, I updated sdl2 and glew recipe to stop depending on x11 and mesa packages too. Could you please retry with -u argument ? and post the full command and log ?

@seanballais
Copy link
Author

seanballais commented Jul 3, 2020

I ran this command:

conan install -pr=/path/to/conan/profile.txt -u --build missing ..

And I got this build log:

Click here to expand log
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Debug
compiler=clang
compiler.libcxx=libstdc++
compiler.version=10
os=Linux
os_build=Linux
[options]
[build_requires]
[env]
CC=/usr/bin/clang-10
CXX=/usr/bin/clang++-10
glew/2.1.0@bincrafters/stable: Retrieving from remote 'conan-center'...
glew/2.1.0@bincrafters/stable: Retrieving from server 'conan-center' 
glew/2.1.0@bincrafters/stable: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [0.25k]                                          
Downloading conanfile.py completed [4.97k]                                               
glew/2.1.0@bincrafters/stable: Downloaded recipe revision 0
opengl/system: Not found in local cache, looking in remotes...
opengl/system: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [0.06k]                                          
Downloading conanfile.py completed [3.18k]                                               
opengl/system: Downloaded recipe revision 0
glu/system: Not found in local cache, looking in remotes...
glu/system: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [0.06k]                                          
Downloading conanfile.py completed [2.58k]                                               
glu/system: Downloaded recipe revision 0
eastl/3.16.05: Retrieving from remote 'conan-center'...
eastl/3.16.05: Retrieving from server 'conan-center' 
eastl/3.16.05: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [0.26k]                                          
Downloading conanfile.py completed [3.43k]                                               
Downloading conan_export.tgz completed [0.32k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
eastl/3.16.05: Downloaded recipe revision 0
eabase/2.09.05: Retrieving from remote 'conan-center'...
eabase/2.09.05: Retrieving from server 'conan-center' 
eabase/2.09.05: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [0.25k]                                          
Downloading conanfile.py completed [1.59k]                                               
Downloading conan_export.tgz completed [0.31k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
eabase/2.09.05: Downloaded recipe revision 0
nlohmann_json/3.8.0: Retrieving from remote 'conan-center'...
nlohmann_json/3.8.0: Retrieving from server 'conan-center' 
nlohmann_json/3.8.0: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [0.10k]                                          
Downloading conanfile.py completed [1.67k]                                               
Downloading conan_export.tgz completed [0.24k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
nlohmann_json/3.8.0: Downloaded recipe revision 0
sdl2/2.0.12@bincrafters/stable: Retrieving from remote 'bintray'...
sdl2/2.0.12@bincrafters/stable: Retrieving from server 'bintray' 
sdl2/2.0.12@bincrafters/stable: Trying with 'bintray'...
Downloading conanmanifest.txt completed [0.31k]                                          
Downloading conanfile.py completed [14.36k]                                              
Downloading conan_export.tgz completed [0.37k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
sdl2/2.0.12@bincrafters/stable: Downloaded recipe revision 0
xorg/system: Not found in local cache, looking in remotes...
xorg/system: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [0.06k]                                          
Downloading conanfile.py completed [2.76k]                                               
xorg/system: Downloaded recipe revision 0
pulseaudio/13.0@bincrafters/stable: Retrieving from remote 'bintray'...
pulseaudio/13.0@bincrafters/stable: Retrieving from server 'bintray' 
pulseaudio/13.0@bincrafters/stable: Trying with 'bintray'...
Downloading conanmanifest.txt completed [0.10k]                                          
Downloading conanfile.py completed [4.95k]                                               
Downloading conan_export.tgz completed [0.26k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
pulseaudio/13.0@bincrafters/stable: Downloaded recipe revision 0
zlib/1.2.11: Retrieving from remote 'conan-center'...
zlib/1.2.11: Retrieving from server 'conan-center' 
zlib/1.2.11: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [0.40k]                                          
Downloading conanfile.py completed [7.88k]                                               
Downloading conan_export.tgz completed [0.33k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
zlib/1.2.11: Downloaded recipe revision 0
bzip2/1.0.8: Retrieving from remote 'conan-center'...
bzip2/1.0.8: Retrieving from server 'conan-center' 
bzip2/1.0.8: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [0.17k]                                          
Downloading conanfile.py completed [2.07k]                                               
Downloading conan_export.tgz completed [0.24k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
bzip2/1.0.8: Downloaded recipe revision 0
libselinux/3.0: Retrieving from remote 'conan-center'...
libselinux/3.0: Retrieving from server 'conan-center' 
libselinux/3.0: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [0.10k]                                          
Downloading conanfile.py completed [3.06k]                                               
Downloading conan_export.tgz completed [0.32k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
libselinux/3.0: Downloaded recipe revision 0
openssl/1.1.1g: Retrieving from remote 'conan-center'...
openssl/1.1.1g: Retrieving from server 'conan-center' 
openssl/1.1.1g: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [0.17k]                                          
Downloading conanfile.py completed [31.89k]                                              
Downloading conan_export.tgz completed [0.24k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
openssl/1.1.1g: Downloaded recipe revision 0
bzip2/1.0.8: WARN: Can't update, no package in remote
eabase/2.09.05: WARN: Current package is older than remote upstream one
fftw/3.3.8: WARN: Can't update, no package in remote
imgui/1.76: WARN: Can't update, no package in remote
libalsa/1.1.9: WARN: Can't update, no package in remote
libelf/0.8.13: WARN: Can't update, no package in remote
libffi/3.2.1: WARN: Can't update, no package in remote
libiconv/1.16: WARN: Can't update, no package in remote
libmount/2.33.1: WARN: Can't update, no package in remote
nlohmann_json/3.8.0: WARN: Current package is older than remote upstream one
ogg/1.3.4: WARN: Can't update, no package in remote
openssl/1.1.1g: WARN: Can't update, no package in remote
sqlite3/3.29.0: WARN: Can't update, no package in remote
zlib/1.2.11: WARN: Can't update, no package in remote
eastl/3.16.05: WARN: Can't update, no package in remote
flac/1.3.3: WARN: Can't update, no package in remote
pcre/8.41: WARN: Can't update, no package in remote
pcre2/10.33: WARN: Can't update, no package in remote
vorbis/1.3.6: WARN: Can't update, no package in remote
libselinux/3.0: WARN: Can't update, no package in remote
libsndfile/1.0.28: WARN: Can't update, no package in remote
glib/2.64.0@bincrafters/stable: WARN: Can't update, no package in remote
gettext/0.20.1: Not found in local cache, looking in remotes...
gettext/0.20.1: Trying with 'conan-center'...
Downloading conanmanifest.txt completed [0.41k]                                          
Downloading conanfile.py completed [4.91k]                                               
Downloading conan_export.tgz completed [0.38k]                                           
Decompressing conan_export.tgz completed [0.00k]                                         
gettext/0.20.1: Downloaded recipe revision 0
conanfile.txt: Installing package
Requirements
    bzip2/1.0.8 from 'conan-center' - Updated
    catch2/2.11.0 from 'conan-center' - Cache
    eabase/2.09.05 from 'conan-center' - Updated
    eastl/3.16.05 from 'conan-center' - Updated
    fftw/3.3.8 from 'conan-center' - Cache
    flac/1.3.3 from 'conan-center' - Cache
    glew/2.1.0@bincrafters/stable from 'conan-center' - Updated
    glib/2.64.0@bincrafters/stable from 'conan-center' - Cache
    glu/system from 'conan-center' - Downloaded
    imgui/1.76 from 'conan-center' - Cache
    libalsa/1.1.9 from 'conan-center' - Cache
    libelf/0.8.13 from 'conan-center' - Cache
    libffi/3.2.1 from 'conan-center' - Cache
    libiconv/1.16 from 'conan-center' - Cache
    libmount/2.33.1 from 'conan-center' - Cache
    libselinux/3.0 from 'conan-center' - Updated
    libsndfile/1.0.28 from 'conan-center' - Cache
    nlohmann_json/3.8.0 from 'conan-center' - Updated
    ogg/1.3.4 from 'conan-center' - Cache
    opengl/system from 'conan-center' - Downloaded
    openssl/1.1.1g from 'conan-center' - Updated
    pcre/8.41 from 'conan-center' - Cache
    pcre2/10.33 from 'conan-center' - Cache
    pulseaudio/13.0@bincrafters/stable from 'bintray' - Updated
    sdl2/2.0.12@bincrafters/stable from 'bintray' - Updated
    sqlite3/3.29.0 from 'conan-center' - Cache
    vorbis/1.3.6 from 'conan-center' - Cache
    xorg/system from 'conan-center' - Downloaded
    zlib/1.2.11 from 'conan-center' - Updated
Packages
    bzip2/1.0.8:23219b68e873594c97b915e5b682fd61d2caca86 - Cache
    catch2/2.11.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    eabase/2.09.05:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Update
    eastl/3.16.05:7a9b05de5b62cd0ee28069f10f9cde2e58321f3a - Cache
    fftw/3.3.8:d6362d0761632d34d5c8410baaebd3936121aae2 - Cache
    flac/1.3.3:bce41f13a4c23046ff35a7eff70cbdfc06645d17 - Cache
    glew/2.1.0@bincrafters/stable:9eab215b1df819534304e2003ba343572edead8d - Build
    glib/2.64.0@bincrafters/stable:f5755432f24905a578106dcfee29ac54c80d3232 - Cache
    glu/system:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download
    imgui/1.76:c504c67933d514fc146c38d6f062b33cd27ad91d - Cache
    libalsa/1.1.9:6232605ab953dfc4deeba04ad7936bd6514e4a60 - Cache
    libelf/0.8.13:72c3493baf37f6fd0e9e64ab36754d5a2f6479a9 - Cache
    libffi/3.2.1:72c3493baf37f6fd0e9e64ab36754d5a2f6479a9 - Cache
    libiconv/1.16:72c3493baf37f6fd0e9e64ab36754d5a2f6479a9 - Cache
    libmount/2.33.1:72c3493baf37f6fd0e9e64ab36754d5a2f6479a9 - Cache
    libselinux/3.0:32777db2abef0c6300f8d11778a6c0e35d5b9f28 - Cache
    libsndfile/1.0.28:98f59d332cba3f2926523059f85f285e46993945 - Cache
    nlohmann_json/3.8.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Update
    ogg/1.3.4:72c3493baf37f6fd0e9e64ab36754d5a2f6479a9 - Cache
    opengl/system:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download
    openssl/1.1.1g:72c3493baf37f6fd0e9e64ab36754d5a2f6479a9 - Cache
    pcre/8.41:48bc3a3d1d15fb3ad0eef9e37a298688d4ca4679 - Cache
    pcre2/10.33:3071444d1594ddd98df6f12fb3ce3a93129e3c76 - Cache
    pulseaudio/13.0@bincrafters/stable:f752db47ff0289078c67952105c1100685c1d23c - Build
    sdl2/2.0.12@bincrafters/stable:d2cd8f012e42fb2e2397914a99b13a831b0eec12 - Build
    sqlite3/3.29.0:56b7d301436de5dc2637ee79e9ca0e92cc191ed5 - Cache
    vorbis/1.3.6:28b9c709fc5411042bda7fd6a47ad0d4e620d64d - Cache
    xorg/system:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download
    zlib/1.2.11:72c3493baf37f6fd0e9e64ab36754d5a2f6479a9 - Cache
Build requirements
    gettext/0.20.1 from 'conan-center' - Downloaded
    libiconv/1.16 from 'conan-center' - Cache
Build requirements packages
    gettext/0.20.1:60bd5a6fe61e9f3df0f6a890cd66bc37c573a6de - Download
    libiconv/1.16:72c3493baf37f6fd0e9e64ab36754d5a2f6479a9 - Skip

Installing (downloading, building) binaries...
eabase/2.09.05: Retrieving package 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 from remote 'conan-center' 
Downloading conanmanifest.txt completed [0.85k]                                          
Downloading conaninfo.txt completed [0.26k]                                              
Downloading conan_package.tgz completed [61.70k]                                         
Decompressing conan_package.tgz completed [0.00k]                                        
eabase/2.09.05: Package installed 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
eabase/2.09.05: Downloaded package revision 0
nlohmann_json/3.8.0: Retrieving package 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 from remote 'conan-center' 
Downloading conanmanifest.txt completed [0.17k]                                          
Downloading conaninfo.txt completed [0.32k]                                              
Downloading conan_package.tgz completed [138.51k]                                        
Decompressing conan_package.tgz completed [0.00k]                                        
nlohmann_json/3.8.0: Package installed 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
nlohmann_json/3.8.0: Downloaded package revision 0
opengl/system: Retrieving package 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 from remote 'conan-center' 
Downloading conanmanifest.txt completed [0.06k]                                          
Downloading conaninfo.txt completed [0.16k]                                              
Downloading conan_package.tgz completed [0.06k]                                          
Decompressing conan_package.tgz completed [0.00k]                                        
opengl/system: Package installed 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
opengl/system: Downloaded package revision 0
xorg/system: Retrieving package 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 from remote 'conan-center' 
Downloading conanmanifest.txt completed [0.06k]                                          
Downloading conaninfo.txt completed [0.16k]                                              
Downloading conan_package.tgz completed [0.06k]                                          
Decompressing conan_package.tgz completed [0.00k]                                        
xorg/system: Package installed 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
xorg/system: Downloaded package revision 0
gettext/0.20.1: Retrieving package 60bd5a6fe61e9f3df0f6a890cd66bc37c573a6de from remote 'conan-center' 
Downloading conanmanifest.txt completed [1.12k]                                          
Downloading conaninfo.txt completed [0.38k]                                              
Downloading conan_package.tgz completed [20717.32k]                                      
Decompressing conan_package.tgz completed [0.00k]                                        
gettext/0.20.1: Package installed 60bd5a6fe61e9f3df0f6a890cd66bc37c573a6de
gettext/0.20.1: Downloaded package revision 0
glu/system: Retrieving package 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 from remote 'conan-center' 
Downloading conanmanifest.txt completed [0.06k]                                          
Downloading conaninfo.txt completed [0.21k]                                              
Downloading conan_package.tgz completed [0.06k]                                          
Decompressing conan_package.tgz completed [0.00k]                                        
glu/system: Package installed 5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
glu/system: Downloaded package revision 0
bzip2/1.0.8: Already installed!
catch2/2.11.0: Already installed!
fftw/3.3.8: Already installed!
imgui/1.76: Already installed!
libalsa/1.1.9: Already installed!
libelf/0.8.13: Already installed!
libffi/3.2.1: Already installed!
libiconv/1.16: Already installed!
libiconv/1.16: Appending PATH environment var: /home/seanballais/.conan/data/libiconv/1.16/_/_/package/72c3493baf37f6fd0e9e64ab36754d5a2f6479a9/bin
libmount/2.33.1: Already installed!
ogg/1.3.4: Already installed!
opengl/system: WARN: Don't know how to install OpenGL for your distro.
opengl/system: ERROR: while executing system_requirements(): local variable 'packages' referenced before assignment
ERROR: Error in system requirements

I've managed to track the problem to this line in the recipe of opengl/system. packages doesn't get defined whenever the opengl/system recipe is used in a Linux distro that Conan does not recognize, which elementaryOS seems to be one. elementaryOS is based on Ubuntu, and so it uses apt. However, looking at client/tools/oss.py in the conans Python module, it isn't being recognized as a distro that uses apt. Hence, causing the opengl/system recipe to print a warning message. A fix to this is to let Conan recognize elementaryOS as a distro that uses apt.

Quick Side Note: Assuming that Conan gets to recognize elementaryOS as a distro that uses apt, the opengl/system recipe should be updated in the future to use libgl-dev instead of libgl1-mesa-dev when the elementaryOS version being used is based on Ubuntu 20.04 or later.

@ericLemanissier
Copy link
Contributor

Indeed, please report the elementaryOS issue on https://github.com/conan-io/conan andthe libgl-dev thing on https://github.com/conan-io/conan-center-index
I just submitted conan-io/conan-center-index#2114 so that there is no failure even if the distro is not recognized (it's the responsability of the user to know what to install in this case)

@seanballais
Copy link
Author

Done. I've just reported in the Conan (conan-io/conan#7307) and Conan Center Index (conan-io/conan-center-index#2117) repos. I'll be keeping an eye on your PR.

@ericLemanissier
Copy link
Contributor

@seanballais now that conan-io/conan-center-index#2114 is merged, could you please retry with -u argument ?

@ericLemanissier ericLemanissier added the feedback Waiting for feedback from the original issue author. Gets closed after several weeks if no feedback label Jul 30, 2020
@seanballais
Copy link
Author

seanballais commented Aug 5, 2020

Hey, @ericLemanissier! Oddly, I'm still getting an error. Here's the relevant portion of the log:

...
pulseaudioS.c:2666:29: warning: this function declaration is not a prototype [-Wstrict-prototypes]
extern int unload_one_module();
                            ^
                             void
2619 warnings generated.
.libs/pulseaudioS.o:(.data.rel.ro+0x3528): warning: Module auto-loading no longer supported.
.libs/pulseaudioS.o:(.data.rel.ro+0x3518): warning: Module auto-loading no longer supported.
.libs/pulseaudioS.o:(.data.rel.ro+0x3538): warning: Module auto-loading no longer supported.
.libs/pulseaudioS.o:(.data.rel.ro+0x3508): warning: Module auto-loading no longer supported.
.libs/pulseaudioS.o:(.data.rel.ro+0x3728): warning: Module auto-loading no longer supported.
.libs/pulseaudioS.o:(.data.rel.ro+0x3718): warning: Module auto-loading no longer supported.
./.libs/module-equalizer-sink.a(module_equalizer_sink_la-module-equalizer-sink.o): In function `module_equalizer_sink_LTX_pa__init':
/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/f752db47ff0289078c67952105c1100685c1d23c/src/../source_subfolder/src/modules/module-equalizer-sink.c:1184: undefined reference to `fftwf_plan_dft_r2c_1d'
/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/f752db47ff0289078c67952105c1100685c1d23c/src/../source_subfolder/src/modules/module-equalizer-sink.c:1185: undefined reference to `fftwf_plan_dft_c2r_1d'
./.libs/module-equalizer-sink.a(module_equalizer_sink_la-module-equalizer-sink.o): In function `alloc':
/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/f752db47ff0289078c67952105c1100685c1d23c/src/../source_subfolder/src/modules/module-equalizer-sink.c:217: undefined reference to `fftwf_malloc'
./.libs/module-equalizer-sink.a(module_equalizer_sink_la-module-equalizer-sink.o): In function `module_equalizer_sink_LTX_pa__done':
/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/f752db47ff0289078c67952105c1100685c1d23c/src/../source_subfolder/src/modules/module-equalizer-sink.c:1378: undefined reference to `fftwf_destroy_plan'
/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/f752db47ff0289078c67952105c1100685c1d23c/src/../source_subfolder/src/modules/module-equalizer-sink.c:1379: undefined reference to `fftwf_destroy_plan'
/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/f752db47ff0289078c67952105c1100685c1d23c/src/../source_subfolder/src/modules/module-equalizer-sink.c:1380: undefined reference to `fftwf_free'
/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/f752db47ff0289078c67952105c1100685c1d23c/src/../source_subfolder/src/modules/module-equalizer-sink.c:1383: undefined reference to `fftwf_free'
/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/f752db47ff0289078c67952105c1100685c1d23c/src/../source_subfolder/src/modules/module-equalizer-sink.c:1384: undefined reference to `fftwf_free'
/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/f752db47ff0289078c67952105c1100685c1d23c/src/../source_subfolder/src/modules/module-equalizer-sink.c:1389: undefined reference to `fftwf_free'
/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/f752db47ff0289078c67952105c1100685c1d23c/src/../source_subfolder/src/modules/module-equalizer-sink.c:1390: undefined reference to `fftwf_free'
./.libs/module-equalizer-sink.a(module_equalizer_sink_la-module-equalizer-sink.o):/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/f752db47ff0289078c67952105c1100685c1d23c/src/../source_subfolder/src/modules/module-equalizer-sink.c:1394: more undefined references to `fftwf_free' follow
./.libs/module-equalizer-sink.a(module_equalizer_sink_la-module-equalizer-sink.o): In function `dsp_logic':
/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/f752db47ff0289078c67952105c1100685c1d23c/src/../source_subfolder/src/modules/module-equalizer-sink.c:390: undefined reference to `fftwf_execute_dft_r2c'
/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/f752db47ff0289078c67952105c1100685c1d23c/src/../source_subfolder/src/modules/module-equalizer-sink.c:397: undefined reference to `fftwf_execute_dft_c2r'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:7216: recipe for target 'pulseaudio' failed
make[3]: *** [pulseaudio] Error 1
make[3]: Leaving directory '/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/f752db47ff0289078c67952105c1100685c1d23c/src'
Makefile:5348: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/f752db47ff0289078c67952105c1100685c1d23c/src'
Makefile:828: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/f752db47ff0289078c67952105c1100685c1d23c'
Makefile:643: recipe for target 'all' failed
make: *** [all] Error 2
pulseaudio/13.0@bincrafters/stable: 
pulseaudio/13.0@bincrafters/stable: ERROR: Package 'f752db47ff0289078c67952105c1100685c1d23c' build failed
pulseaudio/13.0@bincrafters/stable: WARN: Build folder /home/seanballais/.conan/data/pulseaudio/13.0/bincrafters/stable/build/f752db47ff0289078c67952105c1100685c1d23c
ERROR: pulseaudio/13.0@bincrafters/stable: Error in build() method, line 109
	autotools.make()
	ConanException: Error 2 while executing make -j2

There is a problem with regards to libfftwf. Perhaps fftwf was not added to the pulseaudio Conan package?

@no-response no-response bot removed the feedback Waiting for feedback from the original issue author. Gets closed after several weeks if no feedback label Aug 5, 2020
@ericLemanissier
Copy link
Contributor

Ok, I can reproduce the problem. It boils down a mismatch between pulseaudio which uses single precision fftw functions, whereas fftw package's default is double precision. I'll release soon on stable channel a new version of the pulseaudio package, which by default does not use fftw at all. In the meantime, you can work around this problem by either using option:

  1. sdl2:pulse=False
  2. fftw:precision=single

@seanballais
Copy link
Author

Is there a reason why the current version of the pulseaudio package uses fftw by default?

@ericLemanissier
Copy link
Contributor

no special reason, just that enabling features by default usually makes things easier for the user (as long as it works, which is not the case here)

@ericLemanissier
Copy link
Contributor

fixed in bincrafters/conan-pulseaudio@9c1ca80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants