[ELDK] Compile error in eldk(ppc_6xx-g++)
KwangMin Kim
kim25444 at naver.com
Tue Oct 20 13:18:55 CEST 2015
Hi. I'm elementary developer in korea.
I was ever good use "eldk".
During this time, it was replaced with a new computer, it was supposed to be transferred to the "/ opt"
folder of the existing installation that has been "eldk" is also a new computer.
Problems arising By trying to compile transferred to the source code is also new computer programs that
are developed using "eldk" from the old computer.
c compiler (ppc_6xx-gcc), which have a normal operation, it is possible to see that compile error occurs in cpp compiler.
please What I missed part? (need a package, and etc...)
======================================
Compile error is here.
======================================
/* ...ellipsis... */
/home/gwondori/wifi/CV3.1.0.53.70.1/Driver/lq-wave-300-03.01.00.12.31.08.d675d2ecc4db.src/support/mtlkfront.sh .rebased /opt/eldk/usr/bin/ppc_6xx-g++ -DHAVE_CONFIG_H -I. -I../../../../../tools/shared/linux -I ../../.. -I../../../../../tools/shared/linux/../ -I../../../../../wireless/shared -I../../../../../wireless/shared/linux -I../../../../../tools/shared/3rd_party/iniparser -I../../../../../tools/mttools/shared -DMTLK_PACKAGE_VERSION="\"3.1.0.12.31.8.exported.unknown\"" -include /home/gwondori/wifi/CV3.1.0.53.70.1/Driver/lq-wave-300-03.01.00.12.31.08.d675d2ecc4db.src/builds/mpc8315-linux26/config.h -Wall -Wno-multichar -include /home/gwondori/wifi/CV3.1.0.53.70.1/Driver/lq-wave-300-03.01.00.12.31.08.d675d2ecc4db.src /builds/mpc8315-linux26/.config.h -O2 -fno-common -fno-builtin -MT aux_utils.o -MD -MP -MF .deps/aux_utils.Tpo -c -o aux_utils.o `test -f '../../../../../tools/shared/linux/../aux_utils.cpp' || echo '../../../../../tools/shared/linux/'`../../../../../tools/shared/linux/../aux_utils.cpp
In file included from /home/gwondori/wifi/CV3.1.0.53.70.1/Driver/lq-wave-300-03.01.00.12.31.08.d675d2ecc4db.src/tools/shared/aux_utils.cpp:2:
/home/gwondori/wifi/CV3.1.0.53.70.1/Driver/lq-wave-300-03.01.00.12.31.08.d675d2ecc4db.src/tools/shared/aux_utils.h:12:18: error: string: No such file or directory
/home/gwondori/wifi/CV3.1.0.53.70.1/Driver/lq-wave-300-03.01.00.12.31.08.d675d2ecc4db.src/tools/shared/aux_utils.h:13:16: error: list: No such file or directory
/home/gwondori/wifi/CV3.1.0.53.70.1/Driver/lq-wave-300-03.01.00.12.31.08.d675d2ecc4db.src/tools/shared/aux_utils.h:14:19: error: sstream: No such file or directory
/home/gwondori/wifi/CV3.1.0.53.70.1/Driver/lq-wave-300-03.01.00.12.31.08.d675d2ecc4db.src/tools/shared/aux_utils.h:15:21: error: algorithm: No such file or directory
/home/gwondori/wifi/CV3.1.0.53.70.1/Driver/lq-wave-300-03.01.00.12.31.08.d675d2ecc4db.src/tools/shared/aux_utils.h:16:21: error: stdexcept: No such file or directory
In file included from /home/gwondori/wifi/CV3.1.0.53.70.1/Driver/lq-wave-300-03.01.00.12.31.08.d675d2ecc4db.src/tools/shared/aux_utils.cpp:2:
/home/gwondori/wifi/CV3.1.0.53.70.1/Driver/lq-wave-300-03.01.00.12.31.08.d675d2ecc4db.src/tools/shared/aux_utils.h:33: error: 'string' does not name a type
/home/gwondori/wifi/CV3.1.0.53.70.1/Driver/lq-wave-300-03.01.00.12.31.08.d675d2ecc4db.src/tools/shared/aux_utils.h:39: error: 'string' does not name a type
/* ...ellipsis... */
make[3]: *** [aux_utils.o] error 1
make[3]: Leaving directory `/home/gwondori/wifi/CV3.1.0.53.70.1/Driver/lq-wave-300-03.01.00.12.31.08.d675d2ecc4db.src/builds/mpc8315-linux26/tools/shared/linux'
make[2]: *** [install-recursive] error 1
make[2]: Leaving directory `/home/gwondori/wifi/CV3.1.0.53.70.1/Driver/lq-wave-300-03.01.00.12.31.08.d675d2ecc4db.src/builds/mpc8315-linux26/tools/shared'
make[1]: *** [install-recursive] error 1
make[1]: Leaving directory `/home/gwondori/wifi/CV3.1.0.53.70.1/Driver/lq-wave-300-03.01.00.12.31.08.d675d2ecc4db.src/builds/mpc8315-linux26'
==========================================
==========================================
Then, the error is a part of my source code. (aux_util.cpp)
==========================================
//$Id: aux_utils.cpp 5805 2009-01-18 09:59:55Z antonn $
#include "aux_utils.h"
//#define LOCAL_DBG_TRACE(x) DBG_TRACE("Utils: " << x)
#define LOCAL_DBG_TRACE(x)
class CTokenizerException : public exception
{
private:
const CTokenizerException& operator=(const CTokenizerException&); //Do not allow assignments
const string errorString;
public:
CTokenizerException(const string &strErrorText)
: errorString(strErrorText)
{}
~CTokenizerException() throw()
{}
virtual const char *what() const throw()
{
return errorString.c_str();
}
};
/* ...ellipsis... */
=========================================
=========================================
(aux_util.h)
=========================================
//$Id: aux_utils.h 5847 2009-01-21 16:09:27Z antonn $
#ifndef _AUX_UTILS_H_INCLUDED_
#define _AUX_UTILS_H_INCLUDED_
#include <ctype.h>
#if defined(WIN32)
#pragma warning(push,3)
#pragma warning(disable:4242)
#endif
#include <string>
#include <list>
#include <sstream>
#include <algorithm>
#include <stdexcept>
#if defined(WIN32)
#pragma warning(pop)
#endif
using namespace std;
//GCC has a bug related to use of toupper/tolower
//in transform.
//See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11108
//This is a workaround for the bug.
static int toupper_gcc_workaround(int c)
{return toupper(c);}
static int tolower_gcc_workaround(int c)
{return tolower(c);}
inline string strToUpper(string str)
{
std::transform(str.begin(), str.end(), str.begin(), toupper_gcc_workaround);
return str;
}
inline string strToLower(string str)
{
std::transform(str.begin(), str.end(), str.begin(), tolower_gcc_workaround);
return str;
}
inline int stringToint( const string& str )
{
std::istringstream s( str );
int ret(0);
s >> ret;
return (s.rdstate() & std::ios::failbit) ? 0 : ret;
}
inline string intTostring( int value )
{
std::ostringstream s;
s << value;
return s.str();
}
inline string GetFileSystemPathSeparator()
{
#ifdef WIN32
return string("\\");
#elif defined(LINUX)
return string("/");
#else
#error Unknown operating system
#endif
};
class CStrTokenizer
{
public:
class iterator
{
friend class CStrTokenizer;
public:
iterator( const iterator& other )
: m_tokenizer(other.m_tokenizer)
, m_token(other.m_token)
, m_pos(other.m_pos)
{}
const string& get() const
{ return m_token; }
iterator& operator = (const iterator& other);
iterator& operator ++();
operator bool() const;
private:
iterator(
const CStrTokenizer& tokenizer,
const string& separator,
size_t position );
mutable string m_separator;
const CStrTokenizer& m_tokenizer;
string m_token;
size_t m_pos;
};
friend class iterator;
CStrTokenizer( const string& str )
: m_string(str)
{}
iterator begin( const string& separator ) const
{
return iterator( *this, separator, 0);
}
private:
bool operator != (const CStrTokenizer& other) const
{
return this != &other;
}
string m_string;
};
void GetDirectoryContents(const string& strDir, string strFileMask,
list<string>& Result, bool fFilesOnly);
string GetCurrDir();
class exc_basic : public exception
{
public:
virtual ~exc_basic() throw() {
}
virtual const char *what() const throw() {
return m_str.c_str();
}
protected:
string m_str;
};
class exc_assert : public exc_basic
{
public:
exc_assert (const char* str,
const char *fname = NULL,
int str_no = 0) {
ostringstream ss;
ss << "Assertion failed : " << str;
if (fname) {
ss << fname << " : ";
}
if (str_no) {
ss << str_no << " : ";
}
m_str = ss.str();
}
};
#define EXC_ASSERT(expr) \
{ \
if (!(expr)) { \
throw exc_assert(#expr, __FILE__, __LINE__); \
} \
}
#endif //_AUX_UTILS_H_INCLUDED_
=============================================
Here are My PC Environment:
previous computer: fedora, 2.6.35.12-88.fc14.i686 (eldk(v4.2): /opt/eldk)
new computer: ubuntu, 3.16.0-50-generic 14.04.1-Ubuntu i686 (eldk: same the previous computer)
More information about the eldk
mailing list