Homebrew Question Error Building Awoo-Installer

  • Thread starter Thread starter Malto66
  • Start date Start date
  • Views Views 1,578
  • Replies Replies 0

Malto66

New Member
Newbie
Joined
Mar 29, 2021
Messages
1
Reaction score
0
Trophies
0
Age
31
XP
52
Country
Italy
Hello Everyone! I wanted to build my own version of awoo installer. I did it in the past and, had a lot of trouble with it back then. My main sd died yesterday and i found out that I dind't have a backup of the .nro. I tried following my previous steps and searching on the net but now I'm sutck at this error when launching dkp-makepkg on the PKGBUILD for ZSTD (can't post the link)
Code:
~$ dkp-makepkg
==> Making package: switch-zstd 1.4.3-1 (Mon Mar 29 18:46:22 CEST 2021)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found v1.4.3.tar.gz
==> Validating source files with sha256sums...
    v1.4.3.tar.gz ... Passed
==> Extracting sources...
  -> Extracting v1.4.3.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
-- ZSTD VERSION: 1.4.3
-- CMAKE_INSTALL_PREFIX: /opt/devkitpro/portlibs/switch
-- CMAKE_INSTALL_LIBDIR: lib
-- ZSTD_LEGACY_SUPPORT not defined!
-- ZSTD_MULTITHREAD_SUPPORT is enabled
CMake Warning (dev) at lib/CMakeLists.txt:81 (add_library):
  ADD_LIBRARY called with SHARED option but the target platform does not
  support dynamic linking.  Building a STATIC library instead.  This may lead
  to problems.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/marco/src/zstd-1.4.3/build/cmake
[ 43%] Built target libzstd_static
[ 87%] Built target libzstd_shared
[ 89%] Linking C executable zstd
/opt/devkitpro/devkitA64/bin/../lib/gcc/aarch64-none-elf/10.2.0/../../../../aarch64-none-elf/bin/ld: CMakeFiles/zstd.dir/home/marco/src/zstd-1.4.3/programs/util.c.obj: in function `UTIL_setFileStat':
util.c:(.text.UTIL_setFileStat+0x7c): undefined reference to `chown'
collect2: error: ld returned 1 exit status
make[2]: *** [programs/CMakeFiles/zstd.dir/build.make:190: programs/zstd] Error 1
make[1]: *** [CMakeFiles/Makefile2:227: programs/CMakeFiles/zstd.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

There's an undefined reference to `chown' that I can't solve.
I'm using Ubuntu via WSL on Windows10.
THANK YOU ALL!
 
Last edited by Malto66,

Site & Scene News

Popular threads in this forum