public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/49940] New: [4.5/4.6/4.7 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined"
@ 2011-08-02  1:12 ludovic@ludovic-brenta.org
  2011-08-02  9:41 ` [Bug ada/49940] " rguenth at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: ludovic@ludovic-brenta.org @ 2011-08-02  1:12 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49940

           Summary: [4.5/4.6/4.7 regression] Bootstrapping on
                    x86_64-pc-kfreebsd-gnu fails with
                    "s-taprop.adb:717:32: "lwp_self" is undefined"
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ludovic@ludovic-brenta.org
              Host: x86_64-pc-kfreebsd-gnu
            Target: x86_64-pc-kfreebsd-gnu
             Build: x86_64-pc-kfreebsd-gnu


(Forwarding http://bugs.debian.org/636291)

In the build logs at
https://buildd.debian.org/status/fetch.php?pkg=gnat-4.6&arch=kfreebsd-amd64&ver=4.6.1-2&stamp=1311435165
we see:

/build/buildd-gnat-4.6_4.6.1-2-kfreebsd-amd64-Jts3n3/gnat-4.6-4.6.1/build/./gcc/xgcc
-B/build/buildd-gnat-4.6_4.6.1-2-kfreebsd-amd64-Jts3n3/gnat-4.6-4.6.1/build/./gcc/
-c -g -O2  -W -Wall -gnatpg  s-taprop.adb -o s-taprop.o
s-taprop.adb:717:32: "lwp_self" is undefined
s-taprop.adb:856:10: "pthread_attr_setaffinity_np" is undefined (more
references follow)


I have traced the first error to the following commit:

    2009-04-15  Nicolas Roche  <roche@adacore.com>

        * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
        current thread.

        * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self

        * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB



    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146097
138bc75d-0d04-0410-961f-82ee72b054a4


The function __gnat_lwp_self exists in adaint.c only #if defined(linux),
so it may not apply to kfreebsd-*.  The problem exists because
kfreebsd-* uses s-osinte-kfreebsd-gnu.ads, which does not import the
function, but also uses s-taprop-linux.adb, which does use the function.  (Note
that s-taprop-posix.adb also calls lwp_self).

I am not sure what to do: 

* introduce a new file s-taprop-kfreebsd-gnu.adb?
* provide the function __gnat_lwp_self also on kfreebsd-* and import it in
s-osinte-kfreebsd-gnu.ads?

-- 
Ludovic Brenta.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug ada/49940] [4.5/4.6/4.7 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined"
  2011-08-02  1:12 [Bug ada/49940] New: [4.5/4.6/4.7 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined" ludovic@ludovic-brenta.org
@ 2011-08-02  9:41 ` rguenth at gcc dot gnu.org
  2011-08-02 13:45 ` [Bug ada/49940] New: " Arnaud Charlet
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-08-02  9:41 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49940

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
   Target Milestone|---                         |4.5.4


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Bug ada/49940] New: [4.5/4.6/4.7 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined"
  2011-08-02  1:12 [Bug ada/49940] New: [4.5/4.6/4.7 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined" ludovic@ludovic-brenta.org
  2011-08-02  9:41 ` [Bug ada/49940] " rguenth at gcc dot gnu.org
@ 2011-08-02 13:45 ` Arnaud Charlet
  2011-08-02 13:46 ` [Bug ada/49940] " charlet at adacore dot com
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Arnaud Charlet @ 2011-08-02 13:45 UTC (permalink / raw)
  To: ludovic@ludovic-brenta.org; +Cc: gcc-bugs

> The function __gnat_lwp_self exists in adaint.c only #if defined(linux),
> so it may not apply to kfreebsd-*.  The problem exists because
> kfreebsd-* uses s-osinte-kfreebsd-gnu.ads, which does not import the
> function, but also uses s-taprop-linux.adb, which does use the function. 
> (Note
> that s-taprop-posix.adb also calls lwp_self).
> 
> I am not sure what to do: 
> 
> * introduce a new file s-taprop-kfreebsd-gnu.adb?
> * provide the function __gnat_lwp_self also on kfreebsd-* and import it in
> s-osinte-kfreebsd-gnu.ads?

Better would be to use s-taprop-posix.adb, that would avoid relying on
non portable code and would require minimal maintenance.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug ada/49940] [4.5/4.6/4.7 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined"
  2011-08-02  1:12 [Bug ada/49940] New: [4.5/4.6/4.7 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined" ludovic@ludovic-brenta.org
  2011-08-02  9:41 ` [Bug ada/49940] " rguenth at gcc dot gnu.org
  2011-08-02 13:45 ` [Bug ada/49940] New: " Arnaud Charlet
@ 2011-08-02 13:46 ` charlet at adacore dot com
  2011-08-02 17:39 ` ludovic@ludovic-brenta.org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: charlet at adacore dot com @ 2011-08-02 13:46 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49940

--- Comment #1 from charlet at adacore dot com <charlet at adacore dot com> 2011-08-02 13:46:01 UTC ---
> The function __gnat_lwp_self exists in adaint.c only #if defined(linux),
> so it may not apply to kfreebsd-*.  The problem exists because
> kfreebsd-* uses s-osinte-kfreebsd-gnu.ads, which does not import the
> function, but also uses s-taprop-linux.adb, which does use the function. 
> (Note
> that s-taprop-posix.adb also calls lwp_self).
> 
> I am not sure what to do: 
> 
> * introduce a new file s-taprop-kfreebsd-gnu.adb?
> * provide the function __gnat_lwp_self also on kfreebsd-* and import it in
> s-osinte-kfreebsd-gnu.ads?

Better would be to use s-taprop-posix.adb, that would avoid relying on
non portable code and would require minimal maintenance.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug ada/49940] [4.5/4.6/4.7 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined"
  2011-08-02  1:12 [Bug ada/49940] New: [4.5/4.6/4.7 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined" ludovic@ludovic-brenta.org
                   ` (2 preceding siblings ...)
  2011-08-02 13:46 ` [Bug ada/49940] " charlet at adacore dot com
@ 2011-08-02 17:39 ` ludovic@ludovic-brenta.org
  2012-07-02 13:15 ` [Bug ada/49940] [4.6/4.7/4.8 " rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: ludovic@ludovic-brenta.org @ 2011-08-02 17:39 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49940

--- Comment #2 from Ludovic Brenta <ludovic@ludovic-brenta.org> 2011-08-02 17:39:02 UTC ---
I found that declaring lwp_self in s-osinte-kfreebsd-gnu.ads similarly to the
declaration in s-osinte-freebsd.ads fixed the problem.   Patch submitted as
http://gcc.gnu.org/ml/gcc-patches/2011-08/msg00139.html.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug ada/49940] [4.6/4.7/4.8 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined"
  2011-08-02  1:12 [Bug ada/49940] New: [4.5/4.6/4.7 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined" ludovic@ludovic-brenta.org
                   ` (3 preceding siblings ...)
  2011-08-02 17:39 ` ludovic@ludovic-brenta.org
@ 2012-07-02 13:15 ` rguenth at gcc dot gnu.org
  2013-04-12 15:21 ` [Bug ada/49940] [4.7/4.8/4.9 " jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-07-02 13:15 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49940

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.5.4                       |4.6.4


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug ada/49940] [4.7/4.8/4.9 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined"
  2011-08-02  1:12 [Bug ada/49940] New: [4.5/4.6/4.7 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined" ludovic@ludovic-brenta.org
                   ` (4 preceding siblings ...)
  2012-07-02 13:15 ` [Bug ada/49940] [4.6/4.7/4.8 " rguenth at gcc dot gnu.org
@ 2013-04-12 15:21 ` jakub at gcc dot gnu.org
  2014-06-12 13:48 ` [Bug ada/49940] [4.7/4.8/4.9/4.10 " rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-04-12 15:21 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49940

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.6.4                       |4.7.4

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-04-12 15:16:53 UTC ---
GCC 4.6.4 has been released and the branch has been closed.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug ada/49940] [4.7/4.8/4.9/4.10 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined"
  2011-08-02  1:12 [Bug ada/49940] New: [4.5/4.6/4.7 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined" ludovic@ludovic-brenta.org
                   ` (5 preceding siblings ...)
  2013-04-12 15:21 ` [Bug ada/49940] [4.7/4.8/4.9 " jakub at gcc dot gnu.org
@ 2014-06-12 13:48 ` rguenth at gcc dot gnu.org
  2014-12-19 13:33 ` [Bug ada/49940] [4.8/4.9/5 " jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-06-12 13:48 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49940

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.7.4                       |4.8.4

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
The 4.7 branch is being closed, moving target milestone to 4.8.4.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug ada/49940] [4.8/4.9/5 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined"
  2011-08-02  1:12 [Bug ada/49940] New: [4.5/4.6/4.7 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined" ludovic@ludovic-brenta.org
                   ` (6 preceding siblings ...)
  2014-06-12 13:48 ` [Bug ada/49940] [4.7/4.8/4.9/4.10 " rguenth at gcc dot gnu.org
@ 2014-12-19 13:33 ` jakub at gcc dot gnu.org
  2015-06-23  8:25 ` [Bug ada/49940] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-12-19 13:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49940

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.4                       |4.8.5

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.8.4 has been released.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug ada/49940] [4.8/4.9/5/6 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined"
  2011-08-02  1:12 [Bug ada/49940] New: [4.5/4.6/4.7 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined" ludovic@ludovic-brenta.org
                   ` (7 preceding siblings ...)
  2014-12-19 13:33 ` [Bug ada/49940] [4.8/4.9/5 " jakub at gcc dot gnu.org
@ 2015-06-23  8:25 ` rguenth at gcc dot gnu.org
  2015-06-26 20:00 ` [Bug ada/49940] [4.9/5/6 " jakub at gcc dot gnu.org
  2015-06-26 20:31 ` jakub at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-23  8:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49940

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.5                       |4.9.3

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
The gcc-4_8-branch is being closed, re-targeting regressions to 4.9.3.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug ada/49940] [4.9/5/6 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined"
  2011-08-02  1:12 [Bug ada/49940] New: [4.5/4.6/4.7 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined" ludovic@ludovic-brenta.org
                   ` (8 preceding siblings ...)
  2015-06-23  8:25 ` [Bug ada/49940] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
@ 2015-06-26 20:00 ` jakub at gcc dot gnu.org
  2015-06-26 20:31 ` jakub at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 20:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49940

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.9.3 has been released.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Bug ada/49940] [4.9/5/6 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined"
  2011-08-02  1:12 [Bug ada/49940] New: [4.5/4.6/4.7 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined" ludovic@ludovic-brenta.org
                   ` (9 preceding siblings ...)
  2015-06-26 20:00 ` [Bug ada/49940] [4.9/5/6 " jakub at gcc dot gnu.org
@ 2015-06-26 20:31 ` jakub at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 20:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49940

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.9.3                       |4.9.4


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-06-26 20:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-02  1:12 [Bug ada/49940] New: [4.5/4.6/4.7 regression] Bootstrapping on x86_64-pc-kfreebsd-gnu fails with "s-taprop.adb:717:32: "lwp_self" is undefined" ludovic@ludovic-brenta.org
2011-08-02  9:41 ` [Bug ada/49940] " rguenth at gcc dot gnu.org
2011-08-02 13:45 ` [Bug ada/49940] New: " Arnaud Charlet
2011-08-02 13:46 ` [Bug ada/49940] " charlet at adacore dot com
2011-08-02 17:39 ` ludovic@ludovic-brenta.org
2012-07-02 13:15 ` [Bug ada/49940] [4.6/4.7/4.8 " rguenth at gcc dot gnu.org
2013-04-12 15:21 ` [Bug ada/49940] [4.7/4.8/4.9 " jakub at gcc dot gnu.org
2014-06-12 13:48 ` [Bug ada/49940] [4.7/4.8/4.9/4.10 " rguenth at gcc dot gnu.org
2014-12-19 13:33 ` [Bug ada/49940] [4.8/4.9/5 " jakub at gcc dot gnu.org
2015-06-23  8:25 ` [Bug ada/49940] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
2015-06-26 20:00 ` [Bug ada/49940] [4.9/5/6 " jakub at gcc dot gnu.org
2015-06-26 20:31 ` jakub at gcc dot gnu.org

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).