Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation problems on arm with 3.8 kernel #115

Closed
marlemion opened this issue Jul 16, 2015 · 1 comment

Comments

@marlemion
Copy link

commented Jul 16, 2015

Hi, I am on Gentoo on an Odroid U2. This device is supported by a custom kernel of hardkernel, the manufacturer, currently on version number 3.8.13.30

I have compiled an installed the latest platform library.

cmake gives:

cmake -DHAVE_EXYNOS_API=1 ../
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Looking for initscr in curses
-- Looking for initscr in curses - found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Found PythonLibs: /usr/lib/libpython3.3.so (found version "3.3.5") 
-- git found: fatal: Not a git repository (or any of the parent directories): .git
\n
-- Looking for include file lockdev.h
-- Looking for include file lockdev.h - found
-- Looking for dev_unlock in lockdev
-- Looking for dev_unlock in lockdev - found
-- Looking for udev_new in udev
-- Looking for udev_new in udev - found
-- Looking for 3 include files X11/Xlib.h, ..., X11/extensions/Xrandr.h
-- Looking for 3 include files X11/Xlib.h, ..., X11/extensions/Xrandr.h - not found
-- Looking for XRRGetScreenResources in Xrandr
-- Looking for XRRGetScreenResources in Xrandr - not found
-- Looking for bcm_host_init in bcm_host
-- Looking for bcm_host_init in bcm_host - not found
-- Looking for include files tda998x_ioctl.h, comps/tmdlHdmiCEC/inc/tmdlHdmiCEC_Types.h
-- Looking for include files tda998x_ioctl.h, comps/tmdlHdmiCEC/inc/tmdlHdmiCEC_Types.h - not found
-- Found SWIG: /usr/bin/swig (found version "3.0.6") 
-- Configured features:
-- Pulse-Eight CEC Adapter:                yes
-- Pulse-Eight CEC Adapter detection:      yes
-- lockdev support:                        yes
-- xrandr support:                         no
-- Raspberry Pi support:                   no
-- TDA995x support:                        no
-- Exynos support:                         yes
-- Python support:                         version 3.3.5 (3.3)
-- lib info: git revision: fatal: Not a git repository (or any of the parent directories): .git
\n, compiled on Do 16. Jul 16:24:22 UTC 2015 by user@odroid on Linux 3.8.13.30 (armv7l), features: P8_USB, P8_detect, 'Exynos'
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/libcec-libcec-3.0.1/build

But when I try to compile, it exits with an error:

LANG=C make
[  2%] Building CXX object src/libcec/CMakeFiles/cec.dir/CECClient.cpp.o
In file included from /home/user/libcec-libcec-3.0.1/src/libcec/CECClient.cpp:34:0:
/home/user/libcec-libcec-3.0.1/src/libcec/env.h:76:19: warning: missing terminating " character
 #define LIB_INFO ("git revision: fatal: Not a git repository (or any of the parent directories): .git
                   ^
/home/user/libcec-libcec-3.0.1/src/libcec/env.h:77:1: error: stray '\' in program
 \n, compiled on Do 16. Jul 16:24:22 UTC 2015 by user@odroid on Linux 3.8.13.30 (armv7l), features: P8_USB, P8_detect, 'Exynos'")
 ^
/home/user/libcec-libcec-3.0.1/src/libcec/env.h:77:53: error: stray '@' in program
 \n, compiled on Do 16. Jul 16:24:22 UTC 2015 by user@odroid on Linux 3.8.13.30 (armv7l), features: P8_USB, P8_detect, 'Exynos'")
                                                     ^
/home/user/libcec-libcec-3.0.1/src/libcec/env.h:77:70: error: too many decimal points in number
 \n, compiled on Do 16. Jul 16:24:22 UTC 2015 by user@odroid on Linux 3.8.13.30 (armv7l), features: P8_USB, P8_detect, 'Exynos'")
                                                                      ^
/home/user/libcec-libcec-3.0.1/src/libcec/env.h:77:119: warning: character constant too long for its type
 \n, compiled on Do 16. Jul 16:24:22 UTC 2015 by user@odroid on Linux 3.8.13.30 (armv7l), features: P8_USB, P8_detect, 'Exynos'")
                                                                                                                       ^
/home/user/libcec-libcec-3.0.1/src/libcec/env.h:77:127: warning: missing terminating " character
 \n, compiled on Do 16. Jul 16:24:22 UTC 2015 by user@odroid on Linux 3.8.13.30 (armv7l), features: P8_USB, P8_detect, 'Exynos'")
                                                                                                                               ^
/home/user/libcec-libcec-3.0.1/src/libcec/env.h:77:1: error: missing terminating " character
 \n, compiled on Do 16. Jul 16:24:22 UTC 2015 by user@odroid on Linux 3.8.13.30 (armv7l), features: P8_USB, P8_detect, 'Exynos'")
 ^
/home/user/libcec-libcec-3.0.1/src/libcec/env.h:77:2: error: 'n' does not name a type
 \n, compiled on Do 16. Jul 16:24:22 UTC 2015 by user@odroid on Linux 3.8.13.30 (armv7l), features: P8_USB, P8_detect, 'Exynos'")
  ^
In file included from /usr/local/include/platform/threads/threads.h:34:0,
                 from /home/user/libcec-libcec-3.0.1/src/libcec/CECClient.h:37,
                 from /home/user/libcec-libcec-3.0.1/src/libcec/CECClient.cpp:35:
/usr/local/include/platform/threads/mutex.h:123:5: error: 'mutex_t' does not name a type
     mutex_t               m_mutex;
     ^
In file included from /usr/local/include/platform/threads/mutex.h:39:0,
                 from /usr/local/include/platform/threads/threads.h:34,
                 from /home/user/libcec-libcec-3.0.1/src/libcec/CECClient.h:37,
                 from /home/user/libcec-libcec-3.0.1/src/libcec/CECClient.cpp:35:
/usr/local/include/platform/threads/mutex.h: In constructor 'PLATFORM::CMutex::CMutex()':
/usr/local/include/platform/threads/mutex.h:68:7: error: 'm_mutex' was not declared in this scope
       MutexCreate(m_mutex);
       ^
/usr/local/include/platform/threads/mutex.h:68:7: error: 'GetRecursiveMutexAttribute' was not declared in this scope
       MutexCreate(m_mutex);
       ^
/usr/local/include/platform/threads/mutex.h: In destructor 'PLATFORM::CMutex::~CMutex()':
/usr/local/include/platform/threads/mutex.h:74:7: error: 'm_mutex' was not declared in this scope
       MutexDelete(m_mutex);
       ^
/usr/local/include/platform/threads/mutex.h: In member function 'bool PLATFORM::CMutex::TryLock()':
/usr/local/include/platform/threads/mutex.h:79:11: error: 'm_mutex' was not declared in this scope
       if (MutexTryLock(m_mutex))
           ^
/usr/local/include/platform/threads/mutex.h: In member function 'bool PLATFORM::CMutex::Lock()':
/usr/local/include/platform/threads/mutex.h:89:7: error: 'm_mutex' was not declared in this scope
       MutexLock(m_mutex);
       ^
/usr/local/include/platform/threads/mutex.h: In member function 'void PLATFORM::CMutex::Unlock()':
/usr/local/include/platform/threads/mutex.h:101:11: error: 'm_mutex' was not declared in this scope
           MutexUnlock(m_mutex);
           ^
/usr/local/include/platform/threads/mutex.h:105:9: error: 'm_mutex' was not declared in this scope
         MutexUnlock(m_mutex);
         ^
In file included from /usr/local/include/platform/threads/threads.h:34:0,
                 from /home/user/libcec-libcec-3.0.1/src/libcec/CECClient.h:37,
                 from /home/user/libcec-libcec-3.0.1/src/libcec/CECClient.cpp:35:
/usr/local/include/platform/threads/mutex.h: At global scope:
/usr/local/include/platform/threads/mutex.h:285:7: error: 'CConditionImpl' does not name a type
       CConditionImpl m_condition;
       ^
/usr/local/include/platform/threads/mutex.h: In destructor 'PLATFORM::CCondition<_Predicate>::~CCondition()':
/usr/local/include/platform/threads/mutex.h:243:9: error: 'm_condition' was not declared in this scope
         m_condition.Broadcast();
         ^
/usr/local/include/platform/threads/mutex.h: In member function 'void PLATFORM::CCondition<_Predicate>::Broadcast()':
/usr/local/include/platform/threads/mutex.h:248:9: error: 'm_condition' was not declared in this scope
         m_condition.Broadcast();
         ^
/usr/local/include/platform/threads/mutex.h: In member function 'void PLATFORM::CCondition<_Predicate>::Signal()':
/usr/local/include/platform/threads/mutex.h:253:9: error: 'm_condition' was not declared in this scope
         m_condition.Signal();
         ^
/usr/local/include/platform/threads/mutex.h: In member function 'bool PLATFORM::CCondition<_Predicate>::Wait(PLATFORM::CMutex&, uint32_t)':
/usr/local/include/platform/threads/mutex.h:258:16: error: 'm_condition' was not declared in this scope
         return m_condition.Wait(mutex.m_mutex, iTimeout);
                ^
/usr/local/include/platform/threads/mutex.h:258:39: error: 'class PLATFORM::CMutex' has no member named 'm_mutex'
         return m_condition.Wait(mutex.m_mutex, iTimeout);
                                       ^
/usr/local/include/platform/threads/mutex.h: In member function 'bool PLATFORM::CCondition<_Predicate>::Wait(PLATFORM::CMutex&, PLATFORM::PredicateCallback, void*, uint32_t)':
/usr/local/include/platform/threads/mutex.h:273:11: error: 'm_condition' was not declared in this scope
           m_condition.Wait(mutex.m_mutex, iMsLeft);
           ^
/usr/local/include/platform/threads/mutex.h:273:34: error: 'class PLATFORM::CMutex' has no member named 'm_mutex'
           m_condition.Wait(mutex.m_mutex, iMsLeft);
                                  ^
In file included from /home/user/libcec-libcec-3.0.1/src/libcec/CECClient.h:37:0,
                 from /home/user/libcec-libcec-3.0.1/src/libcec/CECClient.cpp:35:
/usr/local/include/platform/threads/threads.h: At global scope:
/usr/local/include/platform/threads/threads.h:151:5: error: 'thread_t' does not name a type
     thread_t         m_thread;
     ^
In file included from /usr/local/include/platform/threads/mutex.h:39:0,
                 from /usr/local/include/platform/threads/threads.h:34,
                 from /home/user/libcec-libcec-3.0.1/src/libcec/CECClient.h:37,
                 from /home/user/libcec-libcec-3.0.1/src/libcec/CECClient.cpp:35:
/usr/local/include/platform/threads/threads.h: In member function 'virtual bool PLATFORM::CThread::CreateThread(bool)':
/usr/local/include/platform/threads/threads.h:97:15: error: 'm_thread' was not declared in this scope
           if (ThreadsCreate(m_thread, CThread::ThreadHandler, ((void*)static_cast<CThread *>(this))))
               ^
/usr/local/include/platform/threads/threads.h:97:15: error: 'GetDetachedThreadAttribute' was not declared in this scope
           if (ThreadsCreate(m_thread, CThread::ThreadHandler, ((void*)static_cast<CThread *>(this))))
               ^
src/libcec/CMakeFiles/cec.dir/build.make:54: recipe for target 'src/libcec/CMakeFiles/cec.dir/CECClient.cpp.o' failed
make[2]: *** [src/libcec/CMakeFiles/cec.dir/CECClient.cpp.o] Error 1
CMakeFiles/Makefile2:227: recipe for target 'src/libcec/CMakeFiles/cec.dir/all' failed
make[1]: *** [src/libcec/CMakeFiles/cec.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
@opdenkamp

This comment has been minimized.

Copy link
Contributor

commented Jul 19, 2015

this issue has been fixed in 2f32a9d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.