Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
solid-5.27 fails to build [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
vespaman
Guru
Guru


Joined: 28 Aug 2002
Posts: 346
Location: Stockholm, Sweden

PostPosted: Thu Nov 10, 2016 4:43 pm    Post subject: solid-5.27 fails to build [Solved] Reply with quote

I am trying to upgrade my gentoo box at work to plasma.

So far, I have been able to solve all issues, but I'm struggling with solid.

If fails with;

Code:
[ 22%] Building C object src/solid/CMakeFiles/KF5Solid_static.dir/predicate_parser.c.o
cd /var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0_build/src/solid && /usr/bin/x86_64-pc-linux-gnu-gcc  -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_SIGNALS_SLOTS_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DQT_XML_LIB -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0_build/src/solid -I/var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0/src/solid -I/var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0/src/solid/devices -I/var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0/src/solid/devices/frontend -I/var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0/src/solid/.. -I/var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0_build/src/solid/.. -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtDBus -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui   -DQT_NO_DEBUG -DNDEBUG -march=native -O2 -pipe  -std=iso9899:1990 -fno-common -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wmissing-format-attribute -Wwrite-strings -Werror=implicit-function-declaration -fvisibility=hidden   -DSOLID_STATIC_DEFINE=1 -fPIC -o CMakeFiles/KF5Solid_static.dir/predicate_parser.c.o -c /var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0_build/src/solid/predicate_parser.c
devices/predicate_parser.y: In function ‘Soliderror’:
devices/predicate_parser.y:93:28: warning: unused parameter ‘scanner’ [-Wunused-parameter]
[ 23%] Building C object src/solid/CMakeFiles/KF5Solid_static.dir/predicate_lexer.c.o
cd /var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0_build/src/solid && /usr/bin/x86_64-pc-linux-gnu-gcc  -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_SIGNALS_SLOTS_KEYWORDS -DQT_NO_URL_CAST_FROM_STRING -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DQT_XML_LIB -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0_build/src/solid -I/var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0/src/solid -I/var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0/src/solid/devices -I/var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0/src/solid/devices/frontend -I/var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0/src/solid/.. -I/var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0_build/src/solid/.. -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtDBus -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui   -DQT_NO_DEBUG -DNDEBUG -march=native -O2 -pipe  -std=iso9899:1990 -fno-common -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wmissing-format-attribute -Wwrite-strings -Werror=implicit-function-declaration -fvisibility=hidden   -DSOLID_STATIC_DEFINE=1 -fPIC -o CMakeFiles/KF5Solid_static.dir/predicate_lexer.c.o -c /var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0_build/src/solid/predicate_lexer.c
/var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0_build/src/solid/predicate_lexer.c: In function ‘Solidensure_buffer_stack’:
/var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0_build/src/solid/predicate_lexer.c:1587:21: error: expected expression before ‘/’ token
   num_to_alloc = 1; // After all that talk, this was set to 1 anyways...
                     ^
devices/predicate_lexer.l: At top level:
/var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0_build/src/solid/predicate_lexer.c:1277:16: warning: ‘input’ defined but not used [-Wunused-function]
     static int input  (yyscan_t yyscanner)
                ^
src/solid/CMakeFiles/KF5Solid_static.dir/build.make:962: recipe for target 'src/solid/CMakeFiles/KF5Solid_static.dir/predicate_lexer.c.o' failed
make[2]: *** [src/solid/CMakeFiles/KF5Solid_static.dir/predicate_lexer.c.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0_build'
CMakeFiles/Makefile2:290: recipe for target 'src/solid/CMakeFiles/KF5Solid_static.dir/all' failed
make[1]: *** [src/solid/CMakeFiles/KF5Solid_static.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0_build'
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: kde-frameworks/solid-5.27.0::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=kde-frameworks/solid-5.27.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=kde-frameworks/solid-5.27.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/kde-frameworks/solid-5.27.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/kde-frameworks/solid-5.27.0/temp/environment'.
 * Working directory: '/var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0_build'
 * S: '/var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0'

>>> Failed to emerge kde-frameworks/solid-5.27.0, Log file:

>>>  '/var/tmp/portage/kde-frameworks/solid-5.27.0/temp/build.log'

 * Messages for package kde-frameworks/solid-5.27.0:

 * ERROR: kde-frameworks/solid-5.27.0::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=kde-frameworks/solid-5.27.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=kde-frameworks/solid-5.27.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/kde-frameworks/solid-5.27.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/kde-frameworks/solid-5.27.0/temp/environment'.
 * Working directory: '/var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0_build'
 * S: '/var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0'


I'm using gcc (Gentoo 4.9.3 p1.0, pie-0.6.2) 4.9.3.

The strange thing, is that on my home desktop, same gcc, solid 5.27 compiles just fine.
The compiler flags are identical between the two boxes; ( I haven't checked all outputs)

Code:
>> Emerging (1 of 1) kde-frameworks/solid-5.27.0::gentoo
 * solid-5.27.0.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                                                                                   [ ok ]
>>> Unpacking source...
>>> Unpacking solid-5.27.0.tar.xz to /var/tmp/portage/kde-frameworks/solid-5.27.0/work
>>> Source unpacked in /var/tmp/portage/kde-frameworks/solid-5.27.0/work
>>> Preparing source in /var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0_build"
cmake -C /var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=OFF -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0_build/gentoo_rules.cmake -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0_build/gentoo_toolchain.cmake  /var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0
loading initial cache file /var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 4.9.3
-- The CXX compiler identification is GNU 4.9.3
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
--

-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Found FLEX: /usr/bin/flex (found version "2.6.0")
-- Found BISON: /usr/bin/bison (found version "3.0.4")
-- Found UDev: /usr/include 
-- Performing Test HAVE_X86_MMX
-- Performing Test HAVE_X86_MMX - Success
-- Performing Test HAVE_X86_SSE
-- Performing Test HAVE_X86_SSE - Success
-- Performing Test HAVE_X86_SSE2
-- Performing Test HAVE_X86_SSE2 - Success
-- Performing Test HAVE_X86_3DNOW
-- Performing Test HAVE_X86_3DNOW - Success
-- Performing Test HAVE_PPC_ALTIVEC
-- Performing Test HAVE_PPC_ALTIVEC - Failed
-- Building Solid UDev backend.
-- Found MediaPlayerInfo: /usr/share/media-player-info 
-- Building Solid UPower backend.
-- Building Solid UDisks2 backend.
-- Building Solid fstab backend.
-- Looking for include file mntent.h
-- Looking for include file mntent.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for include file sys/param.h
-- Looking for include file sys/param.h - found
-- Looking for include files stdio.h, sys/mnttab.h
-- Looking for include files stdio.h, sys/mnttab.h - not found
-- Looking for include files sys/param.h, sys/mount.h
-- Looking for include files sys/param.h, sys/mount.h - found
-- Looking for getmntinfo
-- Looking for getmntinfo - not found
-- Looking for setmntent
-- Looking for setmntent - found
-- Performing Test GETMNTINFO_USES_STATVFS
-- Performing Test GETMNTINFO_USES_STATVFS - Failed
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
--
-- The following RUNTIME packages have been found:

 * MediaPlayerInfo , Enables identification and querying of portable media players , <http://www.freedesktop.org/wiki/Software/media-player-info>
   Runtime-only dependency of the udev solid backend. Support for m-p-i is included even if not found during build

-- The following REQUIRED packages have been found:

 * ECM (required version >= 5.27.0) , Extra CMake Modules. , <https://projects.kde.org/projects/kdesupport/extra-cmake-modules>
 * Qt5Xml
 * Qt5DBus
 * Qt5Gui (required version >= 5.6.2)
 * Qt5Widgets
 * Qt5 (required version >= 5.5.0)
 * FLEX , Fast Lexical Analyzer , <http://flex.sourceforge.net>
   Required for the Predicate parser
 * BISON , general-purpose parser generator , <http://www.gnu.org/software/bison>
   Required for the Predicate parser
 * UDev , UDev support for Solid , <http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html>
   Allows Solid to use UDev to provide information about devices on Linux
 * Qt5LinguistTools

-- The following features have been disabled:

 * Solid::Job , WIP: Base class for Solid Asynchronous apis
 * Solid::PowerManagement , WIP: Freedesktop backend for the asynchronous api

-- <<< Gentoo configuration >>>
Build type      Gentoo
Install path    /usr
Compiler flags:
C               -march=native -O2 -pipe  -std=iso9899:1990 -fno-common -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wmissing-format-attribute -Wwrite-strings -Werror=implicit-function-declaration
C++             -march=native -O2 -pipe  -std=c++0x -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -pedantic
Linker flags:
Executable      -Wl,--enable-new-dtags  -Wl,-O1 -Wl,--as-needed
Module          -Wl,--no-undefined -Wl,--fatal-warnings -Wl,--enable-new-dtags  -Wl,-O1 -Wl,--as-needed
Shared          -Wl,--no-undefined -Wl,--fatal-warnings -Wl,--enable-new-dtags  -Wl,-O1 -Wl,--as-needed

-- Configuring done
-- Generating done
-- Build files have been written to: /var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0_build


Last edited by vespaman on Thu Nov 10, 2016 9:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30915
Location: here

PostPosted: Thu Nov 10, 2016 8:06 pm    Post subject: Reply with quote

I tried to re-emerge solid package on my box and the only difference on configure is version of flex
Code:
< -- Found FLEX: /usr/bin/flex (found version "2.5.39")
< -- Found BISON: /usr/bin/bison (found version "3.0.4")
< -- Found UDev: /usr/include 
---
> -- Found FLEX: /usr/bin/flex (found version "2.6.0")
> -- Found BISON: /usr/bin/bison (found version "3.0.4")
> -- Found UDev: /usr/include

in relation with your error
Code:
/var/tmp/portage/kde-frameworks/solid-5.27.0/work/solid-5.27.0_build/src/solid/predicate_lexer.c:1587:21: error: expected expression before ‘/’ token
   num_to_alloc = 1; // After all that talk, this was set to 1 anyways...
                     ^

leads me to suppose that the problem could be flex.
Furthermore flex-2.6.0 package no longer in portage tree, try to update to 2.6.1 and re-emerge solid
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8936

PostPosted: Thu Nov 10, 2016 9:08 pm    Post subject: Reply with quote

Yes, flex-2.6.0 was breaking several builds. Do upgrade.
Back to top
View user's profile Send private message
vespaman
Guru
Guru


Joined: 28 Aug 2002
Posts: 346
Location: Stockholm, Sweden

PostPosted: Thu Nov 10, 2016 9:51 pm    Post subject: Reply with quote

fedeliallalinea wrote:
I tried to re-emerge solid package on my box and the only difference on configure is version of flex

[..]

Furthermore flex-2.6.0 package no longer in portage tree, try to update to 2.6.1 and re-emerge solid


asturm wrote:
Yes, flex-2.6.0 was breaking several builds. Do upgrade.



Excellent help guys, thank you very much! I would never had found that.

Now it is compiling along again!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum