* pthread.h: No such file or directory
@ 2006-09-06 10:57 Iwan Koenig
2006-09-06 12:05 ` Kai Ruottu
0 siblings, 1 reply; 4+ messages in thread
From: Iwan Koenig @ 2006-09-06 10:57 UTC (permalink / raw)
To: gcc-help
I'm trying to compile the gcc-4.1.1 for the target
powerpc-linux.
Thus it run i so:
./configure --target=powerpc-linux --prefix=/usr
--without-headers --with-newlib
--enable-languages=c
--disable-threads
And it gives me following error:
In file included from ./gthr-default.h:1,
from ../../gcc-4.1.1/gcc/gthr.h:114,
from
../../gcc-4.1.1/gcc/unwind-dw2.c:42:
../../gcc-4.1.1/gcc/gthr-posix.h:43:21: error:
pthread.h: No such file or directory
../../gcc-4.1.1/gcc/gthr-posix.h:44:20: error:
unistd.h: No such file or directory
In file included from ./gthr-default.h:1,
from ../../gcc-4.1.1/gcc/gthr.h:114,
from
../../gcc-4.1.1/gcc/unwind-dw2.c:42:
../../gcc-4.1.1/gcc/gthr-posix.h:46: error: expected
Â=Â, Â,Â, Â;Â, Âasm or Â__attribute__ before
Â__gthread_key_tÂ
../../gcc-4.1.1/gcc/gthr-posix.h:47: error: expected
Â=Â, Â,Â, Â;Â, Âasm or Â__attribute__ before
Â__gthread_once_tÂ
../../gcc-4.1.1/gcc/gthr-posix.h:48: error: expected
Â=Â, Â,Â, Â;Â, Âasm or Â__attribute__ before
Â__gthread_mutex_tÂ
../../gcc-4.1.1/gcc/gthr-posix.h:49: error: expected
Â=Â, Â,Â, Â;Â, Âasm or Â__attribute__ before
Â__gthread_recursive_mutex_tÂ
../../gcc-4.1.1/gcc/gthr-posix.h:88: error:
Âpthread_once undeclared here (not in a function)
../../gcc-4.1.1/gcc/gthr-posix.h:88: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_onceÂ
../../gcc-4.1.1/gcc/gthr-posix.h:89: error:
Âpthread_getspecific undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:89: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_getspecificÂ
../../gcc-4.1.1/gcc/gthr-posix.h:90: error:
Âpthread_setspecific undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:90: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_setspecificÂ
../../gcc-4.1.1/gcc/gthr-posix.h:91: error:
Âpthread_create undeclared here (not in a function)
../../gcc-4.1.1/gcc/gthr-posix.h:91: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_createÂ
../../gcc-4.1.1/gcc/gthr-posix.h:92: error:
Âpthread_cancel undeclared here (not in a function)
../../gcc-4.1.1/gcc/gthr-posix.h:92: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_cancelÂ
../../gcc-4.1.1/gcc/gthr-posix.h:93: error:
Âpthread_mutex_lock undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:93: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_mutex_lockÂ
../../gcc-4.1.1/gcc/gthr-posix.h:94: error:
Âpthread_mutex_trylock undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:94: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_mutex_trylockÂ
../../gcc-4.1.1/gcc/gthr-posix.h:95: error:
Âpthread_mutex_unlock undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:95: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_mutex_unlockÂ
../../gcc-4.1.1/gcc/gthr-posix.h:96: error:
Âpthread_mutex_init undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:96: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_mutex_initÂ
../../gcc-4.1.1/gcc/gthr-posix.h:99: error:
Âpthread_key_create undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:99: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_key_createÂ
../../gcc-4.1.1/gcc/gthr-posix.h:100: error:
Âpthread_key_delete undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:100: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_key_deleteÂ
../../gcc-4.1.1/gcc/gthr-posix.h:101: error:
Âpthread_mutexattr_init undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:101: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_mutexattr_initÂ
../../gcc-4.1.1/gcc/gthr-posix.h:102: error:
Âpthread_mutexattr_settype undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:102: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_mutexattr_settypeÂ
../../gcc-4.1.1/gcc/gthr-posix.h:103: error:
Âpthread_mutexattr_destroy undeclared here (not in a
function)
../../gcc-4.1.1/gcc/gthr-posix.h:103: warning: type
defaults to Âint in declaration of
Â__gthrw_pthread_mutexattr_destroyÂ
../../gcc-4.1.1/gcc/gthr-posix.h:513: error: expected
Â)Â before Â*Â token
../../gcc-4.1.1/gcc/gthr-posix.h:522: error: expected
Â)Â before Â*Â token
../../gcc-4.1.1/gcc/gthr-posix.h:528: error: expected
Â)Â before ÂkeyÂ
../../gcc-4.1.1/gcc/gthr-posix.h:534: error: expected
Â)Â before ÂkeyÂ
../../gcc-4.1.1/gcc/gthr-posix.h:540: error: expected
Â)Â before ÂkeyÂ
../../gcc-4.1.1/gcc/gthr-posix.h:546: error: expected
Â)Â before Â*Â token
../../gcc-4.1.1/gcc/gthr-posix.h:555: error: expected
Â)Â before Â*Â token
../../gcc-4.1.1/gcc/gthr-posix.h:564: error: expected
Â)Â before Â*Â token
../../gcc-4.1.1/gcc/gthr-posix.h:574: error: expected
Â)Â before Â*Â token
../../gcc-4.1.1/gcc/gthr-posix.h:595: error: expected
Â)Â before Â*Â token
../../gcc-4.1.1/gcc/gthr-posix.h:601: error: expected
Â)Â before Â*Â token
../../gcc-4.1.1/gcc/gthr-posix.h:607: error: expected
Â)Â before Â*Â token
../../gcc-4.1.1/gcc/unwind-dw2.c: In function
Âuw_init_context_1Â:
../../gcc-4.1.1/gcc/unwind-dw2.c:1259: error: expected
Â=Â, Â,Â, Â;Â, Âasm or Â__attribute__ before
Âonce_regsizesÂ
../../gcc-4.1.1/gcc/unwind-dw2.c:1259: error:
Âonce_regsizes undeclared (first use in this
function)
../../gcc-4.1.1/gcc/unwind-dw2.c:1259: error: (Each
undeclared identifier is reported only once
../../gcc-4.1.1/gcc/unwind-dw2.c:1259: error: for each
function it appears in.)
../../gcc-4.1.1/gcc/unwind-dw2.c:1259: error:
ÂPTHREAD_ONCE_INITÂ undeclared (first use in this
function)
../../gcc-4.1.1/gcc/unwind-dw2.c:1260: warning:
implicit declaration of function Â__gthread_onceÂ
make[3]: *** [libgcc/./unwind-dw2.o] Error 1
make[3]: Leaving directory
`/root/cross/builds/powerpc-linux-gcc/gcc'
make[2]: *** [stmp-multilib] Error 2
make[2]: Leaving directory
`/root/cross/builds/powerpc-linux-gcc/gcc'
make[1]: *** [install-gcc] Error 2
make[1]: Leaving directory
`/root/cross/builds/powerpc-linux-gcc'
make: *** [install] Error 2
Can anyone help me? thanks!
___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: pthread.h: No such file or directory
2006-09-06 10:57 pthread.h: No such file or directory Iwan Koenig
@ 2006-09-06 12:05 ` Kai Ruottu
2006-09-06 12:51 ` Rupert Wood
0 siblings, 1 reply; 4+ messages in thread
From: Kai Ruottu @ 2006-09-06 12:05 UTC (permalink / raw)
To: Iwan Koenig; +Cc: gcc-help
Iwan Koenig wrote :
> I'm trying to compile the gcc-4.1.1 for the target
> powerpc-linux.
> Thus it run i so:
> ../configure --target=powerpc-linux --prefix=/usr
>
> --without-headers
The Linux/PPC target has headers in its C library, "glibc",
so why this?
> --with-newlib
Linux doesn't use newlib, it uses glibc...
>
> --enable-languages=c
> --disable-threads
You can build all the languages you need immediately, you
needing "only C" sounds weird...
> And it gives me following error:
> In file included from ./gthr-default.h:1,
> from ../../gcc-4.1.1/gcc/gthr.h:114,
> from
> .../../gcc-4.1.1/gcc/unwind-dw2.c:42:
> .../../gcc-4.1.1/gcc/gthr-posix.h:43:21: error:
> pthread.h: No such file or directory
> .../../gcc-4.1.1/gcc/gthr-posix.h:44:20: error:
> unistd.h: No such file or directory
>
Before starting to build GCC the target binutils (built by yourself)
and the target C library (copied from the target system) should be
already there!
Although you "final" target would be your "totally own Linux/PPC",
not Fedora 5/PPC, Ubuntu/PPC etc., nothing should disable you to
use the glibc taken from Fedora, Ubuntu, SuSE etc. Linux/PPC distros
and use it temporalily when "bootstraping" the GCC. When it is done,
you can build your "totally own" glibc from sources with it !
With that "nothing" (but pure bullshit!) I mean the current weird
"code red" ("bullying") practices... All the stupid newbies are put to
do stupid things only because they really will do these things when
not knowing that they aren't sane at all... Something like that the
son of the managing director of the company will be sent to walk
around the factory to search for "a left-hand file-glove" and every
one asked sends him forwards to someone else until he finally
understands that he is doing something which others are laughing
at...
In a nutshell: For your GCC build to succeed you will require the
prebuilt target binutils and (a suitable) prebuilt target C library
being installed before starting the GCC configure and build... Your
only problems are then how to get these and where to put them.
But just as the case is with the native GCC build, where to put the
native binutils and the native C library, used during the GCC build,
are not in any way related to the GCC build itself, they are put
somewhere already and GCC finds them, the case with a cross-GCC
is that one should already know where a cross-GCC requires its
target binutils and target C library, and then put them there. If not
knowing, one simply asks and then someone who knows tells that!
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: pthread.h: No such file or directory
2006-09-06 12:05 ` Kai Ruottu
@ 2006-09-06 12:51 ` Rupert Wood
2006-09-21 6:29 ` iwankoenig
0 siblings, 1 reply; 4+ messages in thread
From: Rupert Wood @ 2006-09-06 12:51 UTC (permalink / raw)
To: 'Iwan Koenig'; +Cc: gcc-help, 'Kai Ruottu'
Kai Ruotto wrote:
> Iwan Koenig wrote :
>
> > I'm trying to compile the gcc-4.1.1 for the target powerpc-linux.
> > Thus it run i so:
> > ../configure --target=powerpc-linux --prefix=/usr
> >
> > --without-headers
> The Linux/PPC target has headers in its C library, "glibc", so why this?
>
> > --with-newlib
> Linux doesn't use newlib, it uses glibc...
and if you don't already have glibc built for your target you can use the
crosstool script
http://kegel.com/crosstool/
which will build gcc, binutils and glibc for you.
Rup.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: pthread.h: No such file or directory
2006-09-06 12:51 ` Rupert Wood
@ 2006-09-21 6:29 ` iwankoenig
0 siblings, 0 replies; 4+ messages in thread
From: iwankoenig @ 2006-09-21 6:29 UTC (permalink / raw)
To: gcc-help
Thanks!
I have now the compiler for powerpc! crosstool - it works!!
Rupert Wood wrote:
>
> Kai Ruotto wrote:
>
>> Iwan Koenig wrote :
>>
>> > I'm trying to compile the gcc-4.1.1 for the target powerpc-linux.
>> > Thus it run i so:
>> > ../configure --target=powerpc-linux --prefix=/usr
>> >
>> > --without-headers
>> The Linux/PPC target has headers in its C library, "glibc", so why this?
>>
>> > --with-newlib
>> Linux doesn't use newlib, it uses glibc...
>
> and if you don't already have glibc built for your target you can use the
> crosstool script
>
> http://kegel.com/crosstool/
>
> which will build gcc, binutils and glibc for you.
>
> Rup.
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
>
--
View this message in context: http://www.nabble.com/pthread.h%3A-No-such-file-or-directory-tf2226120.html#a6422292
Sent from the gcc - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-09-21 6:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-06 10:57 pthread.h: No such file or directory Iwan Koenig
2006-09-06 12:05 ` Kai Ruottu
2006-09-06 12:51 ` Rupert Wood
2006-09-21 6:29 ` iwankoenig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).