[uClibc] Can't build QtE 3.3.2 with uClibc 0.9.26 g++

Chris Wilson chris at netservers.co.uk
Mon May 17 10:39:43 UTC 2004


Hi Kenneth,

> Line 382 of stl_alloc.h is:
> 
>       static _Atomic_word _S_force_new;
> 
> ... but _Atomic_word is clearly defined in <bits/atomicity.h>, which is
> included at the top of the file. There don't appear to be any conditional
> #ifs to hide this include.

Some tricks that may help you to find the problem:

Add a "#error foo" pragma just before the declaration of _Atomic_word in 
<bits/atomicity.h>, and recompile. If compilation aborts with "#error 
foo", then the header file is indeed being read as you expected. If not, 
then something else is preventing the definition from being read.

You could also try adding -E to the gcc command line, and view the output 
file (xxx.o) in a text editor. It will contain, not binary code, but the 
preprocessed source which the C compiler then compiles. You may find that 
a macro is interfering with the line in question, or something else...

Cheers, Chris.
-- 
_  __ __     _
 / __/ / ,__(_)_  | Chris Wilson -- UNIX Firewall Lead Developer |
/ (_  ,\/ _/ /_ \ | NetServers.co.uk http://www.netservers.co.uk |
\__/_/_/_//_/___/ | 21 Signet Court, Cambridge, UK. 01223 576516 |



More information about the uClibc mailing list