Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 776667 - dev-lang/mono-6.10.0.104[abi_x86_32] fails: boehm-gc.c:202:25: error: passing argument 1 of 'GC_set_on_heap_resize' from incompatible pointer type
Summary: dev-lang/mono-6.10.0.104[abi_x86_32] fails: boehm-gc.c:202:25: error: passing...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2021-03-16 13:17 UTC by jannis
Modified: 2023-12-05 04:22 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (einfo,25.63 KB, text/plain)
2021-03-16 13:18 UTC, jannis
Details
build.log (build.log,462.14 KB, text/plain)
2021-03-16 13:18 UTC, jannis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jannis 2021-03-16 13:17:27 UTC
I'm currently rebuilding my @world and dev-lang/mono-6.10.0.104 fails:

../../doltlibtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -m32 -DHAVE_CONFIG_H -I. -I../..  -I../.. -I../../mono -I../../external/bdwgc/include -I../../external/bdwgc/libatomic_ops/src -I../../mono/eglib -I../../mono/eglib -fvisibility=hidden -Wall -Wunused -Wmissing-declarations -Wpointer-arith -Wno-cast-qual -Wwrite-strings -Wno-switch -Wno-switch-enum -Wno-unused-value -Wno-attributes  -DGC_LINUX_THREADS -D_GNU_SOURCE -D_REENTRANT -DUSE_MMAP -DUSE_MUNMAP -g -D_FILE_OFFSET_BITS=64 -DUSE_COMPILER_TLS -DHAVE_BOEHM_GC -DGC_THREADS  -Wall -Wunused -Wmissing-declarations -Wpointer-arith -Wno-cast-qual -Wwrite-strings -Wno-switch -Wno-switch-enum -Wno-unused-value -Wno-attributes -march=sandybridge -O2 -pipe -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs -Wno-format-zero-length -std=gnu99 -fno-strict-aliasing -fwrapv -DMONO_DLL_EXPORT -Wno-unused-but-set-variable -g -Werror=incompatible-pointer-types -Werror=return-type -Werror-implicit-function-declaration -c -o libmonoruntime_la-boehm-gc.lo `test -f 'boehm-gc.c' || echo './'`boehm-gc.c
boehm-gc.c: In function 'mono_gc_base_init':
boehm-gc.c:202:25: error: passing argument 1 of 'GC_set_on_heap_resize' from incompatible pointer type [-Werror=incompatible-pointer-types]
  202 |  GC_set_on_heap_resize (on_gc_heap_resize);
      |                         ^~~~~~~~~~~~~~~~~
      |                         |
      |                         void (*)(size_t) {aka void (*)(unsigned int)}
In file included from ../../mono/utils/gc_wrapper.h:44,
                 from ../../mono/metadata/gc-internals.h:16,
                 from boehm-gc.c:16:
../../external/bdwgc/include/gc.h:132:43: note: expected 'GC_on_heap_resize_proc' {aka 'void (*)(long unsigned int)'} but argument is of type 'void (*)(size_t)' {aka 'void (*)(unsigned int)'}
  132 | GC_API void GC_CALL GC_set_on_heap_resize(GC_on_heap_resize_proc);

Reproducible: Always
Comment 1 jannis 2021-03-16 13:18:02 UTC
Created attachment 691773 [details]
emerge --info
Comment 2 jannis 2021-03-16 13:18:20 UTC
Created attachment 691776 [details]
build.log
Comment 3 Ionen Wolkens gentoo-dev 2021-03-16 16:20:37 UTC
I needed to enable abi_x86_32 to reproduce.
Comment 4 Larry the Git Cow gentoo-dev 2021-03-28 04:21:19 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f2ce176977618670a011966317ddfbd72409829

commit 3f2ce176977618670a011966317ddfbd72409829
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-03-28 03:45:27 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-03-28 04:21:05 +0000

    dev-lang/mono: add 6.12.0.122
    
    * Bumps to 6.12.0.122
    * Run cert-sync (regenerate certificate store) in pkg_postinst
    * Add (preliminary) check-reqs.eclass usage
    * Fix automagic dependencies on:
    ** app-crypt/mit-krb5
    ** sys-libs/zlib (fallback to bundled previously)
    
    Bug: https://bugs.gentoo.org/776667
    Bug: https://bugs.gentoo.org/719718
    Closes: https://bugs.gentoo.org/687892
    Closes: https://bugs.gentoo.org/729328
    Closes: https://bugs.gentoo.org/762265
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lang/mono/Manifest               |   1 +
 dev-lang/mono/mono-6.12.0.122.ebuild | 114 +++++++++++++++++++++++++++++++++++
 2 files changed, 115 insertions(+)