GNOME Bugzilla – Bug 111152
[HP-UX] Cant compile
Last modified: 2009-08-15 18:40:50 UTC
with gcc 3.2 ( Im using Garnome 0.22 modified to use last Gstreamer) gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I//opt/garnome/include -I//usr/X11R6/include -I/usr/local/include -I/usr/contrib/X11R6/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/garnome/include/libxml2 -D_REENTRANT -I/opt/garnome/include/glib-2.0 -I/opt/garnome/lib/glib-2.0/include -I../.. -O2 -g -c grammar.tab.c -MT libgstparse_la-grammar.tab.lo -MD -MP -MF .deps/libgstparse_la-grammar.tab.TPlo -fPIC -DPIC cc1: warning: changing search order for system directory "/usr/local/include" cc1: warning: as it has already been specified as a non-system directory mv -f libgstparse_la-grammar.tab.o libgstparse_la-grammar.tab.lo mv: cannot stat `libgstparse_la-grammar.tab.o': No such file or directory gmake[6]: *** [libgstparse_la-grammar.tab.lo] Error 1 gmake[6]: Leaving directory `/tmp/build/garnome-0.22.0/gnome/gstreamer/work/main.d/gstreamer-0.6.1/gst/parse' It seams that -MT is not working, I must remove the flag and rename the object manually. Im Using Automake 1.7.2
At first glance, this looks like an automake bug. Could you provide a complete build log?
Created attachment 15913 [details] Compilation Errors.
I hope this is what you need, please tell me if you need more info.
Apparently, configure thinks that your gcc doesn't support -c and -o simultaneously, which is obviously wrong: configure:5250: checking if gcc supports -c -o file.o configure:5270: gcc -c -O2 -g -o out/conftest2.o -I//opt/garnome/include -I//usr/X11R6/include -I/usr/local/include -I/usr/contrib/X11R6/include conftest.c >&5 configure:5294: result: no It thinks this because the compiler emits the following warning almost every time (because of the -I/usr/local/include option), and it thinks that any warning from the compiler is bad: cc1: warning: changing search order for system directory "/usr/local/include" cc1: warning: as it has already been specified as a non-system directory Arguably, the libtool .m4 macro that tests this should be fixed. However, it will be much more productive in the short term to change your CFLAGS so that it doesn't include -I/usr/local/include. I don't use garnome, so I don't know if this is hard coded or not. Alternatively, you can also override the test by setting and exporting the shell variable lt_cv_compiler_c_o=yes.
Let me know if you're having any more difficulty with this bug.
No response--closing. Feel free to reopen if this is still a problem.