ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Arseny Maslennikov <arseny@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] clang 17 and stddef.h
Date: Wed, 4 Oct 2023 12:43:30 +0300
Message-ID: <ZR0zwu-zHsS1clds@cello> (raw)
In-Reply-To: <c17028e3d56d4acc30c5c2e60f169c5a@etersoft.ru>

[-- Attachment #1: Type: text/plain, Size: 1904 bytes --]

On Tue, Oct 03, 2023 at 10:42:36PM +0300, Vitaly Lipatov wrote:
> Подскажите, как такое может быть:
> 
> $ cat z.c
> #include <stdlib.h>
> #include <unistd.h>
> #include <string.h>
> 
>     int main(void)
>     {
>         return mkstemp("abc");
>     }
> 
> 
> $ clang z.c
> In file included from z.c:1:
> /usr/include/stdlib.h:32:10: fatal error: 'stddef.h' file not found
>    32 | #include <stddef.h>
>       |          ^~~~~~~~~~
> 1 error generated.
> 
> $ clang -v
> ALT Linux Team clang version 17.0.1
> Target: x86_64-unknown-linux-gnu
> Thread model: posix
> InstalledDir: /usr/bin
> Found candidate GCC installation: /usr/bin/../lib/gcc/i586-alt-linux/13
> Found candidate GCC installation: /usr/bin/../lib64/gcc/x86_64-alt-linux/13
> Selected GCC installation: /usr/bin/../lib64/gcc/x86_64-alt-linux/13
> Candidate multilib: .;@m64
> Selected multilib: .;@m64
> 
> (это в hasher так, а в системе с Сизифом собирается)

Странно. АУМВР:

  % clang --version
  ALT Linux Team clang version 17.0.2
  Target: x86_64-unknown-linux-gnu
  Thread model: posix
  InstalledDir: /usr/bin
  % cat x.c
  #include <stdlib.h>
  #include <unistd.h>
  #include <string.h>
  
      int main(void)
      {
          return mkstemp("abc");
      }
  % rm -f a.out
  % clang x.c && file --mime a.out
  a.out: application/x-pie-executable; charset=binary

У меня в почтовом ящике:
63111     Tue, Oct 03 22:42:36+0300 Vitaly Lipatov              (  18) [devel] clang 17 and stddef.h
63112   T Tue, Oct 03 20:06:30+0000 Girar pender (arseny)       ( 381) [#330906] DONE llvm17.0.git=17.0.2-alt1

В нашем сообществе, как я понимаю, принято говорить в таких ситуациях
"Попробуйте ещё раз. :)".

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2023-10-04  9:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-03 19:42 Vitaly Lipatov
2023-10-04  9:43 ` Arseny Maslennikov [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=ZR0zwu-zHsS1clds@cello \
    --to=arseny@altlinux.org \
    --cc=devel@lists.altlinux.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

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git