[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#512817: Unexplainable -include flag for compilation when using PCH



Package: qt4-qmake
Version: 4.4.3-2
Severity: normal

  Hello,

  I'm using qmake-qt4 to build a project named QCam, with the use of
precompiled headers (the project file is attached, in case there is
anything thing relevant in that). Every once in a while, when I
haven't compiled the project for a long time, it seems, I get very
weird errors:

~ make
g++ -c -include QCam -pipe -g -Wall -W -D_REENTRANT -DQT_PHONON_LIB -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtSql -I/usr/include/phonon -I/usr/include/phonon -I/usr/include/qt4 -I. -Isrc -I. -I. -o database.o src/database.cc
[...]
./QCam:128: error: stray '\201' in program
./QCam:128: error: stray '\377' in program
./QCam:128: error: stray '\211' in program
./QCam:128: error: stray '\235' in program

  It seems that the effect of the -include QCam flag here is to actually include
the target binary as part of the source C++ files (here src/database.cc). 

  make clean is enough to work around the problem, but I still can't understand
the use of this -include flag, and I even can't understand why it works most
of the time.

  Why is that so ? Isn't it a bug of some kind ?

  Regards,

	Vincent

PS: I don't expect a fix any time soon anyway, but I'd be very greatful to
have an explanation, as I really don't understand the rationale behind this
-include stuff.


-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages qt4-qmake depends on:
ii  libc6                         2.7-18     GNU C Library: Shared libraries
ii  libgcc1                       1:4.3.2-4  GCC support library
ii  libstdc++6                    4.3.2-4    The GNU Standard C++ Library v3

qt4-qmake recommends no packages.

qt4-qmake suggests no packages.

-- no debconf information
# -*- mode: conf; -*-
# QMake configuration file for QCam

TEMPLATE = app
CONFIG += precompile_header debug
INCLUDEPATH += . src

VERSION = 0.1

QT += sql
QT += phonon

PRECOMPILED_HEADER = src/headers.hh

# Following lines for profiling
# QMAKE_CXXFLAGS += -pg
# QMAKE_LFLAGS += -pg

# We need libjpeg for file identification
LIBS += -ljpeg

# Input
SOURCES += src/qmain.cc src/mainwin.cc src/actions.cc \
	src/thumbnails.cc src/exif.cc src/thumblist.cc \
	src/database.cc src/viewer.cc \
	src/mixeddirmodel.cc 
HEADERS += src/mainwin.hh src/actions.hh \
	src/thumbnails.hh src/exif.hh src/thumblist.hh \
	src/database.hh src/viewer.hh \
	src/mixeddirmodel.hh

RESOURCES += data/resources.qrc

Reply to: