From: Jaswinder S. <jas...@ya...> - 2000-11-06 08:58:26
|
Dear Steve Thomas, Thanks for your help. Best Regards, Jaswinder. --- stephen thomas <ste...@st...> wrote: > This problem is caused by an error in the 'specs' > used by the C++ compiler, > which results in the pthread library being omitted > from the link. To get round > this, add: > > -lpthread > > to the command line. We will fix this in the next > release. > > > Steve Thomas > STMicroelectronics > > > ______________________________ Reply Separator > _________________________________ > Subject: Re: [linuxsh-dev] RPMs > Author: jaswinderrajput (jas...@ya...) > at internet > Date: 11/2/00 5:32 AM > > > Dear Stuart , Stephen and linuxsh-dev group, > > I compiled simple C++ Hello world program as :- > > sh-linux-gnu-g++ -ml -m3 hello.cpp > > but i get :- > > /opt/hardhat/devkit/sh/sh3/lib/gcc-lib/sh-linux-gnu/2.95.2/libstdc++.a(iostream. > o): In function `istream::get(char &)': > /home/heywood/users/thomass/testbuild-0.2/BUILD/gcc-2.95.2/libio/iostream.cc:91: > undefined reference to > `_pthread_cleanup_push_defer' > /home/heywood/users/thomass/testbuild-0.2/BUILD/gcc-2.95.2/libio/iostream.cc:91: > undefined reference to > `_pthread_cleanup_pop_restore' > /opt/hardhat/devkit/sh/sh3/lib/gcc-lib/sh-linux-gnu/2.95.2/libstdc++.a(iostream. > o): In function `istream::ignore(int, int)': > /home/heywood/users/thomass/testbuild-0.2/BUILD/gcc-2.95.2/libio/iostream.cc:136 > : undefined reference to > `_pthread_cleanup_push_defer' > /home/heywood/users/thomass/testbuild-0.2/BUILD/gcc-2.95.2/libio/iostream.cc:136 > : undefined reference to > `_pthread_cleanup_pop_restore' > /opt/hardhat/devkit/sh/sh3/lib/gcc-lib/sh-linux-gnu/2.95.2/libstdc++.a(iostream. > o): In function `istream::read(char *, int)': > /home/heywood/users/thomass/testbuild-0.2/BUILD/gcc-2.95.2/libio/iostream.cc:152 > : undefined reference to > `_pthread_cleanup_push_defer' > /home/heywood/users/thomass/testbuild-0.2/BUILD/gcc-2.95.2/libio/iostream.cc:152 > : undefined reference to > `_pthread_cleanup_pop_restore' > /opt/hardhat/devkit/sh/sh3/lib/gcc-lib/sh-linux-gnu/2.95.2/libstdc++.a(iostream. > o): In function `istream::operator>>(char &)': > /home/heywood/users/thomass/testbuild-0.2/BUILD/gcc-2.95.2/libio/iostream.cc:211 > : undefined reference to > `_pthread_cleanup_push_defer' > /home/heywood/users/thomass/testbuild-0.2/BUILD/gcc-2.95.2/libio/iostream.cc:583 > : undefined reference to > `_pthread_cleanup_pop_restore' > /opt/hardhat/devkit/sh/sh3/lib/gcc-lib/sh-linux-gnu/2.95.2/libstdc++.a(iostream. > o): In function `ostream::operator<<(unsigned int)': > > /home/heywood/users/thomass/testbuild-0.2/BUILD/gcc-2.95.2/libio/iostream.cc:594 > : undefined reference to > `_pthread_cleanup_push_defer' > /home/heywood/users/thomass/testbuild-0.2/BUILD/gcc-2.95.2/libio/iostream.cc:594 > : undefined reference to > `_pthread_cleanup_pop_restore' > /opt/hardhat/devkit/sh/sh3/lib/gcc-lib/sh-linux-gnu/2.95.2/libstdc++.a(iostream. > o): In function `ostream::operator<<(long)': > /home/heywood/users/thomass/testbuild-0.2/BUILD/gcc-2.95.2/libio/iostream.cc:610 > : undefined reference to > `_pthread_cleanup_push_defer' > /home/heywood/users/thomass/testbuild-0.2/BUILD/gcc-2.95.2/libio/iostream.cc:610 > : undefined reference to > `_pthread_cleanup_pop_restore' > /opt/hardhat/devkit/sh/sh3/lib/gcc-lib/sh-linux-gnu/2.95.2/libstdc++.a(iostream. > o): In function `ostream::operator<<(unsigned > long)': > /home/heywood/users/thomass/testbuild-0.2/BUILD/gcc-2.95.2/libio/iostream.cc:621 > : undefined reference to > `_pthread_cleanup_push_defer' > /home/heywood/users/thomass/testbuild-0.2/BUILD/gcc-2.95.2/libio/iostream.cc:621 > : undefined reference to > `_pthread_cleanup_pop_restore > /home/heywood/users/thomass/testbuild-0.2/BUILD/gcc-2.95.2/gcc/libgcc2.c(.text+0 > x130): undefined reference to `pthread_setspecific' > /opt/hardhat/devkit/sh/sh3/lib/gcc-lib/sh-linux-gnu/2.95.2/libgcc.a(_eh.o): > In f > unction `eh_threads_initialize': > /home/heywood/users/thomass/testbuild-0.2/BUILD/gcc-2.95.2/gcc/libgcc2.c(.text+0 > x1e4): undefined reference to `pthread_key_create' > /opt/hardhat/devkit/sh/sh3/lib/gcc-lib/sh-linux-gnu/2.95.2/libgcc.a(_eh.o): > In f > unction `eh_context_initialize': > /home/heywood/users/thomass/testbuild-0.2/BUILD/gcc-2.95.2/gcc/libgcc2.c(.text+0 > x260): undefined reference to `pthread_once' > /opt/hardhat/devkit/sh/sh3/lib/gcc-lib/sh-linux-gnu/2.95.2/libgcc.a(_eh.o): > In f > unction `eh_context_specific': > /home/heywood/users/thomass/testbuild-0.2/BUILD/gcc-2.95.2/gcc/libgcc2.c(.text+0 > x318): undefined reference to `pthread_getspecific' > /home/heywood/users/thomass/testbuild-0.2/BUILD/gcc-2.95.2/gcc/libgcc2.c(.text+0 > x324): undefined reference to `pthread_setspecific' > /opt/hardhat/devkit/sh/sh3/lib/gcc-lib/sh-linux-gnu/2.95.2/libgcc.a(_eh.o): > In f > unction `__default_terminate': > /home/heywood/users/thomass/testbuild-0.2/BUILD/gcc-2.95.2/gcc/libgcc2.c(.data+0 > x0): undefined reference to `pthread_create' > collect2: ld returned 1 exit status > > --------- > > Please advice me, what to do . > > Thank you very much for your help . > > Best Regards, > > Jaswinder. > > --- Stuart Menefy <Stu...@st...> wrote: > > Folks > > > > I'm happy to announce that we have finally > released > > a set of RPMs for the > > SuperH. These include all the basic development > > tools for an x86 Linux PC, > > and most of the program you would want for an > > embedded target system. > > This is based on the MontaVista HardHat > > distribution. > > > > For more details, please see the SourceForge web > > page: > > http://linuxsh.sourceforge.net/docs/shrpm.php3 > > > > Most of the hard work getting this running on the > > SuperH has been done > > by Stephen Thomas (ste...@st...). Any > > comments, please let > > him or me know. > > > > Stuart > > _______________________________________________ > > linuxsh-dev mailing list > > lin...@li... > > > http://lists.sourceforge.net/mailman/listinfo/linuxsh-dev > > > __________________________________________________ > Do You Yahoo!? > From homework help to love advice, Yahoo! Experts > has your answer. > http://experts.yahoo.com/ > __________________________________________________ Do You Yahoo!? Thousands of Stores. Millions of Products. All in one Place. http://shopping.yahoo.com/ |