Discussion:
build error with trunk on openSUSE
(too old to reply)
Jean-Marc Lasgouttes
2011-07-18 19:34:05 UTC
Permalink
It happens on all version I build for: 11.3 with qt 4.6.3, 11.4 with 4.7.1 and
factory with 4.7.3
Cor
https://build.opensuse.org/package/show?package=lyx-2.1-
svn&project=home%3Acornelisbb%3Alyx-unstable
There is special casing in frontend/qt4/FancylineEdit.cpp that
differentiate between old qt versions and recent ones.

This particular error message is known to be among those that happen
when gcc does not know where to emit the vtable for an object.
http://gcc.gnu.org/faq.html#vtables

I see you have some boost related errors that I do not see. Do you use
specially pedantic g++ warning options? What version of gcc?

JMarc
Cor Blom
2011-07-18 21:58:41 UTC
Permalink
Post by Jean-Marc Lasgouttes
It happens on all version I build for: 11.3 with qt 4.6.3, 11.4 with
4.7.1 and factory with 4.7.3
Cor
https://build.opensuse.org/package/show?package=lyx-2.1-
svn&project=home%3Acornelisbb%3Alyx-unstable
There is special casing in frontend/qt4/FancylineEdit.cpp that
differentiate between old qt versions and recent ones.
This particular error message is known to be among those that happen
when gcc does not know where to emit the vtable for an object.
http://gcc.gnu.org/faq.html#vtables
I see you have some boost related errors that I do not see. Do you use
specially pedantic g++ warning options? What version of gcc?
JMarc
Adding bc to BuildRequires solved the problem. Thanks for the help.

Cor
Jean-Marc Lasgouttes
2011-07-18 22:06:55 UTC
Permalink
Post by Cor Blom
Adding bc to BuildRequires solved the problem. Thanks for the help.
Interesting, but what does bc stand for?

JMarc
Cor Blom
2011-07-19 06:59:03 UTC
Permalink
Post by Jean-Marc Lasgouttes
Post by Cor Blom
Adding bc to BuildRequires solved the problem. Thanks for the help.
Interesting, but what does bc stand for?
bc: GNU Command Line Calculator

After your last remark I looked again through the log and noticed that the
shell complained that "bc" could not be found. This complaint was not there in
the buildlog for branch, so I added it as a requirement.

On my system (i.e. my desktop system, not the buildservice) bc is installed by
default and has a manpage.

Cor
Pavel Sanda
2011-07-19 08:47:50 UTC
Permalink
Post by Cor Blom
bc: GNU Command Line Calculator
After your last remark I looked again through the log and noticed that the
shell complained that "bc" could not be found. This complaint was not there in
the buildlog for branch, so I added it as a requirement.
please can you paste the relevant part of log? i have hard time to understand
why we need bc.

pavel
Stephan Witt
2011-07-19 09:05:16 UTC
Permalink
Post by Pavel Sanda
Post by Cor Blom
bc: GNU Command Line Calculator
After your last remark I looked again through the log and noticed that the
shell complained that "bc" could not be found. This complaint was not there in
the buildlog for branch, so I added it as a requirement.
please can you paste the relevant part of log? i have hard time to understand
why we need bc.
I think because of the conversion of the Qt version number from e.g. hex 4.6.3 to decimal value.
Unfortunately, this has to be passed to moc explicitly.
Perhaps this can be solved in some other way...

Stephan
Stephan Witt
2011-07-19 12:43:14 UTC
Permalink
Post by Stephan Witt
Post by Pavel Sanda
Post by Cor Blom
bc: GNU Command Line Calculator
After your last remark I looked again through the log and noticed that the
shell complained that "bc" could not be found. This complaint was not there in
the buildlog for branch, so I added it as a requirement.
please can you paste the relevant part of log? i have hard time to understand
why we need bc.
I think because of the conversion of the Qt version number from e.g. hex 4.6.3 to decimal value.
Vice versa of course.
Post by Stephan Witt
Unfortunately, this has to be passed to moc explicitly.
Perhaps this can be solved in some other way...
In case of interest

QT_VERSION="4.10.3" sh -c 'v="0x0"; for i in ${QT_VERSION//./ } ; do case $i in 10) v=$v"0a" ;; 11) v=$v"0b" ;; 12) v=$v"0c" ;; 13) v=$v"0d" ;; 14) v=$v"0e" ;; 15) v=$v"0f" ;; *) v=$v"0"$i ;; esac ; done; echo $v'

prints 0x0040a03

Stephan

Cor Blom
2011-07-19 11:28:38 UTC
Permalink
Post by Pavel Sanda
please can you paste the relevant part of log? i have hard time to
understand why we need bc.
Here it is:

[...]
GEN ui_TocUi.h
GEN ui_ToggleWarningUi.h
GEN ui_VSpaceUi.h
GEN ui_ViewSourceUi.h
GEN ui_WrapUi.h
/bin/sh: bc: command not found
GEN moc_Action.cpp
/bin/sh: bc: command not found
GEN moc_BulletsModule.cpp
/bin/sh: bc: command not found
GEN moc_CustomizedWidgets.cpp
/bin/sh: bc: command not found
GEN moc_EmptyTable.cpp
/bin/sh: bc: command not found
GEN moc_FancyLineEdit.cpp
/bin/sh: bc: command not found
GEN moc_FindAndReplace.cpp
/bin/sh: bc: command not found
GEN moc_FloatPlacement.cpp
/bin/sh: bc: command not found
GEN moc_GuiAbout.cpp
/bin/sh: bc: command not found
GEN moc_GuiApplication.cpp
/bin/sh: bc: command not found
GEN moc_GuiBibitem.cpp
/bin/sh: bc: command not found
GEN moc_GuiBibtex.cpp
/bin/sh: bc: command not found
GEN moc_GuiBox.cpp
/bin/sh: bc: command not found
GEN moc_GuiBranches.cpp
/bin/sh: bc: command not found
GEN moc_GuiBranch.cpp
/bin/sh: bc: command not found
GEN moc_GuiChanges.cpp
/bin/sh: bc: command not found
GEN moc_GuiCharacter.cpp
/bin/sh: bc: command not found
GEN moc_GuiCitation.cpp
/bin/sh: bc: command not found
GEN moc_GuiClipboard.cpp
/bin/sh: bc: command not found
GEN moc_GuiCommandBuffer.cpp
/bin/sh: bc: command not found
GEN moc_GuiCommandEdit.cpp
/bin/sh: bc: command not found
GEN moc_GuiCompare.cpp
/bin/sh: bc: command not found
GEN moc_GuiCompareHistory.cpp
/bin/sh: bc: command not found
GEN moc_GuiCompleter.cpp
/bin/sh: bc: command not found
GEN moc_GuiDelimiter.cpp
/bin/sh: bc: command not found
GEN moc_GuiDialog.cpp
/bin/sh: bc: command not found
GEN moc_GuiDocument.cpp
/bin/sh: bc: command not found
GEN moc_GuiErrorList.cpp
/bin/sh: bc: command not found
GEN moc_GuiERT.cpp
/bin/sh: bc: command not found
GEN moc_GuiExternal.cpp
/bin/sh: bc: command not found
GEN moc_GuiGraphics.cpp
/bin/sh: bc: command not found
GEN moc_GuiHSpace.cpp
/bin/sh: bc: command not found
GEN moc_GuiHyperlink.cpp
/bin/sh: bc: command not found
GEN moc_GuiInclude.cpp
/bin/sh: bc: command not found
GEN moc_GuiIndex.cpp
/bin/sh: bc: command not found
GEN moc_GuiIndices.cpp
/bin/sh: bc: command not found
GEN moc_GuiInfo.cpp
/bin/sh: bc: command not found
GEN moc_GuiLabel.cpp
/bin/sh: bc: command not found
GEN moc_GuiLine.cpp
/bin/sh: bc: command not found
GEN moc_GuiListings.cpp
/bin/sh: bc: command not found
GEN moc_GuiLog.cpp
/bin/sh: bc: command not found
GEN moc_GuiMathMatrix.cpp
/bin/sh: bc: command not found
GEN moc_GuiNomenclature.cpp
/bin/sh: bc: command not found
GEN moc_GuiNote.cpp
/bin/sh: bc: command not found
GEN moc_GuiParagraph.cpp
/bin/sh: bc: command not found
GEN moc_GuiPhantom.cpp
/bin/sh: bc: command not found
GEN moc_GuiPrefs.cpp
/bin/sh: bc: command not found
GEN moc_GuiPrint.cpp
/bin/sh: bc: command not found
GEN moc_GuiPrintindex.cpp
/bin/sh: bc: command not found
GEN moc_GuiPrintNomencl.cpp
/bin/sh: bc: command not found
GEN moc_GuiProgress.cpp
/bin/sh: bc: command not found
GEN moc_GuiProgressView.cpp
/bin/sh: bc: command not found
GEN moc_GuiRef.cpp
/bin/sh: bc: command not found
GEN moc_GuiSearch.cpp
/bin/sh: bc: command not found
GEN moc_GuiSelection.cpp
/bin/sh: bc: command not found
GEN moc_GuiSelectionManager.cpp
/bin/sh: bc: command not found
GEN moc_GuiSendto.cpp
/bin/sh: bc: command not found
GEN moc_GuiSetBorder.cpp
/bin/sh: bc: command not found
GEN moc_GuiShowFile.cpp
/bin/sh: bc: command not found
GEN moc_GuiSpellchecker.cpp
/bin/sh: bc: command not found
GEN moc_GuiSymbols.cpp
/bin/sh: bc: command not found
GEN moc_GuiTabularCreate.cpp
/bin/sh: bc: command not found
GEN moc_GuiTabular.cpp
/bin/sh: bc: command not found
GEN moc_GuiTexinfo.cpp
/bin/sh: bc: command not found
GEN moc_GuiThesaurus.cpp
/bin/sh: bc: command not found
GEN moc_GuiToc.cpp
/bin/sh: bc: command not found
GEN moc_GuiToolbar.cpp
/bin/sh: bc: command not found
GEN moc_GuiView.cpp
/bin/sh: bc: command not found
GEN moc_GuiViewSource.cpp
/bin/sh: bc: command not found
GEN moc_GuiVSpace.cpp
/bin/sh: bc: command not found
GEN moc_GuiWorkArea.cpp
/bin/sh: bc: command not found
GEN moc_GuiWrap.cpp
/bin/sh: bc: command not found
GEN moc_IconPalette.cpp
/bin/sh: bc: command not found
GEN moc_InGuiThread.cpp
/bin/sh: bc: command not found
GEN moc_InsertTableWidget.cpp
/bin/sh: bc: command not found
GEN moc_InsetParamsDialog.cpp
/bin/sh: bc: command not found
GEN moc_InsetParamsWidget.cpp
/bin/sh: bc: command not found
GEN moc_LayoutBox.cpp
/bin/sh: bc: command not found
GEN moc_LengthCombo.cpp
/bin/sh: bc: command not found
GEN moc_LyXFileDialog.cpp
/bin/sh: bc: command not found
GEN moc_Menus.cpp
/bin/sh: bc: command not found
GEN moc_PanelStack.cpp
/bin/sh: bc: command not found
GEN moc_TocModel.cpp
/bin/sh: bc: command not found
GEN moc_TocWidget.cpp
/bin/sh: bc: command not found
GEN moc_Validator.cpp
GEN Resources.qrc
GEN Resources.cpp
make all-am
make[6]: Entering directory `/usr/src/packages/BUILD/lyx-2.1-
svn-2.1.rev39344/src/frontends/qt4'
CXX ButtonPolicy.o
[...]
Loading...