Skip to content

Comments

Revert "Annotate std/path.d to please dlang/dmd#12520"#8103

Merged
dlang-bot merged 1 commit intomasterfrom
revert-8090-fix-pure-scope-path
May 18, 2021
Merged

Revert "Annotate std/path.d to please dlang/dmd#12520"#8103
dlang-bot merged 1 commit intomasterfrom
revert-8090-fix-pure-scope-path

Conversation

@ibuclaw
Copy link
Member

@ibuclaw ibuclaw commented May 17, 2021

Reverts #8090

Something broke master, and this is the only change that touches absolutePath.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @ibuclaw!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + phobos#8103"

@dkorpel
Copy link
Contributor

dkorpel commented May 17, 2021

What does the test output say? I can't find the broken commit.

@CyberShadow
Copy link
Member

@dkorpel It's here:
#8092 (comment)

@dlang-bot dlang-bot merged commit 7ff6bb7 into master May 18, 2021
@Geod24 Geod24 deleted the revert-8090-fix-pure-scope-path branch May 18, 2021 04:56
@ibuclaw
Copy link
Member Author

ibuclaw commented May 18, 2021

Logs of #8092 are gone now, but also seen in:

And a few others at the time.

generated/linux/release/64/benchmark.o:benchmark/runbench.d:function _D8runbench8runTestsFSQu6ConfigZv: error: undefined reference to '_D3std4path12absolutePathFNaNfAyaLQeZQh'
generated/linux/release/64/benchmark.o:benchmark/runbench.d:function _D8runbench8runTestsFSQu6ConfigZv: error: undefined reference to '_D3std4path12absolutePathFNaNfAyaLQeZQh'
collect2: error: ld returned 1 exit status
Error: linker exited with status 1

@dkorpel
Copy link
Contributor

dkorpel commented May 18, 2021

So void runbench.runTests(runbench.Config) can't find pure @safe immutable(char)[] std.path.absolutePath(immutable(char)[], lazy immutable(char)[]) because there's a new return annotation changing the mangle. Is the benchmark linking with new Phobos but importing old Phobos?

@nordlow
Copy link
Contributor

nordlow commented May 18, 2021

How to move forward with this?

Here's a similar PR with the change to absolutePath excluded:
#8106

And then add a second PR with only the change to absolutePath?

@ibuclaw
Copy link
Member Author

ibuclaw commented May 19, 2021

How to move forward with this?

Here's a similar PR with the change to absolutePath excluded:
#8106

And then add a second PR with only the change to absolutePath?

Seems reasonable to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants