This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

command-line error message


I get error messages about the command-line and can not find any docomentation on how to understand what is wrong. I use msys2 under Windows 10 but when i compiled under Linux (Ubuntu Studio 14.4) there were no errors.

I have used automake, autoconf under Linux, and the configure under both Linux and Windows. 

The first C file compiles OK but the second gets error messages:

$ make all
E:/msys64/mingw64/bin/mingw32-make  all-recursive
mingw32-make[1]: Entering directory 'E:/msys64/home/sevtor/pxo-0.8'
Making all in src
mingw32-make[2]: Entering directory 'E:/msys64/home/sevtor/pxo-0.8/src'
gcc -DHAVE_CONFIG_H -I. -IP:/Seved/photoexpo-0.8/src -I..  -DLOCALEDIR=\""/home/sevtor/prefix/share/locale"\" -DPXO_DATADIR=\""/home/sevtor/prefix/share"\" -DPXO_DOCDIR=\""/home/sevtor/prefix/share/doc/photoexpo"\" -DPXO_HTMLDIR=\""/home/sevtor/prefix/share/doc/photoexpo/html"\" -DPXO_PREFIX=\""/home/sevtor/prefix"\" -DDATE=\""`date "+%Y-%m-%d"`"\" `pkg-config --cflags gtk+-3.0` `pkg-config --cflags glib-2.0`    -g -O0 -MT photoexpo.o -MD -MP -MF .deps/photoexpo.Tpo -c -o photoexpo.o P:/Seved/photoexpo-0.8/src/photoexpo.c
mv -f .deps/photoexpo.Tpo .deps/photoexpo.Po
gcc -DHAVE_CONFIG_H -I. -IP:/Seved/photoexpo-0.8/src -I..  -DLOCALEDIR=\""/home/sevtor/prefix/share/locale"\" -DPXO_DATADIR=\""/home/sevtor/prefix/share"\" -DPXO_DOCDIR=\""/home/sevtor/prefix/share/doc/photoexpo"\" -DPXO_HTMLDIR=\""/home/sevtor/prefix/share/doc/photoexpo/html"\" -DPXO_PREFIX=\""/home/sevtor/prefix"\" -DDATE=\""`date "+%Y-%m-%d"`"\" `pkg-config --cflags gtk+-3.0` `pkg-config --cflags glib-2.0`    -g -O0 -MT photoexpo_sub.o -MD -MP -MF .deps/photoexpo_sub.Tpo -c -o photoexpo_sub.o P:/Seved/photoexpo-0.8/src/photoexpo_sub.c
<command-line>:0:6: error: expected identifier or '(' before string constant
<command-line>:0:6: error: expected specifier-qualifier-list before string constant
<command-line>:0:6: error: expected specifier-qualifier-list before string constant
<command-line>:0:6: error: expected specifier-qualifier-list before string constant
<command-line>:0:6: error: expected specifier-qualifier-list before string constant
<command-line>:0:6: error: expected declaration specifiers or '...' before string constant
<command-line>:0:6: error: expected declaration specifiers or '...' before string constant
<command-line>:0:6: error: expected declaration specifiers or '...' before string constant
<command-line>:0:6: error: expected declaration specifiers or '...' before string constant
	...............

Then I added option -v to get more info, but it did not help me:

$ gcc -v -DHAVE_CONFIG_H -I. -IP:/Seved/photoexpo-0.8/src -I..  -DLOCALEDIR=\""/home/sevtor/prefix/share/locale"\" -DPXO_DATADIR=\""/home/sevtor/prefix/share"\" -DPXO_DOCDIR=\""/home/sevtor/prefix/share/doc/photoexpo"\" -DPXO_HTMLDIR=\""/home/sevtor/prefix/share/doc/photoexpo/html"\" -DPXO_PREFIX=\""/home/sevtor/prefix"\" -DDATE=\""`date "+%Y-%m-%d"`"\" `pkg-config --cflags gtk+-3.0` `pkg-config --cflags glib-2.0`    -g -O0 -MT photoexpo_sub.o -MD -MP -MF .deps/photoexpo_sub.Tpo -c -o photoexpo_sub.o P:/Seved/photoexpo-0.8/src/photoexpo_sub.c
Using built-in specs.
COLLECT_GCC=E:\msys64\mingw64\bin\gcc.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-7.2.0/configure --prefix=/mingw64 --with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include --libexecdir=/mingw64/lib --enable-bootstrap --with-arch=x86-64 --with-tune=generic --enable-languages=c,lto,c++,objc,obj-c++,fortran,ada --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-time=yes --disable-libstdcxx-pch --disable-libstdcxx-debug --disable-isl-version-check --enable-lto --enable-libgomp --disable-multilib --enable-checking=release --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-libiconv --with-system-zlib --with-gmp=/mingw64 --with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64 --with-pkgversion='Rev1, Built by MSYS2 project' --with-bugurl=https://sourceforge.net/projects/msys2 --with-gnu-as --with-gnu-ld
Thread model: posix
gcc version 7.2.0 (Rev1, Built by MSYS2 project)
COLLECT_GCC_OPTIONS='-v' '-D' 'HAVE_CONFIG_H' '-I' '.' '-I' 'P:/Seved/photoexpo-0.8/src' '-I' '..' '-D' 'LOCALEDIR="E:/msys64/home/sevtor/prefix/share/locale"' '-D' 'PXO_DATADIR="E:/msys64/home/sevtor/prefix/share"' '-D' 'PXO_DOCDIR="E:/msys64/home/sevtor/prefix/share/doc/photoexpo"' '-D' 'PXO_HTMLDIR="E:/msys64/home/sevtor/prefix/share/doc/photoexpo/html"' '-D' 'PXO_PREFIX="E:/msys64/home/sevtor/prefix"' '-D' 'DATE="2018-02-05"' '-pthread' '-I' 'E:/msys64/mingw64/include/gtk-3.0' '-I' 'E:/msys64/mingw64/include/cairo' '-I' 'E:/msys64/mingw64/include' '-I' 'E:/msys64/mingw64/include/pango-1.0' '-I' 'E:/msys64/mingw64/include/atk-1.0' '-I' 'E:/msys64/mingw64/include/cairo' '-I' 'E:/msys64/mingw64/include/pixman-1' '-I' 'E:/msys64/mingw64/include' '-I' 'E:/msys64/mingw64/include/freetype2' '-I' 'E:/msys64/mingw64/include/libpng16' '-I' 'E:/msys64/mingw64/include/harfbuzz' '-I' 'E:/msys64/mingw64/include/glib-2.0' '-I' 'E:/msys64/mingw64/lib/glib-2.0/include' '-I' 'E:/msys64/mingw64/include' '-I' 'E:/msys64/mingw64/include/freetype2' '-I' 'E:/msys64/mingw64/include' '-I' 'E:/msys64/mingw64/include/harfbuzz' '-I' 'E:/msys64/mingw64/include/libpng16' '-I' 'E:/msys64/mingw64/include/gdk-pixbuf-2.0' '-I' 'E:/msys64/mingw64/include/libpng16' '-I' 'E:/msys64/mingw64/include' '-I' 'E:/msys64/mingw64/include/glib-2.0' '-I' 'E:/msys64/mingw64/lib/glib-2.0/include' '-I' 'E:/msys64/mingw64/include' '-mms-bitfields' '-I' 'E:/msys64/mingw64/include/glib-2.0' '-I' 'E:/msys64/mingw64/lib/glib-2.0/include' '-I' 'E:/msys64/mingw64/include' '-g' '-O0' '-MT' 'photoexpo_sub.o' '-MD' '-MP' '-MF' '.deps/photoexpo_sub.Tpo' '-c' '-o' 'photoexpo_sub.o' '-mtune=generic' '-march=x86-64'
 E:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/cc1.exe -quiet -v -I . -I P:/Seved/photoexpo-0.8/src -I .. -I E:/msys64/mingw64/include/gtk-3.0 -I E:/msys64/mingw64/include/cairo -I E:/msys64/mingw64/include -I E:/msys64/mingw64/include/pango-1.0 -I E:/msys64/mingw64/include/atk-1.0 -I E:/msys64/mingw64/include/cairo -I E:/msys64/mingw64/include/pixman-1 -I E:/msys64/mingw64/include -I E:/msys64/mingw64/include/freetype2 -I E:/msys64/mingw64/include/libpng16 -I E:/msys64/mingw64/include/harfbuzz -I E:/msys64/mingw64/include/glib-2.0 -I E:/msys64/mingw64/lib/glib-2.0/include -I E:/msys64/mingw64/include -I E:/msys64/mingw64/include/freetype2 -I E:/msys64/mingw64/include -I E:/msys64/mingw64/include/harfbuzz -I E:/msys64/mingw64/include/libpng16 -I E:/msys64/mingw64/include/gdk-pixbuf-2.0 -I E:/msys64/mingw64/include/libpng16 -I E:/msys64/mingw64/include -I E:/msys64/mingw64/include/glib-2.0 -I E:/msys64/mingw64/lib/glib-2.0/include -I E:/msys64/mingw64/include -I E:/msys64/mingw64/include/glib-2.0 -I E:/msys64/mingw64/lib/glib-2.0/include -I E:/msys64/mingw64/include -iprefix E:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/ -MD photoexpo_sub.d -MF .deps/photoexpo_sub.Tpo -MP -MT photoexpo_sub.o -D_REENTRANT -U_REENTRANT -D HAVE_CONFIG_H -D LOCALEDIR="E:/msys64/home/sevtor/prefix/share/locale" -D PXO_DATADIR="E:/msys64/home/sevtor/prefix/share" -D PXO_DOCDIR="E:/msys64/home/sevtor/prefix/share/doc/photoexpo" -D PXO_HTMLDIR="E:/msys64/home/sevtor/prefix/share/doc/photoexpo/html" -D PXO_PREFIX="E:/msys64/home/sevtor/prefix" -D DATE="2018-02-05" P:/Seved/photoexpo-0.8/src/photoexpo_sub.c -quiet -dumpbase photoexpo_sub.c -mms-bitfields -mtune=generic -march=x86-64 -auxbase-strip photoexpo_sub.o -g -O0 -version -o E:\msys64\tmp\ccpvEyfB.s
GNU C11 (Rev1, Built by MSYS2 project) version 7.2.0 (x86_64-w64-mingw32)
        compiled by GNU C version 7.2.0, GMP version 6.1.2, MPFR version 3.1.5-p2, MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring duplicate directory "E:/msys64/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/7.2.0/include"
ignoring nonexistent directory "C:/building/msys64/mingw64/include"
ignoring nonexistent directory "/mingw64/include"
ignoring duplicate directory "E:/msys64/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/7.2.0/include-fixed"
ignoring duplicate directory "E:/msys64/mingw64/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/include"
ignoring nonexistent directory "C:/building/msys64/mingw64/x86_64-w64-mingw32/include"
ignoring duplicate directory "E:/msys64/mingw64/include"
  as it is a non-system directory that duplicates a system directory
ignoring duplicate directory "E:/msys64/mingw64/include/cairo"
ignoring duplicate directory "E:/msys64/mingw64/include"
  as it is a non-system directory that duplicates a system directory
ignoring duplicate directory "E:/msys64/mingw64/include"
  as it is a non-system directory that duplicates a system directory
ignoring duplicate directory "E:/msys64/mingw64/include/freetype2"
ignoring duplicate directory "E:/msys64/mingw64/include"
  as it is a non-system directory that duplicates a system directory
ignoring duplicate directory "E:/msys64/mingw64/include/harfbuzz"
ignoring duplicate directory "E:/msys64/mingw64/include/libpng16"
ignoring duplicate directory "E:/msys64/mingw64/include/libpng16"
ignoring duplicate directory "E:/msys64/mingw64/include"
  as it is a non-system directory that duplicates a system directory
ignoring duplicate directory "E:/msys64/mingw64/include/glib-2.0"
ignoring duplicate directory "E:/msys64/mingw64/lib/glib-2.0/include"
ignoring duplicate directory "E:/msys64/mingw64/include"
  as it is a non-system directory that duplicates a system directory
ignoring duplicate directory "E:/msys64/mingw64/include/glib-2.0"
ignoring duplicate directory "E:/msys64/mingw64/lib/glib-2.0/include"
ignoring duplicate directory "E:/msys64/mingw64/include"
  as it is a non-system directory that duplicates a system directory
#include "..." search starts here:
#include <...> search starts here:
 .
 P:/Seved/photoexpo-0.8/src
 ..
 E:/msys64/mingw64/include/gtk-3.0
 E:/msys64/mingw64/include/cairo
 E:/msys64/mingw64/include/pango-1.0
 E:/msys64/mingw64/include/atk-1.0
 E:/msys64/mingw64/include/pixman-1
 E:/msys64/mingw64/include/freetype2
 E:/msys64/mingw64/include/libpng16
 E:/msys64/mingw64/include/harfbuzz
 E:/msys64/mingw64/include/glib-2.0
 E:/msys64/mingw64/lib/glib-2.0/include
 E:/msys64/mingw64/include/gdk-pixbuf-2.0
 E:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/include
 E:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../include
 E:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/include-fixed
 E:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/7.2.0/../../../../x86_64-w64-mingw32/include
End of search list.
GNU C11 (Rev1, Built by MSYS2 project) version 7.2.0 (x86_64-w64-mingw32)
        compiled by GNU C version 7.2.0, GMP version 6.1.2, MPFR version 3.1.5-p2, MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: cd663256441e045689e54e69adf53c13
<command-line>:0:6: error: expected identifier or '(' before string constant
<command-line>:0:6: error: expected specifier-qualifier-list before string constant
<command-line>:0:6: error: expected specifier-qualifier-list before string constant
<command-line>:0:6: error: expected specifier-qualifier-list before string constant
<command-line>:0:6: error: expected specifier-qualifier-list before string constant
<command-line>:0:6: error: expected declaration specifiers or '...' before string constant
<command-line>:0:6: error: expected declaration specifiers or '...' before string constant

Can you give me any tip on what is wrong here?

Regards
Seved Torstendahl

Skickades från E-post för Windows 10


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]