Skip to content

Conversation

zdebanos
Copy link
Contributor

Use this command to extract archives.
Not all architectures are modified, only those commands I know or could be logically deducted from the rest were added.

Summary

A useful multiplatform variable to extract the archives. I plan to use it in this pull request: apache/nuttx-apps#3154, where I need to unpack all archives to create one big archive, containing all .o files.

I still need to add cmake support, and support for other architectures. The problem is I do not know the syntax of all the used commands, especially those proprietary ones for rare architectures.

Please let me know whether you agree with the name of this variable.

@github-actions github-actions bot added Arch: arm Issues related to ARM (32-bit) architecture Arch: arm64 Issues related to ARM64 (64-bit) architecture Arch: avr Issues related to all AVR(8-bit or 32-bit) architectures Arch: mips Issues related to the MIPS architecture Arch: openrisc Issues related to the OpenRISC architecture Arch: risc-v Issues related to the RISC-V (32-bit or 64-bit) architecture Arch: sparc Issues related to the SPARC architecture Arch: tricore Issues related to the TriCore architecture from Infineon Arch: x86 Issues related to the x86 architecture Arch: x86_64 Issues related to the x86_64 architecture Arch: xtensa Issues related to the Xtensa architecture Arch: z80 Issues related to the Z80 architecture Board: renesas Size: M The size of the change in this PR is medium labels Aug 13, 2025
@acassis acassis requested a review from anchao August 16, 2025 11:43
acassis
acassis previously approved these changes Aug 16, 2025
@acassis
Copy link
Contributor

acassis commented Aug 16, 2025

@zdebanos seems like it broke some arch:

avr32-ar: libboards.a: No such file or directory
make[1]: *** [Makefile:67: libboards.a] Error 9
make: *** [tools/LibTargets.mk:83: boards/libboards.a] Error 2
avr32-ar: libdrivers.a: No such file or directory
make[1]: *** [Makefile:112: libdrivers.a] Error 9
make: *** [tools/LibTargets.mk:107: drivers/libdrivers.a] Error 2
avr32-ar: libmm.a: No such file or directory
make[1]: *** [Makefile:83: libmm.a] Error 9
make: *** [tools/LibTargets.mk:226: mm/libmm.a] Error 2
avr32-ar: /github/workspace/sources/apps/libapps.a: No such file or directory
avr32-ar: libarch.a: No such file or directory
make[1]: *** [Makefile:89: libarch.a] Error 9
make: *** [tools/LibTargets.mk:170: arch/avr/src/libarch.a] Error 2
avr32-ar: /github/workspace/sources/apps/libapps.a: No such file or directory
avr32-ar: /github/workspace/sources/apps/libapps.a: No such file or directory
avr32-ar: /github/workspace/sources/apps/libapps.a: No such file or directory
avr32-ar: /github/workspace/sources/apps/libapps.a: No such file or directory
avr32-ar: /github/workspace/sources/apps/libapps.a: No such file or directory
avr32-ar: libbinfmt.a: No such file or directory
make[1]: *** [Makefile:81: libbinfmt.a] Error 9
make: *** [tools/LibTargets.mk:119: binfmt/libbinfmt.a] Error 2
install: cannot stat '/github/workspace/sources/apps/libapps.a': No such file or directory
make: *** [tools/LibTargets.mk:251: staging/libapps.a] Error 1
avr32-ar: libfs.a: No such file or directory
make[1]: *** [Makefile:92: libfs.a] Error 9
make: *** [tools/LibTargets.mk:101: fs/libfs.a] Error 2
avr32-ar: libsched.a: No such file or directory
make[1]: *** [Makefile:67: libsched.a] Error 9
make: *** [tools/LibTargets.mk:71: sched/libsched.a] Error 2
avr32-ar: libc.a: No such file or directory
make[1]: *** [Makefile:162: libc.a] Error 9
make: *** [tools/LibTargets.mk:196: libs/libc/libc.a] Error 2
make: Target 'all' not remade because of errors.

sparc-gaisler-elf-gcc: warning: gnu-elf.ld.in: linker input file unused because linking not done
sparc-gaisler-elf-ar: libboards.a: No such file or directory
make[1]: *** [Makefile:67: libboards.a] Error 9
make: *** [tools/LibTargets.mk:83: boards/libboards.a] Error 2
sparc-gaisler-elf-ar: libdrivers.a: No such file or directory
make[1]: *** [Makefile:112: libdrivers.a] Error 9
make: *** [tools/LibTargets.mk:107: drivers/libdrivers.a] Error 2
sparc-gaisler-elf-ar: libmm.a: No such file or directory
make[1]: *** [Makefile:83: libmm.a] Error 9
make: *** [tools/LibTargets.mk:226: mm/libmm.a] Error 2
sparc-gaisler-elf-ar: libarch.a: No such file or directory
make[1]: *** [Makefile:104: libarch.a] Error 9
make: *** [tools/LibTargets.mk:170: arch/sparc/src/libarch.a] Error 2

@zdebanos
Copy link
Contributor Author

oh, i absolutely forgot about this commit - i'll have a look at it

jerpelea
jerpelea previously approved these changes Aug 18, 2025
Use this command to extract archives.
Not all architectures are modified, only those commands I know
or could be logically deducted from the rest were added.

Signed-off-by: Stepan Pressl <[email protected]>
@zdebanos zdebanos dismissed stale reviews from jerpelea and acassis via 17763e2 August 18, 2025 17:25
@github-actions github-actions bot added the Size: S The size of the change in this PR is small label Aug 18, 2025
@xiaoxiang781216 xiaoxiang781216 merged commit 637f15f into apache:master Aug 19, 2025
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch: arm Issues related to ARM (32-bit) architecture Arch: arm64 Issues related to ARM64 (64-bit) architecture Arch: avr Issues related to all AVR(8-bit or 32-bit) architectures Arch: mips Issues related to the MIPS architecture Arch: openrisc Issues related to the OpenRISC architecture Arch: risc-v Issues related to the RISC-V (32-bit or 64-bit) architecture Arch: sparc Issues related to the SPARC architecture Arch: tricore Issues related to the TriCore architecture from Infineon Arch: x86 Issues related to the x86 architecture Arch: x86_64 Issues related to the x86_64 architecture Arch: xtensa Issues related to the Xtensa architecture Arch: z80 Issues related to the Z80 architecture Board: renesas Size: M The size of the change in this PR is medium Size: S The size of the change in this PR is small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants