-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fix #8920 - m4/1.4.19: Runtime assertion windows pops up on MSVC in Debug mode #8984
Fix #8920 - m4/1.4.19: Runtime assertion windows pops up on MSVC in Debug mode #8984
Conversation
This comment has been minimized.
This comment has been minimized.
@@ -62,6 +62,9 @@ def _configure_autotools(self): | |||
elif self.settings.compiler == "clang": | |||
if tools.Version(self.version) < "1.4.19": | |||
autotools.flags.extend(["-rtlib=compiler-rt", "-Wno-unused-command-line-argument"]) | |||
if self.settings.os == 'Windows': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comparing compiler might be a better condition here, but that's fine as well
@madebr Can you post your settings/profile (especially compiler.runtime I suppose) here so I can try to reproduce please? I've tested this $ conan create . m4/1.4.19@ -b m4 -b missing -s build_type=Debug [settings]
arch=x86_64
arch_build=x86_64
build_type=Debug
compiler=Visual Studio
compiler.runtime=MDd
compiler.version=17
os=Windows
os_build=Windows
[options]
[build_requires]
[env] Edit: ANNNNND I'm seeing the assertion. My bad! |
I have no clue why it was working on my other machine the other day. Clearly this isn't working. I've tweaked by patch-approach now, I was using the wrong macro. That seemed to work locally, so I pulled it here. Could you give it another test @madebr please? I also wrote to the bug-m4 mailing list (hopefully clearly enough...) |
My other machine has in profiles/default the compiler.runtime=MD and not MDd, and that's why it was working I suppose. |
It works now! Great job! It's very weird though how a windows warning dialog sound is player every time after the test package has finished executing. |
@madebr see the thread on the bug-m4 mailing list I have going: https://lists.gnu.org/archive/html/bug-m4/2022-01/msg00000.html |
Thanks for the link. And +1 for the bug report, it looks like somebody is looking into it. |
@jmarrec |
it would be nice if someone can test this patch:
I'd prefer to have this one, so we diverge less from the upstream and don't need to constantly rebase custom patches |
@SSE4 Based on the latest conversations on the mailing list, it seems the patch will have no effect. What they recommend is to (force) build with |
This comment has been minimized.
This comment has been minimized.
4b39370
This comment has been minimized.
This comment has been minimized.
I don't know what's going on with the help2man on gcc 5... |
I detected other pull requests that are modifying m4/all recipe: This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there. |
|
…ted in man pages) Signed-off-by: SSE4 <tomskside@gmail.com>
This comment has been minimized.
This comment has been minimized.
Signed-off-by: SSE4 <tomskside@gmail.com>
This comment has been minimized.
This comment has been minimized.
with tools.chdir(self._source_subfolder): | ||
tools.save("help2man", '#!/usr/bin/env bash\n:') | ||
if os.name == 'posix': | ||
os.chmod("help2man", os.stat("help2man").st_mode | 0o111) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clever! thanks for the workaround @SSE4 !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Specify library name and version: m4/1.4.19
Fix #8920 - m4/1.4.19: Runtime assertion windows pops up on MSVC in Debug mode by define HAVE_MSVC_INVALID_PARAMETER_HANDLER
conan-center hook activated.