pkgsrc-Bugs archive

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

Re: pkg/54298: devel/glib2 fails to build



The following reply was made to PR pkg/54298; it has been noted by GNATS.

From: Patrick Welche <prlw1%cam.ac.uk@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/54298: devel/glib2 fails to build
Date: Tue, 18 Jun 2019 10:45:46 +0100

 To check, all on NetBSD-8, you have 3 problems:
 1) earmv7hf warning about incompatible pointer types for malloc & friends
 2) earmv7hf size_t printf format string
 3) earm atomics
 
 Trying the easy one first, 2) looks strange. Could you
 
 cat > meson.build << EOF
 project('PR54298', 'c')
 compiler = meson.get_compiler('c')
 sizet_size = compiler.sizeof('size_t')
 message('sizeof(size_t) = @0@'.format(sizet_size))
 EOF
 mkdir output
 meson output
 
 cat > foo.c << EOF
 #include <stdio.h>
 
 int main()
 {
         printf("sizeof(size_t) = %zu\n", sizeof(size_t));
 
         return 0;
 }
 EOF
 gcc -o foo foo.c
 ./foo
 
 Really odd if they don't match, but that's all I can think of!
 


Home | Main Index | Thread Index | Old Index