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

cannot build solution #1318

Closed
aslanbeily opened this issue Jan 25, 2024 · 8 comments
Closed

cannot build solution #1318

aslanbeily opened this issue Jan 25, 2024 · 8 comments

Comments

@aslanbeily
Copy link

Whatever I do, I get unresolved cs_open, cs_option, cs_disasm_iter and in generall all cs_ symbols. Am I missing something? already restored NuGet packages and so on.
Windows 11, Visual Studio 143

@uxmal
Copy link
Owner

uxmal commented Jan 25, 2024

Thanks for reporting this issue. I'm currently traveling so I can only provide you w a suggestion. Please make sure that you've selected the x64 solution platform in the vs toolbar before building. If the premium persists please follow the command line instructions in the README file. I will be able to assist you interactively in 12 hrs

@aslanbeily
Copy link
Author

Thanks! The behaviour is quite strange.
Once I run
msbuild /p:Configuration=Release /p:Platform=x64 src/Reko-decompiler.sln
everything ends well with a couple of warnings, but no executables are produced
Compiling using MSVC GUI doesn't work at all :(

@aslanbeily
Copy link
Author

Managed somehow to build, but when tried to load an executable whose source are lost:
An item with the same key has already been added. Key: 14891863 (Parameter 'key')

@uxmal
Copy link
Owner

uxmal commented Jan 25, 2024

Still traveling. Any possibility of providing a stack trace? That helps enormously in debugging the problem

@aslanbeily
Copy link
Author

Sure

Error: An error occurred during decompilation.
An item with the same key has already been added. Key: 14891836 (Parameter 'key')
at System.Collections.Generic.SortedList2.Add(TKey key, TValue value) at Reko.ImageLoaders.MzExe.PeImageLoader.ApplyRelocations(UInt32 rvaReloc, UInt32 size, Address baseOfImage, RelocationDictionary relocations) in C:\Users\raffy\source\repos\reko\src\ImageLoaders\MzExe\PeImageLoader.cs:line 673 at Reko.ImageLoaders.MzExe.PeImageLoader.Relocate(Program program, Address addrLoad) in C:\Users\raffy\source\repos\reko\src\ImageLoaders\MzExe\PeImageLoader.cs:line 448 at Reko.ImageLoaders.MzExe.PeImageLoader.LoadProgram(Address addrLoad) in C:\Users\raffy\source\repos\reko\src\ImageLoaders\MzExe\PeImageLoader.cs:line 202 at Reko.ImageLoaders.MzExe.ExeImageLoader.LoadProgram(Address addrLoad) in C:\Users\raffy\source\repos\reko\src\ImageLoaders\MzExe\ExeImageLoader.cs:line 124 at Reko.Core.Loading.ProgramImageLoader.Load(Address addrLoad) in C:\Users\raffy\source\repos\reko\src\Core\Loading\ProgramImageLoader.cs:line 45 at Reko.Loading.Loader.LoadBinaryImage(ImageLocation imageLocation, Byte[] image, String loader, Address addrLoad) in C:\Users\raffy\source\repos\reko\src\Decompiler\Loading\Loader.cs:line 173 at Reko.Loading.Loader.Load(ImageLocation imageLocation, String loaderName, Address addrLoad) in C:\Users\raffy\source\repos\reko\src\Decompiler\Loading\Loader.cs:line 133 at Reko.CmdLine.CmdLineDriver.Decompile(Dictionary2 pArgs) in C:\Users\raffy\source\repos\reko\src\Drivers\CmdLine\CmdLineDriver.cs:line 173

@uxmal
Copy link
Owner

uxmal commented Jan 25, 2024

Looks like something is going astray when relocating the binary. I'd like to examine your binary if possible. You can use a private channel like discord (see the readme) or email to johnkal at gmail_dot_com

@aslanbeily
Copy link
Author

Cannot, sorry, it's proprietary for our company :( no worries, thanks for your help anyways!

@uxmal
Copy link
Owner

uxmal commented Jan 25, 2024

Understand. Sorry I can't be of no more help. If the doctor can't examine the sick patient, what use is he? :). I'm closing this issue as you are able to compile Reko. Let us know if there is anything else we can do, given your constraints

@uxmal uxmal closed this as completed Jan 25, 2024
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

No branches or pull requests

2 participants