Bug 47149 - failing build: execvp: /bin/sh: Argument list too long
Summary: failing build: execvp: /bin/sh: Argument list too long
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: libfortran (show other bugs)
Version: 4.5.2
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-01 22:16 UTC by o.kullmann
Modified: 2019-01-26 11:26 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2016-07-25 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description o.kullmann 2011-01-01 22:16:04 UTC
When building libgfortran a long line with around 600 entries of the
form .libs/maxloc0_16_r16.o is created, which due to these 600 entries
has already around 11000 characters, which for older Linux systems makes
the build fail.

I have discussed this on the mailing list, and was encouraged to submit
this as a bug.

The error message and the context:

/bin/sh ./libtool --tag=CC   --mode=link /home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Gcc/gcc-4.5.2_build/./gcc/xgcc
-B/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Gcc/gcc-4.5.2_build/./gcc/
-B/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/Installations/Gcc/4.5.2/x86_64-unknown-linux-gnu/bin/
-B/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/Installations/Gcc/4.5.2/x86_64-unknown-linux-gnu/lib/ -isystem
/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/Installations/Gcc/4.5.2/x86_64-unknown-linux-gnu/include -isystem
/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/Installations/Gcc/4.5.2/x86_64-unknown-linux-gnu/sys-include    -std=gnu99
-Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -fcx-fortran-rules -ffunction-sections
-fdata-sections  -g -O2   -o libgfortran.la -version-info `grep -v '^#'
/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Gcc/gcc-4.5.2/libgfortran/libtool-version`  -no-undefined -bindir
"/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/Installations/Gcc/4.5.2/bin" -lm
-Wl,--version-script=/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/builds/Gcc/gcc-4.5.2/libgfortran/gfortran.map -rpath
/home/csoliver/SAT-Algorithmen/OKplatform/ExternalSources/Installations/Gcc/4.5.2/lib/../lib64 backtrace.lo bounds.lo compile_options.lo
convert_char.lo environ.lo error.lo fpu.lo main.lo memory.lo pause.lo stop.lo string.lo select.lo all_l1.lo all_l2.lo all_l4.lo
all_l8.lo all_l16.lo any_l1.lo any_l2.lo any_l4.lo XXX many more of these XXX
make[4]: execvp: /bin/sh: Argument list too long
make[4]: *** [libgfortran.la] Error 127
Comment 1 Andrew Pinski 2016-07-25 05:25:26 UTC
For target libraries, it does seem best to use a response file for linking.
Comment 2 Dominique d'Humieres 2019-01-12 15:16:16 UTC
Is this still valid?
Comment 3 Dominique d'Humieres 2019-01-26 11:26:44 UTC
> Is this still valid?

No feedback, closing as WONTFIX.