Gcc Error Pthread.h No Such File Or Directory
Contents |
Re: pthread.h: No such file or directory From: Kai Ruottu
./gthr-default.h:35:21: Fatal Error: Pthread.h: No Such File Or Directory
Koenig wrote : I'm trying to compile the gcc-4.1.1 for the target powerpc-linux. Thus it run i so: ../configure
G++ Error Pthread No Such File Or Directory
--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
Pthread_create No Such File Or Directory
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 pthread.h download 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
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the undefined reference to pthread_create workings and policies of this site About Us Learn more about Stack cross compiler Overflow the company Business Learn more about hiring developers or posting ads with us Unix & Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it https://gcc.gnu.org/ml/gcc-help/2006-09/msg00051.html only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top gcc: -pthread: No such file or directory up vote 2 down vote favorite Trying to compile following code in terminal i got gcc: -pthread: No such file or directory, what does this http://unix.stackexchange.com/questions/24848/gcc-pthread-no-such-file-or-directory error means and how to eliminate it? file name: window.c code: #include
Sign in Pricing Blog Support Search GitHub This repository Watch 22 Star 135 Fork https://github.com/danomatika/ofxPd/issues/33 32 danomatika/ofxPd Code Issues 2 Pull requests 0 Projects 0 Pulse Graphs New issue Error in compiling "pthread.h - no such file or directory" https://lists.cairographics.org/archives/cairo/2015-July/026352.html (CB::12.11 and OF 0.8 on Win7) #33 Closed amicoleo opened this Issue Apr 2, 2014 · 6 comments Projects None yet Labels None yet no such Milestone No milestone Assignees No one assigned 2 participants amicoleo commented Apr 2, 2014 Hi, I have CB::12.11 and OF 0.8 on a freshly installed Win7 computer. ofxPd examples didn't compile because of pthread.h missing. Had a quick research (here too https://github.com/danomatika/ofxPd/issues/new) and had it to compile with no such file this workaround. Not the cleanest solution, but hei! It worked. Copy pthread.h and sched.h into MinGW/include (I've got the files from here ftp://sourceware.org/pub/pthreads-win32/prebuilt-dll-1-10-0-release/include/) Get libpthreadGC1.a from ftp://sourceware.org/pub/pthreads-win32/prebuilt-dll-1-10-0-release/lib/ rename it to libpthread.a and copy into MinGW/lib Get pthreadGC1.dll again from ftp://sourceware.org/pub/pthreads-win32/prebuilt-dll-1-10-0-release/lib/ and copy it into MinGW/bin Owner danomatika commented Apr 3, 2014 Actually, this is a problem with the CB+MinGW package which doesn't include pthread and a few other libs. See the OF Code::Blocks IDE Setup guide which is linked on the OF downloads page. Scroll down to e) Add files to MinGW. You currently need to manually add the libs from the "Additions for Code::Blocks to work with openFrameworks" link. danomatika added a commit that closed this issue Apr 3, 2014 danomatika wrote: > > That is how I am doing to cross-compile cairo-1.14.2: > > $ PKG_CONFIG_PATH="/usr/i686-pc-mingw32/lib/pkgconfig" > > Who told you to do such? Clearly it does not fit to > the cross building, as you see that GLib header files > for the building system are included, like, > > > In file included from /usr/include/glib-2.0/glib.h:107:0, > > from /usr/include/glib-2.0/gobject/gbin