Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[solved]Error:too many arguments:argc (142)>=MAX_ARGS (128)

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
aniket_920
n00b
n00b
Posts: 5
Joined: Wed Dec 10, 2025 8:48 pm

Help me with update the system

  • Quote

Post by aniket_920 » Wed Dec 10, 2025 9:45 pm

I have problem with USE flags, system is not updating, multiple packages are getting 'no error message'
but 'Call stack:' spit some info like:

Code: Select all

 
*       ....
*       environment, line 3151: Called multilib-minimal_src_install
*       ....
here is the output of:

Code: Select all

emerge --info '=dev-libs/boost-1.88.0-r1::gentoo'
https://dpaste.com/D5NTY6NF7

build.log file is very large this dpast is not accepting the file.

Packages which are not emerging :

Code: Select all

dev-libs/openssl
dev-libs/protobuf
dev-libs/boost-1
llvm-core/llvm

sorry if info is not complete, let me know what you need.

Thanks,
Last edited by aniket_920 on Sat Dec 13, 2025 10:27 am, edited 3 times in total.
Top
Hu
Administrator
Administrator
Posts: 24403
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Wed Dec 10, 2025 10:14 pm

Welcome to the forums.

The information you provided is not complete, and it is likely that we cannot help you with the information you provided. Portage tells you what we need, and one of the things we need is the full build.log. If you cannot post the full log due to size, then post at least the last ~1000 lines. That will likely have the error we need.
Top
aniket_920
n00b
n00b
Posts: 5
Joined: Wed Dec 10, 2025 8:48 pm

Last 1000 lines of build.log of 'openssl'

  • Quote

Post by aniket_920 » Thu Dec 11, 2025 8:45 am

here is the last 1000 lines of build.log for the dev-libs/openssl

https://dpaste.com/6ETR2HRZM
Top
Hu
Administrator
Administrator
Posts: 24403
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Thu Dec 11, 2025 2:26 pm

Your error is:

Code: Select all

1137  Error: too many arguments: argc (142) >= MAX_ARGS (128)
This probably comes from:

Code: Select all

	_multilib_header_cksum() {
		set -o pipefail

		if [[ -d ${ED}/usr/include ]]; then
			find "${ED}"/usr/include -type f \
				-exec cksum {} + | sort -k2
However, attempting to reproduce that with 142 dummy files does not fail here. What is the output of emerge --pretend --verbose sys-apps/coreutils sys-apps/findutils ; find --version ; cksum --version?
Top
aniket_920
n00b
n00b
Posts: 5
Joined: Wed Dec 10, 2025 8:48 pm

  • Quote

Post by aniket_920 » Thu Dec 11, 2025 5:14 pm

both packages are rebuilding.

and these are there --version:

Code: Select all

sys-apps/coreutils-9.8-r1::gentoo
sys-apps/findutils-4.10.0::gentoo
but I don't know how to find 'cksum --version'

and also if possible can you tell which arguments this error is talking about ?

Code: Select all

1137  Error: too many arguments: argc (142) >= MAX_ARGS (128)
thanks!
Top
Hu
Administrator
Administrator
Posts: 24403
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Fri Dec 12, 2025 3:05 pm

You can get the output of cksum --version by running cksum --version in the terminal.

The arguments referenced by the error are because some program was given more command line arguments than it was prepared to handle. I made a brief effort to guess which program that would be by examining the source code of likely culprits, but found nothing conclusive.
Top
aniket_920
n00b
n00b
Posts: 5
Joined: Wed Dec 10, 2025 8:48 pm

  • Quote

Post by aniket_920 » Fri Dec 12, 2025 4:10 pm

output of 'cksum --version' :

Code: Select all

cksum (GNU coreutils) 9.8
Packaged by Gentoo (9.8-r1 (p0))
Copyright (C) 2025 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Pádraig Brady and Q. Frank Xia.

Top
sam_
Developer
Developer
User avatar
Posts: 2822
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Fri Dec 12, 2025 6:53 pm

This is from firejail: bug 960936. I strongly recommend not letting it touch all binaries system-wide, just a select few you use as your user.
Top
aniket_920
n00b
n00b
Posts: 5
Joined: Wed Dec 10, 2025 8:48 pm

  • Quote

Post by aniket_920 » Sat Dec 13, 2025 10:28 am

PROBLEM : firejaill is the problem,

SOLUTION :
I follow the 'sam_' advice

I disable the firejail then update the system, and system updated successfully.

To disable the firejail

Code: Select all

firecfg --clean
reference https://bugs.gentoo.org/960936


thanks sam
Top
Post Reply

9 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic