Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R2DIR error in configuration on PowerPC Mac #22801

Open
armdn opened this issue Apr 5, 2024 · 9 comments
Open

R2DIR error in configuration on PowerPC Mac #22801

armdn opened this issue Apr 5, 2024 · 9 comments

Comments

@armdn
Copy link

armdn commented Apr 5, 2024

Environment

Mac OS X 10.4.11 Tiger
Darwin Kernel Version 8.11.1: Wed Oct 10 18:24:42 PDT 2007; root:xnu-792.25.20~1/RELEASE_PPC Power Macintosh powerpc
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc/7.3.0/libexec/gcc/powerpc-apple-darwin8.11.0/7.3.0/lto-wrapper
Target: powerpc-apple-darwin8.11.0
Configured with: ../configure --build=powerpc-apple-darwin8.11.0 --prefix=/usr/local/Cellar/gcc/7.3.0 --libdir=/usr/local/Cellar/gcc/7.3.0/lib/gcc/7 --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-7 --with-gmp=/usr/local/opt/gmp --with-mpfr=/usr/local/opt/mpfr --with-mpc=/usr/local/opt/libmpc --with-isl=/usr/local/opt/isl --with-system-zlib --enable-checking=release --with-pkgversion='Tigerbrew gcc 7.3.0' --with-bugurl=https://github.com/mistydemeo/tigerbrew/issues --with-dwarf2 --disable-nls --disable-multilib
Thread model: posix
gcc version 7.3.0 (Tigerbrew gcc 7.3.0) 

Description

Building failed during configuration process.

Test

sys/install.sh                                       
/Users/armdn/Sources/radare2
WARNING: Updating from remote repository
remote: Enumerating objects: 37, done.
remote: Counting objects: 100% (37/37), done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 24 (delta 20), reused 17 (delta 15), pack-reused 0
Unpacking objects: 100% (24/24), 2.41 KiB | 10.00 KiB/s, done.
From https://github.com/radareorg/radare2
 * branch                  master     -> FETCH_HEAD
   a543e966a1..46f459fd61  master     -> origin/master
Updating a543e966a1..46f459fd61
Fast-forward
 libr/core/cmd.c       | 13 ++++++++++++-
 libr/core/rtr.c       |  2 +-
 libr/core/visual.c    | 32 +++++++++++++++++---------------
 libr/io/p/io_ptrace.c |  7 +++++--
 libr/reg/rvalue.c     |  4 ++--
 libr/socket/socket.c  |  7 ++++---
 6 files changed, 41 insertions(+), 24 deletions(-)
Warning: Cannot find system wide capstone
[*] Finding make is /usr/bin/make OK
[*] Checking out capstone... ARGS=
/usr/local/bin/zsh ./sys/build.sh
/Users/armdn/Sources/radare2
/Users/armdn/Sources/radare2
./configure --prefix=/usr/local
configure-plugins: Copying dist/plugins-cfg/plugins.def.cfg
configure-plugins: Loading ./plugins.cfg ..
configure-plugins: Generating libr/config.h
configure-plugins: Generating libr/asm/d/config.inc
configure-plugins: Generating libr/config.mk
SHARED: io.shm
STATIC: anal.a2f anal.null arch.6502 arch.6502_cs arch.8051 arch.alpha arch.amd29k arch.any_as arch.any_vasm arch.arc arch.arm arch.arm_cs arch.arm_gnu arch.arm_v35 arch.avr arch.bf arch.bpf arch.bpf_cs arch.chip8 arch.cr16 arch.cris arch.dalvik arch.dis arch.ebc arch.evm arch.fslsp arch.gb arch.h8300 arch.hppa_gnu arch.i4004 arch.i8080 arch.java arch.jdh8 arch.kvx arch.lanai arch.lh5801 arch.lm32 arch.loongarch_gnu arch.lua arch.m680x_cs arch.m68k_cs arch.m68k_gnu arch.mcore arch.mcs96 arch.mips_cs arch.mips_gnu arch.msp430 arch.nds32 arch.nios2 arch.null arch.or1k arch.pdp11 arch.pic arch.pickle arch.ppc_cs arch.ppc_gnu arch.propeller arch.pyc arch.riscv arch.riscv_cs arch.rsp arch.s390_cs arch.s390_gnu arch.sh arch.sh_cs arch.sm5xx arch.snes arch.sparc_cs arch.sparc_gnu arch.tms320 arch.tricore arch.tricore_cs arch.v810 arch.v850 arch.vax arch.wasm arch.ws arch.x86_cs arch.x86_nasm arch.x86_nz arch.xap arch.xcore_cs arch.xtensa arch.z80 asm.null bin.any bin.art bin.avr bin.bf bin.bflt bin.bios bin.bootimg bin.cgc bin.coff bin.dex bin.dis bin.dmp64 bin.dol bin.dyldcache bin.elf bin.elf64 bin.fs bin.hunk bin.io bin.java bin.le bin.lua bin.mach0 bin.mach064 bin.mbn bin.mdmp bin.menuet bin.msx bin.mz bin.ne bin.nes bin.nin3ds bin.ninds bin.ningb bin.ningba bin.nro bin.nso bin.off bin.omf bin.p9 bin.pcap bin.pdp11 bin.pe bin.pe64 bin.pebble bin.prg bin.psxexe bin.pyc bin.qnx bin.rel bin.s390 bin.sfc bin.smd bin.sms bin.symbols bin.te bin.tic bin.vsf bin.wad bin.wasm bin.xbe bin.xcoff64 bin.xnu_kernelcache bin.xtac bin.z64 bin.zimg bin_ldr.ldr_linux bin_xtr.xtr_dyldcache bin_xtr.xtr_fatmach0 bin_xtr.xtr_pemixed bin_xtr.xtr_sep64 bin_xtr.xtr_xalz bp.arm bp.bf bp.mips bp.null bp.ppc bp.riscv bp.x86 core.a2f core.agD core.java core.sixref crypto.aes crypto.aes_cbc crypto.aes_wrap crypto.base64 crypto.base91 crypto.blowfish crypto.cps2 crypto.des crypto.entropy crypto.punycode crypto.rc2 crypto.rc4 crypto.rc6 crypto.rol crypto.ror crypto.rot crypto.serpent crypto.sm4 crypto.strhash crypto.xor debug.bf debug.bochs debug.esil debug.evm debug.gdb debug.io debug.native debug.null debug.qnx debug.rap debug.rv32ima debug.winkd egg.exec egg.xor esil.dummy esil.forth esil.null fs.ext2 fs.fat fs.fb fs.hfs fs.hfsplus fs.io fs.iso9660 fs.jfs fs.minix fs.ntfs fs.posix fs.r2 fs.reiserfs fs.sfs fs.tar fs.udf fs.ufs fs.xfs fs.zip io.ar io.bfdbg io.bochs io.cyclic io.debug io.default io.dsc io.fd io.gdb io.gprobe io.gzip io.http io.ihex io.isotp io.mach io.malloc io.mmap io.null io.procpid io.ptrace io.qnx io.r2k io.r2pipe io.r2web io.rap io.rbuf io.reg io.self io.serial io.socket io.sparse io.sysgdb io.tcpslurp io.treebuf io.w32 io.w32dbg io.winedbg io.winkd io.xalz io.xattr io.zip lang.c lang.cpipe lang.pipe lang.rust lang.spp lang.v lang.vala lang.zig parse.6502_pseudo parse.arm_pseudo parse.att2intel parse.avr_pseudo parse.bpf_pseudo parse.chip8_pseudo parse.dalvik_pseudo parse.evm_pseudo parse.m68k_pseudo parse.mips_pseudo parse.ppc_pseudo parse.riscv_pseudo parse.sh_pseudo parse.tms320_pseudo parse.v850_pseudo parse.wasm_pseudo parse.x86_pseudo parse.z80_pseudo
cp: plugins.cfg and ./plugins.cfg are identical (not copied).
checking build system type... PowerMacintosh-unknown-darwin
checking host system type... PowerMacintosh-unknown-darwin
checking target system type... PowerMacintosh-unknown-darwin
checking for working directories... current
using prefix '/usr/local'
checking for c compiler... gcc
checking for dynamic library... required
checking for pkg-config... /usr/local/bin/pkg-config
checking for patch... /usr/bin/patch
checking for ar... /usr/bin/ar
checking for git... /usr/local/bin/git
checking for gperf... /usr/bin/gperf
checking for libmagic ... no
checking for linux/can.h... no
checking pkg-config flags for liblz4... no
checking for libz ... yes
checking for libzip ... no
checking for libxxhash ... no
checking declaration of ADDR_NO_RANDOMIZE in sys/personality.h... no
checking declaration of __GLIBC__ in features.h... no
checking function arc4random_uniform() in c... no
checking function explicit_bzero() in c... no
checking function explicit_memset() in c... no
checking function clock_nanosleep() in c... no
checking function sigaction() in c... yes
checking function clock_gettime() in c... no
checking cflags  -std=gnu99... yes
checking version of library libuv >= 1.0.0... no
generating pkgcfg/r_egg.pc
generating pkgcfg/r_io.pc
generating pkgcfg/r_esil.pc
generating pkgcfg/r_cons.pc
generating pkgcfg/r_socket.pc
generating pkgcfg/r_reg.pc
generating pkgcfg/r_bp.pc
generating pkgcfg/r_flag.pc
generating pkgcfg/r_bin.pc
generating pkgcfg/r_lang.pc
generating pkgcfg/r_syscall.pc
generating pkgcfg/r_config.pc
generating pkgcfg/r_fs.pc
generating pkgcfg/r_util.pc
generating pkgcfg/r_magic.pc
generating pkgcfg/r_search.pc
generating pkgcfg/r_arch.pc
generating pkgcfg/r_crypto.pc
generating pkgcfg/r_anal.pc
generating pkgcfg/r_asm.pc
generating pkgcfg/r_debug.pc
creating ./config-user.mk
creating libr/include/r_userconf.h
creating pkgcfg/r_core.pc
cleaning temporally files... done

Final report:
 - BUILD = PowerMacintosh-unknown-darwin
 - CC = gcc
 - CFLAGS = ""
 - DEBUGGER = 1
 - HAVE_ARC4RANDOM_UNIFORM = 0
 - HAVE_EXPLICIT_BZERO = 0
 - HAVE_EXPLICIT_MEMSET = 0
 - HAVE_FORK = 1
 - HAVE_GPERF = 1
 - HAVE_LIBUV = 0
 - HAVE_LIB_GMP = 0
 - WANT_DEBUGSTUFF = 1
 - HAVE_OPENSSL = 0
 - WANT_SSL_CRYPTO = 0
 - HAVE_PTRACE = 1
 - HOST = PowerMacintosh-unknown-darwin
 - LDFLAGS = ""
 - LIBVERSION = 5.9.1
 - PKGCONFIG = /usr/local/bin/pkg-config
 - PREFIX = /usr/local
 - R_CHECKS_LEVEL = 2
 - TARGET = PowerMacintosh-unknown-darwin
 - USERCC = gcc
 - USEROSTYPE = darwin
 - USE_CAPSTONE = 0
 - USE_LIB_MAGIC = 0
 - NEW_IO_CACHE = ""
 - USE_LIB_XXHASH = 0
 - USE_LIB_ZIP = 0
 - USE_PTRACE_WRAP = 0
 - USE_SYSLZ4 = 0
 - VERSION = 5.9.1
 - WANT_DYLINK = 1
 - USE_SMALLZ4 = ""
libr/config.mk:38: *** ERROR: Cannot find R2DIR. Please define this variable.  Stop.
@trufae
Copy link
Collaborator

trufae commented Apr 5, 2024

The only reason I can think that could lead to this error is that there's an issue with make. Because it means that LIBR is not set and it's generated 3 lines above the error like this:

LIBR:=$(abspath $(dir $(lastword $(MAKEFILE_LIST))))

Can you check the version of make? can you install a newer version of gnumake from tigerbrew? i assume we can find a more portable way to define this variable.. But i can't repro an dfrom you rlogs it seems that is using make from /usr/bin instead of the Cellar.

@armdn
Copy link
Author

armdn commented Apr 7, 2024

The only reason I can think that could lead to this error is that there's an issue with make. Because it means that LIBR is not set and it's generated 3 lines above the error like this:

LIBR:=$(abspath $(dir $(lastword $(MAKEFILE_LIST))))

Can you check the version of make? can you install a newer version of gnumake from tigerbrew? i assume we can find a more portable way to define this variable.. But i can't repro an dfrom you rlogs it seems that is using make from /usr/bin instead of the Cellar.

Ok, will try that!

@armdn
Copy link
Author

armdn commented Apr 12, 2024

Installed newer version of gmake, and yes it went a little further, with this error in end:

ranlib: file: librz.a(zip_source_deflate.o) has no symbols
ranlib: file: librz.a(zip_source_pkware.o) has no symbols
sys.c: In function 'r_sys_pid_to_path':
sys.c:1213:9: note: #pragma message: TODO getpidproc
 #pragma message("TODO getpidproc")
         ^~~~~~~
sys.c: In function 'r_sys_backtrace':
sys.c:346:8: warning: calling '__builtin_frame_address' with a nonzero argument is unsafe [-Wframe-address]
  void *saved_fp = __builtin_frame_address (1);
        ^~~~~~~~
thread_sem.c: In function 'r_th_sem_new':
thread_sem.c:33:8: warning: comparison between pointer and integer
  if (s == SEM_FAILED) {
        ^~
"gcc -dynamiclib -fPIC -o libr_util.dylib -Wl,-install_name,/usr/local/lib/libr_util.dylib mem.o unum.o str.o hex.o file.o range.o charset.o xdg.o rxml.o prof.o sys.o buf.o sys_w32.o ubase64.o base85.o base91.o base36.o list.o chmod.o graph.o event.o alloc.o donut.o print_code.o format2.o regex/regcomp.o regex/regerror.o regex/regexec.o uleb128.o rstr.o sandbox.o calc.o thread.o thread_sem.o thread_lock.o thread_cond.o thread_chan.o strpool.o bitmap.o time.o format.o pie.o print.o utype.o w32.o w32dw.o seven.o randomart.o zip.o debruijn.o log.o getopt.o table.o sys_sh.o utf8.o utf16.o utf32.o strbuf.o lib.o name.o spaces.o signal.o syscmd.o udiff.o bdiff.o stack.o queue.o tree.o idpool.o assert.o bplist.o punycode.o pkcs7.o x509.o asn1.o asn1_str.o json_parser.o json_indent.o skiplist.o pj.o rbtree.o intervaltree.o qrcode.o vector.o str_constpool.o str_trim.o ascii_table.o protobuf.o graph_drawable.o axml.o sstext.o new_rbtree.o token.o rvc.o rvc_git.o rvc_rvc.o bscanf.o rprintf.o d/ascii.o d/pokered.o d/katakana.o d/hiragana.o d/ebcdic37.o d/iso8859_1.o /Users/armdn/Sources/radare2/libr/../shlr/smallz4/smallz4cat.o big_gmp.o big_ssl.o big.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/cdb.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/heap.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/set.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/cdb_make.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/ht_uu.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/ht_up.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/ht_pp.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/ht_pu.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/ht_su.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/ht.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/json.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/text.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/lock.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/ls.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/ns.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/query.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/sdb.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/base64.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/disk.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/dict.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/array.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/fmt.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/match.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/num.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/util.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/journal.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/diff.o ../../shlr/spp/spp.o      -fPIC -fvisibility=hidden   /Users/armdn/Sources/radare2/libr/../shlr/zip/librz.a  -lpthread  -fvisibility=hidden"
/usr/bin/ld: -i argument: nstall_name must have a ':' between its symbol names
collect2: error: ld returned 1 exit status
gmake[2]: *** [../rules.mk:90: libr_util.dylib] Error 1
gmake[1]: *** [../rules.mk:71: all] Error 2
gmake: *** [Makefile:53: all] Error 2

@trufae
Copy link
Collaborator

trufae commented Apr 12, 2024

edit mk/gcc.mk and comment the LDFLAGS_SONAME line. maybe we have to add another if in that line to make it conditional for ppc after an uname check

@trufae
Copy link
Collaborator

trufae commented Apr 16, 2024

any news?

@armdn
Copy link
Author

armdn commented Apr 16, 2024

Will try that in a day or two, im out of my home in other city by now.

@armdn
Copy link
Author

armdn commented Apr 18, 2024

edit mk/gcc.mk and comment the LDFLAGS_SONAME line. maybe we have to add another if in that line to make it conditional for ppc after an uname check

There are two lines, which one of these?? Or both?

@trufae
Copy link
Collaborator

trufae commented Apr 18, 2024

all of them just in case

@armdn
Copy link
Author

armdn commented Apr 28, 2024

Nope, still no go. Modified both lines (after re-downloading fresh code from git), and caught another error. Logs below...

/Users/armdn/Sources/radare2
WARNING: Updating from remote repository
From https://github.com/radareorg/radare2
 * branch                  master     -> FETCH_HEAD
Already up to date.
Warning: Cannot find system wide capstone
[*] Finding gmake is hashed (/usr/local/bin/gmake) OK
[*] Configuring the build system ... OK
[*] Checking out capstone... OK
[*] Checking out vector35-arm64... OK
[*] Checking out vector35-armv7... OK
[*] Running configure... OK
[*] Ready. You can now run 'make'.
ARGS=
/usr/local/bin/zsh ./sys/build.sh
/Users/armdn/Sources/radare2
/Users/armdn/Sources/radare2
./configure --prefix=/usr/local
configure-plugins: Copying dist/plugins-cfg/plugins.def.cfg
configure-plugins: Loading ./plugins.cfg ..
configure-plugins: Generating libr/config.h
configure-plugins: Generating libr/asm/d/config.inc
configure-plugins: Generating libr/config.mk
SHARED: io.shm
STATIC: anal.a2f anal.null arch.6502 arch.6502_cs arch.8051 arch.alpha arch.amd29k arch.any_as arch.any_vasm arch.arc arch.arm arch.arm_cs arch.arm_gnu arch.arm_v35 arch.avr arch.bf arch.bpf arch.bpf_cs arch.chip8 arch.cr16 arch.cris arch.dalvik arch.dis arch.ebc arch.evm arch.fslsp arch.gb arch.h8300 arch.hppa_gnu arch.i4004 arch.i8080 arch.java arch.jdh8 arch.kvx arch.lanai arch.lh5801 arch.lm32 arch.loongarch_gnu arch.lua arch.m680x_cs arch.m68k_cs arch.m68k_gnu arch.mcore arch.mcs96 arch.mips_cs arch.mips_gnu arch.msp430 arch.nds32 arch.nios2 arch.null arch.or1k arch.pdp11 arch.pic arch.pickle arch.ppc_cs arch.ppc_gnu arch.propeller arch.pyc arch.riscv arch.riscv_cs arch.rsp arch.s390_cs arch.s390_gnu arch.sh arch.sh_cs arch.sm5xx arch.snes arch.sparc_cs arch.sparc_gnu arch.tms320 arch.tricore arch.tricore_cs arch.v810 arch.v850 arch.vax arch.wasm arch.ws arch.x86_cs arch.x86_nasm arch.x86_nz arch.xap arch.xcore_cs arch.xtensa arch.z80 asm.null bin.any bin.art bin.avr bin.bf bin.bflt bin.bios bin.bootimg bin.cgc bin.coff bin.dex bin.dis bin.dmp64 bin.dol bin.dyldcache bin.elf bin.elf64 bin.fs bin.hunk bin.io bin.java bin.le bin.lua bin.mach0 bin.mach064 bin.mbn bin.mdmp bin.menuet bin.msx bin.mz bin.ne bin.nes bin.nin3ds bin.ninds bin.ningb bin.ningba bin.nro bin.nso bin.off bin.omf bin.p9 bin.pcap bin.pdp11 bin.pe bin.pe64 bin.pebble bin.prg bin.psxexe bin.pyc bin.qnx bin.rel bin.s390 bin.sfc bin.smd bin.sms bin.symbols bin.te bin.tic bin.vsf bin.wad bin.wasm bin.xbe bin.xcoff64 bin.xnu_kernelcache bin.xtac bin.z64 bin.zimg bin_ldr.ldr_linux bin_xtr.xtr_dyldcache bin_xtr.xtr_fatmach0 bin_xtr.xtr_pemixed bin_xtr.xtr_sep64 bin_xtr.xtr_xalz bp.arm bp.bf bp.mips bp.null bp.ppc bp.riscv bp.x86 core.a2f core.agD core.java core.sixref crypto.aes crypto.aes_cbc crypto.aes_wrap crypto.base64 crypto.base91 crypto.blowfish crypto.cps2 crypto.des crypto.entropy crypto.punycode crypto.rc2 crypto.rc4 crypto.rc6 crypto.rol crypto.ror crypto.rot crypto.serpent crypto.sm4 crypto.strhash crypto.xor debug.bf debug.bochs debug.esil debug.evm debug.gdb debug.io debug.native debug.null debug.qnx debug.rap debug.rv32ima debug.winkd egg.exec egg.xor esil.dummy esil.forth esil.null fs.ext2 fs.fat fs.fb fs.hfs fs.hfsplus fs.io fs.iso9660 fs.jfs fs.minix fs.ntfs fs.posix fs.r2 fs.reiserfs fs.sfs fs.tar fs.udf fs.ufs fs.xfs fs.zip io.ar io.bfdbg io.bochs io.cyclic io.debug io.default io.dsc io.fd io.gdb io.gprobe io.gzip io.http io.ihex io.isotp io.mach io.malloc io.mmap io.null io.procpid io.ptrace io.qnx io.r2k io.r2pipe io.r2web io.rap io.rbuf io.reg io.self io.serial io.socket io.sparse io.sysgdb io.tcpslurp io.treebuf io.w32 io.w32dbg io.winedbg io.winkd io.xalz io.xattr io.zip lang.c lang.cpipe lang.pipe lang.rust lang.spp lang.v lang.vala lang.zig parse.6502_pseudo parse.arm_pseudo parse.att2intel parse.avr_pseudo parse.bpf_pseudo parse.chip8_pseudo parse.dalvik_pseudo parse.evm_pseudo parse.m68k_pseudo parse.mips_pseudo parse.ppc_pseudo parse.riscv_pseudo parse.sh_pseudo parse.tms320_pseudo parse.v850_pseudo parse.wasm_pseudo parse.x86_pseudo parse.z80_pseudo
cp: plugins.cfg and ./plugins.cfg are identical (not copied).
checking build system type... PowerMacintosh-unknown-darwin
checking host system type... PowerMacintosh-unknown-darwin
checking target system type... PowerMacintosh-unknown-darwin
checking for working directories... current
using prefix '/usr/local'
checking for c compiler... gcc
checking for dynamic library... required
checking for pkg-config... /usr/local/bin/pkg-config
checking for patch... /usr/bin/patch
checking for ar... /usr/bin/ar
checking for git... /usr/local/bin/git
checking for gperf... /usr/bin/gperf
checking for libmagic ... no
checking for linux/can.h... no
checking pkg-config flags for liblz4... no
checking for libz ... yes
checking for libzip ... no
checking for libxxhash ... no
checking declaration of ADDR_NO_RANDOMIZE in sys/personality.h... no
checking declaration of __GLIBC__ in features.h... no
checking function arc4random_uniform() in c... no
checking function explicit_bzero() in c... no
checking function explicit_memset() in c... no
checking function clock_nanosleep() in c... no
checking function sigaction() in c... yes
checking function clock_gettime() in c... no
checking cflags  -std=gnu99... yes
checking version of library libuv >= 1.0.0... no
generating pkgcfg/r_egg.pc
generating pkgcfg/r_io.pc
generating pkgcfg/r_esil.pc
generating pkgcfg/r_cons.pc
generating pkgcfg/r_socket.pc
generating pkgcfg/r_reg.pc
generating pkgcfg/r_bp.pc
generating pkgcfg/r_flag.pc
generating pkgcfg/r_bin.pc
generating pkgcfg/r_lang.pc
generating pkgcfg/r_syscall.pc
generating pkgcfg/r_config.pc
generating pkgcfg/r_fs.pc
generating pkgcfg/r_util.pc
generating pkgcfg/r_magic.pc
generating pkgcfg/r_search.pc
generating pkgcfg/r_arch.pc
generating pkgcfg/r_crypto.pc
generating pkgcfg/r_anal.pc
generating pkgcfg/r_asm.pc
generating pkgcfg/r_debug.pc
creating ./config-user.mk
creating libr/include/r_userconf.h
creating pkgcfg/r_core.pc
cleaning temporally files... done

Final report:
 - BUILD = PowerMacintosh-unknown-darwin
 - CC = gcc
 - CFLAGS = ""
 - DEBUGGER = 1
 - HAVE_ARC4RANDOM_UNIFORM = 0
 - HAVE_EXPLICIT_BZERO = 0
 - USE_NEW_ABI = 0
 - HAVE_EXPLICIT_MEMSET = 0
 - HAVE_FORK = 1
 - HAVE_GPERF = 1
 - HAVE_LIBUV = 0
 - HAVE_LIB_GMP = 0
 - WANT_DEBUGSTUFF = 1
 - HAVE_OPENSSL = 0
 - WANT_SSL_CRYPTO = 0
 - HAVE_PTRACE = 1
 - HOST = PowerMacintosh-unknown-darwin
 - LDFLAGS = ""
 - LIBVERSION = 5.9.1
 - PKGCONFIG = /usr/local/bin/pkg-config
 - PREFIX = /usr/local
 - R_CHECKS_LEVEL = 2
 - TARGET = PowerMacintosh-unknown-darwin
 - USERCC = gcc
 - USEROSTYPE = darwin
 - USE_CAPSTONE = 0
 - USE_LIB_MAGIC = 0
 - NEW_IO_CACHE = ""
 - USE_LIB_XXHASH = 0
 - USE_LIB_ZIP = 0
 - USE_PTRACE_WRAP = 0
 - USE_SYSLZ4 = 0
 - VERSION = 5.9.1
 - WANT_DYLINK = 1
 - USE_SMALLZ4 = ""
Generating r_version.h file

>>>>>>>>
HOST SDB
>>>>>>>>

ar: creating archive libsdb.a
sdb/sdb: Mach-O executable ppc

>>>>>>>>>>
TARGET SDB
>>>>>>>>>>

disk.c: In function 'sdb_disk_finish':
disk.c:136:9: warning: implicit declaration of function 'fsync'; did you mean 'sync'? [-Wimplicit-function-declaration]
  IFRET (fsync (s->fdump));
         ^
disk.c:131:22: note: in definition of macro 'IFRET'
 #define IFRET(x) if (x) ret = 0
                      ^
journal.c: In function 'sdb_journal_log':
journal.c:106:8: warning: implicit declaration of function 'fsync'; did you mean 'sync'? [-Wimplicit-function-declaration]
  (void)fsync (s->journal);
        ^~~~~
        sync
ar: creating archive libsdb.a
ar: creating archive libr_z.a
ar: creating archive libr_zip.a
ranlib: file: libr_zip.a(zip_source_deflate.o) has no symbols
ranlib: file: libr_zip.a(zip_source_pkware.o) has no symbols
ranlib: file: libr_zip.a(zip_source_deflate.o) has no symbols
ranlib: file: libr_zip.a(zip_source_pkware.o) has no symbols
ar q librz.a zlib/adler32.o zlib/compress.o zlib/crc32.o zlib/deflate.o zlib/gzclose.o zlib/gzlib.o zlib/gzread.o zlib/gzwrite.o zlib/infback.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o zlib/uncompr.o zlib/zutil.o zip/zip_add.o zip/zip_add_dir.o zip/zip_add_entry.o zip/zip_algorithm_deflate.o zip/zip_buffer.o zip/zip_close.o zip/zip_delete.o zip/zip_dir_add.o zip/zip_dirent.o zip/zip_discard.o zip/zip_entry.o zip/zip_err_str.o zip/zip_error.o zip/zip_error_clear.o zip/zip_error_get.o zip/zip_error_get_sys_type.o zip/zip_error_strerror.o zip/zip_error_to_str.o zip/zip_extra_field.o zip/zip_extra_field_api.o zip/zip_fclose.o zip/zip_fdopen.o zip/zip_file_add.o zip/zip_file_error_clear.o zip/zip_file_error_get.o zip/zip_file_get_comment.o zip/zip_file_get_external_attributes.o zip/zip_file_get_offset.o zip/zip_file_rename.o zip/zip_file_replace.o zip/zip_file_set_comment.o zip/zip_file_set_external_attributes.o zip/zip_file_set_mtime.o zip/zip_file_strerror.o zip/zip_filerange_crc.o zip/zip_fopen.o zip/zip_fopen_index.o zip/zip_fopen_index_encrypted.o zip/zip_fread.o zip/zip_fseek.o zip/zip_ftell.o zip/zip_get_archive_comment.o zip/zip_get_archive_flag.o zip/zip_get_file_comment.o zip/zip_get_name.o zip/zip_get_num_entries.o zip/zip_get_num_files.o zip/zip_hash.o zip/zip_io_util.o zip/zip_libzip_version.o zip/zip_memdup.o zip/zip_name_locate.o zip/zip_new.o zip/zip_open.o zip/zip_pkware.o zip/zip_progress.o zip/zip_random_unix.o zip/zip_rename.o zip/zip_replace.o zip/zip_set_archive_comment.o zip/zip_set_archive_flag.o zip/zip_set_default_password.o zip/zip_set_file_comment.o zip/zip_set_file_compression.o zip/zip_set_name.o zip/zip_source_accept_empty.o zip/zip_source_begin_write.o zip/zip_source_begin_write_cloning.o zip/zip_source_buffer.o zip/zip_source_call.o zip/zip_source_close.o zip/zip_source_commit_write.o zip/zip_source_compress.o zip/zip_source_crc.o zip/zip_source_deflate.o zip/zip_source_error.o zip/zip_source_file_common.o zip/zip_source_file_stdio.o zip/zip_source_file_stdio_named.o zip/zip_source_free.o zip/zip_source_function.o zip/zip_source_get_file_attributes.o zip/zip_source_is_deleted.o zip/zip_source_layered.o zip/zip_source_open.o zip/zip_source_pkware.o zip/zip_source_pkware_decode.o zip/zip_source_pkware_encode.o zip/zip_source_pop.o zip/zip_source_read.o zip/zip_source_remove.o zip/zip_source_rollback_write.o zip/zip_source_seek.o zip/zip_source_seek_write.o zip/zip_source_stat.o zip/zip_source_supports.o zip/zip_source_tell.o zip/zip_source_tell_write.o zip/zip_source_window.o zip/zip_source_write.o zip/zip_source_zip.o zip/zip_source_zip_new.o zip/zip_stat.o zip/zip_stat_index.o zip/zip_stat_init.o zip/zip_strerror.o zip/zip_string.o zip/zip_utf-8.o
ar: creating archive librz.a
ranlib: file: librz.a(zip_source_deflate.o) has no symbols
ranlib: file: librz.a(zip_source_pkware.o) has no symbols
ranlib librz.a
ranlib: file: librz.a(zip_source_deflate.o) has no symbols
ranlib: file: librz.a(zip_source_pkware.o) has no symbols
sys.c: In function 'r_sys_pid_to_path':
sys.c:1213:9: note: #pragma message: TODO getpidproc
 #pragma message("TODO getpidproc")
         ^~~~~~~
sys.c: In function 'r_sys_backtrace':
sys.c:346:8: warning: calling '__builtin_frame_address' with a nonzero argument is unsafe [-Wframe-address]
  void *saved_fp = __builtin_frame_address (1);
        ^~~~~~~~
thread_sem.c: In function 'r_th_sem_new':
thread_sem.c:33:8: warning: comparison between pointer and integer
  if (s == SEM_FAILED) {
        ^~
"gcc -dynamiclib -fPIC -o libr_util.dylib libr_util.dylib mem.o unum.o str.o hex.o file.o range.o charset.o xdg.o rxml.o prof.o sys.o buf.o sys_w32.o ubase64.o base85.o base91.o base36.o list.o chmod.o graph.o event.o alloc.o donut.o print_code.o format2.o regex/regcomp.o regex/regerror.o regex/regexec.o uleb128.o rstr.o sandbox.o calc.o thread.o thread_sem.o thread_lock.o thread_cond.o thread_chan.o strpool.o bitmap.o time.o format.o pie.o print.o utype.o w32.o w32dw.o seven.o randomart.o zip.o debruijn.o log.o getopt.o table.o sys_sh.o utf8.o utf16.o utf32.o strbuf.o lib.o name.o spaces.o signal.o syscmd.o udiff.o bdiff.o stack.o queue.o tree.o idpool.o assert.o bplist.o punycode.o pkcs7.o x509.o asn1.o asn1_str.o json_parser.o json_indent.o skiplist.o pj.o rbtree.o intervaltree.o qrcode.o vector.o str_constpool.o str_trim.o ascii_table.o protobuf.o graph_drawable.o axml.o sstext.o new_rbtree.o token.o rvc.o rvc_git.o rvc_rvc.o bscanf.o rprintf.o d/ascii.o d/pokered.o d/katakana.o d/hiragana.o d/ebcdic37.o d/iso8859_1.o /Users/armdn/Sources/radare2/libr/../shlr/smallz4/smallz4cat.o big_gmp.o big_ssl.o big.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/cdb.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/heap.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/set.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/cdb_make.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/ht_uu.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/ht_up.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/ht_pp.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/ht_pu.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/ht_su.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/ht.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/json.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/text.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/lock.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/ls.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/ns.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/query.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/sdb.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/base64.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/disk.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/dict.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/array.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/fmt.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/match.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/num.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/util.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/journal.o /Users/armdn/Sources/radare2/libr/../shlr/sdb/src/diff.o ../../shlr/spp/spp.o      -fPIC -fvisibility=hidden   /Users/armdn/Sources/radare2/libr/../shlr/zip/librz.a  -lpthread  -fvisibility=hidden"
gcc: error: libr_util.dylib: No such file or directory
gmake[2]: *** [../rules.mk:90: libr_util.dylib] Error 1
gmake[1]: *** [../rules.mk:71: all] Error 2
gmake: *** [Makefile:53: all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants