I'm trying to setup thrift-0.9.2 for scribe on Ubuntu 14.04 and I'm running into the following problem during the build process. Does anyone know how to fix this?
/bin/bash ../../libtool --tag=CXX --mode=link g++ -Wall -Wextra -pedantic -g -O2 -std=c++11 -o thrift thrift-main.o thrift-md5.o thrift-t_generator.o thrift-t_typedef.o thrift-parse.o thrift-t_c_glib_generator.o thrift-t_cpp_generator.o thrift-t_java_generator.o thrift-t_json_generator.o thrift-t_as3_generator.o thrift-t_csharp_generator.o thrift-t_py_generator.o thrift-t_rb_generator.o thrift-t_perl_generator.o thrift-t_php_generator.o thrift-t_erl_generator.o thrift-t_cocoa_generator.o thrift-t_st_generator.o thrift-t_ocaml_generator.o thrift-t_hs_generator.o thrift-t_xsd_generator.o thrift-t_html_generator.o thrift-t_js_generator.o thrift-t_javame_generator.o thrift-t_delphi_generator.o thrift-t_go_generator.o thrift-t_gv_generator.o thrift-t_d_generator.o thrift-t_lua_generator.o -lfl libparse.a
../../libtool: eval: line 6459: unexpected EOF while looking for matching `"'
../../libtool: eval: line 6460: syntax error: unexpected end of file
I'm trying to setup thrift v0.10.0 and have ran into the same problem just like yours:
../../../libtool: eval: line 6458: unexpected EOF while looking for matching `"'
../../../libtool: eval: line 6459: syntax error: unexpected end of file
In libtool, line 6458 and line 6459 is:
6457 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
6458 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
6459
and i changed " to ', then it comes:
6457 eval sys_lib_search_path='\$sys_lib_search_path_spec'
6458 eval sys_lib_dlsearch_path='\$sys_lib_dlsearch_path_spec'
6459
Until now, i have fixed the problem, maybe you can have a try!
Related
I'm getting errors when I try to name an C file with '&' (like 'Sum of Int&float'). But the error is cleared when I remove the '&'. Why does naming with '&' produce errors.I am using Eclipse IDE for c/c++ 2021-03.
make all
Building file: ../src/int&float.c
Invoking: GCC C Compiler
gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/int&float.d" -MT"src/int&float.o" -o "src/int&float.o" "../src/int&float.c"
Finished building: ../src/int&float.c
Building target: Sum of int&float
Invoking: GCC C Linker
gcc -o "Sum of int&float" ./src/int&float.o
/bin/sh: 1: float.o: not found
make: *** [makefile:32: Sum of int&float] Error 127
gcc: error: ./src/int: No such file or directory
gcc: fatal error: no input files
compilation terminated.
"make all" terminated with exit code 2. Build might be incomplete.
18:02:24 Build Failed. 1 errors, 0 warnings. (took 685ms)```
The & character is a special character to the shell, used to put a process in the background.
You could put the filename in quotes, but it's best to avoid using that character in filenames for reasons like this.
Trying to compile with GCC on Mojave and am getting an error.
gcc -g -ansi -c test_scroll_images_3x.c -I /opt/X11/include/X11
test_scroll_images_3x.c:17:11: fatal error: 'X11/Xlib.h' file not found
# include <X11/Xlib.h>
^~~~~~~~~~~~
1 error generated.
I have several subroutines like this, and all have the same problem.
Good day
I am attempting to compile zziplib-0.13.69 (http://zziplib.sourceforge.net/) with MinGW, as I would like to use LuaZip for Lua 5.3.5. I have installed the dependency zlib 1.2.3. (http://www.zlib.net/), which thankfully has a windows installer. In order to create a UNIX environment and make use of the provided make files I use msys.bat, cd to the source directory and then set up the path to zlib 1.2.3 via:
export CPATH="C:\Program Files (x86)\GnuWin32\src\zlib\1.2.3\zlib-1.2.3"
As per normal I then run:
configure && make && make check && make install
The following error is then consistently generated during compiling:
checking CFLAGS for gcc -Wstrict-aliasing... -Wstrict-aliasing
checking CFLAGS for gcc -Warray-bounds... -Warray-bounds
checking CFLAGS making strings readonly... no, unknown
checking CFLAGS for strict prototypes... -Wstrict-prototypes
checking for pkg-config... no
configure: warning: pkgconfigdir=C:/mingw/lib/pkgconfig (see config.log)
configure: perhaps: make install pkgconfigdir=/
configure: warning: aclocaldir=C:/mingw/share/aclocal (see config.log)
configure: perhaps: make install aclocaldir=/mingw/share/aclocal
C:\MinGW\bin\sed.exe: -e expression #1, char 1: unknown command: `C'
configure: creating ./config.status
C:\MinGW\bin\sed.exe: -e expression #1, char 1: unknown command: `C'
config.status: creating Makefile
gawk: ./confjLOGyR/subs.awk:73: S["CFLAGS"]=" -fomit-frame-pointer -Wall -Wpointer-arith -Wsign-compare -Wmissing-declarations -Wdeclaration-after-statement -Werror-implicit-function-declarat"\
gawk: ./confjLOGyR/subs.awk:73: ^ backslash not last character on line
C:\MinGW\bin\sed.exe: couldn't write 1 item to stdout: Invalid argument
config.status: error: could not create Makefile
C:\MinGW\bin\sed.exe: -e expression #1, char 1: unknown command: `C'
C:\MinGW\bin\sed.exe: -e expression #1, char 1: unknown command: `C'
I have tried the guide "Compiling zziplib with MinGW" from: http://itsacleanmachine.blogspot.com/2012/03/compiling-zziplib-with-mingw.html
But unfortunately the error persists. New to compiling in general so excuse my ignorance.
Thanks in advance.
I'm trying to compile a C file that I have saved on my computer and I'm trying to compile the file with Terminal on my Mac OS X El Capitan by typing out gcc - g -wall -werror -o getit.out -std=c11 getit.c, but I keep getting this error stating:
Sandra$ gcc -g -wall -werror -o getit.out -std=c11 getit.c
clang: error: unknown argument: '-wall'
clang: error: unknown argument: '-werror'
clang: error: -E or -x required when input is from standard input
clang: error: no such file or directory: 'g'
I have downloaded Xcode and installed it, but I'm not sure why I'm getting this error. If anyone could provide insight that would be greatly appreciated. Thank you!
EDIT:
So as stated by #md xf I tried
gcc - g -Wall -Werror -o getit.out -std=c11 getit.c
but I still got an error stating
clang: error: -E or -x required when input is from standard input
clang: error: no such file or directory: 'g'
**Forgot to list all of my errors in my original post
As far as I know, the W in -Wall and -Werror need to be capitalized. A capital flag and a lowercase flag will have two completely different functions. So you would rewrite it as gcc -Wall -Werror -std=c11 -o getit.out getit.c.
In response to your edit you could also try:
writing getit.c as your first option
making sure there is no space between - and g (-g)
removing the -std=c11 if it's not absolutely necessary
It seems like you are typing something different than what's shown here. The error messages make it seem like there's a space between - and g.
clang: error: unknown argument: '-wall'
clang: error: unknown argument: '-werror'
The W in -Wall and -Werror need to be capitalized. That explains the above errors showed by gcc.
clang: error: -E or -x required when input is from standard input
clang: error: no such file or directory: 'g'
This error is due to space character between g flag option and hypen(-). Remove the space and this error will run away.
The command to compile your program should be like this:
gcc -Wall -Werror -std=c11 -o getit.out getit.c -g.
please use command as below to compile the C file
gcc - g -Wall -Werror -o getit.out -std=c11 getit.c
After much research, trying to find out how to link libraries to gcc, going to /usr/bin and /usr/lib confirming the stuff are there. When I try to compile my keygen file, this is the error it blurts out.
$ gcc keygen.c -W -Wall /usr/bin/libgcrypt-config
/usr/bin/libgcrypt-config: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
I've been told by numerous sources that I should compile this way to check if libgcrypt installed correctly.
$ gcc -o foo foo.c 'libgcrypt-config --cflags --libs'
But everytime I try to do that this is what it blurts out:
gcc: error: libgcrypt-config --cflags --libs: No such file or directory
I've confirmed that libgcrypt20 and libgcrypt20-dev are installed using dpkg --get-selections>installed. But I am just so utterly confused as to what may be wrong.
Any form of help would be much appreciated.
Try:
$ gcc -o foo foo.c `libgcrypt-config --cflags --libs`
` instead of '