WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Busybox ar error TinyCore64 13.1  (Read 1718 times)

Offline mocallins

  • Newbie
  • *
  • Posts: 11
Busybox ar error TinyCore64 13.1
« on: February 03, 2023, 03:59:44 PM »
Is it that the "ar" included it to new, or to old ?

I've had an error trying to compile a few extentions on multiple versions of TinyCore.

ar cr libgnu.a libgnu_a-openat-proc.o libgnu_a-basename-lgpl.o  libgnu_a-chdir-long.o libgnu_a-cloexec.o    libgnu_a-dirname-lgpl.o libgnu_a-stripslash.o   libgnu_a-exitfail.o  libgnu_a-fcntl.o libgnu_a-fd-hook.o libgnu_a-fd-safer-flag.o libgnu_a-dup-safer-flag.o libgnu_a-filenamecat-lgpl.o             libgnu_a-getprogname.o  libgnu_a-gettime.o  malloc/libgnu_a-dynarray_at_failure.o malloc/libgnu_a-dynarray_emplace_enlarge.o malloc/libgnu_a-dynarray_finalize.o malloc/libgnu_a-dynarray_resize.o malloc/libgnu_a-dynarray_resize_clear.o malloc/libgnu_a-scratch_buffer_grow.o malloc/libgnu_a-scratch_buffer_grow_preserve.o malloc/libgnu_a-scratch_buffer_set_array_size.o libgnu_a-glob.o libgnu_a-globfree.o libgnu_a-glob_pattern_p.o libgnu_a-hard-locale.o   libgnu_a-localcharset.o  glthread/libgnu_a-lock.o  libgnu_a-malloca.o libgnu_a-math.o libgnu_a-mbrtowc.o               libgnu_a-openat-die.o   libgnu_a-printf-frexp.o libgnu_a-printf-frexpl.o   libgnu_a-regex.o libgnu_a-save-cwd.o libgnu_a-setlocale_null.o   libgnu_a-sig-handler.o    libgnu_a-stat-time.o         libgnu_a-strnlen1.o libgnu_a-tempname.o glthread/libgnu_a-threadlib.o libgnu_a-timespec.o libgnu_a-unistd.o libgnu_a-dup-safer.o libgnu_a-fd-safer.o libgnu_a-pipe-safer.o uniwidth/libgnu_a-width.o  libgnu_a-utimens.o  libgnu_a-wctype-h.o        libgnu_a-xsize.o asnprintf.o printf-args.o printf-parse.o vasnprintf.o
ar: invalid option -- 'r'
BusyBox v1.34.1 (2022-04-30 13:49:24 UTC) multi-call binary.

Usage: ar x|p|t [-ov] ARCHIVE [FILE]...

Extract or list FILEs from an ar archive

        x       Extract
        p       Extract to stdout
        t       List
        -o      Restore mtime
        -v      Verbose
make[4]: *** [Makefile:2423: libgnu.a] Error 1
make[4]: Leaving directory '/home/tc/build/nano-7.2/lib'
make[3]: *** [Makefile:4656: all-recursive] Error 1
make[3]: Leaving directory '/home/tc/build/nano-7.2/lib'
make[2]: *** [Makefile:2331: all] Error 2
make[2]: Leaving directory '/home/tc/build/nano-7.2/lib'
make[1]: *** [Makefile:1780: all-recursive] Error 1
make[1]: Leaving directory '/home/tc/build/nano-7.2'
make: *** [Makefile:1721: all] Error 2

[tcsf13t]:</home/tc/build/nano-7.2/> cat /etc/os-release
NAME=TinyCore
VERSION="13.1"
ID=tinycore
VERSION_ID=13.1
PRETTY_NAME="TinyCoreLinux 13.1"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:tinycore:tinycore_linux:13.1"
HOME_URL="http://tinycorelinux.net/"
SUPPORT_URL="http://forum.tinycorelinux.net/"
BUG_REPORT_URL="http://forum.tinycorelinux.net/"
[tcsf13t]:</home/tc/build/nano-7.2/>

[tcsf13t]:</home/tc/build/nano-7.2/> uname -a
Linux tcsf13t 5.15.10-tinycore64 #622 SMP Tue Dec 21 17:30:32 UTC 2021 x86_64 GNU/Linux
[tcsf13t]:</home/tc/build/nano-7.2/>



Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11586
Re: Busybox ar error TinyCore64 13.1
« Reply #1 on: February 03, 2023, 04:34:52 PM »
Hi mocallins
It sounds like you did not install a proper toolchain. Install  compiletc  and
try again.  compiletc  pulls in  binutils  which includes the full version of  ar.