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

#7244 numa option is deleted if Boost fibre is disabled #7248

Closed
wants to merge 1 commit into from

Conversation

wdobbe
Copy link
Contributor

@wdobbe wdobbe commented Sep 11, 2021

Specify library name and version: boost/1.77.0

Resolves #7244.

When option without_fiber is set to True, option numa is deleted in the recipe. But currently the recipe still tries to change it value without checking if the option exists.


  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the
    conan-center hook activated.

@conan-center-bot
Copy link
Collaborator

All green in build 1 (c15554da7144322df8ef37c51dec2a54cd7f61f2):

  • boost/1.70.0@:
    All packages built successfully! (All logs)

  • boost/1.74.0@:
    All packages built successfully! (All logs)

  • boost/1.73.0@:
    All packages built successfully! (All logs)

  • boost/1.69.0@:
    All packages built successfully! (All logs)

  • boost/1.71.0@:
    All packages built successfully! (All logs)

  • boost/1.72.0@:
    All packages built successfully! (All logs)

  • boost/1.76.0@:
    All packages built successfully! (All logs)

  • boost/1.75.0@:
    All packages built successfully! (All logs)

  • boost/1.77.0@:
    All packages built successfully! (All logs)

@madebr
Copy link
Contributor

madebr commented Sep 12, 2021

self.options.numa is removed in the configure method.

if self.options.without_fiber:
del self.options.numa

The lines you're wanting to change here are in the config_options method.

if self.settings.compiler == "Visual Studio":
# Shared builds of numa do not link on Visual Studio due to missing symbols
self.options.numa = False

config_options is run before configure.
So there is no problem.

Copy link
Contributor

@madebr madebr left a comment

Choose a reason for hiding this comment

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

See #7248 (comment)

I think this pr is invalid.

@wdobbe
Copy link
Contributor Author

wdobbe commented Sep 12, 2021

@madebr I was also surprised that I got an error message in the config_options section.

But using the new Boost recipe still broke my build with the following error message (full log in linked issue):

ERROR: boost/1.77.0: Error in config_options() method, line 294
		self.options.numa = False
	ConanException: option 'numa' doesn't exist

Can you explain then why I get that error when 'without_fiber' is True ?

@madebr
Copy link
Contributor

madebr commented Sep 12, 2021

What command is failing for you?
I ran the following commands and conan began building boost without showing an error.

conan create . boost/1.77.0@ -o boost:without_fiber=True -o boost:numa=False
conan create . boost/1.77.0@ -o boost:without_fiber=True -o boost:numa=True
conan create . boost/1.77.0@ -o boost:without_fiber=False -o boost:numa=False
conan create . boost/1.77.0@ -o boost:without_fiber=False -o boost:numa=True

Using gcc@Linux.

Configuration for profile default:

[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=11
compiler.libcxx=libstdc++11
build_type=Release
[options]
[conf]
[build_requires]
[env]
CC=/usr/bin/gcc
CXX=/usr/bin/g++

@SSE4
Copy link
Contributor

SSE4 commented Sep 12, 2021

probably, it makes sense to fix boost shared=True + numa build instead.
there are many reports about it:
#4339
#4950

@wdobbe
Copy link
Contributor Author

wdobbe commented Sep 12, 2021

I'll reproduce it tomorrow and copy the exact command I used.

@dmn-star
Copy link
Contributor

probably, it makes sense to fix boost shared=True + numa build instead.

That would be very nice. Then I could finally get rid of my workaround (#4339 (comment)).

@wdobbe
Copy link
Contributor Author

wdobbe commented Sep 15, 2021

What command is failing for you?
I ran the following commands and conan began building boost without showing an error.

conan create . boost/1.77.0@ -o boost:without_fiber=True -o boost:numa=False
conan create . boost/1.77.0@ -o boost:without_fiber=True -o boost:numa=True
conan create . boost/1.77.0@ -o boost:without_fiber=False -o boost:numa=False
conan create . boost/1.77.0@ -o boost:without_fiber=False -o boost:numa=True

Using gcc@Linux.

On Linux you will not see this problem because the line where the error is reported is executed only when compiling with VS2019:

if self.settings.compiler == "Visual Studio":
            # Shared builds of numa do not link on Visual Studio due to missing symbols
            self.options.numa = Fals

@madebr
Copy link
Contributor

madebr commented Sep 15, 2021

I'm on Windows now and trying those 4 option combinations.
In all cases, conan began building just fine.

Please post the complete conan create boost/1.77.0@ command that is failing.

@wdobbe
Copy link
Contributor Author

wdobbe commented Sep 15, 2021

Yes, I'm trying to reproduce it myself now.

@wdobbe
Copy link
Contributor Author

wdobbe commented Sep 15, 2021

Well, I haven't been able to reproduce the reported problem anymore.
Sorry for the false alarm, I don't know why I got that error, maybe an old recipe in the local cache.

@wdobbe wdobbe closed this Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[package] <boost>/<1.77.0>: conanfile.py error due to numa option on Windows
5 participants