Skip to contentSkip to conversation

boost 1.54 compile fail

DISCUSSION Yi Qingliang 2 participants 4 messages Jul 10, 2013 – Jul 11, 2013

lore
Share & tools
lore
#0 lore raw

Hello!

after update poky to latest git version, I got failure when compiling boost:

the main error is: (indeed, and too many warning!)

| ./boost/atomic/atomic.hpp:202:16: error: 'uintptr_t' was not declared in this scope

|  typedef atomic<uintptr_t> atomic_uintptr_t;
|                 ^
| ./boost/atomic/atomic.hpp:202:25: error: template argument 1 is invalid
|  typedef atomic<uintptr_t> atomic_uintptr_t;
|                          ^
| ./boost/atomic/atomic.hpp:202:43: error: invalid type in declaration before 
';' token
|  typedef atomic<uintptr_t> atomic_uintptr_t;
|                                            ^
| In file included from ./boost/system/system_error.hpp:14:0,
|                  from ./boost/thread/exceptions.hpp:22,
|                  from ./boost/thread/pthread/thread_data.hpp:10,
|                  from ./boost/thread/thread_only.hpp:17,
|                  from libs/thread/src/pthread/thread.cpp:11:
Signature · 3 lines
Nanjing Jilong
Yi Qingliang
[email protected]
#1 lore raw

maybe it is the gcc's fault (recently it is updated to 4.8.x in poky)

I can found uintptr_t in cstdint, but it is wrapped by a c99 related macro.

Quoted 35 lines · Yi Qingliang

Hello!

after update poky to latest git version, I got failure when compiling boost:

the main error is: (indeed, and too many warning!)

| ./boost/atomic/atomic.hpp:202:16: error: 'uintptr_t' was not declared in

this scope

|  typedef atomic<uintptr_t> atomic_uintptr_t;
|  
|                 ^
| 
| ./boost/atomic/atomic.hpp:202:25: error: template argument 1 is invalid
| 
|  typedef atomic<uintptr_t> atomic_uintptr_t;
|  
|                          ^
| 
| ./boost/atomic/atomic.hpp:202:43: error: invalid type in declaration
| before

';' token

|  typedef atomic<uintptr_t> atomic_uintptr_t;
|  
|                                            ^
| 
| In file included from ./boost/system/system_error.hpp:14:0,
| 
|                  from ./boost/thread/exceptions.hpp:22,
|                  from ./boost/thread/pthread/thread_data.hpp:10,
|                  from ./boost/thread/thread_only.hpp:17,
|                  from libs/thread/src/pthread/thread.cpp:11:
Signature · 3 lines
Nanjing Jilong
Yi Qingliang
[email protected]
#2 lore raw
Quoted 3 lines · Yi Qingliang

maybe it is the gcc's fault (recently it is updated to 4.8.x in poky)

I can found uintptr_t in cstdint, but it is wrapped by a c99 related macro.

See
http://lists.openembedded.org/pipermail/openembedded-devel/2013-July/091331.html
https://lists.yoctoproject.org/pipermail/yocto/2013-July/017159.html
threads

Quoted 46 lines · Yi Qingliang
Quoted 35 lines

Hello!

after update poky to latest git version, I got failure when compiling boost:

the main error is: (indeed, and too many warning!)

| ./boost/atomic/atomic.hpp:202:16: error: 'uintptr_t' was not declared in

this scope

|  typedef atomic<uintptr_t> atomic_uintptr_t;
|  
|                 ^
| 
| ./boost/atomic/atomic.hpp:202:25: error: template argument 1 is invalid
| 
|  typedef atomic<uintptr_t> atomic_uintptr_t;
|  
|                          ^
| 
| ./boost/atomic/atomic.hpp:202:43: error: invalid type in declaration
| before

';' token

|  typedef atomic<uintptr_t> atomic_uintptr_t;
|  
|                                            ^
| 
| In file included from ./boost/system/system_error.hpp:14:0,
| 
|                  from ./boost/thread/exceptions.hpp:22,
|                  from ./boost/thread/pthread/thread_data.hpp:10,
|                  from ./boost/thread/thread_only.hpp:17,
|                  from libs/thread/src/pthread/thread.cpp:11:
Signature · 7 lines
Nanjing Jilong
Yi Qingliang
[email protected]
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#3 lore raw
Quoted 10 lines · Martin Jansa
Quoted 4 lines · Yi Qingliang

maybe it is the gcc's fault (recently it is updated to 4.8.x in poky)

I can found uintptr_t in cstdint, but it is wrapped by a c99 related macro.

See
http://lists.openembedded.org/pipermail/openembedded-devel/2013-July/091331.
html https://lists.yoctoproject.org/pipermail/yocto/2013-July/017159.html
threads

thanks! I have checked that, but the answer is not obvious, what is the reason? gcc ? eglibc ? or boost ?

Quoted 40 lines
Quoted 40 lines · Yi Qingliang
Quoted 38 lines

Hello!

after update poky to latest git version, I got failure when compiling boost:

the main error is: (indeed, and too many warning!)

| ./boost/atomic/atomic.hpp:202:16: error: 'uintptr_t' was not declared | in

this scope

|  typedef atomic<uintptr_t> atomic_uintptr_t;
|  
|                 ^
| 
| ./boost/atomic/atomic.hpp:202:25: error: template argument 1 is
| invalid
| 
|  typedef atomic<uintptr_t> atomic_uintptr_t;
|  
|                          ^
| 
| ./boost/atomic/atomic.hpp:202:43: error: invalid type in declaration
| before

';' token

|  typedef atomic<uintptr_t> atomic_uintptr_t;
|  
|                                            ^
| 
| In file included from ./boost/system/system_error.hpp:14:0,
| 
|                  from ./boost/thread/exceptions.hpp:22,
|                  from ./boost/thread/pthread/thread_data.hpp:10,
|                  from ./boost/thread/thread_only.hpp:17,
|                  from libs/thread/src/pthread/thread.cpp:11:
Signature · 3 lines
Nanjing Jilong
Yi Qingliang
[email protected]