I am new to building and compiling projects, so any help would be really appreciated. Also if somebody could guide me towards any good resources on similar topics, that would be great.
The issue -
For simple C++ header and source files - (Hello, World program), I am using Cmake to generate Unix makefiles on Windows OS, and then running make on the output. I have the GNU-make installed on my system. All commands were running fine until a couple of days ago, but now all of a sudden I am getting the following errors -
/usr/bin/sh: -c: line 0: syntax error near unexpected token `(' /usr/bin/sh: -c: line 0: `C:/Program Files (x86)/GnuWin32/bin/make -s -f CMakeFiles/Makefile2 all' make: *** [all] Error 1
I have done no changes on my system to the C/C++ compilers. The only recent change I can remember is installing VSCode extensions for C#. I don't think that should affect this anyways. Could someone have any inkling as to where this error might be arising from? I am at a loss here! Looking for any possible support! Thanks.
Related
I am trying to build a plugin that is destined to work specifically on Windows systems.
So as a starting point I wanted to rebuild the agent from sources before extending it with my code but while following the guide at https://www.zabbix.com/documentation...zabbix-agent-2, I am having an error.
The error that is popping up is:
c:\Users\<my-username>\Documents\zabbix-6.2.2\build\mingw>mingw32-make PCRE=c:\dev\pcre OPENSSL=c:\dev\openssl
windres.exe c:\Users\<my-username>\Documents\zabbix-6.2.2\build\mingw\..\..\build\win32\project\resource.rc --input-format=rc -O coff --target=pe-x86-64 -D _WINDOWS -D ZABBIX_AGENT2 -o c:\Users\<my-username>\Documents\zabbix-6.2.2\build\mingw\..\..\src\go\cmd\zabbix_agent2\resource.syso
windres.exe: c:\\Users\\<my-username>\\Documents\\zabbix-6.2.2\\build\\mingw\\..\\..\\build\\win32\\project\\resource.rc:75: syntax error
mingw32-make: *** [Makefile:188: c:\Users\<my-username>\Documents\zabbix-6.2.2\build\mingw\..\..\src\go\cmd\zabbix_agent2\resource.syso] Error 1
This appears to be a syntax error in the resource.rc file but after googling a bit a have no idea on how to fix the file.
If anyone can provide advice or help of any kind that would be much appreciated cause I am kind of stuck right now and can not move forward in my work cause of this compilation issue.
Thanks upfront to everyone !
Link of the resources I used:
I did a git clone https://git.zabbix.com/scm/zbx/zabbix.git --branch 6.2.2 --depth 1 --single-branch zabbix-6.2.2 from this guide (https://www.zabbix.com/documentation...ilt_in_plugins)
Go: https://dl.google.com/go/go1.19.3.windows-amd64.msi
MniGW compiler: jztkft.dl.sourceforge.net/project/mingw-w64/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-win32/sjlj/x86_64-8.1.0-release-win32-sjlj-rt_v6-rev0.7z
CMAKE: github.com/Kitware/CMake/releases/download/v3.23.5/cmake-3.23.5-windows-x86_64.msi
OpenSSL: netix.dl.sourceforge.net/project/mingw-w64/mingw-w64/mingw-w64-release/mingw-w64-v10.0.0.zip
PCRE: altushost-swe.dl.sourceforge.net/project/pcre/pcre/8.45/pcre-8.45.zip
I tried to switch to the zabbix 6.2 branch and editing the resource.rc file by removing everything from and below the line 75 that appears to be in error but I honestly don't really know what is wrong in the file or how to fix it at all.`
When installing pods for firebase crashalytics, I end up getting the following error when building my project:
/bin/sh: /Users/charlieseligman/Library/Developer/Xcode/DerivedData/iosRpg-adnemhaybfqxtfaseatzgcodrqhn/Build/Intermediates.noindex/iosRpg.build/Debug-iphoneos/iosRpg.build/Script-9E0308592720706B102EX692.sh:
"/Users/charlieseligman/Documents/GIT/ios.SwordyQuest/Pods/FirebaseCrashlytics: bad interpreter: No such file or directory
Command PhaseScriptExecution failed with a nonzero exit code
Anyone seen this before? Or have any ideas about debugging it?
I was putting the "${PODS_ROOT}/FirebaseCrashlytics/run" script in the 'Shell' textfield rather than in the section directly below this... hope this answer helps someone else who is as tired as I am and making silly mistakes also.
I'm trying to run usearch through Ubuntu Bash (on Windows 10)I'm having real trouble in assigning it to the right path. This is the error I keep getting:
/usr/bin/usearch10.0.240_i86linux32: 1: /usr/bin/usearch10.0.240_i86linux32: Syntax error: "(" unexpected
error, no response from your usearch command (usearch10.0.240_i86linux32)
is it installed and in path?
Has anyone else had this problem?
Thanks
Rachel
I'm trying to build dia on my windows system with the MinGW toolkit.
What I did:
Downloaded GTK all-in-one package and unpackged it to C:\gtk and did the setup described in the readme.
Downloaded intltool-0.50.2 and unpacked it into the C:\gtk dir
Added gtk's bin directory to PATH environment variable
Checked out dia into C:\dia\
Opened a command line with admin privileges
Opened a bash in /c/dia/ and typed autogen.sh
The Script is running until it tries to execute the macro IT_PROG_INTLTOOL(...)
./configure: line 15572: syntax error near unexpected token `0.35.0'
./configure: line 15572: `IT_PROG_INTLTOOL(0.35.0)'
When I go to configure.ac and comment the line (I know I shouldn't do so, just for test purposes) IT_PROG_INTLTOOL([0.35.0]) the next macro error comes up regarding PKG_CHECK_MODULES.
./configure: line 15577: syntax error near unexpected token `GMODULE,'
./configure: line 15577: `PKG_CHECK_MODULES(GMODULE, gmodule-2.0 gobject-2.0)'
As far as I can see, all these required libs (intltool, gmodule, pango, freetype, pkg-config, ...) are installed and can be found. But why do these macros not work?
It looks like the configure script was regenerated and there were some errors while it was generated.
You could try touch(1)'ing (however this is done on Windows...) files to avoid that the buildsystem tries to regenerate configure
Make sure your autotools are all installed and that autoreconf does not spit out any warnings
There are binary packages for dia on Windows available http://dia-installer.de/index.html.en
I'm running Fedora 9 x86_64 and am more or less a Linux newbie (not using it, but installing and such). The error occurs in the second stage of the bootstrap (i.e. "./bootstrap_stage2").
It does a whole lot fo stuff and then these errors start happening:
Fatal error: exception Out_of_memory
make[8]: *** [odoc_html.cmo] Error 2
make[8]: Leaving directory `/home/matthew/godi/build/godi/godi-ocaml/work/ocaml/ocamldoc'
make[7]: *** [ocamldoc] Error 2
make[7]: Leaving directory `/home/matthew/godi/build/godi/godi-ocaml/work/ocaml'
Error: Exec error: File /home/matthew/godi/build/godi/godi-ocaml/./../../mk/bsd.pkg.mk, line 1039: Command returned with non-zero exit code
Error: Exec error: File /home/matthew/godi/build/godi/godi-ocaml/./../../mk/bsd.pkg.mk, line 1378: Command returned with non-zero exit code
Error: Command fails with code 1: godi_console
Failure!
I've run it monitoring my memory and can say that I definately have not run out (using about 500 and I've got 3).
So anyone know what the issue is? I've searched the net, but the only other similar thing I found was the other thread on here (but it had a different error)
Any help would be much appreciated, because last time I installed it, it worked flawlessly.
This looks like a known problem with old OCaml (<3.11) on 64-bit platforms likely triggered by heap randomization, which is enabled on Fedora. It's been fixed so far as I know in recent releases (3.11 at least, possibly 3.10.2). Up-to-date GODI running out of section 3.11 should work if this is the case.