From: Waldemar Schultz Newsgroups: comp.os.msdos.djgpp Subject: long line with make & gcc Date: Fri, 08 Jun 2001 12:07:00 +0200 Organization: [posted via] Leibniz-Rechenzentrum, Muenchen (Germany) Lines: 141 Message-ID: <3B20A3C4.5F245A4A@ma.tum.de> NNTP-Posting-Host: pcritter14.mathematik.tu-muenchen.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: wsc10.lrz-muenchen.de 991994817 29570 131.159.68.151 (8 Jun 2001 10:06:57 GMT) X-Complaints-To: news AT lrz-muenchen DOT de NNTP-Posting-Date: 8 Jun 2001 10:06:57 GMT X-Mailer: Mozilla 4.77 [en] (Win98; U) X-Accept-Language: de,en-US To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com DOS box in W98 SE 4.10.2222 make 3.79.1 gcc 2.59.3 DJDEV 2.03 I have a makefile that passes a long (some 300 characters) command line to gcc in the linking stage. This worked fine for many years. But since today the command line is truncated at character #124! Any Idea what could be the reason? I am stuck! I tried an earlier version of DJGPP but the same effect. the following actually is _one_ long line: gcc -o ../bin/gsim.exe sim.o glb_lib.o sim_lib.o sys_lib.o tpg_lib.o fil_lib.o bgi_lib.o geo_lib.o e01_lib.o mdl_lib.o Mdl00hy.o MDl01e.o MDL02t.o mdl03u.o mdl04bc.o mdl05p.o mdl06n.o ^^^^ mdl07si.o mdl08ak.o mdl09ag.o mdl10z.o mdl11f.o mdl12bo.o mdl13ss.o mdl14do.o mdl15r.o mdl16sm.o mdl17os.o mdl18ci.o -lm -lp2c -lgrx20 -g gcc.exe: Mdl0: No such file or directory (ENOENT) ^^^^ makefile sm.mak: PRJ = sm BASE = sim SUB1 = glb_lib sim_lib sys_lib tpg_lib fil_lib bgi_lib geo_lib e01_lib mdl_lib SUB2 = Mdl00hy MDl01e MDL02t mdl03u mdl04bc mdl05p mdl06n mdl07si mdl08ak SUB3 = mdl09ag mdl10z mdl11f mdl12bo mdl13ss mdl14do mdl15r mdl16sm mdl17os SUB4 = mdl18ci LIB = m p2c grx20 DEST = ../bin/ FILE = gsim.exe INIT = @stamp stmp_$(BASE).h INST = @copy ..\bin\$(FILE) ..\bin\simexe.exe DONE = @what $(FILE) #PFLG = -DSIM_GRAPH -DLOCAL #CFLG = -g -O3 -W -Wall -mpentium ### -Wno-unused PFLG = $(PFLAGS) CFLG = $(GFLAGS) #-Wno-unused LFLG = -g ############################################################################# CPPFLAGS += -MMD #-MD #-MMD CFLAGS = $(CFLG) $(PFLG) $(AUX) EXE = $(DEST)$(FILE) bin = o CC = gcc OBJ = $(BASE) $(SUB1) $(SUB2) $(SUB3) $(SUB4) OBJS = $(addsuffix .$(bin),$(OBJ)) LIBS = $(addprefix -l,$(LIB)) $(PRJ): $(EXE) $(EXE): $(OBJS) $(INIT) $(CC) -o $(EXE) $(OBJS) $(LIBS) $(LFLG) $(FILT) $(INST) $(DONE) -include $(OBJS:.$(bin)=.d) environment: RD=R winbootdir=D:\W\98 COMSPEC=C:\COMMAND.COM LMOUSE=d:\w\mouse TEMP=R:\temp TMP=R:\temp LOCALHOST=#66 ORIGAMIHOME=c:\usr\bin ORIGAMITERM=pc_rs PROMPT=#66:$e[33;1mW98$e[0m $P$G windir=D:\W\98 BLASTER=A220 I5 D1 T4 P330 EDITOR=ne DEFAULTEXT=c LF=C:\COMP\LF90\BIN INIT=C:\COMP\LF90\BIN LBDIR=C:\COMP\LF90\BIN LBCFG=C:\COMP\LF90\BIN\LB.CFG LBKEY=C:\COMP\LF90\BIN\LB.KEY LBMAC=C:\COMP\LF90\BIN\LB.MAC LBPST=C:\COMP\LF90\BIN\LB.PST LBLNG=C:\COMP\LF90\BIN\LB.LNG BC=C:\comp\bc3\bin SC=C:\comp\sc6 FG=C:\comp\fgx INCLUDE=C:\comp\sc6\include;C:\comp\fgx\include;C:\usr\include LIB=C:\comp\sc6\lib;C:\comp\fgx\lib AP=..\bin KATPRO=c:\usr\fgsm\h2o WORK_PATH=c:\usr\fgsm\h2o\sim\WORK RSLT_PATH=c:\usr\fgsm\h2o\sim\BERECH PRJ_PATH=c:\usr\fgsm\h2o\project DATA_PATH=C:\DATA DBSE_PATH=c:\usr\fgsm\h2o\sim\DBSE FNVER=900 HYDRAULIK=FNTZ900.exe PROFILE=FNV900.exe GEOMETRIE=THS900.exe TG_MON=on BGI_NULL=0.0 TG_BGI=on FG_DISPLAY=vesa5 DJ_GPP=E:\djgpp DJGPP=E:/djgpp/djgpp.env TMPDIR=R:/temp GO32TMP=R:/temp PATH=E:\DJGPP\BIN;..\BIN;C:\COMP\SC6\BIN;C:\COMP\BC3\BIN;C:\COMP\LF90\BIN;C:\USR\BIN;C:\SYS\BATS;D:\W\98;D:\W\98\COMMAND GRXFONT=E:/djgpp/contrib/fonts GRX20DRV=VESA gw 1024 gh 768 nc 256 C_INCLUDE_PATH=E:\djgpp/contrib/inc;c:/usr/include CPLUS_INCLUDE_PATH=E:\djgpp/contrib/inc;c:/usr/include LIBRARY_PATH=E:\djgpp/contrib/lib SIM_GRAPH=SIM_GRAPH SAV_OUT=nul LAM_OUT=off VAL_OUT=off JOB=sim JOB_PATH=\usr\fgsm\sim SKIPSC=X GFLAGS=-g -O3 -W -Wall -mpentium PFLAGS=-DSIM_GRAPH -DLOCAL -DCHK_NAN CMDLINE=origami sm Sorry for the lengthy post, but perhaps it helps. Thanks for any advice. -- Gruss Waldemar Schultz. schultz AT ma DOT tum DOT de Technische Universität München, Zentrum Mathematik M1, D 80290 München Tel: +49 (0)89 2892 8226 FAX: +49 (0)89 2892 8228