I am trying to compile perl(5.12.3) from source on windows(64 bit windows 2008 R2) using visual studio 10 )64 bit compiler.
Following configurations were done done:
Configure visual to compile 64 bit perl:
vcvarsall.bat x64
Changes in makefile:
uncommented:
CCTYPE = MSVC90
Set the value for MSVCDIR
On doing a make I am getting following error message:
..\miniperl.exe -I..\lib bin\exetype.pl ..\wperl.exe WINDOWS
'x' outside of string in unpack at bin\exetype.pl line 39.
NMAKE : fatal error U1077: '..\miniperl.exe' : return code '0xff'
Stop.
Please help me to understand what is missing.
I have tried with visual studion 13, but got same error.
You can try a couple of fixes:
Set CCTYPE = MSVC60
Quote "$offset" on line 37.
It's a known bug that might be fixed on newer versions.
Related
On Windows 10 running a simple posdm.exe from the command line gives the error:
C:\Program Files (x86)\Microsoft Point Of Service>posdm listsos
POSDM: Error executing WMI query: 'SELECT * from ServiceObject ', res=c0c02402: 0xC0C02402
I am unable to find anything online about this. I have installed Microsoft POS for .NET version 1.12. Is this a compatibility issue?
It looks like this is just the error you receive when you use this old version on Windows 10. Upgrading to version 1.14.1 fixed the error for me. Unfortunately I will still need to test things on 1.12 for compatibility checking so will have to use a virtual machine for that.
Interactive mode in debugging fails as you try to use "imports" or just use "print 'hello world'". This seems to be a error that only exists until python 3.0 ?
Example code:
'''
Created on 14. jun. 2016
'''
import time
Debugger output:
pydev debugger: starting (pid: 6988)
>>> time.sleep(4)
File "<stdin>", line 1
time.sleep(4)
^
SyntaxError: invalid syntax
>>>
This error has been found on eclipse mars 2.2 with newest pydev from the repostory (5.0.0).
With the same eclipse 4.5.2 (Mars) and LiClipse with 5.0.0 or 4.5.5 Java 1.7.0.80 in windows the error persists. In Lubuntu with the LiClipse it works with out fail.
So the error seems to only occur in windows.
The invalid syntax is pointing to the end of the line in time.sleep(2).
Instead of using -i, you should use the actual interactive console: http://www.pydev.org/manual_adv_interactive_console.html.
I think you're having issues with \r\n there, which is why it works on Linux -- it's possible that changing preferences > general > workspace > new text file line delimiter will actually make it work so that it uses \n, but this mode of execution in PyDev is not really supported, if you want an interactive console you should use http://www.pydev.org/manual_adv_interactive_console.html.
My problem is that when I try to start debuggin in DDT in Eclipse (Kepler) an error shows up:
Error in final launch sequence
Failed to execute MI command:
-gdb-set auto-solib-add on
Error message from debugger back end:
No symbol table is loaded.
Use the "file" command.
No symbol table is loaded.
Use the "file" command.
I've compiled the application with -gc and -g flag but it didn't help.
I'm using original DMD compiler.
Sounds like you are working on Windows, DMD has no GDB support there yet. You can either use windbg from the command line or use the Visual Studio plugin, which converts the debug info after compiling.
The issue that I had is that the compiler (DMD) is not working with GDB under Windows. If somebody wants to use DDT with debugging support, he needs to use GDC compiler.
This actually is mentioned in the "Debugging" page:
http://wiki.dlang.org/Debugging
I am using eclipse to execute a cuda program. I have downloaded a CUDA PLUGIN for
eclipse. When I execute sample cuda program given by plugin its fine but when I try
to execute any other program I am getting error undefined reference to main...
make
Building target: Add_cuda
Invoking: NVCC Linker
nvcc -L/export/trainee3/dinesh/cuda5.0/lib64 -o "Add_cuda" ./mycuda.o -lcudart
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
I found in stackoverflow that some times we get this problem because of system startup file
I used flag -nostartfiles but it is not working in my case..
I have included lib64 and include path in c++ build.
So any suggestion to over come this problem....
We've been over this already.
Use nsight eclipse edition instead.
If you have cuda 5.0 or 5.5 installed, just type nsight in a terminal session.
If you really want to use that Eclipse CUDA plugin (which is no longer supported, I don't believe), then start with the C++ sample project, which you agree now and back then would work. Then modify the source code in that project. Don't create your own project.
Install CUDA 5. It comes with Nsight Eclipse version. Very Elegant to use. NV Visual profiler is integrated with Nsight. Syntax highlighting and debug mode are very easy to use.
My Matlab coder was building stuff fine the last time I used (which was 2 months ago), but now when I try to build a project with it, I get the following error:
\>> coder -build get_scores.prj
Warning: 'perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = "en_GB",
LANG = (unset)
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
VSINSTALLDIR'
exceeds MATLAB's maximum name length of 63 characters and has been truncated to
'perl: warning: Setting locale failed.
perl: warning: Please che'.
\> In CompilerConfigurationFactory>CompilerConfigurationFactory.determineLocation at 275
In CompilerConfigurationFactory>CompilerConfigurationFactory.process at 130
In getCompilerConfigurations at 56
In C:\Program Files\MATLAB\R2011b\toolbox\coder\coder\private\compilerman.p>parse_opts_file at 57
In C:\Program Files\MATLAB\R2011b\toolbox\coder\coder\private\compilerman.p>compilerman at 15
In C:\Program Files\MATLAB\R2011b\toolbox\coder\coder\private\emlckernel.p>emlckernel/getCompilerName at 148
In C:\Program Files\MATLAB\R2011b\toolbox\coder\coder\private\emlckernel.p>emlckernel/finalizeProject at 711
In C:\Program Files\MATLAB\R2011b\toolbox\coder\coder\private\emlckernel.p>emlckernel at 36
In C:\Program Files\MATLAB\R2011b\toolbox\coder\coder\private\codeProject.p>codeProject/doit at 8
In C:\Program Files\MATLAB\R2011b\toolbox\coder\coder\private\codeProject.p>codeProject at 13
In C:\Program Files\MATLAB\R2011b\toolbox\coder\coder\emlcprivate.p>emlcprivate at 18
The current MEX compiler '`<unknown>`' is not supported.
Use mex -setup to select a supported compiler.
Use help codegen for more information on using this command.
I've run mex -setup several times, chosen Visual Studio (which was what I was using previously and was working fine), and rerun the Build command, but the same error comes up repeatedly. Also, the part "exceeds MATLAB's maximum name length of 63 characters and has been truncated" seems to say Matlab is somehow interpreting the Perl warning as some variable name - I have no idea what's going on there.
I'm not sure why the Perl warning is coming up either - the LC_ALL was previously unset, and now is en_GB, but the same error comes up any way.
Any steps to rectify this would be highly appreciated.
Ok, after looking carefully at the message, I guessed that Matlab is trying to get the variable name VSINSTALLDIR using Perl internally, and the warning message is throwing it off. I tried running Perl on the command line to confirm the warning appears there too. Then while searching for ways to fix the locale error (Googling gave solutions only for linux and Mac systems), I found a way to simply suppress the Perl warning on this page. After doing that, the above error is gone.