Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 220807

Summary: [gcc 4.3] app-office/lyx-1.5.4 compile fails
Product: Gentoo Linux Reporter: Vladimir Lushnikov <vladimir>
Component: Current packagesAssignee: Alexis Ballier <aballier>
Severity: normal CC: cjk, ps, tex
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 198121    

Description Vladimir Lushnikov 2008-05-07 20:13:27 UTC
The compilation of app-office/lyx-1.5.4 fails on gcc-4.3, with the following error message:

/bin/sh ../../libtool --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../src   -I./..  -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore     -O2 -pipe -march=core2 -fno-stack-protector -MT FileFilterList.lo -MD -MP -MF .deps/FileFilterList.Tpo -c -o FileFilterList.lo FileFilterList.cpp
/bin/sh ../../libtool --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../src   -I./..  -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore     -O2 -pipe -march=core2 -fno-stack-protector -MT FileName.lo -MD -MP -MF .deps/FileName.Tpo -c -o FileName.lo FileName.cpp
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../src -I./.. -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -O2 -pipe -march=core2 -fno-stack-protector -MT FileName.lo -MD -MP -MF .deps/FileName.Tpo -c FileName.cpp -o FileName.o
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../src -I./.. -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -O2 -pipe -march=core2 -fno-stack-protector -MT docstring.lo -MD -MP -MF .deps/docstring.Tpo -c docstring.cpp -o docstring.o
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../src -I./.. -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -O2 -pipe -march=core2 -fno-stack-protector -MT environment.lo -MD -MP -MF .deps/environment.Tpo -c environment.cpp -o environment.o
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../src -I./.. -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -O2 -pipe -march=core2 -fno-stack-protector -MT abort.lo -MD -MP -MF .deps/abort.Tpo -c abort.cpp -o abort.o
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../src -I./.. -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_SHARED -I/usr/include/qt4 -I/usr/include/qt4/QtCore -O2 -pipe -march=core2 -fno-stack-protector -MT FileFilterList.lo -MD -MP -MF .deps/FileFilterList.Tpo -c FileFilterList.cpp -o FileFilterList.o
abort.cpp: In function 'void lyx::support::abort()':
abort.cpp:25: error: '::abort' has not been declared
make[5]: *** [abort.lo] Error 1
make[5]: *** Waiting for unfinished jobs....
mv -f .deps/docstring.Tpo .deps/docstring.Plo
mv -f .deps/FileName.Tpo .deps/FileName.Plo
mv -f .deps/environment.Tpo .deps/environment.Plo
mv -f .deps/FileFilterList.Tpo .deps/FileFilterList.Plo
make[5]: Leaving directory `/var/tmp/portage/app-office/lyx-1.5.4/work/lyx-1.5.4/src/support'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/var/tmp/portage/app-office/lyx-1.5.4/work/lyx-1.5.4/src/support'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/app-office/lyx-1.5.4/work/lyx-1.5.4/src/support'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-office/lyx-1.5.4/work/lyx-1.5.4/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-office/lyx-1.5.4/work/lyx-1.5.4/src'
make: *** [all-recursive] Error 1
 * ERROR: app-office/lyx-1.5.4 failed.
 * Call stack:
 *     , line   49:  Called src_compile
 *             environment, line 2937:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed

Not much idea about what to do with this one, but I will investigate. :)

Also, because of the gcc 4.3 header file changes, you must change

src/insets/InsetBibtex.h to include

+#include <limits>

Otherwise it complains:
/bin/sh ../../libtool --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../src   -I./..    -O2 -pipe -march=core2 -fno-stack-protector -MT InsetBibitem.lo -MD -MP -MF .deps/InsetBibitem.Tpo -c -o InsetBibitem.lo InsetBibitem.cpp
/bin/sh ../../libtool --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../src   -I./..    -O2 -pipe -march=core2 -fno-stack-protector -MT InsetBibtex.lo -MD -MP -MF .deps/InsetBibtex.Tpo -c -o InsetBibtex.lo InsetBibtex.cpp
/bin/sh ../../libtool --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../src   -I./..    -O2 -pipe -march=core2 -fno-stack-protector -MT InsetBox.lo -MD -MP -MF .deps/InsetBox.Tpo -c -o InsetBox.lo InsetBox.cpp
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../src -I./.. -O2 -pipe -march=core2 -fno-stack-protector -MT Inset.lo -MD -MP -MF .deps/Inset.Tpo -c Inset.cpp -o Inset.o
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../src -I./.. -O2 -pipe -march=core2 -fno-stack-protector -MT InsetBox.lo -MD -MP -MF .deps/InsetBox.Tpo -c InsetBox.cpp -o InsetBox.o
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../src -I./.. -O2 -pipe -march=core2 -fno-stack-protector -MT InsetBibitem.lo -MD -MP -MF .deps/InsetBibitem.Tpo -c InsetBibitem.cpp -o InsetBibitem.o
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../src -I./.. -O2 -pipe -march=core2 -fno-stack-protector -MT InsetBibtex.lo -MD -MP -MF .deps/InsetBibtex.Tpo -c InsetBibtex.cpp -o InsetBibtex.o
mv -f .deps/RenderPreview.Tpo .deps/RenderPreview.Plo
/bin/sh ../../libtool --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../src   -I./..    -O2 -pipe -march=core2 -fno-stack-protector -MT InsetBranch.lo -MD -MP -MF .deps/InsetBranch.Tpo -c -o InsetBranch.lo InsetBranch.cpp
mv -f .deps/Inset.Tpo .deps/Inset.Plo
/bin/sh ../../libtool --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../../src   -I./..    -O2 -pipe -march=core2 -fno-stack-protector -MT InsetCaption.lo -MD -MP -MF .deps/InsetCaption.Tpo -c -o InsetCaption.lo InsetCaption.cpp
InsetBibtex.cpp: In member function 'void lyx::InsetBibtex::fillWithBibKeys(const lyx::Buffer&, std::vector<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > > > >&) const':
InsetBibtex.cpp:615: error: 'numeric_limits' is not a member of 'std'
InsetBibtex.cpp:615: error: expected primary-expression before 'int'

Reproducible: Always
Comment 1 Vladimir Lushnikov 2008-05-07 20:14:07 UTC
Could someone please verify they are having the same problems with gcc 4.3 and lyx?
Comment 2 Rafał Mużyło 2008-05-08 10:07:15 UTC
Well, while it doesn't seem this way, this is a duplicate of bug #214574.
Comment 3 Vladimir Lushnikov 2008-05-08 11:49:44 UTC
(In reply to comment #2)
> Well, while it doesn't seem this way, this is a duplicate of bug #214574.

Ah, that's interesting. :-)

Perhaps if you can get it to block the gcc 4.3 meta-bug, then I'll close this as duplicated.
Comment 4 Rafał Mużyło 2008-05-08 20:53:30 UTC
OK, added my bug to gcc 4.3 porting.
Comment 5 Vladimir Lushnikov 2008-05-08 22:19:29 UTC
Ok, cool, closing this (unless some mod wants to reopen)

*** This bug has been marked as a duplicate of bug 214574 ***
Comment 6 pavel sanda 2008-06-05 09:08:48 UTC
Vladimir, can you compile app-office/lyx-1.5.5 on gcc-4.3 ?
Comment 7 Vladimir Lushnikov 2008-06-05 09:14:29 UTC
I do not have access to my desktop atm, but I'll check in a few days. Not sure because I tried the 1.6 alphas :)