Error 2 while building project in eclipse - c

16:22:14 **** Incremental Build of configuration Default for project ccsds-compression.git.old ****
make all
'Building file: ../../src/AC_Coding.c'
sparc-leon3-none-gcc.exe -c -O3 -pedantic -Wall -msoft-float -mcpu=v8 -mtune=leon -Wno-long-long -funroll-loops -fmessage-length=0 -std=c99 -I. -I....\src -o AC_Coding.o ../../src/AC_Coding.c process_begin: CreateProcess((null), sparc-leon3-none-gcc.exe -c -O3 -pedantic -Wall -msoft-float -mcpu=v8 -mtune=leon -Wno-long-long -funroll-loops -fmessage-length=0 -std=c99 -I. -I....\src -o AC_Coding.o ../../src/AC_Coding.c, ...) failed. make (e=2): The system cannot find the file specified.
make: *** [AC_Coding.o] Error 2
I am receiving this error when building the project. Could someone guide me as to how I should resolve this?

Related

installing libcerf throws error when entering make

I need to use the erfi function in my C program, so I tried to install the libcerf library, where it is supposed to be contained. I downloaded it, went to the directory and entered ./configure. So far so good. Now when I enter 'make' it gives me the following error:
`localhost:libcerf-1.3 NAME$ make
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in lib
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -pedantic -Wall -Werror -g -O2 -MT w_of_z.lo -MD -MP -MF .deps/w_of_z.Tpo -c -o w_of_z.lo w_of_z.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -pedantic -Wall -Werror-g -O2 -MT w_of_z.lo -MD -MP -MF .deps/w_of_z.Tpo -c w_of_z.c -fno-common -DPIC -o .libs/w_of_z.o
w_of_z.c:79:21: error: unused function 'cpolar' [-Werror,-Wunused-function]
static inline cmplx cpolar(double r, double t)
^
1 error generated.
make[2]: *** [w_of_z.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
There seems to be some problem with an unused function. This confuses me since this is the only way known to me to install libraries and I did not really do anything but the ./configure command. Yet it doesnt work. Additionally, I can't help myself with the output I get. I have tried googling it but could not get any further. I am using a Mac. Any help is appreciated.
Thanks a lot!

Error in installing ncdf on Linux when ever i want to install ncdf package it show this error

install.packages("ncdf")
* installing source package ‘ncdf’ ...
** package ‘ncdf’ successfully unpacked and MD5 sums checked checking for nc-config... /usr/local/bin/nc-config configure: creating
./config.status config.status: creating src/Makevars
** libs gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I/usr/local/include -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c ncdf.c -o ncdf.o gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I/usr/local/include
-fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c ncdf2.c -o ncdf2.o gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG
-I/usr/local/include -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c ncdf3.c -o ncdf3.o gcc -std=gnu99 -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions
-Wl,-z,relro -o ncdf.so ncdf.o ncdf2.o ncdf3.o -L/usr/local/lib -lnetcdf -L/usr/lib/R/lib -lR /usr/bin/ld: /usr/local/lib/libnetcdf.a(attr.o): relocation R_X86_64_32 against
`.rodata' can not be used when making a shared object; recompile with
-fPIC /usr/local/lib/libnetcdf.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status make: *** [ncdf.so] Error 1
ERROR: compilation failed for package ‘ncdf’
* removing ‘/home/ayesha/R/x86_64-pc-linux-gnu-library/3.2/ncdf’
The downloaded source packages are in
'/tmp/RtmpSrzd8P/downloaded_packages'

QT5.0 Cross compile for AM1808 ARM9

I have a requirement to implement the JSON for file transfer.
I found that QJsonDocument is only supported to the QT5.0.
So that I am trying to Cross compile the QT5.0 for my processor(AM1808 ARM9).
I am using UBUNTU v12.10.
I am using arm-none-gnueabi-gcc toolchain to cross compile it.
I have tried to cross compile it using the following configure command.
./configure -prefix /home/ -release -make libs -xplatform mkspecs/linux-arm-gnueabi-g++ -confirm-license -opensource -no-xcb -make examples -verbose
I am getting an error like following:
<<srcbase> = /opt/qt-everywhere-opensource-src-5.0.2/qtbase
<outbase> = /opt/qt-everywhere-opensource-src-5.0.2/qtbase
Creating qmake...
make: Nothing to be done for `first'.
Running configuration tests...
Warning: Disabling pkg-config since PKG_CONFIG_LIBDIR is not set.
Warning: Disabling pkg-config since PKG_CONFIG_SYSROOT_DIR is not set.
Determining architecture... ()
arm-none-linux-gnueabi-g++ -c -pipe -g -Wall -W -fPIE -I../../mkspecs/linux-arm-gnueabi-g++ -I. -o arch.o arch.cpp
arm-none-linux-gnueabi-g++ -o arch arch.o
{ test -n "" && DESTDIR="" || DESTDIR=.; } && test $(gdb --version | sed -e 's,[^0-9]\+\([0-9]\)\.\([0-9]\).*,\1\2,;q') -gt 72 && gdb --nx --batch --quiet -ex 'set confirm off' -ex "save gdb-index $DESTDIR" -ex quit 'arch' && test -f arch.gdb-index && arm-none-linux-gnueabi-objcopy --add-section '.gdb_index=arch.gdb-index' --set-section-flags '.gdb_index=readonly' 'arch' 'arch' && rm -f arch.gdb-index || true
Found architecture in binary
CFG_ARCH="arm"
CFG_CPUFEATURES=""
Determining architecture... ()
g++ -c -pipe -g -Wall -W -fPIE -I../../mkspecs/linux-g++ -I. -o arch.o arch.cpp
g++ -o arch arch.o
{ test -n "" && DESTDIR="" || DESTDIR=.; } && test $(gdb --version | sed -e 's,[^0-9]\+\([0-9]\)\.\([0-9]\).*,\1\2,;q') -gt 72 && gdb --nx --batch --quiet -ex 'set confirm off' -ex "save gdb-index $DESTDIR" -ex quit 'arch' && test -f arch.gdb-index && objcopy --add-section '.gdb_index=arch.gdb-index' --set-section-flags '.gdb_index=readonly' 'arch' 'arch' && rm -f arch.gdb-index || true
Found architecture in binary
CFG_HOST_ARCH="i386"
CFG_HOST_CPUFEATURES=""
System architecture: 'arm'
Host architecture: 'i386'
C++11 auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -std=c++0x -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o c++11.o c++11.cpp
arm-none-linux-gnueabi-g++ -Wl,-O1 -o c++11 c++11.o
C++11 enabled.
floatmath auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o floatmath.o floatmath.cpp
floatmath.cpp:44:5: warning: unused parameter 'argc' [-Wunused-parameter]
floatmath.cpp:44:5: warning: unused parameter 'argv' [-Wunused-parameter]
arm-none-linux-gnueabi-g++ -Wl,-O1 -o floatmath floatmath.o
floatmath enabled.
sse2 auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -msse2 -g -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o sse2.o sse2.cpp
cc1plus: error: unrecognized command line option '-msse2'
make: *** [sse2.o] Error 1
sse2 disabled.
sse3 auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -msse3 -g -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o sse3.o sse3.cpp
cc1plus: error: unrecognized command line option '-msse3'
make: *** [sse3.o] Error 1
sse3 disabled.
ssse3 auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -mssse3 -g -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o ssse3.o ssse3.cpp
cc1plus: error: unrecognized command line option '-mssse3'
make: *** [ssse3.o] Error 1
ssse3 disabled.
sse4_1 auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -msse4.1 -g -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o sse4_1.o sse4_1.cpp
cc1plus: error: unrecognized command line option '-msse4.1'
make: *** [sse4_1.o] Error 1
sse4_1 disabled.
sse4_2 auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -msse4.2 -g -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o sse4_2.o sse4_2.cpp
cc1plus: error: unrecognized command line option '-msse4.2'
make: *** [sse4_2.o] Error 1
sse4_2 disabled.
avx auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -mavx -g -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o avx.o avx.cpp
cc1plus: error: unrecognized command line option '-mavx'
make: *** [avx.o] Error 1
avx disabled.
neon auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -mfpu=neon -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o neon.o neon.cpp
In file included from neon.cpp:42:0:
/opt/arm-2012.03/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.3/include/arm_neon.h:32:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
neon.cpp: In function 'int main(int, char**)':
neon.cpp:46:5: error: 'int32x4_t' was not declared in this scope
neon.cpp:46:15: error: expected ';' before 'null'
neon.cpp:49:29: error: 'null' was not declared in this scope
neon.cpp:49:36: error: 'vst1q_lane_s32' was not declared in this scope
make: *** [neon.o] Error 1
neon disabled.
zlib auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o zlib.o zlib.cpp
zlib.cpp:42:18: fatal error: zlib.h: No such file or directory
compilation terminated.
make: *** [zlib.o] Error 1
zlib disabled.
libjpeg auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o libjpeg.o libjpeg.cpp
libjpeg.cpp:45:21: fatal error: jpeglib.h: No such file or directory
compilation terminated.
make: *** [libjpeg.o] Error 1
libjpeg disabled.
libpng auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o libpng.o libpng.cpp
libpng.cpp:42:17: fatal error: png.h: No such file or directory
compilation terminated.
make: *** [libpng.o] Error 1
libpng disabled.
DB2 auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o db2.o db2.cpp
db2.cpp:42:20: fatal error: sqlcli.h: No such file or directory
compilation terminated.
make: *** [db2.o] Error 1
DB2 disabled.
InterBase auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o ibase.o ibase.cpp
ibase.cpp:42:19: fatal error: ibase.h: No such file or directory
compilation terminated.
make: *** [ibase.o] Error 1
InterBase disabled.
MySQL (thread-safe) auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o mysql.o ../mysql/mysql.cpp
../mysql/mysql.cpp:42:19: fatal error: mysql.h: No such file or directory
compilation terminated.
make: *** [mysql.o] Error 1
MySQL (thread-safe) disabled.
MySQL (thread-unsafe) auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o mysql.o mysql.cpp
mysql.cpp:42:19: fatal error: mysql.h: No such file or directory
compilation terminated.
make: *** [mysql.o] Error 1
MySQL (thread-unsafe) disabled.
OCI auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o oci.o oci.cpp
oci.cpp:42:17: fatal error: oci.h: No such file or directory
compilation terminated.
make: *** [oci.o] Error 1
OCI disabled.
ODBC auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o odbc.o odbc.cpp
odbc.cpp:45:17: fatal error: sql.h: No such file or directory
compilation terminated.
make: *** [odbc.o] Error 1
ODBC disabled.
iODBC auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o iodbc.o iodbc.cpp
iodbc.cpp:42:17: fatal error: sql.h: No such file or directory
compilation terminated.
make: *** [iodbc.o] Error 1
iODBC disabled.
PostgreSQL auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o psql.o psql.cpp
psql.cpp:42:22: fatal error: libpq-fe.h: No such file or directory
compilation terminated.
make: *** [psql.o] Error 1
PostgreSQL disabled.
SQLite2 auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o sqlite2.o sqlite2.cpp
sqlite2.cpp:42:20: fatal error: sqlite.h: No such file or directory
compilation terminated.
make: *** [sqlite2.o] Error 1
SQLite2 disabled.
TDS auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o tds.o tds.cpp
tds.cpp:42:22: fatal error: sybfront.h: No such file or directory
compilation terminated.
make: *** [tds.o] Error 1
TDS disabled.
NIS auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o nis.o nis.cpp
arm-none-linux-gnueabi-g++ -Wl,-O1 -o nis nis.o -lnsl
NIS enabled.
Cups auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o cups.o cups.cpp
cups.cpp:42:23: fatal error: cups/cups.h: No such file or directory
compilation terminated.
make: *** [cups.o] Error 1
Cups disabled.
POSIX iconv auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o iconv.o iconv.cpp
arm-none-linux-gnueabi-g++ -Wl,-O1 -o iconv iconv.o
POSIX iconv enabled.
D-Bus auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o dbus.o dbus.cpp
dbus.cpp:43:23: fatal error: dbus/dbus.h: No such file or directory
compilation terminated.
make: *** [dbus.o] Error 1
D-Bus disabled.
Glib auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o glib.o glib.cpp
glib.cpp:44:18: fatal error: glib.h: No such file or directory
compilation terminated.
make: *** [glib.o] Error 1
Glib disabled.
ICU auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o icu.o icu.cpp
icu.cpp:42:28: fatal error: unicode/utypes.h: No such file or directory
compilation terminated.
make: *** [icu.o] Error 1
ICU disabled.
PulseAudio auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o pulseaudio.o pulseaudio.cpp
pulseaudio.cpp:42:30: fatal error: pulse/pulseaudio.h: No such file or directory
compilation terminated.
make: *** [pulseaudio.o] Error 1
PulseAudio disabled.
OpenGL auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o opengldesktop.o opengldesktop.cpp
opengldesktop.cpp:45:19: fatal error: GL/gl.h: No such file or directory
compilation terminated.
make: *** [opengldesktop.o] Error 1
OpenGL disabled.
OpenGL ES 2.x auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o opengles2.o opengles2.cpp
opengles2.cpp:45:25: fatal error: GLES2/gl2.h: No such file or directory
compilation terminated.
make: *** [opengles2.o] Error 1
OpenGL ES 2.x disabled.
FontConfig auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o fontconfig.o fontconfig.cpp
fontconfig.cpp:42:22: fatal error: ft2build.h: No such file or directory
compilation terminated.
make: *** [fontconfig.o] Error 1
FontConfig disabled.
libudev auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o libudev.o libudev.cpp
libudev.cpp:42:21: fatal error: libudev.h: No such file or directory
compilation terminated.
make: *** [libudev.o] Error 1
libudev disabled.
evdev auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o evdev.o evdev.cpp
arm-none-linux-gnueabi-g++ -Wl,-O1 -o evdev evdev.o
evdev enabled.
XLib auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o xlib.o xlib.cpp
xlib.cpp:42:22: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
make: *** [xlib.o] Error 1
XLib disabled.
Xrender auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o xrender.o xrender.cpp
xrender.cpp:42:22: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
make: *** [xrender.o] Error 1
Xrender disabled.
LinuxFB auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o linuxfb.o linuxfb.cpp
arm-none-linux-gnueabi-g++ -Wl,-O1 -o linuxfb linuxfb.o
LinuxFB enabled.
KMS auto-detection... ()
Project ERROR: Package libdrm not found
make: *** No targets specified and no makefile found. Stop.
KMS disabled.
EGL auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o egl.o egl.cpp
egl.cpp:42:21: fatal error: EGL/egl.h: No such file or directory
compilation terminated.
make: *** [egl.o] Error 1
EGL disabled.
FreeType auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o freetype.o freetype.cpp
freetype.cpp:42:22: fatal error: ft2build.h: No such file or directory
compilation terminated.
make: *** [freetype.o] Error 1
FreeType disabled.
STL auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o stltest.o stltest.cpp
stltest.cpp: In function 'int main()':
stltest.cpp:136:13: warning: variable 'first' set but not used [-Wunused-but-set-variable]
stltest.cpp:138:16: warning: variable 'second' set but not used [-Wunused-but-set-variable]
stltest.cpp:109:9: warning: variable 'v1size' set but not used [-Wunused-but-set-variable]
stltest.cpp:111:9: warning: variable 'v1capacity' set but not used [-Wunused-but-set-variable]
stltest.cpp:115:10: warning: variable 'v1notfound' set but not used [-Wunused-but-set-variable]
stltest.cpp:119:10: warning: variable 'v1found' set but not used [-Wunused-but-set-variable]
stltest.cpp:124:9: warning: variable 'v2size' set but not used [-Wunused-but-set-variable]
stltest.cpp:132:9: warning: variable 'm1size' set but not used [-Wunused-but-set-variable]
stltest.cpp:142:9: warning: variable 'm2size' set but not used [-Wunused-but-set-variable]
stltest.cpp:146:9: warning: unused variable 'n' [-Wunused-variable]
arm-none-linux-gnueabi-g++ -Wl,-O1 -o stl stltest.o
STL enabled.
POSIX clock_gettime() auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o clock-gettime.o clock-gettime.cpp
arm-none-linux-gnueabi-g++ -Wl,-O1 -o clock-gettime clock-gettime.o -lrt
POSIX clock_gettime() enabled.
POSIX Monotonic Clock auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o clock-monotonic.o clock-monotonic.cpp
arm-none-linux-gnueabi-g++ -Wl,-O1 -o clock-monotonic clock-monotonic.o -lrt
POSIX Monotonic Clock enabled.
mremap auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o mremap.o mremap.cpp
arm-none-linux-gnueabi-g++ -Wl,-O1 -o mremap mremap.o
mremap enabled.
getaddrinfo auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o getaddrinfotest.o getaddrinfotest.cpp
arm-none-linux-gnueabi-g++ -Wl,-O1 -o getaddrinfo getaddrinfotest.o
getaddrinfo enabled.
inotify auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o inotifytest.o inotifytest.cpp
arm-none-linux-gnueabi-g++ -Wl,-O1 -o inotify inotifytest.o
inotify enabled.
IPv6 interface name auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o ipv6ifname.o ipv6ifname.cpp
arm-none-linux-gnueabi-g++ -Wl,-O1 -o ipv6ifname ipv6ifname.o
IPv6 interface name enabled.
getifaddrs auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o getifaddrs.o getifaddrs.cpp
arm-none-linux-gnueabi-g++ -Wl,-O1 -o getifaddrs getifaddrs.o
getifaddrs enabled.
OpenSSL auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o openssl.o openssl.cpp
openssl.cpp:42:30: fatal error: openssl/opensslv.h: No such file or directory
compilation terminated.
make: *** [openssl.o] Error 1
OpenSSL disabled.
PCRE auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o pcre.o pcre.cpp
pcre.cpp:42:18: fatal error: pcre.h: No such file or directory
compilation terminated.
make: *** [pcre.o] Error 1
PCRE disabled.
OpenVG auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o openvg.o openvg.cpp
openvg.cpp:48:23: fatal error: VG/openvg.h: No such file or directory
compilation terminated.
make: *** [openvg.o] Error 1
OpenVG disabled.
OpenVG auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o openvg.o openvg.cpp
openvg.cpp:48:23: fatal error: VG/openvg.h: No such file or directory
compilation terminated.
make: *** [openvg.o] Error 1
OpenVG disabled.
OpenVG (lc includes) auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -DQT_LOWER_CASE_VG_INCLUDES -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o openvg.o openvg.cpp
openvg.cpp:46:23: fatal error: vg/openvg.h: No such file or directory
compilation terminated.
make: *** [openvg.o] Error 1
OpenVG (lc includes) disabled.
OpenVG (lc includes) auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -DQT_LOWER_CASE_VG_INCLUDES -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o openvg.o openvg.cpp
openvg.cpp:46:23: fatal error: vg/openvg.h: No such file or directory
compilation terminated.
make: *** [openvg.o] Error 1
OpenVG (lc includes) disabled.
alsa auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o alsatest.o alsatest.cpp
alsatest.cpp:42:28: fatal error: alsa/asoundlib.h: No such file or directory
compilation terminated.
make: *** [alsatest.o] Error 1
alsa disabled.
javascriptcore-jit auto-detection... ()
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o hwcap_test.o hwcap_test.cpp
hwcap_test.cpp:43:5: warning: unused parameter 'argc' [-Wunused-parameter]
hwcap_test.cpp:43:5: warning: unused parameter 'argv' [-Wunused-parameter]
arm-none-linux-gnueabi-g++ -Wl,-O1 -o javascriptcore-jit hwcap_test.o
javascriptcore-jit enabled.
Testing size of pointers ... (/opt/qt-everywhere-opensource-src-5.0.2/qtbase/mkspecs/linux-arm-gnueabi-g++ yes /opt/qt-everywhere-opensource-src-5.0.2/qtbase /opt/qt-everywhere-opensource-src-5.0.2/qtbase)
rm -f ptrsizetest.o
rm -f *~ core *.core
arm-none-linux-gnueabi-g++ -c -pipe -O2 -Wall -W -fPIE -I../../../mkspecs/linux-arm-gnueabi-g++ -I. -o ptrsizetest.o ptrsizetest.cpp
ptrsizetest.cpp: In function 'int main(int, char**)':
ptrsizetest.cpp:59:12: error: 'PointerSize' is not a member of 'QPointerSizeTest<4>'
make: *** [ptrsizetest.o] Error 1
Pointer size: 4
Building on: linux-g++
Building for: linux-arm-gnueabi-g++
Architecture: arm, features:
Host architecture: i386, features:
Platform notes:
- Also available for Linux: linux-kcc linux-icc linux-cxx
qmake vars .......... styles += mac fusion windows DEFINES += QT_NO_LIBUDEV DEFINES += QT_NO_XCB PRECOMPILED_DIR = .pch/release-shared OBJECTS_DIR = .obj/release-shared MOC_DIR = .moc/release-shared RCC_DIR = .rcc/release-shared UI_DIR = .uic/release-shared sql-drivers = sql-plugins = sqlite qmake switches .........
Build .................. libs examples
Configuration .......... cross_compile qpa largefile precompile_header pcre minimal-config small-config medium-config large-config full-config no-pkg-config evdev linuxfb c++11 accessibility shared qpa reduce_exports reduce_relocations clock-gettime clock-monotonic mremap getaddrinfo ipv6ifname getifaddrs inotify png freetype zlib nis iconv rpath concurrent audio-backend v8 v8snapshot release
Debug .................. no
C++11 support .......... yes
pkg-config ............. no
Qt D-Bus module ........ no
Qt Concurrent code ..... yes
Qt GUI module .......... yes
Qt Widgets module ...... yes
JavaScriptCore JIT ..... To be decided by JavaScriptCore
QML debugging .......... yes
PCH support ............ yes
iWMMXt support ......... no
NEON support ........... no
IPv6 ifname support .... yes
getaddrinfo support .... yes
getifaddrs support ..... yes
Accessibility .......... yes
NIS support ............ yes
CUPS support ........... no
Iconv support .......... yes
Glib support ........... no
GStreamer support ...... no
PulseAudio support ..... no
Large File support ..... yes
GIF support ............ plugin
JPEG support ........... plugin (qt)
PNG support ............ yes (qt)
zlib support ........... yes
Session management ..... auto
libudev support ........ no
Use system proxies ..... no
OpenGL support ......... no
OpenVG support ......... no
XShape support ......... auto
XVideo support ......... auto
XSync support .......... auto
Xinerama support ....... runtime
Xcursor support ........ runtime
Xfixes support ......... runtime
Xrandr support ......... runtime
Xi support ............. runtime
Xi2 support ............ auto
MIT-SHM support ........ auto
FontConfig support ..... no
XKB Support ............ auto
GTK theme support ...... no
SQLite support ......... plugin (qt)
OpenSSL support ........ no
Alsa support ........... no
libICU support ......... no
PCRE support ........... qt
Xcb support ............ no
Xrender support ........ no
EGLFS support .......... no
DirectFB support ....... no
LinuxFB support ........ yes
KMS support ............ no
Could not find qmake configuration file mkspecs/linux-arm-gnueabi-g++.>
I have changed the qmake.conf file as per according to my requirement.
I am not able to cross compile it.
Please help.
You should change -xplatform mkspecs/linux-arm-gnueabi-g++ to -xplatform linux-arm-gnueabi-g++.

gcc builds with -o but not -o3?

My Makefile looks like this:
CC=gcc
CFLAGS=-Wall -Wextra -std=c99 -pedantic
OBJECTS=main.o Scene.o Matrix.o Vector.o Triangle.o Color.o Raster.o
render: $(OBJECTS)
$(CC) $(CFLAGS) -lm -o render -g $(OBJECTS)
rm $(OBJECTS)
clean:
rm -f render*
This builds my executable with no errors, but when I change -o to -o2 or -o3, I get the error:
gcc -Wall -Wextra -std=c99 -pedantic -c -o main.o main.c
gcc -Wall -Wextra -std=c99 -pedantic -c -o Scene.o Scene.c
gcc -Wall -Wextra -std=c99 -pedantic -c -o Matrix.o Matrix.c
gcc -Wall -Wextra -std=c99 -pedantic -c -o Vector.o Vector.c
gcc -Wall -Wextra -std=c99 -pedantic -c -o Triangle.o Triangle.c
gcc -Wall -Wextra -std=c99 -pedantic -c -o Color.o Color.c
gcc -Wall -Wextra -std=c99 -pedantic -c -o Raster.o Raster.c
gcc -Wall -Wextra -std=c99 -pedantic -lm -o3 render -g main.o Scene.o Matrix.o Vector.o Triangle.o Color.o Raster.o
gcc.exe: error: render: No such file or directory
make: *** [render] Error 1
There could be some error in my code detected by the optimization flags, but as I don't get any error messages before this it's hard to know what's going wrong. I'm using MinGW/MSYS on Windows 7.
-o render means create the output file with the name render.
Now you are changing this -o to -o3 which is incorrect. Instead you need to keep -o render as it is and add a -O3 flag for optimization. Note the capital letter O.
-o is the output file flag. You were thinking of -O (capital).

Failed to compile with distcc, but OK without it

I'm trying to compile RaLink drivers for usb wifi dongle. Without using distcc everything is OK but if i use distcc there is error.
Here make log:
make -C UTIL/
cp -f os/linux/Makefile.6.util /home/tobi/RaLink_driver/UTIL/os/linux/Makefile
make -C /home/tobi/linux/ SUBDIRS=/home/tobi/RaLink_driver/UTIL/os/linux modules
mkdir -p /home/tobi/RaLink_driver/UTIL/os/linux/.tmp_versions
rm -f /home/tobi/RaLink_driver/UTIL/os/linux/.tmp_versions/*
make -f scripts/Makefile.build obj=/home/tobi/RaLink_driver/UTIL/os/linux
mipsel-linux-gcc -Wp,-MD,/home/tobi/RaLink_driver/UTIL/os/linux/../../os/linux/.rt_linux.o.d -nostdinc -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -mabi=32 -G 0 -mno-abicalls -fno-pic -pipe -msoft-float -ffreestanding --trap -Wno-uninitialized -fomit-frame-pointer -fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -D__KERNEL__ -I/home/tobi/RaLink_driver/UTIL/include -Wall -O2 -Wundef -Wstrict-prototypes -Wno-trigraphs -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-aliasing -fno-common -fomit-frame-pointer -o -DMODULE -mlong-calls -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(rt_linux)" -D"KBUILD_MODNAME=KBUILD_STR(rtutil3572sta)" -c -o /home/tobi/RaLink_driver/UTIL/os/linux/../../os/linux/.tmp_rt_linux.o /home/tobi/RaLink_driver/UTIL/os/linux/../../os/linux/rt_linux.c
cc1: error: /home/tobi/RaLink_driver/UTIL/os/linux/../../os/linux/.tmp_rt_linux.d: No such file or directory
distcc[29414] ERROR: compile (null) on localhost failed
make[8]: *** [/home/tobi/RaLink_driver/UTIL/os/linux/../../os/linux/rt_linux.o] Error 1
make[7]: *** [_module_/home/tobi/RaLink_driver/UTIL/os/linux] Error 2
Without distcc log is the same but without error
cc1: error: /home/tobi/RaLink_driver/UTIL/os/linux/../../os/linux/.tmp_rt_linux.d: No such file or directory
Can anyone say what is wrong?
gcc's -Wp,MD does not take an argument. I think you might want to change this line:
-Wp,-MD,/home/tobi/RaLink_driver/UTIL/os/linux/../../os/linux/.rt_linux.o.d
to use -Wp,MF:
-Wp,MD -Wp,MF /home/tobi/RaLink_driver/UTIL/os/linux/../../os/linux/.rt_linux.o.d

Resources