Sylvestre's blog

Argument list too long

· Sly · Administration, Développement · 2 commentaires

I have to compile a big software for work. It is using the opencascade toolkit to develop and compile.
It compiles everything itself (nice but tricky).
However, I don't have too much control on the compilation directives and as it is automatic, it produces sometimes some huge command line to compile one lib (I have a gcc command line of 1300 lines ...). And the kernel refuses a command of that size with a nice :
/usr/bin/g++: Argument list too long. or /usr/bin/g++: Liste d'arguments trop longue. in French

As I don't want to hack Opencascade, the only "clean" solution I found is to recompile the kernel :

Edit the file /usr/src/linux/include/linux/binfmts.h
and change the 32 parameter to 64 to increase this limit. :

#define MAX_ARG_PAGES 32

And recompile the kernel ...

Here is the crappy trick !

2 commentaires

Fg ·

Etrangement ce projet me rappelle quelquechose :)

Sylvestre ·

Tu sais que dans le menu “A propos", on peut voir ton nom ainsi que celui de JP ;)
Et que le projet se relance bien …

Les commentaires sont clos : ce blog est une archive statique.