-
Notifications
You must be signed in to change notification settings - Fork 116
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
probe2trace.pl: arch embedded eq mismatch #455
Comments
Temporal workaround: if ($arch eq 'linux') {
} elsif ($arch eq 'darwin') {
} else {
print << 'EOT';
#endif
EOT
} |
UpdateAfter a discussion with @kazuho, confirmed that there is the CR character in the end. perlprint "Arch: $arch\n";
print 'arch val:', unpack('H*', $arch), "\n";
GetOptions("arch=s" => \$arch)
or die "invalid command option\n";
print "Arch: $arch\n";
print 'arch val after:', unpack('H*', $arch), "\n"; ResultArch: linux
arch val:6c696e7578
Arch: embedded
arch val after:656d6265646465640d ReasonLooks related to dos and unix line endings. When I clone the repo from WSL, it seems to work (no CR in the end). Workaround no.2Add the following right after $arch =~ s/\r$//; # remove excess \r on WSL |
maxsharabayko
added a commit
to maxsharabayko/quicly
that referenced
this issue
Jun 17, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When building
quicly
in Ubintu under Windows Subsystem for Linux there is an error in the generatedembedded-probes.h
file. There is no matching#endif
in the end.probe2trace.pl
:After
GetOptions(..)
arch
containsembedded
with some extra character in the end. Probably/n
. Therefore the following condition returns false:The best I could do to trace the issue without known perl:
results in:
The text was updated successfully, but these errors were encountered: