public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: "Mitani" <mitani@ryobi.co.jp>
To: 'Garrett Cooper' <yanegomi@gmail.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] About POSIX "sched_yield/1-1.c" buld failure
Date: Tue, 9 Nov 2010 19:54:53 +0900	[thread overview]
Message-ID: <000001cb7ffc$8a36e290$9ea4a7b0$@co.jp> (raw)
In-Reply-To: <AANLkTin1JCcuvaX+6M4LxBJea14DWYoU4Tyq++N7gEr+@mail.gmail.com>

> -----Original Message-----
> From: Garrett Cooper [mailto:yanegomi@gmail.com]
> Sent: Tuesday, November 09, 2010 6:28 AM
> To: Mitani
> Cc: ltp-list@lists.sourceforge.net
> Subject: Re: [LTP] About POSIX "sched_yield/1-1.c" buld failure
> 
> On Fri, Nov 5, 2010 at 5:56 AM, Mitani <mitani@ryobi.co.jp> wrote:
> >> -----Original Message-----
> >> From: Garrett Cooper [mailto:yanegomi@gmail.com]
> >> Sent: Tuesday, November 02, 2010 3:43 PM
> >> To: Mitani
> >> Cc: ltp-list@lists.sourceforge.net
> >> Subject: Re: [LTP] About POSIX "sched_yield/1-1.c" buld failure
> >>
> >> On Wed, Oct 27, 2010 at 7:44 PM, Mitani <mitani@ryobi.co.jp> wrote:
> >> >> -----Original Message-----
> >> >> From: Garrett Cooper [mailto:yanegomi@gmail.com]
> >> >> Sent: Tuesday, October 26, 2010 3:57 PM
> >> >> To: Mitani
> >> >> Cc: ltp-list@lists.sourceforge.net
> >> >> Subject: Re: [LTP] About POSIX "sched_yield/1-1.c" buld failure
> >> >>
> >> >> On Mon, Oct 25, 2010 at 6:45 PM, Mitani <mitani@ryobi.co.jp>
> wrote:
> >> >> > Hi,
> >> >> >
> >> >> > I reported that build failure of POSIX test set
> >> >> "conformance/interfaces/
> >> >> > sched_yield/1-1" was still left in RHEL4.8 system:
> >> >> >
> >> >> >
> >> >>
> >>
> http://www.mail-archive.com/ltp-list@lists.sourceforge.net/msg1071
> >> >> 3.html
> >> >> >
> >> >> > In addition, build of the following tests failed by the reason
> >> of
> >> >> > "undefined reference":
> >> >>
> >> >>     Some versions of gcc didn't function properly with
> -lpthread;
> >> try
> >> >> -pthread instead at the top-level LDLIBS file and see whether
> or
> >> not
> >> >> it works for you.
> >> >> HTH,
> >> >> -Garrett
> >> >
> >> > Hi,
> >> >
> >> > I tried to use "-pthread" instead of "-lpthread".
> >> > But "sched_yield/1-1" failed in my all archtectures (RHEL4.8-x86,
> >> x86_64,
> >> > ia64).
> >> > Other 27 tests, too.
> >>
> >> What does `man pthread_barrierattr_getpshared' say?
> 
> ...
> 
> > "man pthread_barrierattr_getpshared" in my system "RHEL4.8-x86_64".
> >
> > ------------
> > [root@RHEL48-LTP-EM64T make]# man pthread_barrierattr_getpshared
> > PTHREAD_BARRIERATTR_GETPSHARED(P)
> > PTHREAD_BARRIERATTR_GETPSHARED(P)
> >
> > NAME
> >       pthread_barrierattr_getpshared,
> pthread_barrierattr_setpshared - get
> > and set the
> >       process-shared attribute of the barrier  attributes  object
> > (ADVANCED  REALTIME
> >       THREADS)
> 
> RHEL sucks for compiling stuff (I remember because it used to be a
> reference platform when I was doing the Makefile work). Try swapping
> around -lrt and -lpthread in the LDLIBS file and see whether or not
> things work. If not, then I'd talk to Redhat and figure out what it
> doesn't work.
> -Garrett

I tried to build "sched_yield", and found that they succeeded to build 
in my system (all of RHEL4.8 - x86, x86_64, ia64).
I didn't notice that "-lpthread" added to "Makefile" of "sched_yield" 
from 2010/10/29 git.

It was October 27 that I tried "-pthread" last. After that, I merely 
revised "LDLIBS" automatically and did make with it.
Sorry!

Thank you--

-Tomonori Mitani



------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

      reply	other threads:[~2010-11-09 10:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-26  1:45 [LTP] About POSIX "sched_yield/1-1.c" buld failure Mitani
2010-10-26  6:56 ` Garrett Cooper
2010-10-28  2:44   ` Mitani
2010-11-02  6:42     ` Garrett Cooper
2010-11-05 12:56       ` Mitani
2010-11-08 21:27         ` Garrett Cooper
2010-11-09 10:54           ` Mitani [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000001cb7ffc$8a36e290$9ea4a7b0$@co.jp' \
    --to=mitani@ryobi.co.jp \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=yanegomi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox