I just have installed Lazarus on my MacBook Air with OS X 10. And when I want to run a code, it says
Exit code 256
Does anyone know, what should I do?
Explanation
I had the same problem. I tried to compile this extremely basic program:
program HelloWorld;
begin
Writeln('Hello, world');
end.
And I got the error message:
Compile Project, Target: HelloWorld: Exit code 256, Errors: 1
Fatal: Compilation aborted
I think this was due to the fact that I had installed macOS Sierra last weekend. So I re-installed (with some difficulties, see below) the fcp, fpcsrc and lazarus packages and recompiled the source. Now I got a success message.
Answer
So re-download the packages above (they may have longer names, but these are the base names). Then first install fpc, then fpcsrc and then lazarus. Note that if you simply double-click the .pkg files in the .dmg files, macOS Sierra will complain:
“lazarus.pkg” can’t be opened because it is from an unidentified developer.
So open the context menu (right click) and select Open. Then you will get:
“lazarus.pkg” is from an unidentified developer. Are you sure you want to open it?
Then you can click the Open button and it will start the installer anyway. Follow the instructions and all should install well.
After that, you should be able to compile your code without that ugly error message. Note that under OS X (or, as they call it now, macOS) you won't be able to debug console mode programs from the Lazarus IDE. You'll have to start it from the console.
Related
I'm a beginner of HTK (Hidden Markov Model Toolkit).
I just compiled and installed it on my Mac machine (MacOS Sierra).
When I run a HSLab command like:
HSLab no_name
it opens a GUI window properly. But when I click "rec" it crashes with:
ERROR [+6015] StartAudioInput: null audio device
FATAL ERROR - Terminating program HSLab
The HTK version is 3.4.1 (current stable).
Any ideas?
I can produce the same error on my Linux machine (openSUSE Leap 42.2) running Pulseaudio sound manager. The fix for me is to prefix the command with padsp as in:
padsp HSLab no_name
Then the rec button works correctly. I'm not sure the audio recorded is what is required, but that is another issue. No doubt one day we will be able to compile HTK to be PA aware.
Trying
devtools::install_github("Rexamine/stringi")
and getting error:
Could not find build tools necessary to build stringi
I see several people have had this error but the solutions haven't worked for me. I reinstalled xcode because the command line tools seemed to be the problem for other people. Checked the paths for R and RStudio, I can open both fine (from the terminal as well). Don't think this is an Rtools issue but I can't figure out where the problem is. Has anyone had any luck with this particular devtools error?
Running OSX 10.11.6, RStudio Version 0.99.896, R 3.2.1 GUI 1.66 Mavericks build (6956), XCode Version 7.3.1 (7D1014).
You can try running
/usr/bin/clang --version
If command line tools are installed, this should just report the version of clang installed; otherwise, you'll be prompted to install Xcode + Command Line Tools. (This is just a simple way of ensuring command line tools indeed are installed)
If you run
devtools::install_github("Rexamine/stringi")
in a plain R console, outside of RStudio, what do you see? Can you update your post with the errors (if any) printed to the console?
You might also try updating RStudio to the preview release (https://www.rstudio.com/products/rstudio/download/preview/) to see if that helps.
It seems like this is likely a bug in RStudio's build tools detection; you might try explicitly disabling it with:
options(buildtools.check = function(action) TRUE)
This should ensure that devtools doesn't try to call RStudio's build tools detection code and just assume that everything is available.
I downloaded bitcloud, the atmel zigbee stack and I am trying to compile one of the default applications, ZLLDemo.
It is located currently at:
C:\Users\Ryan\Desktop\BitCloud_MEGARF_3_1_0\Applications\ZLLDemo\atmelStudio_projects\ATmega256RFR2.cproj
Everytime I try to compile the application I get a windows message screen for "mkdir.exe" error 0xc0000142. In the Output screen I see the line "make: *** [directories] Error -1073741502"
This same error and error code occurs later in the build process for cp.exe if I manually make the folders myself.
I have tried the following things to fix the error:
Change folder and contents to different owners, everyone having full
privileges
run make command manually from a command prompt window as admin
clean solution before retrying
all other examples files
ran directly from C: as "C:\BitCloud_MEGARF_3_1_0\Applications\ZLLDemo\atmelStudio_projects\ATmega256RFR2.cproj" - as per general suggestion for the windows error I tried
"sfc /scannow" in case mkdir had somehow been corrupted
Changed AppInitDLLs Reg key to 0 to load all DLLs at start of application
Disabled Internet security
Does this have a general fix or is there perhaps something else at work here? General compilations work, its just external ones. My friend did the same and it seems to work just fine for him.
Windows 8.1
Atmel Studio 6.2
Avrfreaks had a solution that I finally found here.
Their solution is to download an old version of the msys file for winavr. Which means that their is something more than likely wrong with the latest version of winavr for windows 8.1
sebastor wrote:
I found solution.
Copy this file:
http://www.madwizard.org/download/electronics/msys-1.0-vista64.zip
to utils\bin directory (WinAVR)
The app builds with zero errors and has a single line of output after Xcode displays "Running AppName : AppName"
error: failed to launch '/tmp/HungryMeProduct/Debug/HungryMe.app/Contents/MacOS/HungryMe'
-- SBTarget is invalid
The App will not run in Xcode.
This is my first OS X app. It was doing fine until
I changed the Project Name and the name of the xcodeproj file name recently.
ProjectName, Executable Name are the same.
Deployment Target 10.6
The executable at .../Contents/MacOS/HungryMe runs when I double click it.
Terminal window displays output.
The code signing identity remains my Developer Identity
In the schemes I see that LLDB is selected not GDB. Is this a debugger problem? What is SBTarget?
This happened to me, and the issue I had was the schema Target was correct but 64 bit was selected in as the architecture instead of 32 bit, for a 32 bit only project. Once I made the switch, it started working again.
GDB had the same issue but did not report it so elegantly, instead it reported "warning: posix_spawn failed, trying execvp, error: 86". It did launch the app but could not debug it.
This can easily happen if you debug without building the project, after switching the schema, or if the schema gets switched for you due to an external change to the project file (updating or reverting your source repository using git, svn, ...)
I tried everything metioned here. Nothing worked. It seems that I somehow imported the Info.plist twice. To fix it I selected the project and pressed the "Validate Settings" button. Afterwards it works for me.
Try to change Target's Architectures in Build Settings
I've created a static library C++ project but when I compile I get the following error:
XCode 4.1 (Lion) doesn't show me any more information what's going wrong. I'm using clang.
How can I find out what went wrong?
I have read elsewhere, and confirmed myself, that the problem is that Xcode is suppressing the output from stdout.
As a work around, in Xcode, flip open the display of the commands being executed and copy and paste them into a Terminal session and run lib tool from there.