ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] clang 17 and stddef.h
@ 2023-10-03 19:42 Vitaly Lipatov
  2023-10-04  9:43 ` Arseny Maslennikov
  0 siblings, 1 reply; 2+ messages in thread
From: Vitaly Lipatov @ 2023-10-03 19:42 UTC (permalink / raw)
  To: ALT Linux Team development discussions

Подскажите, как такое может быть:

$ 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 так, а в системе с Сизифом собирается)

-- 
С уважением,
Виталий Липатов,
Etersoft


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

* Re: [devel] clang 17 and stddef.h
  2023-10-03 19:42 [devel] clang 17 and stddef.h Vitaly Lipatov
@ 2023-10-04  9:43 ` Arseny Maslennikov
  0 siblings, 0 replies; 2+ messages in thread
From: Arseny Maslennikov @ 2023-10-04  9:43 UTC (permalink / raw)
  To: ALT Linux Team development discussions

[-- 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 --]

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

end of thread, other threads:[~2023-10-04  9:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-03 19:42 [devel] clang 17 and stddef.h Vitaly Lipatov
2023-10-04  9:43 ` Arseny Maslennikov

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