pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkgsrc 2021Q4 on M1 Mac



* On 2021-04-14 at 20:20 BST, Mansour Moufid wrote:

Now:

   % clang --version
   Apple clang version 12.0.0 (clang-1200.0.32.29)
   Target: arm64-apple-darwin20.3.0
   Thread model: posix
   InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
   % clang x.c
   x.c:1:18: error: implicit declaration of function 'puts' is invalid in C99
         [-Werror,-Wimplicit-function-declaration]
   int main(void) { puts("Hello world!"); return 0; }
                    ^
   1 error generated.

Putting -Wno-error=implicit-function-declaration in CFLAGS also worked.

I have exactly the same compiler, with the same behaviour, but I don't see the failures when building devel/zlib that you do, so not sure what's going on there...

--
Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com


Home | Main Index | Thread Index | Old Index