From: "Tom G. Christensen" <tgc@jupiterrise.com>
To: bug-gnulib@gnu.org
Subject: test-simple-atomic.c compilation error on Solaris
Date: Thu, 18 Mar 2021 20:41:27 +0100 [thread overview]
Message-ID: <7ccb90d4-400f-10e8-bb06-1b002fcc836e@jupiterrise.com> (raw)
Hello,
The test-simple-atomic test is failing to build on Solaris (tested 10
and older).
Here's the error from Solaris 10:
make[3]: Entering directory
`/export/home/tgc/tmp/daily_build/gnulib/000-gnulib-simple-363497c93/gltests'
depbase=`echo test-simple-atomic.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
/usr/tgcware/gcc9/bin/gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I..
-DGNULIB_STRICT_CHECKING=1 -DIN_GNULIB_TESTS=1 -I. -I. -I.. -I./..
-I../gllib -I./../gllib -I/usr/tgcware/include -D_REENTRANT -g -O2 -MT
test-simple-atomic.o -MD -MP -MF $depbase.Tpo -c -o test-simple-atomic.o
test-simple-atomic.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from ../gllib/unistd.h:40,
from ../gllib/stdlib.h:100,
from ../gllib/glthread/thread.h:74,
from test-simple-atomic.c:43:
/usr/include/unistd.h:542:23: error: macro "yield" passed 1 arguments,
but takes just 0
542 | extern void yield(void);
| ^
test-simple-atomic.c:38: note: macro "yield" defined here
38 | # define yield() gl_thread_yield ()
|
make[3]: *** [test-simple-atomic.o] Error 1
make[3]: Target `check-am' not remade because of errors.
It needs <unistd.h> before defining the macro.
Same issue as 617bc96d54db37c138bafb1872056de4453a248b.
-tgc
next reply other threads:[~2021-03-18 19:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-18 19:41 Tom G. Christensen [this message]
2021-03-19 2:51 ` test-simple-atomic.c compilation error on Solaris Bruno Haible
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
List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7ccb90d4-400f-10e8-bb06-1b002fcc836e@jupiterrise.com \
--to=tgc@jupiterrise.com \
--cc=bug-gnulib@gnu.org \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).