public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/67424] New: libcilkcrts fails to build on NetBSD
@ 2015-09-01 16:23 gcc at rkeene dot org
  2015-09-02 10:07 ` [Bug target/67424] " redi at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: gcc at rkeene dot org @ 2015-09-01 16:23 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 67424
           Summary: libcilkcrts fails to build on NetBSD
           Product: gcc
           Version: 5.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gcc at rkeene dot org
  Target Milestone: ---

GCC 5.2.0 fails to build a compiler for NetBSD on x86_64 by default.


This is because libcilkrts/configure.tgt does not return unsupported for NetBSD
on x86_64, but libcilkrts/runtime/os-unix.c #ifdefs return an #error directive
for NetBSD.


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

* [Bug target/67424] libcilkcrts fails to build on NetBSD
  2015-09-01 16:23 [Bug other/67424] New: libcilkcrts fails to build on NetBSD gcc at rkeene dot org
@ 2015-09-02 10:07 ` redi at gcc dot gnu.org
  2015-09-02 10:09 ` redi at gcc dot gnu.org
  2015-09-02 13:12 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2015-09-02 10:07 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-unknown-netbsd*
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-09-02
          Component|other                       |target
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
/home/jwakely/src/gcc/libcilkrts/runtime/os-unix.c:71:5: error: #error
"Unsupported OS"
 #   error "Unsupported OS"
     ^
/home/jwakely/src/gcc/libcilkrts/runtime/os-unix.c: In function
'__cilkrts_hardware_cpu_count':
/home/jwakely/src/gcc/libcilkrts/runtime/os-unix.c:388:2: error: #error
"Unknown architecture"
 #error "Unknown architecture"
  ^
/home/jwakely/src/gcc/libcilkrts/runtime/os-unix.c: In function
'__cilkrts_yield':
/home/jwakely/src/gcc/libcilkrts/runtime/os-unix.c:424:5: warning: implicit
declaration of function 'pthread_yield' [-Wimplicit-function-declaration]
     pthread_yield();
     ^


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

* [Bug target/67424] libcilkcrts fails to build on NetBSD
  2015-09-01 16:23 [Bug other/67424] New: libcilkcrts fails to build on NetBSD gcc at rkeene dot org
  2015-09-02 10:07 ` [Bug target/67424] " redi at gcc dot gnu.org
@ 2015-09-02 10:09 ` redi at gcc dot gnu.org
  2015-09-02 13:12 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2015-09-02 10:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Created attachment 36286
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36286&action=edit
support netbsd in libcilkrts/runtime/os-unix.c

I'm testing this


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

* [Bug target/67424] libcilkcrts fails to build on NetBSD
  2015-09-01 16:23 [Bug other/67424] New: libcilkcrts fails to build on NetBSD gcc at rkeene dot org
  2015-09-02 10:07 ` [Bug target/67424] " redi at gcc dot gnu.org
  2015-09-02 10:09 ` redi at gcc dot gnu.org
@ 2015-09-02 13:12 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2015-09-02 13:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
That allows the bootstrap to complete, but all the cilk+ tests fail:

/home/jwakely/gcc/5/x86_64-unknown-netbsd5.1/bin/ld: ./reduction-3.exe: hidden
symbol `__cpu_model' in
/home/jwakely/build/gcc/testsuite/g++/../../libgcc.a(cpuinfo.o) is referenced
by DSO
/home/jwakely/gcc/5/x86_64-unknown-netbsd5.1/bin/ld: final link failed: Bad
value


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

end of thread, other threads:[~2015-09-02 13:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-01 16:23 [Bug other/67424] New: libcilkcrts fails to build on NetBSD gcc at rkeene dot org
2015-09-02 10:07 ` [Bug target/67424] " redi at gcc dot gnu.org
2015-09-02 10:09 ` redi at gcc dot gnu.org
2015-09-02 13:12 ` redi 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).