Error stray 377 in program

Describe the bug error: stray '377' in program is generated when Build C solution is selected after Compile ATmel AVR-GCC To Reproduce Steps to reproduce the behavior: Insert a SPI ladder ...

Describe the bug
error: stray ‘377’ in program is generated when Build C solution is selected after Compile ATmel AVR-GCC

To Reproduce
Steps to reproduce the behavior:

  1. Insert a SPI ladder instruction
  2. Click on Compile Atmel AVR-GCC
  3. Click on Build C Solution
  4. In the Build Script for AVR targets command window, scroll down
  5. See the first error — C:UsersUserDesktopARDUINOTimer1With SPIAVRGCClibSpiLib.c:39:5: error: stray ‘377’ in program
    SPIDDR |= (1 << SS) + (1 << MOSI) + (1 << SCK);
    ^
  6. See another error among others — C:UsersUserDesktopARDUINOTimer1With SPI/ladder.h:98:17: error: ‘PORT’ undeclared (first use in this function)
    #define SPIPORT PORT

Expected behavior
.Hex file is expected to be generated.

Screenshots
C:UsersUserDesktopARDUINOTimer1With SPIAVRGCClibSpiLib.c: In function ‘SPI_Init’:
C:UsersUserDesktopARDUINOTimer1With SPIAVRGCClibSpiLib.c:39:5: error: stray ‘377’ in program
SPIDDR |= (1 << SS) + (1 << MOSI) + (1 << SCK);
^
In file included from C:UsersUserDesktopARDUINOTimer1With SPIAVRGCClibSpiLib.c:5:0:
C:UsersUserDesktopARDUINOTimer1With SPI/ladder.h:99:17: error: ‘DDR’ undeclared (first use in this function)
#define SPIDDR DDR 
^
C:UsersUserDesktopARDUINOTimer1With SPIAVRGCClibSpiLib.c:39:5: note: in expansion of macro ‘SPIDDR’
SPIDDR |= (1 << SS) + (1 << MOSI) + (1 << SCK);
^
C:UsersUserDesktopARDUINOTimer1With SPI/ladder.h:99:17: note: each undeclared identifier is reported only once for each function it appears in
#define SPIDDR DDR 
^
C:UsersUserDesktopARDUINOTimer1With SPIAVRGCClibSpiLib.c:39:5: note: in expansion of macro ‘SPIDDR’
SPIDDR |= (1 << SS) + (1 << MOSI) + (1 << SCK);
^
C:UsersUserDesktopARDUINOTimer1With SPIAVRGCClibSpiLib.c:40:5: error: stray ‘377’ in program
SPIPORT &= ~((1 << SS) + (1 << MOSI) + (1 << SCK));
^
In file included from C:UsersUserDesktopARDUINOTimer1With SPIAVRGCClibSpiLib.c:5:0:
C:UsersUserDesktopARDUINOTimer1With SPI/ladder.h:98:17: error: ‘PORT’ undeclared (first use in this function)
#define SPIPORT PORT 
^
C:UsersUserDesktopARDUINOTimer1With SPIAVRGCClibSpiLib.c:40:5: note: in expansion of macro ‘SPIPORT’
SPIPORT &= ~((1 << SS) + (1 << MOSI) + (1 << SCK));
^
C:UsersUserDesktopARDUINOTimer1With SPIAVRGCClibSpiLib.c: In function ‘SPI_Send’:
C:UsersUserDesktopARDUINOTimer1With SPIAVRGCClibSpiLib.c:75:5: error: stray ‘377’ in program
SPIPORT &= ~(1 << SS);
^
In file included from C:UsersUserDesktopARDUINOTimer1With SPIAVRGCClibSpiLib.c:5:0:
C:UsersUserDesktopARDUINOTimer1With SPI/ladder.h:98:17: error: ‘PORT’ undeclared (first use in this function)
#define SPIPORT PORT 
^
C:UsersUserDesktopARDUINOTimer1With SPIAVRGCClibSpiLib.c:75:5: note: in expansion of macro ‘SPIPORT’
SPIPORT &= ~(1 << SS);
^
C:UsersUserDesktopARDUINOTimer1With SPIAVRGCClibSpiLib.c:82:5: error: stray ‘377’ in program
SPIPORT |= (1 << SS);
^

Desktop (please complete the following information):

  • OS: Windows10 Home Edition
  • Version: Release 5.4.0.5, built 00:59:48 Oct 30 2020.

Additional context
This was caused by the below error in the generated ladder.h file.

#define SPIPORT PORTÿ
#define SPIDDR DDRÿ

Editing like so

#define SPIPORT PORTB
#define SPIDDR DDRB

will temporarily fix the error. But will appear again when you Compile Atmel AVR-GCC

Tokens

Ive been going through the book «Programming Principles and Practice using C++ » and got to a problem: When I tried compiling this in Code::Blocks(GNU GCC) it gives an error that get_token() isn’t declared. I also don’t know what that line is supposed to do. What maybe the source of the problem is that in the book it says I should use <std_lib_facilities.h> and if I don’t have it I should download it form the authors website. Thing is the website is apparently down, so if someone could post this file here and also answer the question I would be grateful.

#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<cmath>
using namespace std;
inline void keep_window_open() {char ch; cin>>ch;}

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class Token{
public:
    char kind;
    double value;
    Token(char ch)
        :kind(ch), value(0){}
    Token(char ch, double val)
        :kind(ch), value(val){}
}

Token get_token();
vector<Token>tok;

int main()
{
while(cin){
    Token t=get_token();
    tok.push_back(t);
}
}

When I try saving that file (on the website) as std_lib_facilities.h, and using #include»std_lib_facilities.h» it just gives me a ton of errors: the first (and last) three are something like ‘stray/377’ or 376 or # and most of the others are null character, ignored.
And can also someone help and tell me what is wrong with the code itself(that’s the main problem)?

Odd, that seems to be a recent version of the header. Can you copy the exact output?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
C:xxxstd_lib_facilities.h|1|error: stray '377' in program|
C:xxxstd_lib_facilities.h|1|error: stray '376' in program|
C:xxxstd_lib_facilities.h|1|error: stray '#' in program|
C:xxxstd_lib_facilities.h|1|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|1|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|1|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|1|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|1|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|1|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|1|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|1|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|1|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|1|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|1|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|2|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|3|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|3|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|3|error: invalid preprocessing directive #d|
C:xxxstd_lib_facilities.h|3|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|3|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|3|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|3|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|3|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|3|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|3|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|3|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|3|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|3|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|3|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|3|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|3|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|3|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|3|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|3|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|3|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|4|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|5|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|6|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|7|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|7|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|7|error: invalid preprocessing directive #i|
C:xxxstd_lib_facilities.h|7|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|7|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|7|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|7|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|7|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|7|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|7|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|7|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|7|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|7|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|7|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|7|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|7|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|7|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|7|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|7|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|7|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|8|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|9|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|9|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|9|error: invalid preprocessing directive #i|
C:xxxstd_lib_facilities.h|9|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|9|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|9|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|9|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|9|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|9|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|9|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|9|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|9|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|9|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|9|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|9|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|9|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|9|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|9|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|9|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|10|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|11|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|11|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|11|error: invalid preprocessing directive #i|
C:xxxstd_lib_facilities.h|11|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|11|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|11|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|11|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|11|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|11|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|11|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|11|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|11|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|11|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|11|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|11|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|11|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|11|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|11|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|11|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|12|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|13|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|13|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|13|error: invalid preprocessing directive #i|
C:xxxstd_lib_facilities.h|13|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|13|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|13|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|13|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|13|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|13|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|13|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|13|warning: null character(s) ignored|
C:xxxstd_lib_facilities.h|13|warning: null character(s) ignored|
...
C:xxxstd_lib_facilities.h|1|error: 'i' does not name a type|
C:xxxstd_lib_facilities.h|43|error: 'u' does not name a type|
C:xxxstd_lib_facilities.h|47|error: 'n' does not name a type|
C:xxxstd_lib_facilities.h|67|error: expected unqualified-id before '/' token|
C:xxxstd_lib_facilities.h|89|error: expected unqualified-id before '/' token|
C:xxxstd_lib_facilities.h|97|error: 't' does not name a type|
C:xxxstd_lib_facilities.h|111|error: 's' does not name a type|
C:xxxstd_lib_facilities.h|123|error: expected unqualified-id before '/' token|
||=== Build finished: 41 errors, 4445 warnings ===|

Its too long to post everything: 4487 lines.

Last edited on

That… should not happen.

This looks like you have cut n’ paste code and in doing so you have included a large number of characters that really shouldn’t be there. You probably can’t see them — they are non-printing characters, so your editor doesn’t show them to you.

If you’ve cut and paste it from a website, I expect there are all sorts of hidden characters in it.

Yup, I did that but i tried goggling how to remove those hidden characters and couldn’t find anything. I’m using Notepad++ if makes any difference. Actually scratch that, I manged to make it show all characters, and indeed there are some strange characters that i cant seem to mark or select. What to do?

Go back to where you found the original code you copied, and copy it again without all the hidden characters.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
/*
	simple "Programming: Principles and Practice using C++" course header to
	be used for the first few weeks.
	It provides the most common standard headers (in the global namespace)
	and minimal exception/error support.

	Students: please don't try to understand the details of headers just yet.
	All will be explained. This header is primarily used so that you don't have
	to understand every concept all at once.

	Revised April 25, 2010: simple_error() added
*/

#ifndef H112
#define H112 201004L

#include<iostream>
#include<fstream>
#include<sstream>
#include<cmath>
#include<cstdlib>
#include<string>
#include<list>
#include<vector>
#include<algorithm>
#include<stdexcept>

//------------------------------------------------------------------------------

#ifdef _MSC_VER
#include <hash_map>
using stdext::hash_map;
#else
#include <ext/hash_map>
using __gnu_cxx::hash_map;

namespace __gnu_cxx {

    template<> struct hash<std::string>
    {
        size_t operator()(const std::string& s) const
        {
            return hash<char*>()(s.c_str());
        }
    };

} // of namespace __gnu_cxx
#endif

//------------------------------------------------------------------------------

#define unordered_map hash_map

//------------------------------------------------------------------------------

typedef long Unicode;

//------------------------------------------------------------------------------

using namespace std;

template<class T> string to_string(const T& t)
{
	ostringstream os;
	os << t;
	return os.str();
}

struct Range_error : out_of_range {	// enhanced vector range error reporting
	int index;
	Range_error(int i) :out_of_range("Range error: "+to_string(i)), index(i) { }
};


// trivially range-checked vector (no iterator checking):
template< class T> struct Vector : public std::vector<T> {
	typedef typename std::vector<T>::size_type size_type;

	Vector() { }
	explicit Vector(size_type n) :std::vector<T>(n) {}
	Vector(size_type n, const T& v) :std::vector<T>(n,v) {}
	template <class I>
	Vector(I first, I last) :std::vector<T>(first,last) {}

	T& operator[](unsigned int i) // rather than return at(i);
	{
		if (i<0||this->size()<=i) throw Range_error(i);
		return std::vector<T>::operator[](i);
	}
	const T& operator[](unsigned int i) const
	{
		if (i<0||this->size()<=i) throw Range_error(i);
		return std::vector<T>::operator[](i);
	}
};

// disgusting macro hack to get a range checked vector:
#define vector Vector

// trivially range-checked string (no iterator checking):
struct String : std::string {
	
	String() { }
	String(const char* p) :std::string(p) {}
	String(const string& s) :std::string(s) {}
	template<class S> String(S s) :std::string(s) {}
	String(int sz, char val) :std::string(sz,val) {}
	template<class Iter> String(Iter p1, Iter p2) : std::string(p1,p2) { }

	char& operator[](unsigned int i) // rather than return at(i);
	{
		if (i<0||size()<=i) throw Range_error(i);
		return std::string::operator[](i);
	}

	const char& operator[](unsigned int i) const
	{
		if (i<0||size()<=i) throw Range_error(i);
		return std::string::operator[](i);
	}
};

#ifndef _MSC_VER
namespace __gnu_cxx {

    template<> struct hash<String>
    {
        size_t operator()(const String& s) const
        {
            return hash<std::string>()(s);
        }
    };

} // of namespace __gnu_cxx
#endif


struct Exit : runtime_error {
	Exit(): runtime_error("Exit") {}
};

// error() simply disguises throws:
inline void error(const string& s)
{
	throw runtime_error(s);
}

inline void error(const string& s, const string& s2)
{
	error(s+s2);
}

inline void error(const string& s, int i)
{
	ostringstream os;
	os << s <<": " << i;
	error(os.str());
}

#if _MSC_VER<1500
	// disgusting macro hack to get a range checked string:
	#define string String
	// MS C++ 9.0 have a built-in assert for string range check
	// and uses "std::string" in several places so that macro substitution fails
#endif

template<class T> char* as_bytes(T& i)	// needed for binary I/O
{
	void* addr = &i;	// get the address of the first byte
						// of memory used to store the object
	return static_cast<char*>(addr); // treat that memory as bytes
}


inline void keep_window_open()
{
	cin.clear();
	cout << "Please enter a character to exitn";
	char ch;
	cin >> ch;
	return;
}

inline void keep_window_open(string s)
{
	if (s=="") return;
	cin.clear();
	cin.ignore(120,'n');
	for (;;) {
		cout << "Please enter " << s << " to exitn";
		string ss;
		while (cin >> ss && ss!=s)
			cout << "Please enter " << s << " to exitn";
		return;
	}
}



// error function to be used (only) until error() is introduced in Chapter 5:
inline void simple_error(string s)	// write ``error: sТТ and exit program
{
	cerr << "error: " << s << 'n';
	keep_window_open();		// for some Windows environments
	exit(1);
}

// make std::min() and std::max() accessible:
#undef min
#undef max

#include<iomanip>
inline ios_base& general(ios_base& b)	// to augment fixed and scientific
{
	b.setf(ios_base::fmtflags(0),ios_base::floatfield);
	return b;
}

// run-time checked narrowing cast (type conversion):
template<class R, class A> R narrow_cast(const A& a)
{
	R r = R(a);
	if (A(r)!=a) error(string("info loss"));
	return r;
}


inline int randint(int max) { return rand()%max; }

inline int randint(int min, int max) { return randint(max-min)+min; }

inline double sqrt(int x) { return sqrt(double(x)); }	// to match C++0x

#endif 

Last edited on

That line is supposed to convert input into tokens, but you haven’t actually defined it… the header does not include its definition.

See 6.8.1 (Implementing Token_stream) and 6.8.2 (Reading tokens) for the implementation code. If you don’t want to implement Token_stream, use the Token_stream::get() function’s body as a template for your undefined function… just remove the first ‘if’ block.

Topic archived. No new replies allowed.

Но не копилится. Ошибка

File name: D:lcdkon’ki.c

Generated by: Flowcode v4.3.9.65

Date: Friday, November 23, 2012 14:54:47

Licence: Free version

***For users exUSSR ***

Не для коммерческого использования

http://www.matrixmultimedia.com

Launching the compiler…

C:NToolsMX_batsavra.bat attiny13 «D:lcdkon’ki.elf» «D:lcdkon’ki.c» «D:lcdkon’ki.lst»

D:lcd>»C:NToolsMX_bats..binavr-gcc.exe» -mmcu=attiny13 -Os -funsigned-char -o «D:lcdkon’ki.elf» «D:lcdkon’ki.c» -lm

..

D:lcdkon’ki.c: In function ‘main’:

D:lcdkon’ki.c:290: error: stray ‘303’ in program

D:lcdkon’ki.c:290: error: stray ‘353’ in program

D:lcdkon’ki.c:290: error: stray ‘340’ in program

D:lcdkon’ki.c:290: error: stray ‘342’ in program

D:lcdkon’ki.c:290: error: stray ‘355’ in program

D:lcdkon’ki.c:290: error: stray ‘340’ in program

D:lcdkon’ki.c:290: error: stray ‘377’ in program

D:lcdkon’ki.c:290: error: ‘FCC_’ undeclared (first use in this function)

D:lcdkon’ki.c:290: error: (Each undeclared identifier is reported only once

D:lcdkon’ki.c:290: error: for each function it appears in.)

D:lcdkon’ki.c:290: error: expected ‘;’ before ‘_A’

D:lcdkon’ki.c:333: error: stray ‘303’ in program

D:lcdkon’ki.c:333: error: stray ‘353’ in program

D:lcdkon’ki.c:333: error: stray ‘340’ in program

D:lcdkon’ki.c:333: error: stray ‘342’ in program

D:lcdkon’ki.c:333: error: stray ‘355’ in program

D:lcdkon’ki.c:333: error: stray ‘340’ in program

D:lcdkon’ki.c:333: error: stray ‘377’ in program

D:lcdkon’ki.c:333: error: expected ‘;’ before ‘_A’

D:lcdkon’ki.c:342: error: stray ‘303’ in program

D:lcdkon’ki.c:342: error: stray ‘353’ in program

D:lcdkon’ki.c:342: error: stray ‘340’ in program

D:lcdkon’ki.c:342: error: stray ‘342’ in program

D:lcdkon’ki.c:342: error: stray ‘355’ in program

D:lcdkon’ki.c:342: error: stray ‘340’ in program

D:lcdkon’ki.c:342: error: stray ‘377’ in program

D:lcdkon’ki.c:342: error: expected ‘;’ before ‘_B’

D:lcdkon’ki.c:385: error: stray ‘303’ in program

D:lcdkon’ki.c:385: error: stray ‘353’ in program

D:lcdkon’ki.c:385: error: stray ‘340’ in program

D:lcdkon’ki.c:385: error: stray ‘342’ in program

D:lcdkon’ki.c:385: error: stray ‘355’ in program

D:lcdkon’ki.c:385: error: stray ‘340’ in program

D:lcdkon’ki.c:385: error: stray ‘377’ in program

D:lcdkon’ki.c:385: error: expected ‘;’ before ‘_B’

D:lcdkon’ki.c:394: error: stray ‘303’ in program

D:lcdkon’ki.c:394: error: stray ‘353’ in program

D:lcdkon’ki.c:394: error: stray ‘340’ in program

D:lcdkon’ki.c:394: error: stray ‘342’ in program

D:lcdkon’ki.c:394: error: stray ‘355’ in program

D:lcdkon’ki.c:394: error: stray ‘340’ in program

D:lcdkon’ki.c:394: error: stray ‘377’ in program

D:lcdkon’ki.c:394: error: expected ‘;’ before ‘_C’

D:lcdkon’ki.c:437: error: stray ‘303’ in program

D:lcdkon’ki.c:437: error: stray ‘353’ in program

D:lcdkon’ki.c:437: error: stray ‘340’ in program

D:lcdkon’ki.c:437: error: stray ‘342’ in program

D:lcdkon’ki.c:437: error: stray ‘355’ in program

D:lcdkon’ki.c:437: error: stray ‘340’ in program

D:lcdkon’ki.c:437: error: stray ‘377’ in program

D:lcdkon’ki.c:437: error: expected ‘;’ before ‘_C’

D:lcdkon’ki.c:446: error: stray ‘303’ in program

D:lcdkon’ki.c:446: error: stray ‘353’ in program

D:lcdkon’ki.c:446: error: stray ‘340’ in program

D:lcdkon’ki.c:446: error: stray ‘342’ in program

D:lcdkon’ki.c:446: error: stray ‘355’ in program

D:lcdkon’ki.c:446: error: stray ‘340’ in program

D:lcdkon’ki.c:446: error: stray ‘377’ in program

D:lcdkon’ki.c:446: error: expected ‘;’ before ‘_D’

D:lcdkon’ki.c:489: error: stray ‘303’ in program

D:lcdkon’ki.c:489: error: stray ‘353’ in program

D:lcdkon’ki.c:489: error: stray ‘340’ in program

D:lcdkon’ki.c:489: error: stray ‘342’ in program

D:lcdkon’ki.c:489: error: stray ‘355’ in program

D:lcdkon’ki.c:489: error: stray ‘340’ in program

D:lcdkon’ki.c:489: error: stray ‘377’ in program

D:lcdkon’ki.c:489: error: expected ‘;’ before ‘_D’

D:lcdkon’ki.c:498: error: stray ‘303’ in program

D:lcdkon’ki.c:498: error: stray ‘353’ in program

D:lcdkon’ki.c:498: error: stray ‘340’ in program

D:lcdkon’ki.c:498: error: stray ‘342’ in program

D:lcdkon’ki.c:498: error: stray ‘355’ in program

D:lcdkon’ki.c:498: error: stray ‘340’ in program

D:lcdkon’ki.c:498: error: stray ‘377’ in program

D:lcdkon’ki.c:498: error: expected ‘;’ before ‘_E’

D:lcdkon’ki.c:541: error: stray ‘303’ in program

D:lcdkon’ki.c:541: error: stray ‘353’ in program

D:lcdkon’ki.c:541: error: stray ‘340’ in program

D:lcdkon’ki.c:541: error: stray ‘342’ in program

D:lcdkon’ki.c:541: error: stray ‘355’ in program

D:lcdkon’ki.c:541: error: stray ‘340’ in program

D:lcdkon’ki.c:541: error: stray ‘377’ in program

D:lcdkon’ki.c:541: error: expected ‘;’ before ‘_E’

D:lcdkon’ki.c:550: error: stray ‘303’ in program

D:lcdkon’ki.c:550: error: stray ‘353’ in program

D:lcdkon’ki.c:550: error: stray ‘340’ in program

D:lcdkon’ki.c:550: error: stray ‘342’ in program

D:lcdkon’ki.c:550: error: stray ‘355’ in program

D:lcdkon’ki.c:550: error: stray ‘340’ in program

D:lcdkon’ki.c:550: error: stray ‘377’ in program

D:lcdkon’ki.c:550: error: expected ‘;’ before ‘_F’

D:lcdkon’ki.c:593: error: stray ‘303’ in program

D:lcdkon’ki.c:593: error: stray ‘353’ in program

D:lcdkon’ki.c:593: error: stray ‘340’ in program

D:lcdkon’ki.c:593: error: stray ‘342’ in program

D:lcdkon’ki.c:593: error: stray ‘355’ in program

D:lcdkon’ki.c:593: error: stray ‘340’ in program

D:lcdkon’ki.c:593: error: stray ‘377’ in program

D:lcdkon’ki.c:593: error: expected ‘;’ before ‘_F’

D:lcdkon’ki.c:602: error: stray ‘303’ in program

D:lcdkon’ki.c:602: error: stray ‘353’ in program

D:lcdkon’ki.c:602: error: stray ‘340’ in program

D:lcdkon’ki.c:602: error: stray ‘342’ in program

D:lcdkon’ki.c:602: error: stray ‘355’ in program

D:lcdkon’ki.c:602: error: stray ‘340’ in program

D:lcdkon’ki.c:602: error: stray ‘377’ in program

D:lcdkon’ki.c:602: error: expected ‘;’ before ‘_G’

D:lcdkon’ki.c:645: error: stray ‘303’ in program

D:lcdkon’ki.c:645: error: stray ‘353’ in program

D:lcdkon’ki.c:645: error: stray ‘340’ in program

D:lcdkon’ki.c:645: error: stray ‘342’ in program

D:lcdkon’ki.c:645: error: stray ‘355’ in program

D:lcdkon’ki.c:645: error: stray ‘340’ in program

D:lcdkon’ki.c:645: error: stray ‘377’ in program

D:lcdkon’ki.c:645: error: expected ‘;’ before ‘_G’

D:lcdkon’ki.c:654: error: stray ‘303’ in program

D:lcdkon’ki.c:654: error: stray ‘353’ in program

D:lcdkon’ki.c:654: error: stray ‘340’ in program

D:lcdkon’ki.c:654: error: stray ‘342’ in program

D:lcdkon’ki.c:654: error: stray ‘355’ in program

D:lcdkon’ki.c:654: error: stray ‘340’ in program

D:lcdkon’ki.c:654: error: stray ‘377’ in program

D:lcdkon’ki.c:654: error: expected ‘;’ before ‘_H’

D:lcdkon’ki.c:697: error: stray ‘303’ in program

D:lcdkon’ki.c:697: error: stray ‘353’ in program

D:lcdkon’ki.c:697: error: stray ‘340’ in program

D:lcdkon’ki.c:697: error: stray ‘342’ in program

D:lcdkon’ki.c:697: error: stray ‘355’ in program

D:lcdkon’ki.c:697: error: stray ‘340’ in program

D:lcdkon’ki.c:697: error: stray ‘377’ in program

D:lcdkon’ki.c:697: error: expected ‘;’ before ‘_H’

D:lcdkon’ki.c:706: error: stray ‘303’ in program

D:lcdkon’ki.c:706: error: stray ‘353’ in program

D:lcdkon’ki.c:706: error: stray ‘340’ in program

D:lcdkon’ki.c:706: error: stray ‘342’ in program

D:lcdkon’ki.c:706: error: stray ‘355’ in program

D:lcdkon’ki.c:706: error: stray ‘340’ in program

D:lcdkon’ki.c:706: error: stray ‘377’ in program

D:lcdkon’ki.c:706: error: expected ‘;’ before ‘_I’

D:lcdkon’ki.c:783: error: stray ‘303’ in program

D:lcdkon’ki.c:783: error: stray ‘353’ in program

D:lcdkon’ki.c:783: error: stray ‘340’ in program

D:lcdkon’ki.c:783: error: stray ‘342’ in program

D:lcdkon’ki.c:783: error: stray ‘355’ in program

D:lcdkon’ki.c:783: error: stray ‘340’ in program

D:lcdkon’ki.c:783: error: stray ‘377’ in program

D:lcdkon’ki.c:783: error: expected ‘;’ before ‘_J’

D:lcdkon’ki.c:797: error: stray ‘303’ in program

D:lcdkon’ki.c:797: error: stray ‘353’ in program

D:lcdkon’ki.c:797: error: stray ‘340’ in program

D:lcdkon’ki.c:797: error: stray ‘342’ in program

D:lcdkon’ki.c:797: error: stray ‘355’ in program

D:lcdkon’ki.c:797: error: stray ‘340’ in program

D:lcdkon’ki.c:797: error: stray ‘377’ in program

D:lcdkon’ki.c:797: error: expected ‘;’ before ‘_J’

D:lcdkon’ki.c:808: error: stray ‘303’ in program

D:lcdkon’ki.c:808: error: stray ‘353’ in program

D:lcdkon’ki.c:808: error: stray ‘340’ in program

D:lcdkon’ki.c:808: error: stray ‘342’ in program

D:lcdkon’ki.c:808: error: stray ‘355’ in program

D:lcdkon’ki.c:808: error: stray ‘340’ in program

D:lcdkon’ki.c:808: error: stray ‘377’ in program

D:lcdkon’ki.c:808: error: expected ‘;’ before ‘_I’

D:lcdkon’ki.c:333: error: label ‘FCC_’ used but not defined

Error returned from [avr-gcc.exe]

Return code = 1

Flowcode не смог откомпилировать код C блок-схемы из-за следующих ошибок:

Если Ваша блок-схема содержит код C, пожалуйста проверьте это тщательно. Если Ваша блок-схема не содержит C-кода, или Вы полностью проверили код, обратитесь в службу Технической поддержки.

FINISHED

View previous topic :: View next topic  
Author Message
3psus
n00b
n00b

Joined: 29 Jul 2015
Posts: 9

PostPosted: Wed Jul 29, 2015 3:27 am    Post subject: Problem with GCC4.8.4 — LLVM-3.5.0 can’t find C++11 capable Reply with quote

Hi!

As you can see, this is my first post! I have been trying to work with gentoo for the last couple days hitting different problems and solving them with the help of old posts. Now though, I cannot find the way to go through this one.

After compiling the kernel, I am not able to emerge x11-base/xorg-server for it complains that it cannot find a C++11 capable compiler.

Code:
gcc-config -l

returned

Code:
x86_64-pc-linux-gnu-4.8.4

Hopefully somebody can guide me a bit. Here is the error:

Code:
>>> Running pre-merge checks for sys-devel/llvm-3.5.0

 * Checking for at least 550 MiB disk space at «/var/tmp/portage/sys-devel/llvm-3.5.0/temp» [ ok ]

 * Trying to build a C++11 test program …

x86_64-pc-linux-gnu-g++: error trying to exec ‘/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/../../../../x86_64-pc-linux-gnu/bin/as’: execv: Exec format error

 * LLVM-3.5.0 requires C++11-capable C++ compiler. Your current compiler

 * does not seem to support -std=c++11 option. Please upgrade your compiler

 * to gcc-4.7 or an equivalent version supporting C++11.

 * ERROR: sys-devel/llvm-3.5.0::gentoo failed (pretend phase):

 *   Currently active compiler does not support -std=c++11

 *

 * Call stack:

 *           ebuild.sh, line  93:  Called pkg_pretend

 *   llvm-3.5.0.ebuild, line 119:  Called die

 * The specific snippet of code:

 *            die «Currently active compiler does not support -std=c++11»

 *

 * If you need support, post the output of `emerge —info ‘=sys-devel/llvm-3.5.0::gentoo’`,

 * the complete build log and the output of `emerge -pqv ‘=sys-devel/llvm-3.5.0::gentoo’`.

 * The complete build log is located at ‘/var/tmp/portage/sys-devel/llvm-3.5.0/temp/build.log’.

 * The ebuild environment file is located at ‘/var/tmp/portage/sys-devel/llvm-3.5.0/temp/die.env’.

 * Working directory: ‘/usr/lib64/python2.7/site-packages’

 * S: ‘/var/tmp/portage/sys-devel/llvm-3.5.0/work/llvm-3.5.0.src’

>>> Running pre-merge checks for x11-base/xorg-server-1.16.4

>>> Running pre-merge checks for x11-drivers/xf86-input-evdev-2.9.1

 * Determining the location of the kernel source code

 * Found kernel source directory:

 *     /usr/src/linux

 * Found sources for kernel version:

 *     4.0.5-gentooGab28072015

 * Checking for suitable kernel configuration options…                                    [ ok ]

>>> Running pre-merge checks for x11-drivers/xf86-video-ati-7.5.0

 * Determining the location of the kernel source code

 * Found kernel source directory:

 *     /usr/src/linux

 * Found sources for kernel version:

 *     4.0.5-gentooGab28072015

 * Checking for suitable kernel configuration options…

 *   CONFIG_FB_RADEON:    should not be set. But it is.

 * Please check to make sure these options are set correctly.

 * Failure to do so may cause unexpected problems.

emerge —info:

Code:
!!! SYNC setting found in make.conf.

    This setting is Deprecated and no longer used.  Please ensure your ‘sync-type’ and ‘sync-uri’ are set correctly in /etc/portage/repos.conf/gentoo.conf

Portage 2.2.20 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.8.4, glibc-2.20-r2, 4.0.5-gentooGab28072015 x86_64)

=================================================================

                         System Settings

=================================================================

System uname: Linux-4.0.5-gentooGab28072015-x86_64-AMD_Athlon-tm-_II_X2_250_Processor-with-gentoo-2.2

KiB Mem:     8140256 total,   7458716 free

KiB Swap:    9081852 total,   9081852 free

Timestamp of repository gentoo: Tue, 28 Jul 2015 00:45:01 +0000

sh bash 4.3_p33-r2

ld GNU ld (Gentoo 2.24 p1.4) 2.24

app-shells/bash:          4.3_p33-r2::gentoo

dev-lang/perl:            5.20.2::gentoo

dev-lang/python:          2.7.9-r1::gentoo, 3.3.5-r1::gentoo

dev-util/pkgconfig:       0.28-r2::gentoo

sys-apps/baselayout:      2.2::gentoo

sys-apps/openrc:          0.17::gentoo

sys-apps/sandbox:         2.6-r1::gentoo

sys-devel/autoconf:       2.69::gentoo

sys-devel/automake:       1.15::gentoo

sys-devel/binutils:       2.24-r3::gentoo

sys-devel/gcc:            4.8.4::gentoo

sys-devel/gcc-config:     1.7.3::gentoo

sys-devel/libtool:        2.4.6::gentoo

sys-devel/make:           4.1-r1::gentoo

sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)

sys-libs/glibc:           2.20-r2::gentoo

Repositories:

gentoo

    location: /usr/portage

    sync-type: rsync

    sync-uri: rsync://rsync.gentoo.org/gentoo-portage

    priority: -1000

ACCEPT_KEYWORDS=»amd64″

ACCEPT_LICENSE=»* -@EULA»

CBUILD=»x86_64-pc-linux-gnu»

CFLAGS=»-O2 -pipe»

CHOST=»x86_64-pc-linux-gnu»

CONFIG_PROTECT=»/etc»

CONFIG_PROTECT_MASK=»/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo»

CXXFLAGS=»-O2 -pipe»

DISTDIR=»/usr/portage/distfiles»

FCFLAGS=»-O2 -pipe»

FEATURES=»assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync»

FFLAGS=»-O2 -pipe»

GENTOO_MIRRORS=»http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.mirrors.tera-byte.com/ http://gentoo.gossamerhost.com»

LANG=»en_US.utf8″

LDFLAGS=»-Wl,-O1 -Wl,—as-needed»

MAKEOPTS=»-j2″

PKGDIR=»/usr/portage/packages»

PORTAGE_CONFIGROOT=»/»

PORTAGE_RSYNC_OPTS=»—recursive —links —safe-links —perms —times —omit-dir-times —compress —force —whole-file —delete —stats —human-readable —timeout=180 —exclude=/distfiles —exclude=/local —exclude=/packages»

PORTAGE_TMPDIR=»/var/tmp»

USE=»acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx mmxext modules multilib ncurses nls nptl openmp pam pcre readline session sse sse2 ssl tcpd unicode zlib» ABI_X86=»64″ ALSA_CARDS=»ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci» APACHE2_MODULES=»authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias» CALLIGRA_FEATURES=»kexi words flow plan sheets stage tables krita karbon braindump author» CAMERAS=»ptp2″ COLLECTD_PLUGINS=»df interface irq load memory rrdtool swap syslog» CPU_FLAGS_X86=»mmx mmxext sse sse2″ ELIBC=»glibc» GPSD_PROTOCOLS=»ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx» INPUT_DEVICES=»evdev» KERNEL=»linux» LCD_DEVICES=»bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text» LIBREOFFICE_EXTENSIONS=»presenter-console presenter-minimizer» OFFICE_IMPLEMENTATION=»libreoffice» PHP_TARGETS=»php5-5″ PYTHON_SINGLE_TARGET=»python2_7″ PYTHON_TARGETS=»python2_7 python3_4″ RUBY_TARGETS=»ruby19 ruby20″ USERLAND=»GNU» VIDEO_CARDS=»radeon» XTABLES_ADDONS=»quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account»

Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

Thanks in advance :)

3psus

Back to top

View user's profile Send private message

3psus
n00b
n00b

Joined: 29 Jul 2015
Posts: 9

PostPosted: Wed Jul 29, 2015 3:44 am    Post subject: Reply with quote

Actually, it seems I can’t emerge anything at all.

Code:
>>> Failed to emerge dev-libs/apr-1.5.2, Log file:

>>>  ‘/var/tmp/portage/dev-libs/apr-1.5.2/temp/build.log’

 * Messages for package dev-libs/apr-1.5.2:

 * Failed Running aclocal !

 *

 * Include in your bugreport the contents of:

 *

 *   /var/tmp/portage/dev-libs/apr-1.5.2/temp/aclocal.out

 * ERROR: dev-libs/apr-1.5.2::gentoo failed (prepare phase):

 *   Failed Running aclocal !

 *

 * Call stack:

 *     ebuild.sh, line   93:  Called src_prepare

 *   environment, line 2675:  Called eautoreconf

 *   environment, line  834:  Called eaclocal

 *   environment, line  729:  Called autotools_run_tool ‘—at-m4flags’ ‘aclocal’

 *   environment, line  598:  Called die

 * The specific snippet of code:

 *           die «Failed Running $1 !»;

 *

 * If you need support, post the output of `emerge —info ‘=dev-libs/apr-1.5.2::gentoo’`,

 * the complete build log and the output of `emerge -pqv ‘=dev-libs/apr-1.5.2::gentoo’`.

 * The complete build log is located at ‘/var/tmp/portage/dev-libs/apr-1.5.2/temp/build.log’.

 * The ebuild environment file is located at ‘/var/tmp/portage/dev-libs/apr-1.5.2/temp/environment’.

 * Working directory: ‘/var/tmp/portage/dev-libs/apr-1.5.2/work/apr-1.5.2’

 * S: ‘/var/tmp/portage/dev-libs/apr-1.5.2/work/apr-1.5.2’

And emerge —info again:

Code:
emerge —info ‘=dev-libs/apr-1.5.2::gentoo’

!!! SYNC setting found in make.conf.

    This setting is Deprecated and no longer used.  Please ensure your ‘sync-type’ and ‘sync-uri’ are set correctly in /etc/portage/repos.conf/gentoo.conf

Portage 2.2.20 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.8.4, glibc-2.20-r2, 4.0.5-gentooGab28072015 x86_64)

=================================================================

                         System Settings

=================================================================

System uname: Linux-4.0.5-gentooGab28072015-x86_64-AMD_Athlon-tm-_II_X2_250_Processor-with-gentoo-2.2

KiB Mem:     8140256 total,   7437652 free

KiB Swap:    9081852 total,   9081852 free

Timestamp of repository gentoo: Tue, 28 Jul 2015 00:45:01 +0000

sh bash 4.3_p33-r2

ld GNU ld (Gentoo 2.24 p1.4) 2.24

app-shells/bash:          4.3_p33-r2::gentoo

dev-lang/perl:            5.20.2::gentoo

dev-lang/python:          2.7.9-r1::gentoo, 3.3.5-r1::gentoo

dev-util/pkgconfig:       0.28-r2::gentoo

sys-apps/baselayout:      2.2::gentoo

sys-apps/openrc:          0.17::gentoo

sys-apps/sandbox:         2.6-r1::gentoo

sys-devel/autoconf:       2.69::gentoo

sys-devel/automake:       1.15::gentoo

sys-devel/binutils:       2.24-r3::gentoo

sys-devel/gcc:            4.8.4::gentoo

sys-devel/gcc-config:     1.7.3::gentoo

sys-devel/libtool:        2.4.6::gentoo

sys-devel/make:           4.1-r1::gentoo

sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)

sys-libs/glibc:           2.20-r2::gentoo

Repositories:

gentoo

    location: /usr/portage

    sync-type: rsync

    sync-uri: rsync://rsync.gentoo.org/gentoo-portage

    priority: -1000

ACCEPT_KEYWORDS=»amd64″

ACCEPT_LICENSE=»* -@EULA»

CBUILD=»x86_64-pc-linux-gnu»

CFLAGS=»-march=native -O2 -pipe»

CHOST=»x86_64-pc-linux-gnu»

CONFIG_PROTECT=»/etc»

CONFIG_PROTECT_MASK=»/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo»

CXXFLAGS=»-march=native -O2 -pipe»

DISTDIR=»/usr/portage/distfiles»

FCFLAGS=»-O2 -pipe»

FEATURES=»assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync»

FFLAGS=»-O2 -pipe»

GENTOO_MIRRORS=»http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.mirrors.tera-byte.com/ http://gentoo.gossamerhost.com»

LANG=»en_US.utf8″

LDFLAGS=»-Wl,-O1 -Wl,—as-needed»

MAKEOPTS=»-j2″

PKGDIR=»/usr/portage/packages»

PORTAGE_CONFIGROOT=»/»

PORTAGE_RSYNC_OPTS=»—recursive —links —safe-links —perms —times —omit-dir-times —compress —force —whole-file —delete —stats —human-readable —timeout=180 —exclude=/distfiles —exclude=/local —exclude=/packages»

PORTAGE_TMPDIR=»/var/tmp»

USE=»acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx mmxext modules multilib ncurses nls nptl openmp pam pcre readline session sse sse2 ssl tcpd unicode zlib» ABI_X86=»64″ ALSA_CARDS=»ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci» APACHE2_MODULES=»authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias» CALLIGRA_FEATURES=»kexi words flow plan sheets stage tables krita karbon braindump author» CAMERAS=»ptp2″ COLLECTD_PLUGINS=»df interface irq load memory rrdtool swap syslog» CPU_FLAGS_X86=»mmx mmxext sse sse2″ ELIBC=»glibc» GPSD_PROTOCOLS=»ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx» INPUT_DEVICES=»evdev» KERNEL=»linux» LCD_DEVICES=»bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text» LIBREOFFICE_EXTENSIONS=»presenter-console presenter-minimizer» OFFICE_IMPLEMENTATION=»libreoffice» PHP_TARGETS=»php5-5″ PYTHON_SINGLE_TARGET=»python2_7″ PYTHON_TARGETS=»python2_7 python3_4″ RUBY_TARGETS=»ruby19 ruby20″ USERLAND=»GNU» VIDEO_CARDS=»radeon» XTABLES_ADDONS=»quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account»

Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

Back to top

View user's profile Send private message

3psus
n00b
n00b

Joined: 29 Jul 2015
Posts: 9

PostPosted: Wed Jul 29, 2015 3:56 am    Post subject: Reply with quote

I am guessing an important module is not loaded, or something missing or not compiled correctly in Kernel… :|
Back to top

View user's profile Send private message

ian.au
Guru
Guru

Joined: 07 Apr 2011
Posts: 573
Location: Australia

PostPosted: Wed Jul 29, 2015 4:48 am    Post subject: Reply with quote

It never, ever pays to guess :)

That said, before making a guess of my own:

What does:

Code:
gcc —version

return?

Back to top

View user's profile Send private message

Buffoon
Veteran
Veteran

Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Wed Jul 29, 2015 11:04 am    Post subject: Reply with quote

Code:
emerge -pv gcc



Is cxx USE flag enabled?

Back to top

View user's profile Send private message

3psus
n00b
n00b

Joined: 29 Jul 2015
Posts: 9

PostPosted: Wed Jul 29, 2015 1:42 pm    Post subject: Reply with quote

ian.au wrote:
It never, ever pays to guess :)

That said, before making a guess of my own:

What does:

Code:
gcc —version

return?



Hi ian.au, thx for your help :)

gcc —version:

Code:
 gcc (Gentoo 4.8.4 p1.6, pie-0.6.1) 4.8.4

Copyright (C) 2013 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Buffoon wrote:
Code:
emerge -pv gcc



Is cxx USE flag enabled?

Hi Buffoon, also thx for your help!

Yes, it is enabled:

Code:
 Gentoo ~ # emerge -pv gcc

!!! SYNC setting found in make.conf.

    This setting is Deprecated and no longer used.  Please ensure your ‘sync-type’ and ‘sync-uri’ are set correctly in /etc/portage/repos.conf/gentoo.conf

These are the packages that would be merged, in order:

Calculating dependencies… done!

[ebuild   R    ] sys-devel/gcc-4.8.4:4.8::gentoo  USE=»cxx fortran (multilib) nls nptl openmp sanitize (-altivec) (-awt) -debug -doc (-fixed-point) -gcj -go -graphite (-hardened) (-libssp) -mudflap (-multislot) -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla» 84,244 KiB

Total: 1 package (1 reinstall), Size of downloads: 84,244 KiB

 * IMPORTANT: 13 news items need reading for repository ‘gentoo’.

 * Use eselect news read to view new items.

I should emphasize the fact that I am actually unable to emerge anything and it seems the system can’t make at all.

Back to top

View user's profile Send private message

ian.au
Guru
Guru

Joined: 07 Apr 2011
Posts: 573
Location: Australia

PostPosted: Wed Jul 29, 2015 1:50 pm    Post subject: Reply with quote

Okay it’s installed, is it selected? Is there an * indicating the selected compiler is active?

Quote:
ian@ls2 ~ $ gcc-config -l

[1] x86_64-pc-linux-gnu-4.8.4

[2] x86_64-pc-linux-gnu-4.9.3 *

Back to top

View user's profile Send private message

Buffoon
Veteran
Veteran

Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Wed Jul 29, 2015 1:58 pm    Post subject: Reply with quote

It is selected alright, it is showing up in emerge —info.

Code:
x86_64-pc-linux-gnu-g++: error trying to exec ‘/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/../../../../x86_64-pc-linux-gnu/bin/as’: execv: Exec format error

This is the problem, some sort of ABI mismatch probably, never had this one myself, if I had I’d rebuild gcc and libtool for starters.

Back to top

View user's profile Send private message

ian.au
Guru
Guru

Joined: 07 Apr 2011
Posts: 573
Location: Australia

PostPosted: Wed Jul 29, 2015 2:14 pm    Post subject: Reply with quote

@Bufoon I saw that in the emerge info, but not in the op code quote for the gcc-config list. I had to ask.

@3psus could you

Code:
eselect python list

and paste here, and also /etc/portage/make.conf

Back to top

View user's profile Send private message

3psus
n00b
n00b

Joined: 29 Jul 2015
Posts: 9

PostPosted: Wed Jul 29, 2015 2:22 pm    Post subject: Reply with quote

Buffoon wrote:
It is selected alright, it is showing up in emerge —info.

Code:
x86_64-pc-linux-gnu-g++: error trying to exec ‘/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/../../../../x86_64-pc-linux-gnu/bin/as’: execv: Exec format error

This is the problem, some sort of ABI mismatch probably, never had this one myself, if I had I’d rebuild gcc and libtool for starters.

I will try that.

When I emerge —ask net-analyser/iptraf-ng

I get a bunch of errors I do not understand (I am copy/pasting parts of it, or we would get an infinite scroll:

Code:

>>> Emerging (1 of 1) net-analyzer/iptraf-ng-1.1.4-r1::gentoo

 * iptraf-ng-1.1.4.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) …                   [ ok ]

>>> Unpacking source…

>>> Unpacking iptraf-ng-1.1.4.tar.gz to /var/tmp/portage/net-analyzer/iptraf-ng-1.1.4-r1/work

>>> Source unpacked in /var/tmp/portage/net-analyzer/iptraf-ng-1.1.4-r1/work

>>> Preparing source in /var/tmp/portage/net-analyzer/iptraf-ng-1.1.4-r1/work/iptraf-ng-1.1.4 …

 * Applying iptraf-ng-1.1.4-tcplog_flowrate_msg.patch …                        [ ok ]

>>> Source prepared.

>>> Configuring source in /var/tmp/portage/net-analyzer/iptraf-ng-1.1.4-r1/work/iptraf-ng-1.1.4 …

>>> Source configured.

>>> Compiling source in /var/tmp/portage/net-analyzer/iptraf-ng-1.1.4-r1/work/iptraf-ng-1.1.4 …

make -j2

IPTRAF_VERSION = 1.1.4

x86_64-pc-linux-gnu-gcc -o src/tui/input.o -c  -I/usr/include/ncursesw  -O2 -pipe -DLOCKDIR=»/run/lock/iptraf-ng» -Wall -W -std=gnu99 -I. -Isrc/  src/tui/input.c

x86_64-pc-linux-gnu-gcc -o src/tui/labels.o -c  -I/usr/include/ncursesw  -O2 -pipe -DLOCKDIR=»/run/lock/iptraf-ng» -Wall -W -std=gnu99 -I. -Isrc/  src/tui/labels.c

x86_64-pc-linux-gnu-gcc: error trying to exec ‘/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/../../../../x86_64-pc-linux-gnu/bin/as’: execv: Exec format error

x86_64-pc-linux-gnu-gcc: error trying to exec ‘/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/../../../../x86_64-pc-linux-gnu/bin/as’: execv: Exec format error

In file included from /usr/include/asm/errno.h:1:0,

                 from /usr/include/linux/errno.h:1,

                 from /usr/include/bits/errno.h:24,

                 from /usr/include/errno.h:35,

                 from src/iptraf-ng-compat.h:12,

                 from src/tui/input.c:10:

/usr/include/asm-generic/errno.h:1:1: error: stray ‘303’ in program

 ÍB?E

     ??ێ????8ࠚ5?

 ^

/usr/include/asm-generic/errno.h:1:1: error: stray ‘215’ in program

/usr/include/asm-generic/errno.h:1:1: error: stray ‘35’ in program

/usr/include/asm-generic/errno.h:1:1: error: stray ‘272’ in program

/usr/include/asm-generic/errno.h:1:4: error: unknown type name ‘B’

 ÍB?E

     ??ێ????8ࠚ5?

    ^

/usr/include/asm-generic/errno.h:1:1: error: stray ‘312’ in program

 ÍB?E

     ??ێ????8ࠚ5?

 ^

/usr/include/asm-generic/errno.h:1:1: error: stray ‘347’ in program

/usr/include/asm-generic/errno.h:1:1: error: stray ‘207’ in program

/usr/include/asm-generic/errno.h:1:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘^’ token

 ÍB?E

     ??ێ????8ࠚ5?

           ^


Code:

/usr/include/asm-generic/errno.h:3:1: error: stray ‘6’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘201’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘366’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘7’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘273’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘313’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘377’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘304’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘366’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘340’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘16’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘215’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘204’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘322’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘306’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘22’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘212’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘242’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘35’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘37’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘10’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘252’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘207’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘333’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘327’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘226’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘4’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘262’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘360’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘347’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘37’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘2’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘17’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘25’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘344’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘251’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘304’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘35’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘237’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘277’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘340’ in program

In file included from /usr/include/asm/errno.h:1:0,

                 from /usr/include/linux/errno.h:1,

                 from /usr/include/bits/errno.h:24,

                 from /usr/include/errno.h:35,

                 from src/iptraf-ng-compat.h:12,

                 from src/tui/input.c:10:

/usr/include/asm-generic/errno.h:3:244: error: stray ‘@’ in program

 _??Osv2j?8??xo??b????’???qO?

??9??44?{?                   ??Nw@?:q?’??#?q᪼???w???/qz? N?,?$/?>


Code:

/usr/include/asm-generic/socket.h:2:1: error: stray ‘375’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘223’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘364’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘207’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘341’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘6’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘201’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘366’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘7’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘273’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘254’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘335’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘302’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘313’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘377’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘265’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘304’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘366’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘340’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘16’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘4’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘207’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘316’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘215’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘204’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘371’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘322’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘24’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘306’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘234’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘22’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘212’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘242’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘335’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘310’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘35’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘37’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘353’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘10’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘243’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘252’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘342’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘302’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘207’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘333’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘267’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘327’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘226’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘26’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘4’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘262’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘304’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘360’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘317’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘347’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘37’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘212’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘2’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘17’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘25’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘227’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘322’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘31’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘344’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘251’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘304’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘35’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘225’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘31’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘237’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘343’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘277’ in program

/usr/include/asm-generic/errno.h:3:1: error: stray ‘340’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘326’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘21’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘265’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘340’ in program

/usr/include/asm-generic/socket.h:2:1: error: stray ‘`’ in program

In file included from /usr/include/asm/errno.h:1:0,

                 from /usr/include/linux/errno.h:1,

                 from /usr/include/bits/errno.h:24,

                 from /usr/include/errno.h:35,

                 from src/iptraf-ng-compat.h:12,

                 from src/tui/labels.c:9:

/usr/include/asm-generic/errno.h:3:244: error: stray ‘@’ in program

 _??Osv2j?8??xo??b????’???qO?

??9??44?{?                   ??Nw@?:q?’??#?q᪼???w???/qz? N?,?$/?>


Code:

/usr/include/asm-generic/ioctl.h:3:1: error: stray ‘17’ in program

/usr/include/asm-generic/ioctl.h:3:1: error: stray ‘20’ in program

/usr/include/asm-generic/socket.h:15:1: error: stray ‘362’ in program

/usr/include/asm-generic/ioctl.h:3:1: error: stray ‘365’ in program

/usr/include/asm-generic/socket.h:15:1: error: stray ‘312’ in program

/usr/include/asm-generic/ioctl.h:3:1: error: stray ‘200’ in program

/usr/include/asm-generic/socket.h:15:1: error: stray ‘377’ in program

/usr/include/asm-generic/socket.h:15:1: error: stray ‘204’ in program

/usr/include/asm-generic/ioctl.h:3:1: error: stray ‘207’ in program

/usr/include/asm-generic/ioctl.h:3:1: error: stray ‘245’ in program

/usr/include/asm-generic/socket.h:15:1: error: stray ‘267’ in program

/usr/include/asm-generic/socket.h:15:1: error: stray ‘221’ in program

/usr/include/asm-generic/ioctl.h:3:1: error: stray ‘22’ in program

/usr/include/asm-generic/ioctl.h:3:1: error: stray ‘361’ in program

/usr/include/asm-generic/socket.h:15:1: error: stray ‘352’ in program

/usr/include/asm-generic/ioctl.h:3:1: error: stray ‘275’ in program

/usr/include/asm-generic/socket.h:15:1: error: stray ‘274’ in program

/usr/include/asm-generic/socket.h:15:1: error: stray ‘340’ in program

/usr/include/asm-generic/ioctl.h:3:1: error: stray ‘236’ in program

/usr/include/asm-generic/ioctl.h:3:1: error: stray ‘375’ in program

/usr/include/asm-generic/ioctl.h:3:1: error: stray ‘347’ in program

/usr/include/asm-generic/ioctl.h:3:1: error: stray ‘31’ in program

/usr/include/asm-generic/ioctl.h:3:1: error: stray ‘240’ in program

/usr/include/asm-generic/socket.h:15:1: error: stray ‘266’ in program

/usr/include/asm-generic/socket.h:15:1: error: stray ‘237’ in program

/usr/include/asm-generic/ioctl.h:3:1: error: stray ‘367’ in program

/usr/include/asm-generic/socket.h:15:1: error: stray ‘26’ in program

/usr/include/asm-generic/ioctl.h:3:1: error: stray ‘270’ in program

/usr/include/asm-generic/socket.h:15:1: error: stray ‘37’ in program

/usr/include/asm-generic/ioctl.h:3:1: error: stray ‘237’ in program

/usr/include/asm-generic/socket.h:15:1: error: stray ‘342’ in program

/usr/include/asm-generic/ioctl.h:3:1: error: stray ‘220’ in program

/usr/include/asm-generic/socket.h:15:1: error: stray ‘307’ in program

/usr/include/asm-generic/socket.h:15:1: error: stray ‘274’ in program

/usr/include/asm-generic/ioctl.h:3:1: error: stray ‘346’ in program

/usr/include/asm-generic/socket.h:15:1: error: stray ‘273’ in program

/usr/include/asm-generic/ioctl.h:3:1: error: stray ‘374’ in program

/usr/include/asm-generic/socket.h:15:1: error: stray ‘370’ in program

/usr/include/asm-generic/ioctl.h:3:1: error: stray ‘363’ in program

/usr/include/asm-generic/socket.h:15:1: error: stray ‘245’ in program


Code:

/usr/include/asm-generic/types.h:1:1: error: stray ‘275’ in program

/usr/include/asm-generic/types.h:1:1: error: stray ‘343’ in program

/usr/include/asm-generic/types.h:1:1: error: stray ‘345’ in program

/usr/include/asm-generic/types.h:1:1: error: stray ‘371’ in program

/usr/include/asm-generic/types.h:1:1: error: stray ‘257’ in program

/usr/include/asm-generic/types.h:1:1: error: stray ‘342’ in program

/usr/include/asm-generic/types.h:1:1: error: stray ‘367’ in program

/usr/include/asm-generic/types.h:1:1: error: stray ‘307’ in program

/usr/include/asm-generic/types.h:1:1: error: stray ‘266’ in program

/usr/include/asm-generic/types.h:1:1: error: stray ‘276’ in program

/usr/include/asm-generic/types.h:1:1: error: stray ‘376’ in program

/usr/include/asm-generic/types.h:1:1: error: stray ‘364’ in program

/usr/include/asm-generic/types.h:1:1: error: stray ‘224’ in program

/usr/include/asm-generic/types.h:1:18: error: stray ‘@’ in program

/usr/include/asm-generic/types.h:1:1: error: stray ‘220’ in program

/usr/include/asm-generic/types.h:1:1: error: stray ‘220’ in program

/usr/include/asm-generic/types.h:1:1: error: stray ‘32’ in program

/usr/include/asm-generic/types.h:1:1: error: stray ‘200’ in program

/usr/include/asm-generic/types.h:1:1: error: stray ‘31’ in program

/usr/include/asm-generic/types.h:1:1: error: stray ‘30’ in program

/usr/include/asm-generic/types.h:1:1: error: stray ‘200’ in program

/usr/include/asm-generic/types.h:1:1: error: stray ‘3’ in program

/usr/include/asm-generic/types.h:1:1: error: stray ‘334’ in program

/usr/include/asm-generic/types.h:1:1: error: stray ‘36’ in program

/usr/include/asm-generic/types.h:1:1: error: stray ‘262’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘2’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘256’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘311’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘274’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘21’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘312’ in program

/usr/include/asm-generic/types.h:2:9: error: invalid suffix «C» on integer constant

/usr/include/asm-generic/types.h:2:1: error: stray ‘363’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘302’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘26’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘245’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘27’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘202’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘370’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘36’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘373’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘356’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘354’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘235’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘36’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘310’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘331’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘373’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘206’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘311’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘300’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘225’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘254’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘257’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘27’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘201’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘324’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘31’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘224’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘346’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘237’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘31’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘231’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘237’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘342’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘234’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘201’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘324’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘245’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘24’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘214’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘332’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘356’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘206’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘217’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘260’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘367’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘334’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘327’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘310’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘303’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘5’ in program

/usr/include/asm-generic/types.h:2:82: error: invalid suffix «b» on integer constant

/usr/include/asm-generic/types.h:2:1: error: stray ‘201’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘314’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘366’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘217’ in program

/usr/include/asm-generic/types.h:2:1: error: stray ‘272’ in program

/usr/include/asm-generic/types.h:3:1: error: stray ‘34’ in program

/usr/include/asm-generic/types.h:3:1: error: stray ‘244’ in program

/usr/include/asm-generic/types.h:3:1: error: stray ‘221’ in program

/usr/include/asm-generic/types.h:3:1: error: stray ‘311’ in program

/usr/include/asm-generic/types.h:3:1: error: stray ‘363’ in program

/usr/include/asm-generic/types.h:3:1: error: stray ‘203’ in program

/usr/include/asm-generic/types.h:3:1: error: stray ‘372’ in program

/usr/include/asm-generic/types.h:3:1: error: stray ‘236’ in program

/usr/include/asm-generic/types.h:3:1: error: stray ‘325’ in program

/usr/include/asm-generic/types.h:3:1: error: stray ‘257’ in program

/usr/include/asm-generic/types.h:3:1: error: stray ‘304’ in program

/usr/include/asm-generic/types.h:3:1: error: stray ‘33’ in program

/usr/include/asm-generic/types.h:3:1: error: stray ‘224’ in program

/usr/include/asm-generic/types.h:3:1: error: stray ‘307’ in program

/usr/include/asm-generic/types.h:3:1: error: stray ‘266’ in program

/usr/include/asm-generic/types.h:3:1: error: stray ‘246’ in program

/usr/include/asm-generic/types.h:3:1: error: stray ‘341’ in program

/usr/include/asm-generic/types.h:3:1: error: stray ‘241’ in program

/usr/include/asm-generic/types.h:3:1: error: stray ‘224’ in program

/usr/include/asm-generic/types.h:3:1: error: stray ‘24’ in program

/usr/include/asm-generic/types.h:3:1: error: stray ‘301’ in program

/usr/include/asm-generic/types.h:3:1: error: stray ‘243’ in program

In file included from /usr/include/asm/posix_types_64.h:17:0,

                 from /usr/include/asm/posix_types.h:6,

                 from /usr/include/linux/posix_types.h:35,

                 from /usr/include/linux/types.h:8,

                 from /usr/include/linux/if_ether.h:24,

                 from src/iptraf-ng-compat.h:39,

                 from src/tui/input.c:10:



Code:

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘341’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘323’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘270’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘303’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘215’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘32’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘220’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘332’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘373’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘233’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘216’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘272’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘203’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘364’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘265’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘373’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘214’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘305’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘334’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘265’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘236’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘316’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘336’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘254’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘264’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘263’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘36’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘350’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘234’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘352’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘342’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘236’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘277’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘256’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘244’ in program

In file included from /usr/include/asm/posix_types_64.h:17:0,

                 from /usr/include/asm/posix_types.h:6,

                 from /usr/include/linux/posix_types.h:35,

                 from /usr/include/linux/types.h:8,

                 from /usr/include/linux/if_ether.h:24,

                 from src/iptraf-ng-compat.h:39,

                 from src/tui/input.c:10:



Code:

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘341’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘323’ in program

/usr/include/linux/if_packet.h:89:2: error: unknown type name ‘__u16’

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘270’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘303’ in program

/usr/include/linux/if_packet.h:90:2: error: unknown type name ‘__u16’

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘215’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘32’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘220’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘332’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘373’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘233’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘216’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘272’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘203’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘364’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘265’ in program

/usr/include/linux/if_packet.h:132:2: error: unknown type name ‘__u32’

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘373’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘214’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘305’ in program

/usr/include/linux/if_packet.h:133:2: error: unknown type name ‘__u32’

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘334’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘265’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘236’ in program

/usr/include/linux/if_packet.h:134:2: error: unknown type name ‘__u32’

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘316’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘336’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘254’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘264’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘263’ in program

/usr/include/linux/if_packet.h:135:2: error: unknown type name ‘__u16’

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘36’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘350’ in program

/usr/include/linux/if_packet.h:136:2: error: unknown type name ‘__u16’

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘234’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘352’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘342’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘236’ in program

/usr/include/linux/if_packet.h:137:2: error: unknown type name ‘__u32’

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘277’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘256’ in program

/usr/include/asm-generic/posix_types.h:2:1: error: stray ‘244’ in program

/usr/include/linux/if_packet.h:138:2: error: unknown type name ‘__u32’

In file included from /usr/include/asm/posix_types_64.h:17:0,

                 from /usr/include/asm/posix_types.h:6,

                 from /usr/include/linux/posix_types.h:35,

                 from /usr/include/linux/types.h:8,

                 from /usr/include/linux/if_ether.h:24,

                 from src/iptraf-ng-compat.



Code:

/usr/include/ncursesw/curses.h:209:35: note: in definition of macro ‘NCURSES_CAST’

src/tui/input.c:60:2: note: in expansion of macro ‘wattrset’

/usr/include/linux/if_packet.h:155:2: error: unknown type name ‘__u32’

In file included from src/iptraf-ng-compat.h:15:0,

                 from src/tui/input.c:10:

/usr/include/ncursesw/curses.h:1126:50: warning: left-hand operand of comma expression has no effect [-Wunused-value]

src/tui/input.c:60:2: note: in expansion of macro ‘wattrset’

/usr/include/ncursesw/curses.h:1125:33: warning: statement with no effect [-Wunused-value]

src/tui/input.c:60:2: note: in expansion of macro ‘wattrset’

src/tui/input.c:61:2: warning: implicit declaration of function ‘wmove’ [-Wimplicit-function-declaration]

/usr/include/linux/if_packet.h:156:2: error: unknown type name ‘__u32’

src/tui/input.c:63:3: warning: implicit declaration of function ‘wprintw’ [-Wimplicit-function-declaration]

In file included from src/iptraf-ng-compat.h:15:0,

                 from src/tui/input.c:10:

src/tui/input.c: In function ‘tx_getinput’:

/usr/include/ncursesw/curses.h:1126:15: error: request for member ‘_attrs’ in something not a structure or union

src/tui/input.c:79:2: note: in expansion of macro ‘wattrset’

/usr/include/linux/if_packet.h:157:2: error: unknown type name ‘__u32’

In file included from src/iptraf-ng-compat.h:15:0,

                 from src/tui/input.c:10:

/usr/include/ncursesw/curses.h:1126:39: error: ‘attr_t’ undeclared (first use in this function)

/usr/include/ncursesw/curses.h:209:35: note: in definition of macro ‘NCURSES_CAST’

src/tui/input.c:79:2: note: in expansion of macro ‘wattrset’

In file included from src/iptraf-ng-compat.h:15:0,

                 from src/tui/input.c:10:

/usr/include/ncursesw/curses.h:1126:50: warning: left-hand operand of comma expression has no effect [-Wunused-value]

src/tui/input.c:79:2: note: in expansion of macro ‘wattrset’

/usr/include/linux/if_packet.h:158:2: error: unknown type name ‘__u16’

/usr/include/ncursesw/curses.h:1125:33: warning: statement with no effect [-Wunused-value]

src/tui/input.c:79:2: note: in expansion of macro ‘wattrset’

src/tui/input.c:85:3: warning: implicit declaration of function ‘wgetch’ [-Wimplicit-function-declaration]

/usr/include/linux/if_packet.h:159:2: error: unknown type name ‘__u16’

In file included from src/iptraf-ng-compat.h:15:0,

                 from src/tui/input.c:10:

/usr/include/ncursesw/curses.h:1102:37: error: request for member ‘_cury’ in something not a structure or union

/usr/include/ncursesw/curses.h:1057:32: note: in expansion of macro ‘getcury’

src/tui/input.c:94:5: note: in expansion of macro ‘getyx’

/usr/include/linux/if_packet.h:164:2: error: unknown type name ‘__u8’

/usr/include/ncursesw/curses.h:1101:37: error: request for member ‘_curx’ in something not a structure or union

/usr/include/ncursesw/curses.h:1057:50: note: in expansion of macro ‘getcurx’

src/tui/input.c:94:5: note: in expansion of macro ‘getyx’

/usr/include/ncursesw/curses.h:1057:44: warning: left-hand operand of comma expression has no effect [-Wunused-value]

src/tui/input.c:94:5: note: in expansion of macro ‘getyx’

/usr/include/ncursesw/curses.h:1102:37: error: request for member ‘_cury’ in something not a structure or union

/usr/include/ncursesw/curses.h:1057:32: note: in expansion of macro ‘getcury’

src/tui/input.c:122:6: note: in expansion of macro ‘getyx’

/usr/include/linux/if_packet.h:176:2: error: unknown type name ‘__u32’

/usr/include/ncursesw/curses.h:1101:37: error: request for member ‘_curx’ in something not a structure or union

/usr/include/ncursesw/curses.h:1057:50: note: in expansion of macro ‘getcurx’

src/tui/input.c:122:6: note: in expansion of macro ‘getyx’

/usr/include/ncursesw/curses.h:1057:44: warning: left-hand operand of comma expression has no effect [-Wunused-value]

src/tui/input.c:122:6: note: in expansion of macro ‘getyx’

src/tui/input.c: In function ‘tx_fillfields’:

src/tui/input.c:144:2: warning: implicit declaration of function ‘curs_set’ [-Wimplicit-function-declaration]

src/tui/input.c: In function ‘tx_destroyfields’:

src/tui/input.c:190:2: warning: implicit declaration of function ‘del_panel’ [-Wimplicit-function-declaration]

src/tui/input.c:191:2: warning: implicit declaration of function ‘delwin’ [-Wimplicit-function-declaration]

/usr/include/linux/if_packet.h:177:2: error: unknown type name ‘__u32’

/usr/include/linux/if_packet.h:178:2: error: unknown type name ‘__u32’

/usr/include/linux/if_packet.h:183:2: error: unknown type name ‘__u32’

In file included from /usr/include/linux/if_ether.h:24:0,

                 from src/iptraf-ng-compat.h:39,

                 from src/tui/labels.c:9:

/usr/include/linux/if_packet.h:194:2: error: expected specifier-qualifier-list before ‘__u64’

In file included from src/iptraf-ng-compat.h:40:0,

                 from src/tui/labels.c:9:

/usr/include/linux/if_packet.h:229:2: error: unknown type name ‘__u32’

/usr/include/linux/if_packet.h:230:2: error: unknown type name ‘__u32’

In file included from src/iptraf-ng-compat.h:41:0,

                 from src/tui/labels.c:9:

/usr/include/linux/if_fddi.h:71:2: error: unknown type name ‘__u8’

/usr/include/linux/if_fddi.h:72:2: error: unknown type name ‘__u8’

/usr/include/linux/if_fddi.h:73:2: error: unknown type name ‘__u8’

/usr/include/linux/if_fddi.h:78:2: error: unknown type name ‘__u8’

/usr/include/linux/if_fddi.h:79:2: error: unknown type name ‘__u8’

/usr/include/linux/if_fddi.h:80:2: error: unknown type name ‘__u8’

/usr/include/linux/if_fddi.h:81:2: error: unknown type name ‘__u8’

/usr/include/linux/if_fddi.h:86:2: error: unknown type name ‘__u8’

/usr/include/linux/if_fddi.h:87:2: error: unknown type name ‘__u8’

/usr/include/linux/if_fddi.h:88:2: error: unknown type name ‘__u8’

/usr/include/linux/if_fddi.h:89:2: error: unknown type name ‘__u8’

/usr/include/linux/if_fddi.h:95:2: error: unknown type name ‘__u8’

/usr/include/linux/if_fddi.h:96:2: error: unknown type name ‘__u8’

/usr/include/linux/if_fddi.h:97:2: error: unknown type name ‘__u8’

Makefile:376: recipe for target ‘src/tui/input.o’ failed

make: *** [src/tui/input.o] Error 2

make: *** Waiting for unfinished jobs….

In file included from src/iptraf-ng-compat.h:44:0,

                 from src/tui/labels.c:9:

/usr/include/linux/if.h:211:19: error: field ‘ifru_addr’ has incomplete type

/usr/include/linux/if.h:212:19: error: field ‘ifru_dstaddr’ has incomplete type

/usr/include/linux/if.h:213:19: error: field ‘ifru_broadaddr’ has incomplete type

/usr/include/linux/if.h:214:19: error: field ‘ifru_netmask’ has incomplete type

/usr/include/linux/if.h:215:20: error: field ‘ifru_hwaddr’ has incomplete type

In file included from /usr/include/linux/kernel.h:4:0,

                 from /usr/include/linux/netlink.h:4,

                 from /usr/include/linux/if_link.h:5,

                 from /usr/include/linux/netdevice.h:31,

                 from /usr/include/linux/if_arp.h:26,

                 from src/iptraf-ng-compat.h:45,

                 from src/tui/labels.c:9:

/usr/include/linux/sysinfo.h:8:2: error: unknown type name ‘__kernel_long_t’

/usr/include/linux/sysinfo.h:9:2: error: unknown type name ‘__kernel_ulong_t’

/usr/include/linux/sysinfo.h:10:2: error: unknown type name ‘__kernel_ulong_t’

/usr/include/linux/sysinfo.h:11:2: error: unknown type name ‘__kernel_ulong_t’

/usr/include/linux/sysinfo.h:12:2: error: unknown type name ‘__kernel_ulong_t’

/usr/include/linux/sysinfo.h:13:2: error: unknown type name ‘__kernel_ulong_t’

/usr/include/linux/sysinfo.h:14:2: error: unknown type name ‘__kernel_ulong_t’

/usr/include/linux/sysinfo.h:15:2: error: unknown type name ‘__kernel_ulong_t’

/usr/include/linux/sysinfo.h:16:2: error: unknown type name ‘__u16’

/usr/include/linux/sysinfo.h:17:2: error: unknown type name ‘__u16’

/usr/include/linux/sysinfo.h:18:2: error: unknown type name ‘__kernel_ulong_t’

/usr/include/linux/sysinfo.h:19:2: error: unknown type name ‘__kernel_ulong_t’

/usr/include/linux/sysinfo.h:20:2: error: unknown type name ‘__u32’

/usr/include/linux/sysinfo.h:21:22: error: ‘__kernel_ulong_t’ undeclared here (not in a function)

/usr/include/linux/sysinfo.h:21:47: error: ‘__u32’ undeclared here (not in a function)

In file included from /usr/include/linux/if_link.h:5:0,

                 from /usr/include/linux/netdevice.h:31,

                 from /usr/include/linux/if_arp.h:26,

                 from src/iptraf-ng-compat.h:45,

                 from src/tui/labels.c:9:

/usr/include/linux/netlink.h:38:2: error: expected specifier-qualifier-list before ‘__u32’

/usr/include/linux/netlink.h:43:2: error: expected specifier-qualifier-list before ‘__u32’

/usr/include/linux/netlink.h:113:2: error: expected specifier-qualifier-list before ‘__u32’

/usr/include/linux/netlink.h:126:2: error: expected specifier-qualifier-list before ‘__u32’

/usr/include/linux/netlink.h:162:2: error: unknown type name ‘__u16’

/usr/include/linux/netlink.h:163:2: error: unknown type name ‘__u16’

In file included from /usr/include/linux/netdevice.h:31:0,

                 from /usr/include/linux/if_arp.h:26,

                 from src/iptraf-ng-compat.h:45,

                 from src/tui/labels.c:9:

/usr/include/linux/if_link.h:9:2: error: expected specifier-qualifier-list before ‘__u32’

/usr/include/linux/if_link.h:42:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:43:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:44:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:45:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:46:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:47:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:48:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:49:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:50:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:51:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:54:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:55:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:56:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:57:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:58:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:59:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:62:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:63:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:64:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:65:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:66:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:69:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:70:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:75:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:76:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:77:2: error: unknown type name ‘__u64’

/usr/include/linux/if_link.h:78:2: error: unknown type name ‘__u16’

/usr/include/linux/if_link.h:79:2: error: unknown type name ‘__u8’

/usr/include/linux/if_link.h:80:2: error: unknown type name ‘__u8’

/usr/include/linux/if_link.h:249:2: error: expected specifier-qualifier-list before ‘__u32’

/usr/include/linux/if_link.h:282:2: error: expected specifier-qualifier-list before ‘__u32’

/usr/include/linux/if_link.h:295:2: error: expected specifier-qualifier-list before ‘__u32’

/usr/include/linux/if_link.h:443:2: error: expected specifier-qualifier-list before ‘__u32’

/usr/include/linux/if_link.h:448:2: error: expected specifier-qualifier-list before ‘__u32’

/usr/include/linux/if_link.h:454:2: error: expected specifier-qualifier-list before ‘__u32’

/usr/include/linux/if_link.h:459:2: error: expected specifier-qualifier-list before ‘__u32’

/usr/include/linux/if_link.h:465:2: error: expected specifier-qualifier-list before ‘__u32’

/usr/include/linux/if_link.h:477:2: error: expected specifier-qualifier-list before ‘__u32’

/usr/include/linux/if_link.h:547:2: error: unknown type name ‘__u8’

/usr/include/linux/if_link.h:548:2: error: unknown type name ‘__u8’

/usr/include/linux/if_link.h:549:2: error: unknown type name ‘__u8’

/usr/include/linux/if_link.h:550:2: error: unknown type name ‘__u8’

In file included from src/iptraf-ng-compat.h:45:0,

                 from src/tui/labels.c:9:

/usr/include/linux/if_arp.h:114:19: error: field ‘arp_pa’ has incomplete type

/usr/include/linux/if_arp.h:115:19: error: field ‘arp_ha’ has incomplete type

/usr/include/linux/if_arp.h:117:25: error: field ‘arp_netmask’ has incomplete type

/usr/include/linux/if_arp.h:122:19: error: field ‘arp_pa’ has incomplete type

/usr/include/linux/if_arp.h:123:19: error: field ‘arp_ha’ has incomplete type

/usr/include/linux/if_arp.h:125:25: error: field ‘arp_netmask’ has incomplete type

In file included from src/tui/labels.c:9:0:

src/iptraf-ng-compat.h: In function ‘skip_whitespace’:

src/iptraf-ng-compat.h:122:2: warning: implicit declaration of function ‘__ctype_b_loc’ [-Wimplicit-function-declaration]

In file included from src/iptraf-ng-compat.h:13:0,

                 from src/tui/labels.c:9:

src/iptraf-ng-compat.h:122:9: error: invalid type argument of unary ‘*’ (have ‘int’)

src/iptraf-ng-compat.h:122:9: error: ‘_ISspace’ undeclared (first use in this function)

src/iptraf-ng-compat.h:122:9: note: each undeclared identifier is reported only once for each function it appears in

In file included from src/tui/labels.c:11:0:

src/tui/winops.h: At top level:

src/tui/winops.h:13:19: error: unknown type name ‘WINDOW’

src/tui/winops.h:15:18: error: unknown type name ‘WINDOW’

src/tui/winops.h:16:19: error: unknown type name ‘WINDOW’

src/tui/winops.h:17:13: error: unknown type name ‘WINDOW’

src/tui/labels.c:13:49: error: unknown type name ‘WINDOW’

src/tui/labels.c: In function ‘tx_menukeyhelp’:

src/tui/labels.c:24:2: warning: implicit declaration of function ‘wmove’ [-Wimplicit-function-declaration]

In file included from src/iptraf-ng-compat.h:15:0,

                 from src/tui/labels.c:9:

/usr/include/ncursesw/curses.h:1199:26: error: ‘stdscr’ undeclared (first use in this function)

src/tui/labels.c:24:2: note: in expansion of macro ‘move’

src/tui/labels.c:24:7: error: ‘LINES’ undeclared (first use in this function)

/usr/include/ncursesw/curses.h:1199:33: note: in definition of macro ‘move’

src/tui/labels.c:25:2: warning: implicit declaration of function ‘tx_printkeyhelp’ [-Wimplicit-function-declaration]

src/tui/labels.c:28:2: warning: implicit declaration of function ‘tx_wcoloreol’ [-Wimplicit-function-declaration]

In file included from src/iptraf-ng-compat.h:15:0,

                 from src/tui/labels.c:9:

src/tui/labels.c: In function ‘tx_listkeyhelp’:

/usr/include/ncursesw/curses.h:1199:26: error: ‘stdscr’ undeclared (first use in this function)

src/tui/labels.c:33:2: note: in expansion of macro ‘move’

src/tui/labels.c:33:7: error: ‘LINES’ undeclared (first use in this function)

/usr/include/ncursesw/curses.h:1199:33: note: in definition of macro ‘move’

Makefile:376: recipe for target ‘src/tui/labels.o’ failed

make: *** [src/tui/labels.o] Error 2

 * ERROR: net-analyzer/iptraf-ng-1.1.4-r1::gentoo failed (compile phase):

 *   emake failed

 *

 * If you need support, post the output of `emerge —info ‘=net-analyzer/iptraf-ng-1.1.4-r1::gentoo’`,

 * the complete build log and the output of `emerge -pqv ‘=net-analyzer/iptraf-ng-1.1.4-r1::gentoo’`.

 * The complete build log is located at ‘/var/tmp/portage/net-analyzer/iptraf-ng-1.1.4-r1/temp/build.log’.

 * The ebuild environment file is located at ‘/var/tmp/portage/net-analyzer/iptraf-ng-1.1.4-r1/temp/environment’.

 * Working directory: ‘/var/tmp/portage/net-analyzer/iptraf-ng-1.1.4-r1/work/iptraf-ng-1.1.4’

 * S: ‘/var/tmp/portage/net-analyzer/iptraf-ng-1.1.4-r1/work/iptraf-ng-1.1.4’

Sorry for this huge log. Does any of this make any sense?

Thanks very much, again!

3psus

Back to top

View user's profile Send private message

3psus
n00b
n00b

Joined: 29 Jul 2015
Posts: 9

PostPosted: Wed Jul 29, 2015 2:26 pm    Post subject: Reply with quote

ian.au wrote:
@Bufoon I saw that in the emerge info, but not in the op code quote for the gcc-config list. I had to ask.

@3psus could you

Code:
eselect python list

and paste here, and also /etc/portage/make.conf

Hi ian.au

eselect python list:

Code:

Gentoo / # eselect python list

Available Python interpreters:

  [1]   python2.7 *

  [2]   python3.3

and /etc/portage/make.conf:

Code:

# These settings were set by the catalyst build script that automatically

# built this stage.

# Please consult /usr/share/portage/config/make.conf.example for a more

# detailed example.

CFLAGS=»-O2 -pipe»

CXXFLAGS=»${CFLAGS}»

# WARNING: Changing your CHOST is not something that should be done lightly.

# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.

CHOST=»x86_64-pc-linux-gnu»

# These are the USE flags that were used in addition to what is provided by the

# profile used for building.

USE=»bindist mmx sse sse2″

PORTDIR=»/usr/portage»

DISTDIR=»${PORTDIR}/distfiles»

PKGDIR=»${PORTDIR}/packages»

GENTOO_MIRRORS=»http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.mirro$

SYNC=»rsync.ca.gentoo.org»

VIDEO_CARDS=»radeon»

INPUT_DEVICES=»evdev»

I had CFLAGS=»-march=native» and MAKEOPTS=»-j3″, but I removed them to see if they were causing the problem, and nope.

Back to top

View user's profile Send private message

Buffoon
Veteran
Veteran

Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Wed Jul 29, 2015 2:36 pm    Post subject: Reply with quote

Code:
x86_64-pc-linux-gnu-gcc: error trying to exec ‘/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/../../../../x86_64-pc-linux-gnu/bin/as’: execv: Exec format error



The error is the same. Actually I think as belongs to binutils, can you rebuild binutils? It may be corrupted.

Back to top

View user's profile Send private message

ian.au
Guru
Guru

Joined: 07 Apr 2011
Posts: 573
Location: Australia

PostPosted: Wed Jul 29, 2015 2:58 pm    Post subject: Reply with quote

The big logs go better in Pastebin with a link here :) emerge wgetpaste when you can.

From your original post:

Code:
*   Currently active compiler does not support -std=c++11



IMO this message should not exist if the currently active compiler is 4.8.x so your only installed gcc is broken.

Buffoon is dead right about rebuilding libtool and gcc, but it looks like you are going to have to chroot back in from sysrescuecd and do that. I can’t think of another way.

Also, whilst you are back in there you should update your kernel config and fix

Code:
*   CONFIG_FB_RADEON:    should not be set. But it is.

to prevent other issues.

Hang in there, when it goes pear-shaped on Gentoo it rains pears, but you’ll learn a great deal by the time you’ve fixed it.

Back to top

View user's profile Send private message

3psus
n00b
n00b

Joined: 29 Jul 2015
Posts: 9

PostPosted: Wed Jul 29, 2015 3:13 pm    Post subject: Reply with quote

Buffoon wrote:
Code:
x86_64-pc-linux-gnu-gcc: error trying to exec ‘/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/../../../../x86_64-pc-linux-gnu/bin/as’: execv: Exec format error



The error is the same. Actually I think as belongs to binutils, can you rebuild binutils? It may be corrupted.


ian.au wrote:
The big logs go better in Pastebin with a link here :) emerge wgetpaste when you can.

From your original post:

Code:
*   Currently active compiler does not support -std=c++11



IMO this message should not exist if the currently active compiler is 4.8.x so your only installed gcc is broken.

Buffoon is dead right about rebuilding libtool and gcc, but it looks like you are going to have to chroot back in from sysrescuecd and do that. I can’t think of another way.

Also, whilst you are back in there you should update your kernel config and fix

Code:
*   CONFIG_FB_RADEON:    should not be set. But it is.

to prevent other issues.

Hang in there, when it goes pear-shaped on Gentoo it rains pears, but you’ll learn a great deal by the time you’ve fixed it.

I will chroot in the system while booted on my liveusb I still have on the shelf. What’s bugging me is that this is a *clean* install, meaning that nothing was done after booting in it for the first time. I actually recompiled the kernel and reinstalled everything at least 4 times with genkernel and manual kernel config. I **think** I did not have those exact problems the first time I manually compiled the kernel but then, I am struggling to see what’s causing all this reck.

I need to say though, this is the first time I actually seek help like that on a forum and I very much appreciate what you are doing. I’m doing this right now and will keep you posted. I will also have a look at CONFIG_FB_RADEON.

epsus

Back to top

View user's profile Send private message

3psus
n00b
n00b

Joined: 29 Jul 2015
Posts: 9

PostPosted: Wed Jul 29, 2015 4:16 pm    Post subject: Reply with quote

ian.au wrote:
The big logs go better in Pastebin with a link here :) emerge wgetpaste when you can.

From your original post:

Code:
*   Currently active compiler does not support -std=c++11



IMO this message should not exist if the currently active compiler is 4.8.x so your only installed gcc is broken.

Buffoon is dead right about rebuilding libtool and gcc, but it looks like you are going to have to chroot back in from sysrescuecd and do that. I can’t think of another way.

Also, whilst you are back in there you should update your kernel config and fix

Code:
*   CONFIG_FB_RADEON:    should not be set. But it is.

to prevent other issues.

Hang in there, when it goes pear-shaped on Gentoo it rains pears, but you’ll learn a great deal by the time you’ve fixed it.

b-but… when chrooted from livecd, I get the same errors. It’s using the chrooted environment gcc…? Also, livecd doesn’t have gcc or emerge. Next step would be to install as binary package I guess.

Maybe I should get over it and start over. I am following the handbook for the install and can emerge and compile stuff up until I reboot in the new system. How could I find the problem? It must be something in the kernel or in config somewhere that breaks it, no?

Sorry for noob questions,

3psus

Edit: Maybe this should be moved to install section..

Last edited by 3psus on Wed Jul 29, 2015 4:18 pm; edited 1 time in total

Back to top

View user's profile Send private message

ian.au
Guru
Guru

Joined: 07 Apr 2011
Posts: 573
Location: Australia

PostPosted: Wed Jul 29, 2015 4:16 pm    Post subject: Reply with quote

Did you emerge @world? I’ve seen breakage like this happen when an eselected python is upgraded and python-updater is not subsequently run. Python may well have partially upgraded in the midst of your 4 recompiles.

These are worth reading on every sync

Code:
 * IMPORTANT: 13 news items need reading for repository ‘gentoo’.

 * Use eselect news read to view new items.



one of those will say:

Code:
2015-07-25  Python 3.4 enabled by default



You synced after that

Code:
Timestamp of repository gentoo: Tue, 28 Jul 2015 00:45:01 +0000



You have no directives in /etc/portage/make.conf so 3.3 could well have been updated to 3.4 and left you a message to run python-updater that you missed.

So did you re-emerge world on one of the multiple rebuilds you did? In any case how it’s gotten broken is less important than getting it fixed at this point.

It may be worth looking at which python is actually installed now and ensuring that the correct python is eselected if you are still having problems, gcc shouldn’t just break — it will be a config issue somewhere.

Back to top

View user's profile Send private message

Buffoon
Veteran
Veteran

Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Wed Jul 29, 2015 4:26 pm    Post subject: Reply with quote

One more thing to check, is your hard drive healthy?
Back to top

View user's profile Send private message

3psus
n00b
n00b

Joined: 29 Jul 2015
Posts: 9

PostPosted: Wed Jul 29, 2015 4:38 pm    Post subject: Reply with quote

ian.au wrote:
Did you emerge @world? I’ve seen breakage like this happen when an eselected python is upgraded and python-updater is not subsequently run. Python may well have partially upgraded in the midst of your 4 recompiles.

These are worth reading on every sync

Code:
 * IMPORTANT: 13 news items need reading for repository ‘gentoo’.

 * Use eselect news read to view new items.



one of those will say:

Code:
2015-07-25  Python 3.4 enabled by default



You synced after that

Code:
Timestamp of repository gentoo: Tue, 28 Jul 2015 00:45:01 +0000



You have no directives in /etc/portage/make.conf so 3.3 could well have been updated to 3.4 and left you a message to run python-updater that you missed.

So did you re-emerge world on one of the multiple rebuilds you did? In any case how it’s gotten broken is less important than getting it fixed at this point.

It may be worth looking at which python is actually installed now and ensuring that the correct python is eselected if you are still having problems, gcc shouldn’t just break — it will be a config issue somewhere.

I am on python 3.3.5 and did not update to 3.4. I just ran python-updater, doesn’t seem to fix. Also, every new recompile was on a clean HD, starting from scratch and not restoring any data. I just haven’t been able to get a working environment yet on gentoo. :(

Buffoon wrote:
One more thing to check, is your hard drive healthy?

The HD I am using has been tested a year ago but it’s a little old, so who knows… I ran

Code:
 dd if=/dev/zero of/dev/sda

before anything. I think it might be time to start over with new HDD.

Back to top

View user's profile Send private message

Buffoon
Veteran
Veteran

Joined: 17 Jun 2015
Posts: 1369
Location: EU or US

PostPosted: Wed Jul 29, 2015 4:52 pm    Post subject: Reply with quote

Run smartctl -t long on it.
Back to top

View user's profile Send private message

ian.au
Guru
Guru

Joined: 07 Apr 2011
Posts: 573
Location: Australia

PostPosted: Wed Jul 29, 2015 5:34 pm    Post subject: Reply with quote

Getting gcc back is a bit tricky, sorry I was unclear on how to do this. It’s after 3am here and I’m seeing double now.

You don’t chroot into your broken system, from memory you need to extract another stage3 and chroot into that to get the gcc. I just can’t remember the exact process, sorry and couldn’t turn up a good instruction on the forums to link you to.

I know one exists, I used it a few years ago when I inadvertently depcleaned a compiler before verifying the new one had built. :oops:

Anyway, you aren’t the first person to do this, and there are detailed instructions on the forum somewhere, but I can’t find them. There is also a tinderbox method mentioned but I’ve never done that, someone else could help with that.

If you suspect the hard drive, that’s another thing altogether.

I say, seeing you have multiple attempts that haven’t worked and an inoperative compiler, and not quite up to x maybe a careful reinstall and an accompanying thread in installing gentoo could be the fastest (if not best) way to go here.

Edit: Sorry the tinderbox is no more, I see. So really you will need to ignore any posts you find mentioning that method. If you still have the stage3-*.tar in your / you could try extracting that to a temporary directory and getting the a gcc from there.

Back to top

View user's profile Send private message

NeddySeagoon
Administrator
Administrator

Joined: 05 Jul 2003
Posts: 51961
Location: 56N 3W

PostPosted: Wed Jul 29, 2015 6:00 pm    Post subject: Reply with quote

3psus,

Code:
CXXFLAGS=»-O2 -pipe»

CFLAGS=»-O2 -pipe»

That’s unusual. no -march to tell gcc what CPU you would like it to produce code for. I wonder if it has a useful default, like -mtune=generic.

add

Code:
-march=native

to

Code:
CFLAGS=»-O2 -pipe»

unless you want the binaries to run anywhere, in which case use

Code:
-mtune=generic


_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-

those that do backups

those that have never had a hard drive fail.

Back to top

View user's profile Send private message

NeddySeagoon
Administrator
Administrator

Joined: 05 Jul 2003
Posts: 51961
Location: 56N 3W

PostPosted: Wed Jul 29, 2015 6:09 pm    Post subject: Reply with quote

ian.au,

Bookmark this post.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-

those that do backups

those that have never had a hard drive fail.

Back to top

View user's profile Send private message

ian.au
Guru
Guru

Joined: 07 Apr 2011
Posts: 573
Location: Australia

PostPosted: Wed Jul 29, 2015 10:46 pm    Post subject: Reply with quote

@neddy thanks and bookmarked. That’s even more straightforward than the method I (vaguely) recall using.

Re: the absent march= the OP mentioned he removed it as part of the troubleshooting process.
Back to top

View user's profile Send private message

Display posts from previous:   

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

4 ответа

Это выглядит как UTF-16 BOM для малоподвижного UTF-16. Вы должны убедиться, что файл сохранен как UTF-8 или преобразовать его вручную через iconv -f UTF-16LE -t UTF8 myfile.

DarkDust
24 март 2011, в 12:55

Поделиться

Убедитесь, что файл закодирован в UTF-8. Откройте его с помощью текстового редактора, который позволяет вам кодировать файл (например, gedit или notepad ++) и преобразовывать его. Раньше у меня были подобные проблемы, но файлы UTF-8 работают нормально (другие кодировки, такие как UTF-16, не будут работать).

Изменить: не конвертировать ваш ресурс script (если таковой имеется) в UTF-8. Компилятор ресурсов не сможет его прочитать (по крайней мере, при использовании MSVC 2008).

Mario
24 март 2011, в 11:22

Поделиться

Я думаю, что видел «бродячие…» в файле с юникодом.

Вы можете настроить настройку вашего редактора или консоли (или обоих), чтобы исправить ее.

eugene
24 март 2011, в 12:27

Поделиться

Возможно, ваши файлы используют кодировку Windows с такими символами, как ^ M,rn…
Вы пытались запустить dos2unix в своих исходных файлах перед компиляцией?

Arthur
24 март 2011, в 11:35

Поделиться

Ещё вопросы

  • 1Как заставить Antlr поддерживать таблицу символов для большего количества типов данных?
  • 1Android — кнопка изображения (XML) не работает?
  • 1Мульти ребенок в MDI
  • 0Таймер должен появиться на тестовой странице онлайн, когда мы прокручиваем вниз
  • 1Python Matplotlib Heatmap Colorbar из прозрачного
  • 1Python: Numpy объединяет массивы в списки 2×1
  • 0Использование списка строковых элементов в качестве источника для компонента Select2
  • 0Стиль 1 <td> в таблице с 2 <td> с
  • 1Поднимите все вхождения типа во вложенном словаре до ключа верхнего уровня
  • 1Express + MongoDB — запрос объекта
  • 1Странное исключение из PreferencesActivity
  • 0не может структурировать данные JSON, один выход вместо нескольких
  • 0C ++, изменить значения объекта структуры, принадлежащего классу
  • 1Включить отключенный Spinner в Android
  • 1Проблема с циклом for при повторении последних 5 объектов в обратном порядке
  • 0Пул MySQL в nodejs
  • 1Как изменить свойство переднего плана AvalonDock AnchorablePaneTitle ContentPresenter при автоматическом скрытии?
  • 0Сделать поиск в текстовом файле без учета регистра
  • 0Неразрешенное включение
  • 0Проблемы с получением информации о классификации персонажей с карты
  • 1Почему существует исключение в потоке «main» java.util.NoSuchElementException?
  • 1Отслеживание таблиц Google в Google Analytics
  • 0Экспорт Swing JTable в Excel с тегами HTML
  • 1Прослушивание, когда жест происходит на конкретном объекте на экране
  • 0Разбор на HTML некоторых конкретных данных
  • 0Извлечь несколько атрибутов из тега с помощью оболочки
  • 1Модель SKLearn в приложении React-Native
  • 0Получить данные в одном столбце
  • 0Потенциальные причины ионной функции не работают в Ionic View, но работают в сети
  • 0tinymce 4 загружается, но отображается tinymce.get не определено
  • 1Есть ли максимум для чтения в строке File.ReadLine ()?
  • 1Как устранить ложноположительную ошибку «Должны существовать точки входа P / Invoke»?
  • 0ионное боковое меню не обновляется
  • 0невозможно выровнять элемент в HTML-форме
  • 1Получение всех одинаковых значений в keras model.predict
  • 1Создание плавающего, редактируемого и прокручиваемого списка в Android
  • 0Редактировать файл на сервере с PHP и C #
  • 0выровнять HTML-форму с проблемой CSS
  • 1Загрузчик классов контекста Java Thread — как это работает?
  • 0Как можно расположить имена в алфавитном порядке сверху вниз, предшествуя первому символу
  • 0Как экспортировать данные из SQlite в CSV или Excel или просто что-нибудь?
  • 1Уведомление об ошибке на странице блога от плагина Content Aware Sidbars
  • 1Лучшая стратегия для реализации этого поведения в Android-приложении?
  • 0Несколько параметров HTTP GET в массив
  • 1Как передать переменную и JSON в веб-сервис.
  • 1Ошибка значения с tf.round () tenorflow, так как это операция без градиента
  • 1Пул соединений в Tomcat 7
  • 0Отображение URL на основе содержит в угловых и ионных
  • 1Заказ по ключу — Объективи
  • 0Невозможно сфокусировать курсор, используя Javascript внутри Angular [duplicate]

Понравилась статья? Поделить с друзьями:
  • Error statement has no effect
  • Error stray 363 in program
  • Error statement cannot resolve address of overloaded function
  • Error stray 361 in program
  • Error state фильтр калмана