You are not logged in.

#1 2013-08-25 23:11:40

mike_r
Member
Registered: 2009-01-22
Posts: 114

[WORKAROUND] xxdiff (and xxdiff-hg) compile failures

I'm getting failures when trying to build both xxdiff or xxdiff-hg (using yaourt as the frontend). Both have failed for the last few months when trying to compile resParser_yacc.cpp:

g++ -c -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_REENTRANT -Wall -W -DQT_NO_DEBUG -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/QtGui -I/usr/include/qt4 -I. -I. -o moc_merged.o moc_merged.cpp
/usr/lib/qt4/bin/moc -DQT_NO_DEBUG -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/QtGui -I/usr/include/qt4 -I. -I. markers.h -o moc_markers.cpp
g++ -c -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_REENTRANT -Wall -W -DQT_NO_DEBUG -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/QtGui -I/usr/include/qt4 -I. -I. -o moc_markers.o moc_markers.cpp
g++ -c -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_REENTRANT -Wall -W -DQT_NO_DEBUG -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/QtGui -I/usr/include/qt4 -I. -I. -o resParser_yacc.o resParser_yacc.cpp
resParser.y: In function ‘int resParserparse()’:
resParser.y:41:48: error: ‘resources’ was not declared in this scope
 #define RESOURCES  ( static_cast<XxResources*>(resources) )
                                                ^
resParser.y:188:23: note: in expansion of macro ‘RESOURCES’
                       RESOURCES->setPreferredGeometry( geometry );
                       ^
resParser.y:41:48: error: ‘resources’ was not declared in this scope
 #define RESOURCES  ( static_cast<XxResources*>(resources) )
                                                ^
resParser.y:199:20: note: in expansion of macro ‘RESOURCES’
                    RESOURCES->setMaximize( true );
                    ^
resParser.y:41:48: error: ‘resources’ was not declared in this scope
 #define RESOURCES  ( static_cast<XxResources*>(resources) )
                                                ^
resParser.y:209:23: note: in expansion of macro ‘RESOURCES’
                       RESOURCES->setStyleKey( styleKey );
                       ^
resParser.y:41:48: error: ‘resources’ was not declared in this scope
 #define RESOURCES  ( static_cast<XxResources*>(resources) )
                                                ^
resParser.y:223:26: note: in expansion of macro ‘RESOURCES’
                    if ( !RESOURCES->setAccelerator( XxAccel($3), $5 ) ) {
                          ^
resParser.y:41:48: error: ‘resources’ was not declared in this scope
 #define RESOURCES  ( static_cast<XxResources*>(resources) )
                                                ^
resParser.y:235:20: note: in expansion of macro ‘RESOURCES’
                    RESOURCES->setColor(
                    ^
resParser.y:41:48: error: ‘resources’ was not declared in this scope
 #define RESOURCES  ( static_cast<XxResources*>(resources) )
                                                ^
resParser.y:243:20: note: in expansion of macro ‘RESOURCES’
                    RESOURCES->setColor( 
                    ^
resParser.y:41:48: error: ‘resources’ was not declared in this scope
 #define RESOURCES  ( static_cast<XxResources*>(resources) )
                                                ^
resParser.y:256:20: note: in expansion of macro ‘RESOURCES’
                    RESOURCES->setBoolOpt( XxBoolOpt( $1 - XxResParser::BOOLKWD_BASE ), $3 );
                    ^
resParser.y:41:48: error: ‘resources’ was not declared in this scope
 #define RESOURCES  ( static_cast<XxResources*>(resources) )
                                                ^
resParser.y:281:20: note: in expansion of macro ‘RESOURCES’
                    RESOURCES->setCommand( XxCommand($3), $5 );
                    ^
resParser.y:41:48: error: ‘resources’ was not declared in this scope
 #define RESOURCES  ( static_cast<XxResources*>(resources) )
                                                ^
resParser.y:288:20: note: in expansion of macro ‘RESOURCES’
                    RESOURCES->setCommandSwitch( XxCommandSwitch($3), $5 );
                    ^
resParser.y:41:48: error: ‘resources’ was not declared in this scope
 #define RESOURCES  ( static_cast<XxResources*>(resources) )
                                                ^
resParser.y:295:20: note: in expansion of macro ‘RESOURCES’
                    RESOURCES->setInitSwitch( XxCommandSwitch($3), $5 );
                    ^
resParser.y:41:48: error: ‘resources’ was not declared in this scope
 #define RESOURCES  ( static_cast<XxResources*>(resources) )
                                                ^
resParser.y:302:20: note: in expansion of macro ‘RESOURCES’
                    RESOURCES->setFontApp( $3 );
                    ^
resParser.y:41:48: error: ‘resources’ was not declared in this scope
 #define RESOURCES  ( static_cast<XxResources*>(resources) )
                                                ^
resParser.y:307:20: note: in expansion of macro ‘RESOURCES’
                    RESOURCES->setFontText( $3 );
                    ^
resParser.y:41:48: error: ‘resources’ was not declared in this scope
 #define RESOURCES  ( static_cast<XxResources*>(resources) )
                                                ^
resParser.y:314:20: note: in expansion of macro ‘RESOURCES’
                    RESOURCES->setTag( XxTag($3), $5 );
                    ^
resParser.y:41:48: error: ‘resources’ was not declared in this scope
 #define RESOURCES  ( static_cast<XxResources*>(resources) )
                                                ^
resParser.y:321:20: note: in expansion of macro ‘RESOURCES’
                    RESOURCES->setShowOpt( XxShowOpt($3), $5 );
                    ^
resParser.y:41:48: error: ‘resources’ was not declared in this scope
 #define RESOURCES  ( static_cast<XxResources*>(resources) )
                                                ^
resParser.y:328:20: note: in expansion of macro ‘RESOURCES’
                    RESOURCES->setTabWidth( $3 );
                    ^
resParser.y:41:48: error: ‘resources’ was not declared in this scope
 #define RESOURCES  ( static_cast<XxResources*>(resources) )
                                                ^
resParser.y:335:20: note: in expansion of macro ‘RESOURCES’
                    RESOURCES->setOverviewFileWidth( $3 );
                    ^
resParser.y:41:48: error: ‘resources’ was not declared in this scope
 #define RESOURCES  ( static_cast<XxResources*>(resources) )
                                                ^
resParser.y:342:20: note: in expansion of macro ‘RESOURCES’
                    RESOURCES->setOverviewSepWidth( $3 );
                    ^
resParser.y:41:48: error: ‘resources’ was not declared in this scope
 #define RESOURCES  ( static_cast<XxResources*>(resources) )
                                                ^
resParser.y:349:20: note: in expansion of macro ‘RESOURCES’
                    RESOURCES->setVerticalLinePos( $3 );
                    ^
resParser.y:41:48: error: ‘resources’ was not declared in this scope
 #define RESOURCES  ( static_cast<XxResources*>(resources) )
                                                ^
resParser.y:356:20: note: in expansion of macro ‘RESOURCES’
                    RESOURCES->setClipboardHeadFormat( $3 );
                    ^
resParser.y:41:48: error: ‘resources’ was not declared in this scope
 #define RESOURCES  ( static_cast<XxResources*>(resources) )
                                                ^
resParser.y:363:20: note: in expansion of macro ‘RESOURCES’
                    RESOURCES->setClipboardLineFormat( $3 );
                    ^
resParser.y:41:48: error: ‘resources’ was not declared in this scope
 #define RESOURCES  ( static_cast<XxResources*>(resources) )
                                                ^
resParser.y:370:20: note: in expansion of macro ‘RESOURCES’
                    RESOURCES->setHordiffType( XxHordiff($3) );
                    ^
resParser.y:41:48: error: ‘resources’ was not declared in this scope
 #define RESOURCES  ( static_cast<XxResources*>(resources) )
                                                ^
resParser.y:377:20: note: in expansion of macro ‘RESOURCES’
                    RESOURCES->setHordiffMax( $3 );
                    ^
resParser.y:41:48: error: ‘resources’ was not declared in this scope
 #define RESOURCES  ( static_cast<XxResources*>(resources) )
                                                ^
resParser.y:384:20: note: in expansion of macro ‘RESOURCES’
                    RESOURCES->setHordiffContext( $3 );
                    ^
resParser.y:41:48: error: ‘resources’ was not declared in this scope
 #define RESOURCES  ( static_cast<XxResources*>(resources) )
                                                ^
resParser.y:391:20: note: in expansion of macro ‘RESOURCES’
                    RESOURCES->setShowPaneMergedViewPercent( $3 );
                    ^
resParser.y:41:48: error: ‘resources’ was not declared in this scope
 #define RESOURCES  ( static_cast<XxResources*>(resources) )
                                                ^
resParser.y:398:20: note: in expansion of macro ‘RESOURCES’
                    RESOURCES->setMergedFilename( $3 );
                    ^
make: *** [resParser_yacc.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Makepkg was unable to build xxdiff.
==> Restart building xxdiff ? [y/N]

Anyone else encountering this? My last successful build was xxdiff-hg 404-1 in April, but it is now failing for me for both packages on three different machines (all x86_64). My systems are all up-to-date. I've not found any comments about this in the forum, wiki, AUR page, or after some fair amount of googling, so I'm at a loss (and not familiar enough with C++ to make any headway). Any thoughts? Thanks.

Last edited by mike_r (2013-08-26 19:46:37)


Linux User #353 - SLS -> Slackware -> Red Hat -> Mandrake -> Fedora -> Arch

Offline

#2 2013-08-26 02:01:34

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,675

Re: [WORKAROUND] xxdiff (and xxdiff-hg) compile failures

Your first step should be to try without yaourt (or any other AUR helper). Those may be convenient but they are not recommended for troubleshooting. See if you can reproduce it with makepkg.

EDIT: Post on the AUR page. xxdiff doesn't compile here either.

Last edited by cfr (2013-08-26 02:14:00)


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#3 2013-08-26 19:45:59

mike_r
Member
Registered: 2009-01-22
Posts: 114

Re: [WORKAROUND] xxdiff (and xxdiff-hg) compile failures

The AUR package maintainer pointed out a workaround - downgrade bison from 3.0 to 2.7.1. xxdiff will then compile. I filed a bug upstream - we'll see what happens.


Linux User #353 - SLS -> Slackware -> Red Hat -> Mandrake -> Fedora -> Arch

Offline

Board footer

Powered by FluxBB