Yocto has error when compiling raspi kernel with the 'bcm2709_defconfig' - linux-kernel

I add KBUILD_DEFCONFIG_myrpi2 = "bcm2709_defconfig" in my kernel recipe to use "In-Tree" defconfig file. I compile the kernel use command:
bitbake -c compile linux-rpi2
but it outputs some errors, here is the log:
DEBUG: Executing shell function do_compile
NOTE: make -j 2 zImage CC=arm-poky-linux-gnueabi-gcc -mno-thumb-interwork -marm -fuse-ld=bfd LD=arm-poky-linux-gnueabi-ld.bfd
GEN ./Makefile
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config/kernel.release
GEN ./Makefile
UPD include/config/kernel.release
WRAP arch/arm/include/generated/asm/bitsperlong.h
WRAP arch/arm/include/generated/asm/cputime.h
CHK include/generated/uapi/linux/version.h
UPD include/generated/uapi/linux/version.h
WRAP arch/arm/include/generated/asm/current.h
WRAP arch/arm/include/generated/asm/emergency-restart.h
WRAP arch/arm/include/generated/asm/errno.h
WRAP arch/arm/include/generated/asm/exec.h
WRAP arch/arm/include/generated/asm/ioctl.h
WRAP arch/arm/include/generated/asm/ipcbuf.h
WRAP arch/arm/include/generated/asm/irq_regs.h
WRAP arch/arm/include/generated/asm/kdebug.h
CHK include/generated/utsrelease.h
WRAP arch/arm/include/generated/asm/local.h
WRAP arch/arm/include/generated/asm/local64.h
UPD include/generated/utsrelease.h
WRAP arch/arm/include/generated/asm/mm-arch-hooks.h
WRAP arch/arm/include/generated/asm/msgbuf.h
WRAP arch/arm/include/generated/asm/msi.h
WRAP arch/arm/include/generated/asm/param.h
WRAP arch/arm/include/generated/asm/parport.h
WRAP arch/arm/include/generated/asm/poll.h
WRAP arch/arm/include/generated/asm/preempt.h
HOSTCC scripts/basic/bin2c
WRAP arch/arm/include/generated/asm/resource.h
WRAP arch/arm/include/generated/asm/rwsem.h
WRAP arch/arm/include/generated/asm/seccomp.h
WRAP arch/arm/include/generated/asm/sections.h
WRAP arch/arm/include/generated/asm/segment.h
WRAP arch/arm/include/generated/asm/sembuf.h
WRAP arch/arm/include/generated/asm/serial.h
WRAP arch/arm/include/generated/asm/shmbuf.h
WRAP arch/arm/include/generated/asm/siginfo.h
WRAP arch/arm/include/generated/asm/simd.h
WRAP arch/arm/include/generated/asm/sizes.h
WRAP arch/arm/include/generated/asm/socket.h
WRAP arch/arm/include/generated/asm/sockios.h
WRAP arch/arm/include/generated/asm/termbits.h
WRAP arch/arm/include/generated/asm/termios.h
WRAP arch/arm/include/generated/asm/timex.h
WRAP arch/arm/include/generated/asm/trace_clock.h
WRAP arch/arm/include/generated/asm/unaligned.h
HOSTCC scripts/dtc/dtc.o
Using /home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source as source for kernel
Generating include/generated/mach-types.h
HOSTCC scripts/dtc/flattree.o
CC kernel/bounds.s
CHK include/generated/timeconst.h
UPD include/generated/timeconst.h
CHK include/generated/bounds.h
UPD include/generated/bounds.h
CC arch/arm/kernel/asm-offsets.s
CHK include/generated/asm-offsets.h
HOSTCC scripts/dtc/fstree.o
UPD include/generated/asm-offsets.h
CALL /home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/scripts/checksyscalls.sh
HOSTCC scripts/dtc/data.o
HOSTCC scripts/dtc/livetree.o
HOSTCC scripts/dtc/treesource.o
HOSTCC scripts/dtc/srcpos.o
HOSTCC scripts/dtc/checks.o
HOSTCC scripts/genksyms/genksyms.o
HOSTCC scripts/dtc/util.o
SHIPPED scripts/genksyms/parse.tab.c
SHIPPED scripts/genksyms/lex.lex.c
SHIPPED scripts/genksyms/keywords.hash.c
SHIPPED scripts/genksyms/parse.tab.h
HOSTCC scripts/genksyms/parse.tab.o
SHIPPED scripts/dtc/dtc-lexer.lex.c
SHIPPED scripts/dtc/dtc-parser.tab.h
SHIPPED scripts/dtc/dtc-parser.tab.c
HOSTCC scripts/dtc/dtc-lexer.lex.o
HOSTCC scripts/genksyms/lex.lex.o
HOSTCC scripts/dtc/dtc-parser.tab.o
HOSTLD scripts/genksyms/genksyms
HOSTLD scripts/dtc/dtc
CC scripts/mod/empty.o
HOSTCC scripts/kallsyms
HOSTCC scripts/mod/mk_elfconfig
CC scripts/mod/devicetable-offsets.s
MKELF scripts/mod/elfconfig.h
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/sumversion.o
HOSTCC scripts/pnmtologo
HOSTCC scripts/mod/modpost.o
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
HOSTCC usr/gen_init_cpio
CC init/main.o
GEN usr/initramfs_data.cpio
AS usr/initramfs_data.o
LD usr/built-in.o
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/do_mounts.o
CC init/do_mounts_initrd.o
CC arch/arm/vfp/vfpmodule.o
CC init/initramfs.o
AS arch/arm/vfp/entry.o
AS arch/arm/vfp/vfphw.o
CC arch/arm/vfp/vfpsingle.o
CC init/calibrate.o
CC init/init_task.o
CC arch/arm/vfp/vfpdouble.o
CC init/version.o
LD arch/arm/vfp/vfp.o
LD arch/arm/vfp/built-in.o
LD init/mounts.o
LD init/built-in.o
CC arch/arm/mm/dma-mapping.o
CC arch/arm/kernel/elf.o
AS arch/arm/kernel/entry-common.o
CC arch/arm/kernel/irq.o
CC arch/arm/kernel/opcodes.o
CC arch/arm/mm/extable.o
CC arch/arm/kernel/process.o
CC arch/arm/mm/fault.o
CC arch/arm/mm/init.o
CC arch/arm/kernel/ptrace.o
CC arch/arm/mm/iomap.o
CC arch/arm/kernel/reboot.o
CC arch/arm/kernel/return_address.o
CC arch/arm/mm/nommu.o
CC arch/arm/kernel/setup.o
CC arch/arm/mm/proc-syms.o
AS arch/arm/mm/abort-ev7.o
AS arch/arm/mm/pabort-v7.o
AS arch/arm/mm/cache-v7.o
AS arch/arm/mm/proc-v7.o
LD arch/arm/mm/built-in.o
CC arch/arm/kernel/signal.o
AS arch/arm/kernel/sigreturn_codes.o
CC arch/arm/kernel/stacktrace.o
CC arch/arm/kernel/sys_arm.o
CC arch/arm/kernel/time.o
CC arch/arm/kernel/traps.o
AS arch/arm/kernel/entry-armv.o
CC arch/arm/kernel/fiq.o
AS arch/arm/kernel/fiqasm.o
CC arch/arm/kernel/armksyms.o
CC arch/arm/kernel/module.o
CC arch/arm/kernel/arch_timer.o
CC arch/arm/common/firmware.o
CC arch/arm/kernel/jump_label.o
CC arch/arm/kernel/insn.o
CC arch/arm/kernel/patch.o
LD arch/arm/common/built-in.o
CC arch/arm/probes/decode.o
In file included from /home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/arch/arm/kernel/patch.c:8:0:
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/arch/arm/kernel/patch.c: In function 'patch_map':
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/arch/arm/include/asm/fixmap.h:25:29: error: 'L_PTE_YOUNG' undeclared (first use in this function)
#define FIXMAP_PAGE_COMMON (L_PTE_YOUNG | L_PTE_PRESENT | L_PTE_XN | L_PTE_DIRTY)
^
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/arch/arm/include/asm/fixmap.h:27:29: note: in expansion of macro 'FIXMAP_PAGE_COMMON'
#define FIXMAP_PAGE_NORMAL (FIXMAP_PAGE_COMMON | L_PTE_MT_WRITEBACK)
^
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/include/asm-generic/fixmap.h:64:26: note: in expansion of macro 'FIXMAP_PAGE_NORMAL'
__set_fixmap(idx, phys, FIXMAP_PAGE_NORMAL)
^
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/arch/arm/kernel/patch.c:39:2: note: in expansion of macro 'set_fixmap'
set_fixmap(fixmap, page_to_phys(page));
^
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/arch/arm/include/asm/fixmap.h:25:29: note: each undeclared identifier is reported only once for each function it appears in
#define FIXMAP_PAGE_COMMON (L_PTE_YOUNG | L_PTE_PRESENT | L_PTE_XN | L_PTE_DIRTY)
^
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/arch/arm/include/asm/fixmap.h:27:29: note: in expansion of macro 'FIXMAP_PAGE_COMMON'
#define FIXMAP_PAGE_NORMAL (FIXMAP_PAGE_COMMON | L_PTE_MT_WRITEBACK)
^
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/include/asm-generic/fixmap.h:64:26: note: in expansion of macro 'FIXMAP_PAGE_NORMAL'
__set_fixmap(idx, phys, FIXMAP_PAGE_NORMAL)
^
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/arch/arm/kernel/patch.c:39:2: note: in expansion of macro 'set_fixmap'
set_fixmap(fixmap, page_to_phys(page));
^
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/arch/arm/include/asm/fixmap.h:25:43: error: 'L_PTE_PRESENT' undeclared (first use in this function)
#define FIXMAP_PAGE_COMMON (L_PTE_YOUNG | L_PTE_PRESENT | L_PTE_XN | L_PTE_DIRTY)
^
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/arch/arm/include/asm/fixmap.h:27:29: note: in expansion of macro 'FIXMAP_PAGE_COMMON'
#define FIXMAP_PAGE_NORMAL (FIXMAP_PAGE_COMMON | L_PTE_MT_WRITEBACK)
^
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/include/asm-generic/fixmap.h:64:26: note: in expansion of macro 'FIXMAP_PAGE_NORMAL'
__set_fixmap(idx, phys, FIXMAP_PAGE_NORMAL)
^
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/arch/arm/kernel/patch.c:39:2: note: in expansion of macro 'set_fixmap'
set_fixmap(fixmap, page_to_phys(page));
^
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/arch/arm/include/asm/fixmap.h:25:59: error: 'L_PTE_XN' undeclared (first use in this function)
#define FIXMAP_PAGE_COMMON (L_PTE_YOUNG | L_PTE_PRESENT | L_PTE_XN | L_PTE_DIRTY)
^
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/arch/arm/include/asm/fixmap.h:27:29: note: in expansion of macro 'FIXMAP_PAGE_COMMON'
#define FIXMAP_PAGE_NORMAL (FIXMAP_PAGE_COMMON | L_PTE_MT_WRITEBACK)
^
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/include/asm-generic/fixmap.h:64:26: note: in expansion of macro 'FIXMAP_PAGE_NORMAL'
__set_fixmap(idx, phys, FIXMAP_PAGE_NORMAL)
^
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/arch/arm/kernel/patch.c:39:2: note: in expansion of macro 'set_fixmap'
set_fixmap(fixmap, page_to_phys(page));
^
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/arch/arm/include/asm/fixmap.h:25:70: error: 'L_PTE_DIRTY' undeclared (first use in this function)
#define FIXMAP_PAGE_COMMON (L_PTE_YOUNG | L_PTE_PRESENT | L_PTE_XN | L_PTE_DIRTY)
^
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/arch/arm/include/asm/fixmap.h:27:29: note: in expansion of macro 'FIXMAP_PAGE_COMMON'
#define FIXMAP_PAGE_NORMAL (FIXMAP_PAGE_COMMON | L_PTE_MT_WRITEBACK)
^
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/include/asm-generic/fixmap.h:64:26: note: in expansion of macro 'FIXMAP_PAGE_NORMAL'
__set_fixmap(idx, phys, FIXMAP_PAGE_NORMAL)
^
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/arch/arm/kernel/patch.c:39:2: note: in expansion of macro 'set_fixmap'
set_fixmap(fixmap, page_to_phys(page));
^
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/arch/arm/include/asm/fixmap.h:27:50: error: 'L_PTE_MT_WRITEBACK' undeclared (first use in this function)
#define FIXMAP_PAGE_NORMAL (FIXMAP_PAGE_COMMON | L_PTE_MT_WRITEBACK)
^
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/include/asm-generic/fixmap.h:64:26: note: in expansion of macro 'FIXMAP_PAGE_NORMAL'
__set_fixmap(idx, phys, FIXMAP_PAGE_NORMAL)
^
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/arch/arm/kernel/patch.c:39:2: note: in expansion of macro 'set_fixmap'
set_fixmap(fixmap, page_to_phys(page));
^
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/scripts/Makefile.build:258: recipe for target 'arch/arm/kernel/patch.o' failed
make[3]: *** [arch/arm/kernel/patch.o] Error 1
/home/max/project/yocto-build/tmp/work-shared/myrpi2/kernel-source/Makefile:959: recipe for target 'arch/arm/kernel' failed
make[2]: *** [arch/arm/kernel] Error 2
make[2]: *** Waiting for unfinished jobs....
CC arch/arm/probes/decode-arm.o
CC arch/arm/probes/kprobes/core.o
CC arch/arm/probes/kprobes/actions-common.o
CC arch/arm/probes/kprobes/checkers-common.o
CC arch/arm/probes/kprobes/actions-arm.o
CC arch/arm/probes/kprobes/checkers-arm.o
CC arch/arm/probes/kprobes/opt-arm.o
LD arch/arm/probes/kprobes/built-in.o
LD arch/arm/probes/built-in.o
Makefile:150: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
Makefile:24: recipe for target '__sub-make' failed
make: *** [__sub-make] Error 2
ERROR: oe_runmake failed
ERROR: Function failed: do_compile (log file is located at /home/max/project/yocto-build/tmp/work/myrpi2-poky-linux-gnueabi/linux-rpi2/4.4.23+gitAUTOINC+844d3dfedc-r0/temp/log.do_compile.5822)
However when I cross compile the kernel manually there is no problem with it.

Related

Cannot instal pg_query 1.3.0 with bundle install, mac M1 latest

I am new to this, I should install everything with bundle install and I am stuck at the pg_query 1.3.0 gem. It seems to show me error
linking shared-object pg_query/pg_query.bundle
ld: library not found for -lpg_query
clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [pg_query.bundle] Error 1`
This is the whole log after bundle install:
Fetching pg_query 1.3.0
Installing pg_query 1.3.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /Users/dominikkrautstengel/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/pg_query-1.3.0/ext/pg_query
/Users/dominikkrautstengel/.rbenv/versions/2.7.2/bin/ruby -I /Users/dominikkrautstengel/.rbenv/versions/2.7.2/lib/ruby/2.7.0 -r
./siteconf20221123-20970-12vwdyo.rb extconf.rb
compiling src/pg_query.c
compiling src/pg_query_fingerprint.c
compiling src/pg_query_json.c
compiling src/pg_query_json_plpgsql.c
compiling src/pg_query_normalize.c
compiling src/pg_query_parse.c
compiling src/pg_query_parse_plpgsql.c
compiling src/postgres/contrib_pgcrypto_sha1.c
compiling src/postgres/src_backend_catalog_namespace.c
compiling src/postgres/src_backend_catalog_pg_proc.c
compiling src/postgres/src_backend_lib_stringinfo.c
compiling src/postgres/src_backend_libpq_pqcomm.c
compiling src/postgres/src_backend_nodes_bitmapset.c
compiling src/postgres/src_backend_nodes_copyfuncs.c
compiling src/postgres/src_backend_nodes_equalfuncs.c
compiling src/postgres/src_backend_nodes_extensible.c
compiling src/postgres/src_backend_nodes_list.c
compiling src/postgres/src_backend_nodes_makefuncs.c
compiling src/postgres/src_backend_nodes_nodeFuncs.c
compiling src/postgres/src_backend_nodes_value.c
compiling src/postgres/src_backend_parser_gram.c
In file included from gram.y:46:
In file included from ./src/postgres/include/postgres.h:47:
In file included from ./src/postgres/include/c.h:1224:
In file included from ./src/postgres/include/port.h:17:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/netdb.h:91:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/netinet/in.h:81:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:425:1: error:
expected ';' after top level declarator
__CCT_DECLARE_CONSTRAINED_PTR_TYPES(struct sockaddr, sockaddr);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/constrained_ctypes.h:587:101:
note: expanded from macro '__CCT_DECLARE_CONSTRAINED_PTR_TYPES'
#define __CCT_DECLARE_CONSTRAINED_PTR_TYPES(basetype, basetag) \
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/constrained_ctypes.h:580:2:
note: expanded from macro '\
__CCT_DECLARE_CONSTRAINED_PTR_TYPE'
__CCT_DISPATCH(__CCT_DECLARE_CONSTRAINED_PTR_TYPE, basetype, basetag, __VA_ARGS__)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/constrained_ctypes.h:548:2:
note: expanded from macro '__CCT_DISPATCH'
__CCT_DISPATCH1(base, __CCT_COUNT_ARGS(__VA_ARGS__), __VA_ARGS__)
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:113:26: note:
expanded from macro '__CONCAT'
#define __CONCAT(x, y) x ## y
^
<scratch space>:415:1: note: expanded from here
__CCT_DECLARE_CONSTRAINED_PTR_TYPE_3
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/constrained_ctypes.h:563:14:
note: expanded from macro '__CCT_DECLARE_CONSTRAINED_PTR_TYPE_3'
__CCT_DEFER(__CONCAT, basetag, __CCT_CONTRACT_LIST_TO_TAGGED_SUFFIX_1(kind))
^
In file included from gram.y:46:
In file included from ./src/postgres/include/postgres.h:47:
In file included from ./src/postgres/include/c.h:1224:
In file included from ./src/postgres/include/port.h:17:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/netdb.h:91:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/netinet/in.h:81:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:425:1: error:
expected ';' after top level declarator
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/constrained_ctypes.h:588:101:
note: expanded from macro '__CCT_DECLARE_CONSTRAINED_PTR_TYPES'
__CCT_DECLARE_CONSTRAINED_PTR_TYPE(basetype, basetag, REF); \
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/constrained_ctypes.h:580:2:
note: expanded from macro '\
__CCT_DECLARE_CONSTRAINED_PTR_TYPE'
__CCT_DISPATCH(__CCT_DECLARE_CONSTRAINED_PTR_TYPE, basetype, basetag, __VA_ARGS__)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/constrained_ctypes.h:548:2:
note: expanded from macro '__CCT_DISPATCH'
__CCT_DISPATCH1(base, __CCT_COUNT_ARGS(__VA_ARGS__), __VA_ARGS__)
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:113:26: note:
expanded from macro '__CONCAT'
#define __CONCAT(x, y) x ## y
^
<scratch space>:420:1: note: expanded from here
__CCT_DECLARE_CONSTRAINED_PTR_TYPE_4
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/constrained_ctypes.h:567:11:
note: expanded from macro '__CCT_DECLARE_CONSTRAINED_PTR_TYPE_4'
* __CCT_CONTRACT_TO_ATTR(kind2) \
^
In file included from gram.y:46:
In file included from ./src/postgres/include/postgres.h:47:
In file included from ./src/postgres/include/c.h:1224:
In file included from ./src/postgres/include/port.h:17:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/netdb.h:91:
In file included from
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/netinet/in.h:81:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/socket.h:471:1: error:
typedef redefinition with different types ('struct sockaddr_storage *' vs 'struct sockaddr *')
__CCT_DECLARE_CONSTRAINED_PTR_TYPES(struct sockaddr_storage, sockaddr_storage);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/constrained_ctypes.h:587:101:
note: expanded from macro '__CCT_DECLARE_CONSTRAINED_PTR_TYPES'
#define __CCT_DECLARE_CONSTRAINED_PTR_TYPES(basetype, basetag) \
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/constrained_ctypes.h:580:2:
note: expanded from macro '\
__CCT_DECLARE_CONSTRAINED_PTR_TYPE'
__CCT_DISPATCH(__CCT_DECLARE_CONSTRAINED_PTR_TYPE, basetype, basetag, __VA_ARGS__)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/constrained_ctypes.h:548:2:
note: expanded from macro '__CCT_DISPATCH'
__CCT_DISPATCH1(base, __CCT_COUNT_ARGS(__VA_ARGS__), __VA_ARGS__)
^
note: (skipping 4 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/constrained_ctypes.h:540:38:
note: expanded from macro '__CCT_CONTRACT_TO_ATTR'
#define __CCT_CONTRACT_TO_ATTR(kind) __CONCAT(__CCT_CONTRACT_ATTR_, kind)
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:113:26: note:
expanded from macro '__CONCAT'
#define __CONCAT(x, y) x ## y
pg_query_ruby.c:63:41: warning: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts
[-Wcompound-token-split-by-macro]
cPgQuery = rb_const_get(rb_cObject, rb_intern("PgQuery"));
^~~~~~~~~~~~~~~~~~~~
/Users/dominikkrautstengel/.rbenv/versions/2.7.2/include/ruby-2.7.0/ruby/ruby.h:1847:24: note: expanded from macro 'rb_intern'
__extension__ (RUBY_CONST_ID_CACHE((ID), (str))) : \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/dominikkrautstengel/.rbenv/versions/2.7.2/include/ruby-2.7.0/ruby/ruby.h:1837:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
}
^
pg_query_ruby.c:63:41: note: ')' token is here
cPgQuery = rb_const_get(rb_cObject, rb_intern("PgQuery"));
^~~~~~~~~~~~~~~~~~~~
/Users/dominikkrautstengel/.rbenv/versions/2.7.2/include/ruby-2.7.0/ruby/ruby.h:1847:56: note: expanded from macro 'rb_intern'
__extension__ (RUBY_CONST_ID_CACHE((ID), (str))) : \
^
pg_query_ruby.c:64:42: warning: '(' and '{' tokens introducing statement expression appear in different macro expansion contexts
[-Wcompound-token-split-by-macro]
cParseError = rb_const_get_at(cPgQuery, rb_intern("ParseError"));
^~~~~~~~~~~~~~~~~~~~~~~
/Users/dominikkrautstengel/.rbenv/versions/2.7.2/include/ruby-2.7.0/ruby/ruby.h:1847:23: note: expanded from macro 'rb_intern'
__extension__ (RUBY_CONST_ID_CACHE((ID), (str))) : \
^
pg_query_ruby.c:64:42: note: '{' token is here
cParseError = rb_const_get_at(cPgQuery, rb_intern("ParseError"));
^~~~~~~~~~~~~~~~~~~~~~~
/Users/dominikkrautstengel/.rbenv/versions/2.7.2/include/ruby-2.7.0/ruby/ruby.h:1847:24: note: expanded from macro 'rb_intern'
__extension__ (RUBY_CONST_ID_CACHE((ID), (str))) : \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/dominikkrautstengel/.rbenv/versions/2.7.2/include/ruby-2.7.0/ruby/ruby.h:1832:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
{ \
^
pg_query_ruby.c:64:42: warning: '}' and ')' tokens terminating statement expression appear in different macro expansion contexts
[-Wcompound-token-split-by-macro]
cParseError = rb_const_get_at(cPgQuery, rb_intern("ParseError"));
^~~~~~~~~~~~~~~~~~~~~~~
/Users/dominikkrautstengel/.rbenv/versions/2.7.2/include/ruby-2.7.0/ruby/ruby.h:1847:24: note: expanded from macro 'rb_intern'
__extension__ (RUBY_CONST_ID_CACHE((ID), (str))) : \
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/dominikkrautstengel/.rbenv/versions/2.7.2/include/ruby-2.7.0/ruby/ruby.h:1837:5: note: expanded from macro 'RUBY_CONST_ID_CACHE'
}
^
pg_query_ruby.c:64:42: note: ')' token is here
cParseError = rb_const_get_at(cPgQuery, rb_intern("ParseError"));
^~~~~~~~~~~~~~~~~~~~~~~
/Users/dominikkrautstengel/.rbenv/versions/2.7.2/include/ruby-2.7.0/ruby/ruby.h:1847:56: note: expanded from macro 'rb_intern'
__extension__ (RUBY_CONST_ID_CACHE((ID), (str))) : \
^
pg_query_ruby.c:59:1: warning: function 'raise_ruby_fingerprint_error' could be declared with attribute 'noreturn' [-Wmissing-noreturn]
{
^
17 warnings generated.
linking shared-object pg_query/pg_query.bundle
ld: library not found for -lpg_query
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [pg_query.bundle] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/dominikkrautstengel/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/pg_query-1.3.0 for inspection.
Results logged to
/Users/dominikkrautstengel/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/extensions/arm64-darwin-22/2.7.0/pg_query-1.3.0/gem_make.out
An error occurred while installing pg_query (1.3.0), and Bundler cannot continue.
Make sure that `gem install pg_query -v '1.3.0'` succeeds before bundling.
In Gemfile:
prosopite was resolved to 0.2.1, which depends on
pg_query
I have latest Xcode installed and Command Line Tools also. But as I said, I do not understand any of this, this is just my assignment to be able to run on local.

make: *** [Makefile:223: v8js_array_access.lo] Error 1

I followed this link to compile v8 and v8js but when I executed make to compile v8js it showed this log and this error:
/bin/bash /tmp/v8js/libtool --mode=compile g++ -I. -I/tmp/v8js -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20200930 -I/usr/include/php/20200930/main -I/usr/include/php/20200930/TSRM -I/usr/include/php/20200930/Zend -I/usr/include/php/20200930/ext -I/usr/include/php/20200930/ext/date/lib -I/opt/v8/include -I/opt/v8 -DV8_COMPRESS_POINTERS -DHAVE_CONFIG_H -g -O2 -Wno-narrowing -std=c++14 -c /tmp/v8js/v8js_array_access.cc -o v8js_array_access.lo
libtool: compile: g++ -I. -I/tmp/v8js -I/tmp/v8js/include -I/tmp/v8js/main -I/tmp/v8js -I/usr/include/php/20200930 -I/usr/include/php/20200930/main -I/usr/include/php/20200930/TSRM -I/usr/include/php/20200930/Zend -I/usr/include/php/20200930/ext -I/usr/include/php/20200930/ext/date/lib -I/opt/v8/include -I/opt/v8 -DV8_COMPRESS_POINTERS -DHAVE_CONFIG_H -g -O2 -Wno-narrowing -std=c++14 -c /tmp/v8js/v8js_array_access.cc -fPIC -DPIC -o .libs/v8js_array_access.o
In file included from /usr/include/dirent.h:245,
from /usr/include/php/20200930/Zend/zend_virtual_cwd.h:89,
from /usr/include/php/20200930/main/php.h:437,
from /tmp/v8js/php_v8js_macros.h:45,
from /tmp/v8js/v8js_array_access.cc:17:
/tmp/v8js/v8js_class.h: In function ‘v8js_ctx* v8js_ctx_fetch_object(zend_object*)’:
/tmp/v8js/v8js_class.h:83:54: warning: ‘offsetof’ within non-standard-layout type ‘v8js_ctx’ is conditionally-supported [-Winvalid-offsetof]
83 | return (struct v8js_ctx *)((char *)obj - XtOffsetOf(struct v8js_ctx, std));
/tmp/v8js/v8js_class.h:83:43: note: in expansion of macro ‘XtOffsetOf’
83 | return (struct v8js_ctx *)((char *)obj - XtOffsetOf(struct v8js_ctx, std));
| ^~~~~~~~~~
/tmp/v8js/v8js_array_access.cc: In function ‘zval v8js_array_access_dispatch(zend_object*, const char*, int, uint32_t, zval)’:
/tmp/v8js/v8js_array_access.cc:53:6: error: ‘zend_fcall_info’ {aka ‘struct _zend_fcall_info’} has no member named ‘no_separation’
53 | fci.no_separation = 0;
| ^~~~~~~~~~~~~
/tmp/v8js/v8js_array_access.cc: In function ‘void v8js_array_access_enumerator(const v8::PropertyCallbackInfo<v8::Array>&)’:
/tmp/v8js/v8js_array_access.cc:213:74: warning: ignoring return value of ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’, declared with attribute ‘warn_unused_result’ [-Wunused-result]
213 | esult->Set(isolate->GetEnteredOrMicrotaskContext(), i ++, V8JS_INT(j));
| ^
In file included from /tmp/v8js/php_v8js_macros.h:55,
from /tmp/v8js/v8js_array_access.cc:17:
/opt/v8/include/v8.h:3943:37: note: declared here
3943 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
| ^~~
/tmp/v8js/v8js_array_access.cc:217:86: warning: ignoring return value of ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’, declared with attribute ‘warn_unused_result’ [-Wunused-result]
217 | late->GetEnteredOrMicrotaskContext(), V8JS_SYM("length"), V8JS_INT(i));
| ^
In file included from /tmp/v8js/php_v8js_macros.h:55,
from /tmp/v8js/v8js_array_access.cc:17:
/opt/v8/include/v8.h:3940:37: note: declared here
3940 | V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
| ^~~
/tmp/v8js/v8js_array_access.cc: In function ‘void v8js_array_access_named_getter(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&)’:
/tmp/v8js/v8js_array_access.cc:253:83: warning: ignoring return value of ‘bool v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) const [with S = v8::Value; T = v8::Value]’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
253 | t(isolate->GetEnteredOrMicrotaskContext(), property).ToLocal(&ret_value);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
make: *** [Makefile:223: v8js_array_access.lo] Error 1
My PHP version: 8.0.5

Installing Kannel SMS gateway1.5.0 on Ubuntu 20.04.1

I was able to compiled the gateway but I got the error below running the make command.
gcc -D_REENTRANT=1 -I. -Igw -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/mysql -o gwlib/dbpool.o -c gwlib/dbpool.c
In file included from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
from /usr/include/stdlib.h:25,
from gwlib/gwlib.h:70,
from gwlib/dbpool.c:70:
/usr/include/features.h:187:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
187 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
In file included from gwlib/gwlib.h:83,
from gwlib/dbpool.c:70:
gwlib/dbpool_mysql.c: In function ‘mysql_select’:
gwlib/dbpool_mysql.c:224:48: error: ‘my_bool’ undeclared (first use in this function); did you mean ‘xr_bool’?
224 | bind[i].is_null = gw_malloc(sizeof(my_bool));
gwlib/gwmem.h:122:43: note: in definition of macro ‘gw_malloc’
122 | #define gw_malloc(size) (gw_native_malloc(size))|
gwlib/dbpool_mysql.c:224:48: note: each undeclared identifier is reported only once for each function it appears in
224 | bind[i].is_null = gw_malloc(sizeof(my_bool));
gwlib/gwmem.h:122:43: note: in definition of macro ‘gw_malloc’
122 | #define gw_malloc(size) (gw_native_malloc(size))
make: *** [Makefile:230: gwlib/dbpool.o] Error 1`
This error comes when you're compiling with mysql 8
To fix this, add these lines to gwlib/dbpool_mysql.c
/* define my_bool for newer versions because they use the bool or int C type instead */
#if MYSQL_VERSION_ID >= 80000 && !defined(MARIADB_BASE_VERSION)
typedef bool my_bool;
#endif

How to compile NuSMV 2.6.0 from source

I am trying to compile the software NuSMV 2.6.0 from source.
I clone the repo https://github.com/hklarner/NuSMV-a
I follow instructions in README.md:
cd NuSMV-2.6.0/NuSMV/
mkdir build
cd build
cmake ..
make
but I get the following error:
[ 16%] Building C object build-cudd/util/CMakeFiles/CUDD_UTIL_LIB.dir/getopt.c.o
[ 16%] Building C object build-cudd/util/CMakeFiles/CUDD_UTIL_LIB.dir/safe_mem.c.o
[ 16%] Building C object build-cudd/util/CMakeFiles/CUDD_UTIL_LIB.dir/strsav.c.o
[ 16%] Building C object build-cudd/util/CMakeFiles/CUDD_UTIL_LIB.dir/texpand.c.o
[ 17%] Building C object build-cudd/util/CMakeFiles/CUDD_UTIL_LIB.dir/ptime.c.o
[ 17%] Building C object build-cudd/util/CMakeFiles/CUDD_UTIL_LIB.dir/prtime.c.o
[ 17%] Building C object build-cudd/util/CMakeFiles/CUDD_UTIL_LIB.dir/pipefork.c.o
NuSMV-a/NuSMV-2.6.0/cudd-2.4.1.1/util/pipefork.c: In function ‘util_pipefork’:
NuSMV-a/NuSMV-2.6.0/cudd-2.4.1.1/util/pipefork.c:46:16: error: storage size of ‘status’ isn’t known
46 | union wait status;
| ^~~~~~
NuSMV-a/NuSMV-2.6.0/cudd-2.4.1.1/util/pipefork.c:53:12: warning: implicit declaration of function ‘pipe’ [-Wimplicit-function-declaration]
53 | (void) pipe(topipe);
| ^~~~
NuSMV-a/NuSMV-2.6.0/cudd-2.4.1.1/util/pipefork.c:59:20: warning: implicit declaration of function ‘vfork’ [-Wimplicit-function-declaration]
59 | if ((forkpid = vfork()) == 0) {
| ^~~~~
NuSMV-a/NuSMV-2.6.0/cudd-2.4.1.1/util/pipefork.c:62:9: warning: implicit declaration of function ‘dup2’ [-Wimplicit-function-declaration]
62 | (void) dup2(topipe[0], fileno(stdin));
| ^~~~
NuSMV-a/NuSMV-2.6.0/cudd-2.4.1.1/util/pipefork.c:65:9: warning: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Wimplicit-function-declaration]
65 | (void) close(topipe[0]);
| ^~~~~
| pclose
NuSMV-a/NuSMV-2.6.0/cudd-2.4.1.1/util/pipefork.c:70:9: warning: implicit declaration of function ‘execvp’ [-Wimplicit-function-declaration]
70 | (void) execvp(argv[0], argv);
| ^~~~~~
NuSMV-a/NuSMV-2.6.0/cudd-2.4.1.1/util/pipefork.c:73:9: warning: implicit declaration of function ‘_exit’ [-Wimplicit-function-declaration]
73 | (void) _exit(1);
| ^~~~~
NuSMV-a/NuSMV-2.6.0/cudd-2.4.1.1/util/pipefork.c:73:9: warning: incompatible implicit declaration of built-in function ‘_exit’
make[2]: *** [build-cudd/util/CMakeFiles/CUDD_UTIL_LIB.dir/build.make:167: build-cudd/util/CMakeFiles/CUDD_UTIL_LIB.dir/pipefork.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2174: build-cudd/util/CMakeFiles/CUDD_UTIL_LIB.dir/all] Error 2
I am on Ubuntu 20.04 LTS. I have no idea what I could do to fix this. It used to work.
Can anyone help?

Xcode update & gem install glib2

My development stack has been completely turned upside down since I've done the Apple last update of March 11, 2014, and I try to fix it bit by bit. Right now I'm stuck with the following error when I try to install the gem glib2:
$ gem install glib2
Building native extensions. This could take a while...
ERROR: Error installing glib2:
ERROR: Failed to build gem native extension.
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/bin/ruby extconf.rb
checking for -Wall option to compiler... yes
checking for -Waggregate-return option to compiler... yes
checking for -Wcast-align option to compiler... yes
checking for -Wextra option to compiler... yes
checking for -Wformat=2 option to compiler... yes
checking for -Winit-self option to compiler... yes
checking for -Wlarger-than-65500 option to compiler... yes
checking for -Wmissing-declarations option to compiler... yes
checking for -Wmissing-format-attribute option to compiler... yes
checking for -Wmissing-include-dirs option to compiler... yes
checking for -Wmissing-noreturn option to compiler... yes
checking for -Wmissing-prototypes option to compiler... yes
checking for -Wnested-externs option to compiler... yes
checking for -Wold-style-definition option to compiler... yes
checking for -Wpacked option to compiler... yes
checking for -Wp,-D_FORTIFY_SOURCE=2 option to compiler... yes
checking for -Wpointer-arith option to compiler... yes
checking for -Wswitch-default option to compiler... yes
checking for -Wswitch-enum option to compiler... yes
checking for -Wundef option to compiler... yes
checking for -Wunsafe-loop-optimizations option to compiler... yes
checking for -Wwrite-strings option to compiler... yes
checking for rb_define_alloc_func() in ruby.h... yes
checking for rb_block_proc() in ruby.h... yes
checking for new allocation framework... yes
checking for attribute assignment... no
checking for Win32 OS... no
checking for gobject-2.0 version (>= 2.12.0)... yes
checking for gthread-2.0... yes
checking for unistd.h... yes
checking for io.h... no
checking for g_spawn_close_pid() in glib.h... no
checking for g_thread_init() in glib.h... no
checking for g_main_depth() in glib.h... no
checking for g_listenv() in glib.h... no
checking for rb_check_array_type() in ruby.h... no
checking for rb_check_hash_type() in ruby.h... no
checking for rb_exec_recursive() in ruby.h... no
checking for rb_errinfo() in ruby.h... no
checking for rb_sourcefile() in ruby.h... no
checking for rb_sourceline() in ruby.h... no
checking for ruby_set_current_source() in ruby.h... no
checking for rb_thread_blocking_region() in ruby.h... no
checking for ruby_native_thread_p() in ruby.h... no
checking for rb_thread_call_with_gvl() in ruby.h... no
checking for rb_str_new_cstr() in ruby.h... no
checking for rb_gc_register_mark_object() in ruby.h... no
checking for rb_exc_new_str() in ruby.h... no
checking for curr_thread in ruby.h,node.h... no
checking for rb_curr_thread in ruby.h,node.h... no
creating ruby-glib2.pc
creating glib-enum-types.c
creating glib-enum-types.h
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling glib-enum-types.c
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wout-of-line-declaration'? [-Wunknown-warning-option]
1 warning generated.
compiling rbglib.c
warning: unknown warning option '-Wunsafe-loop-optimizations'; did you mean '-Wout-of-line-declaration'? [-Wunknown-warning-option]
In file included from rbglib.c:23:
./rbgprivate.h:33:11: warning: 'rb_str_new_cstr' macro redefined
# define rb_str_new_cstr(c_string) rb_str_new2(c_string)
^
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/ruby/intern.h:758:9: note: previous definition is here
#define rb_str_new_cstr(str) __extension__ ( \
^
rbglib.c:349:18: error: use of undeclared identifier 'ruby_errinfo'; did you mean 'rb_errinfo'?
rb_exc_raise(rb_errinfo());
^
./rbgprivate.h:29:25: note: expanded from macro 'rb_errinfo'
# define rb_errinfo() (ruby_errinfo)
^
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/ruby/ruby.h:579:7: note: 'rb_errinfo' declared here
VALUE rb_errinfo(void);
^
rbglib.c:349:18: warning: incompatible pointer to integer conversion passing 'VALUE (void)' to parameter of type 'VALUE' (aka 'unsigned long') [-Wint-conversion]
rb_exc_raise(rb_errinfo());
^~~~~~~~~~~~
./rbgprivate.h:29:24: note: expanded from macro 'rb_errinfo'
# define rb_errinfo() (ruby_errinfo)
^~~~~~~~~~~~~~
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/ruby/intern.h:343:33: note: passing argument to parameter here
NORETURN(void rb_exc_raise(VALUE));
^
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/x86_64-darwin13.1.0/ruby/config.h:91:48: note: expanded from macro 'NORETURN'
#define NORETURN(x) __attribute__ ((noreturn)) x
^
rbglib.c:406:18: error: use of undeclared identifier 'ruby_errinfo'; did you mean 'rb_errinfo'?
rb_exc_raise(rb_errinfo());
^
./rbgprivate.h:29:25: note: expanded from macro 'rb_errinfo'
# define rb_errinfo() (ruby_errinfo)
^
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/ruby/ruby.h:579:7: note: 'rb_errinfo' declared here
VALUE rb_errinfo(void);
^
rbglib.c:406:18: warning: incompatible pointer to integer conversion passing 'VALUE (void)' to parameter of type 'VALUE' (aka 'unsigned long') [-Wint-conversion]
rb_exc_raise(rb_errinfo());
^~~~~~~~~~~~
./rbgprivate.h:29:24: note: expanded from macro 'rb_errinfo'
# define rb_errinfo() (ruby_errinfo)
^~~~~~~~~~~~~~
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/ruby/intern.h:343:33: note: passing argument to parameter here
NORETURN(void rb_exc_raise(VALUE));
^
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/x86_64-darwin13.1.0/ruby/config.h:91:48: note: expanded from macro 'NORETURN'
#define NORETURN(x) __attribute__ ((noreturn)) x
^
rbglib.c:499:18: error: use of undeclared identifier 'ruby_errinfo'; did you mean 'rb_errinfo'?
rb_exc_raise(rb_errinfo());
^
./rbgprivate.h:29:25: note: expanded from macro 'rb_errinfo'
# define rb_errinfo() (ruby_errinfo)
^
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/ruby/ruby.h:579:7: note: 'rb_errinfo' declared here
VALUE rb_errinfo(void);
^
rbglib.c:499:18: warning: incompatible pointer to integer conversion passing 'VALUE (void)' to parameter of type 'VALUE' (aka 'unsigned long') [-Wint-conversion]
rb_exc_raise(rb_errinfo());
^~~~~~~~~~~~
./rbgprivate.h:29:24: note: expanded from macro 'rb_errinfo'
# define rb_errinfo() (ruby_errinfo)
^~~~~~~~~~~~~~
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/ruby/intern.h:343:33: note: passing argument to parameter here
NORETURN(void rb_exc_raise(VALUE));
^
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/x86_64-darwin13.1.0/ruby/config.h:91:48: note: expanded from macro 'NORETURN'
#define NORETURN(x) __attribute__ ((noreturn)) x
^
rbglib.c:542:18: error: use of undeclared identifier 'ruby_errinfo'; did you mean 'rb_errinfo'?
rb_exc_raise(rb_errinfo());
^
./rbgprivate.h:29:25: note: expanded from macro 'rb_errinfo'
# define rb_errinfo() (ruby_errinfo)
^
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/ruby/ruby.h:579:7: note: 'rb_errinfo' declared here
VALUE rb_errinfo(void);
^
rbglib.c:542:18: warning: incompatible pointer to integer conversion passing 'VALUE (void)' to parameter of type 'VALUE' (aka 'unsigned long') [-Wint-conversion]
rb_exc_raise(rb_errinfo());
^~~~~~~~~~~~
./rbgprivate.h:29:24: note: expanded from macro 'rb_errinfo'
# define rb_errinfo() (ruby_errinfo)
^~~~~~~~~~~~~~
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/ruby/intern.h:343:33: note: passing argument to parameter here
NORETURN(void rb_exc_raise(VALUE));
^
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/x86_64-darwin13.1.0/ruby/config.h:91:48: note: expanded from macro 'NORETURN'
#define NORETURN(x) __attribute__ ((noreturn)) x
^
rbglib.c:585:18: error: use of undeclared identifier 'ruby_errinfo'; did you mean 'rb_errinfo'?
rb_exc_raise(rb_errinfo());
^
./rbgprivate.h:29:25: note: expanded from macro 'rb_errinfo'
# define rb_errinfo() (ruby_errinfo)
^
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/ruby/ruby.h:579:7: note: 'rb_errinfo' declared here
VALUE rb_errinfo(void);
^
rbglib.c:585:18: warning: incompatible pointer to integer conversion passing 'VALUE (void)' to parameter of type 'VALUE' (aka 'unsigned long') [-Wint-conversion]
rb_exc_raise(rb_errinfo());
^~~~~~~~~~~~
./rbgprivate.h:29:24: note: expanded from macro 'rb_errinfo'
# define rb_errinfo() (ruby_errinfo)
^~~~~~~~~~~~~~
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/ruby/intern.h:343:33: note: passing argument to parameter here
NORETURN(void rb_exc_raise(VALUE));
^
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/x86_64-darwin13.1.0/ruby/config.h:91:48: note: expanded from macro 'NORETURN'
#define NORETURN(x) __attribute__ ((noreturn)) x
^
rbglib.c:628:18: error: use of undeclared identifier 'ruby_errinfo'; did you mean 'rb_errinfo'?
rb_exc_raise(rb_errinfo());
^
./rbgprivate.h:29:25: note: expanded from macro 'rb_errinfo'
# define rb_errinfo() (ruby_errinfo)
^
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/ruby/ruby.h:579:7: note: 'rb_errinfo' declared here
VALUE rb_errinfo(void);
^
rbglib.c:628:18: warning: incompatible pointer to integer conversion passing 'VALUE (void)' to parameter of type 'VALUE' (aka 'unsigned long') [-Wint-conversion]
rb_exc_raise(rb_errinfo());
^~~~~~~~~~~~
./rbgprivate.h:29:24: note: expanded from macro 'rb_errinfo'
# define rb_errinfo() (ruby_errinfo)
^~~~~~~~~~~~~~
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/ruby/intern.h:343:33: note: passing argument to parameter here
NORETURN(void rb_exc_raise(VALUE));
^
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/x86_64-darwin13.1.0/ruby/config.h:91:48: note: expanded from macro 'NORETURN'
#define NORETURN(x) __attribute__ ((noreturn)) x
^
rbglib.c:671:18: error: use of undeclared identifier 'ruby_errinfo'; did you mean 'rb_errinfo'?
rb_exc_raise(rb_errinfo());
^
./rbgprivate.h:29:25: note: expanded from macro 'rb_errinfo'
# define rb_errinfo() (ruby_errinfo)
^
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/ruby/ruby.h:579:7: note: 'rb_errinfo' declared here
VALUE rb_errinfo(void);
^
rbglib.c:671:18: warning: incompatible pointer to integer conversion passing 'VALUE (void)' to parameter of type 'VALUE' (aka 'unsigned long') [-Wint-conversion]
rb_exc_raise(rb_errinfo());
^~~~~~~~~~~~
./rbgprivate.h:29:24: note: expanded from macro 'rb_errinfo'
# define rb_errinfo() (ruby_errinfo)
^~~~~~~~~~~~~~
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/ruby/intern.h:343:33: note: passing argument to parameter here
NORETURN(void rb_exc_raise(VALUE));
^
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/x86_64-darwin13.1.0/ruby/config.h:91:48: note: expanded from macro 'NORETURN'
#define NORETURN(x) __attribute__ ((noreturn)) x
^
rbglib.c:714:18: error: use of undeclared identifier 'ruby_errinfo'; did you mean 'rb_errinfo'?
rb_exc_raise(rb_errinfo());
^
./rbgprivate.h:29:25: note: expanded from macro 'rb_errinfo'
# define rb_errinfo() (ruby_errinfo)
^
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/ruby/ruby.h:579:7: note: 'rb_errinfo' declared here
VALUE rb_errinfo(void);
^
rbglib.c:714:18: warning: incompatible pointer to integer conversion passing 'VALUE (void)' to parameter of type 'VALUE' (aka 'unsigned long') [-Wint-conversion]
rb_exc_raise(rb_errinfo());
^~~~~~~~~~~~
./rbgprivate.h:29:24: note: expanded from macro 'rb_errinfo'
# define rb_errinfo() (ruby_errinfo)
^~~~~~~~~~~~~~
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/ruby/intern.h:343:33: note: passing argument to parameter here
NORETURN(void rb_exc_raise(VALUE));
^
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/x86_64-darwin13.1.0/ruby/config.h:91:48: note: expanded from macro 'NORETURN'
#define NORETURN(x) __attribute__ ((noreturn)) x
^
rbglib.c:757:18: error: use of undeclared identifier 'ruby_errinfo'; did you mean 'rb_errinfo'?
rb_exc_raise(rb_errinfo());
^
./rbgprivate.h:29:25: note: expanded from macro 'rb_errinfo'
# define rb_errinfo() (ruby_errinfo)
^
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/ruby/ruby.h:579:7: note: 'rb_errinfo' declared here
VALUE rb_errinfo(void);
^
rbglib.c:757:18: warning: incompatible pointer to integer conversion passing 'VALUE (void)' to parameter of type 'VALUE' (aka 'unsigned long') [-Wint-conversion]
rb_exc_raise(rb_errinfo());
^~~~~~~~~~~~
./rbgprivate.h:29:24: note: expanded from macro 'rb_errinfo'
# define rb_errinfo() (ruby_errinfo)
^~~~~~~~~~~~~~
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/ruby/intern.h:343:33: note: passing argument to parameter here
NORETURN(void rb_exc_raise(VALUE));
^
/Users/ymesserl/.rvm/rubies/ruby-2.0.0-p451/include/ruby-2.0.0/x86_64-darwin13.1.0/ruby/config.h:91:48: note: expanded from macro 'NORETURN'
#define NORETURN(x) __attribute__ ((noreturn)) x
^
11 warnings and 9 errors generated.
make: *** [rbglib.o] Error 1
make failed, exit code 2
Here is the ruby versions I tried to use (got same errors for all of them):
$ rvm list
rvm rubies
ruby-1.9.3-p448 [ x86_64 ]
ruby-2.0.0-p247 [ x86_64 ]
=* ruby-2.0.0-p451 [ x86_64 ]
# => - current
# =* - current && default
# * - default
Here is the specific version of gcc it tries to use:
$ gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
gtk+ is installed:
$ brew install gtk+
Warning: gtk+-2.24.22 already installed
Any idea how I could install my gem? Thanks
I solved my problem by removing all my homebrew packages and installing them with macports. Especially the gem that needed glib2 (causing the error) was rsvg2, so I solved the problem by reinstalling:
sudo port install ImageMagick
sudo port install librsvg
And then I could install my gems

Resources