Thread: Directory trouble compiling latest m68k cross-compiler.

  1. #1
    Registered User
    Join Date
    Sep 2006
    Location
    Beaverton, Oregon, United States
    Posts
    176

    Directory trouble compiling latest m68k cross-compiler.

    Trying to get the latest version of vbcc cross compiler to compile for the m68k under windows but running into directory problem. From what I can tell the makefile is giving it some crazy directory to look in that its not finding. I have extracted the vbcc archive to the root directory of the hd. In other words c:\vbcc

    Here is the vbcc install instructions for windows:

    1.3.2 Installing for DOS/Windows
    1. Extract the archive.
    2. Set the environment variable VBCC to the vbcc directory.
    set VBCC=<prefix>\vbcc
    3. Include <prefix>/vbcc/bin to your search-path.
    set PATH=<prefix>\vbcc\bin;%PATH%
    Here is where its going nutty looking for some directory it can't find.

    Code:
    Microsoft Windows XP [Version 5.1.2600]
    </p>(C) Copyright 1985-2001 Microsoft Corp.
    
    C:\Documents and Settings\Cruisin'>cd c:\
    
    C:\>set VBCC=c:\vbcc
    
    C:\>set PATH=c:\vbcc\bin;%PATH%
    
    C:\>cd vbcc
    
    C:\vbcc>set gcc=c:\stuff\mingw\bin
    
    C:\vbcc>set PATH=c:\stuff\mingw\bin;%PATH%
    
    C:\vbcc>make
    
    Microsoft (R) Program Maintenance Utility Version 1.50
    Copyright (c) Microsoft Corp 1988-94. All rights reserved.
    
    gcc -std=c9x -g -DHAVE_AOS4 frontend/vc.c -o bin/vc -lm
    c:/stuff/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe: cann
    ot open output file bin/vc.exe: No such file or directory
    collect2: ld returned 1 exit status
    NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1'
    Stop.
    
    <p>C:\vbcc>
    I can't seem to find specifically where its telling it to look in this area but am not a makefile expert.

    Code:
    # used to create vbcc, vc and ucpp
    CC = gcc -std=c9x -g -DHAVE_AOS4 #-DHAVE_ECPP -DHAVE_MISRA
    LDFLAGS = -lm
    
    # native version; used to create dtgen
    NCC = $(CC)
    NLDFLAGS = $(LDFLAGS)
    
    all: bin/vc bin/vprof bin/vbcc$(TARGET) #bin/vcpp
    
    vbccs: bin/vbccs$(TARGET)
    
    bin/vc: frontend/vc.c
    $(CC) frontend/vc.c -o bin/vc $(LDFLAGS)
    
    bin/vprof: vprof/vprof.c
    $(CC) vprof/vprof.c -o bin/vprof $(LDFLAGS)
    
    doc/vbcc.pdf:
    texi2dvi --pdf doc/vbcc.texi
    
    doc/vbcc.html:
    (cd doc;texi2html -split=chapter -nosec_nav -frames vbcc.texi)
    sed -e s/vbcc_13/vbcc_1/ <doc/vbcc_frame.html >doc/vbcc.html
    
    vcppobjs = vcpp/cpp.o vcpp/eval.o vcpp/getopt.o vcpp/hideset.o vcpp/include.o \
    vcpp/lex.o vcpp/macro.o vcpp/nlist.o vcpp/tokens.o vcpp/unix.o
    
    vbcc.tar.gz:
    (cd ..;tar zcvf vbcc.tar.gz vbcc/Makefile vbcc/*.[ch] vbcc/datatypes/*.[ch] vbcc/doc/*.texi vbcc/frontend/vc.c vbcc/machines/*/machine.[ch] vbcc/machines/*/machine.dt vbcc/machines/*/schedule.[ch] vbcc/ucpp/*.[ch] vbcc/ucpp/README vbcc/vprof/vprof.c vbcc/vsc/vsc.[ch])
    
    bin/osekrm: osekrm.c
    $(CC) osekrm.c -o bin/osekrm
    
    dist: bin/osekrm
    mv supp.h t1
    mv supp.c t2
    mv main.c t3
    mv machines/ppc/machine.c t4
    mv declaration.c t5
    mv flow.c t6
    mv ic.c t7
    mv parse_expr.c t8
    mv statements.c t9
    mv rd.c t10
    mv type_expr.c t11
    bin/osekrm <t1 >supp.h
    bin/osekrm <t2 >supp.c
    bin/osekrm <t3 >main.c
    bin/osekrm <t4 >machines/ppc/machine.c
    bin/osekrm <t5 >declaration.c
    bin/osekrm <t6 >flow.c
    bin/osekrm <t7 >ic.c
    bin/osekrm <t8 >parse_expr.c
    bin/osekrm <t9 >statements.c
    bin/osekrm <t10 >rd.c
    bin/osekrm <t11 >type_expr.c
    make vbcc.tar.gz
    mv t1 supp.h
    mv t2 supp.c
    mv t3 main.c
    mv t4 machines/ppc/machine.c
    mv t5 declaration.c
    mv t6 flow.c
    mv t7 ic.c
    mv t8 parse_expr.c
    mv t9 statements.c
    mv t10 rd.c
    mv t11 type_expr.c 
    
    bin/vcpp: $(vcppobjs)
    $(CC) $(LDFLAGS) $(vcppobjs) -o bin/vcpp
    
    vcpp/cpp.o: vcpp/cpp.c vcpp/cpp.h
    $(CC) -c -Ivcpp vcpp/cpp.c -o vcpp/cpp.o
    
    vcpp/eval.o: vcpp/eval.c vcpp/cpp.h
    $(CC) -c -Ivcpp vcpp/eval.c -o vcpp/eval.o
    
    vcpp/getopt.o: vcpp/getopt.c
    $(CC) -c -Ivcpp vcpp/getopt.c -o vcpp/getopt.o
    
    vcpp/hideset.o: vcpp/hideset.c vcpp/cpp.h
    $(CC) -c -Ivcpp vcpp/hideset.c -o vcpp/hideset.o
    
    vcpp/include.o: vcpp/include.c vcpp/cpp.h
    $(CC) -c -Ivcpp vcpp/include.c -o vcpp/include.o
    
    vcpp/lex.o: vcpp/lex.c vcpp/cpp.h
    $(CC) -c -Ivcpp vcpp/lex.c -o vcpp/lex.o
    
    vcpp/macro.o: vcpp/macro.c vcpp/cpp.h
    $(CC) -c -Ivcpp vcpp/macro.c -o vcpp/macro.o
    
    vcpp/nlist.o: vcpp/nlist.c vcpp/cpp.h
    $(CC) -c -Ivcpp vcpp/nlist.c -o vcpp/nlist.o
    
    vcpp/tokens.o: vcpp/tokens.c vcpp/cpp.h
    $(CC) -c -Ivcpp vcpp/tokens.c -o vcpp/tokens.o
    
    vcpp/unix.o: vcpp/unix.c vcpp/cpp.h
    $(CC) -c -Ivcpp vcpp/unix.c -o vcpp/unix.o
    
    TRGDIR = machines/$(TARGET)
    
    bobjects = $(TRGDIR)/main.o $(TRGDIR)/vars.o $(TRGDIR)/declaration.o \
    $(TRGDIR)/parse_expr.o $(TRGDIR)/type_expr.o $(TRGDIR)/ic.o \
    $(TRGDIR)/machine.o $(TRGDIR)/statements.o \
    $(TRGDIR)/supp.o $(TRGDIR)/dt.o \
    $(TRGDIR)/assert.o $(TRGDIR)/cpp.o $(TRGDIR)/hash.o \
    $(TRGDIR)/lexer.o $(TRGDIR)/macro.o $(TRGDIR)/mem.o \
    $(TRGDIR)/eval.o
    # $(TRGDIR)/AdjList.o $(TRGDIR)/DUChain.o \
    # $(TRGDIR)/ICodeInsertion.o $(TRGDIR)/NodeList.o \
    # $(TRGDIR)/RAllocMain.o $(TRGDIR)/Web.o
    
    fobjects = $(TRGDIR)/opt.o $(TRGDIR)/av.o $(TRGDIR)/rd.o $(TRGDIR)/regs.o \
    $(TRGDIR)/flow.o $(TRGDIR)/cse.o $(TRGDIR)/cp.o $(TRGDIR)/loop.o \
    $(TRGDIR)/alias.o $(bobjects)
    
    sobjects = $(TRGDIR)/opts.o $(TRGDIR)/regss.o $(bobjects)
    
    tasm = $(TRGDIR)/supp.o $(TRGDIR)/tasm.o $(TRGDIR)/dt.o \
    $(TRGDIR)/opt.o $(TRGDIR)/av.o $(TRGDIR)/rd.o $(TRGDIR)/regs.o \
    $(TRGDIR)/flow.o $(TRGDIR)/cse.o $(TRGDIR)/cp.o $(TRGDIR)/loop.o \
    $(TRGDIR)/alias.o $(TRGDIR)/machine.o
    
    mbasic = $(TRGDIR)/supp.o $(TRGDIR)/mbasic.o $(TRGDIR)/dt.o \
    $(TRGDIR)/opt.o $(TRGDIR)/av.o $(TRGDIR)/rd.o $(TRGDIR)/regs.o \
    $(TRGDIR)/flow.o $(TRGDIR)/cse.o $(TRGDIR)/cp.o $(TRGDIR)/loop.o \
    $(TRGDIR)/alias.o $(TRGDIR)/machine.o
    
    minicomp = $(TRGDIR)/supp.o $(TRGDIR)/minicompg.tab.o $(TRGDIR)/minicomp.o $(TRGDIR)/dt.o \
    $(TRGDIR)/opt.o $(TRGDIR)/av.o $(TRGDIR)/rd.o $(TRGDIR)/regs.o \
    $(TRGDIR)/flow.o $(TRGDIR)/cse.o $(TRGDIR)/cp.o $(TRGDIR)/loop.o \
    $(TRGDIR)/alias.o $(TRGDIR)/machine.o
    
    vscobjects = $(TRGDIR)/vsc.o $(TRGDIR)/schedule.o
    
    bin/vbcc$(TARGET): $(fobjects)
    $(CC) $(LDFLAGS) $(fobjects) -o bin/vbcc$(TARGET)
    
    bin/vbccs$(TARGET): $(sobjects)
    $(CC) $(LDFLAGS) $(sobjects) -o bin/vbccs$(TARGET)
    
    bin/vsc$(TARGET): $(vscobjects)
    $(CC) $(LDFLAGS) $(vscobjects) -o bin/vsc$(TARGET)
    
    bin/tasm$(TARGET): $(tasm)
    $(CC) $(LDFLAGS) $(tasm) -o bin/tasm$(TARGET)
    
    bin/mbasic$(TARGET): $(mbasic)
    $(CC) $(LDFLAGS) $(mbasic) -o bin/mbasic$(TARGET)
    
    bin/minicomp$(TARGET): $(minicomp)
    $(CC) $(LDFLAGS) $(minicomp) -o bin/minicomp$(TARGET)
    
    bin/dtgen: datatypes/dtgen.c datatypes/datatypes.h datatypes/dtconv.h
    $(NCC) datatypes/dtgen.c -o bin/dtgen -Idatatypes $(NLDFLAGS)
    
    $(TRGDIR)/dt.h: bin/dtgen $(TRGDIR)/machine.dt
    bin/dtgen $(TRGDIR)/machine.dt $(TRGDIR)/dt.h $(TRGDIR)/dt.c
    
    $(TRGDIR)/dt.c: bin/dtgen $(TRGDIR)/machine.dt
    bin/dtgen $(TRGDIR)/machine.dt $(TRGDIR)/dt.h $(TRGDIR)/dt.c
    
    $(TRGDIR)/dt.o: $(TRGDIR)/dt.h $(TRGDIR)/dt.c
    $(CC) -c $(TRGDIR)/dt.c -o $(TRGDIR)/dt.o -I$(TRGDIR) -Idatatypes
    
    $(TRGDIR)/tasm.o: tasm.c supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c tasm.c -o $(TRGDIR)/tasm.o -I$(TRGDIR)
    
    $(TRGDIR)/mbasic.o: mbasic.c supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c mbasic.c -o $(TRGDIR)/mbasic.o -I$(TRGDIR)
    
    $(TRGDIR)/minicomp.o: minicomp.c minicomp.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c minicomp.c -o $(TRGDIR)/minicomp.o -I$(TRGDIR)
    
    $(TRGDIR)/minicompg.tab.o: minicompg.y minicomplexer.c minicomp.h supp.h
    bison minicompg.y
    $(CC) -c minicompg.tab.c -o $(TRGDIR)/minicompg.tab.o -I$(TRGDIR)
    
    $(TRGDIR)/supp.o: supp.c supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c supp.c -o $(TRGDIR)/supp.o -I$(TRGDIR)
    
    $(TRGDIR)/main.o: main.c vbc.h supp.h vbcc_cpp.h ucpp/cpp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c main.c -o $(TRGDIR)/main.o -I$(TRGDIR)
    
    $(TRGDIR)/vars.o: vars.c vbc.h supp.h $(TRGDIR)/machine.h errors.h $(TRGDIR)/dt.h
    $(CC) -c vars.c -o $(TRGDIR)/vars.o -I$(TRGDIR)
    
    $(TRGDIR)/declaration.o: declaration.c vbc.h supp.h vbcc_cpp.h ucpp/cpp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c declaration.c -o $(TRGDIR)/declaration.o -I$(TRGDIR)
    
    $(TRGDIR)/parse_expr.o: parse_expr.c vbc.h supp.h vbcc_cpp.h ucpp/cpp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c parse_expr.c -o $(TRGDIR)/parse_expr.o -I$(TRGDIR)
    
    $(TRGDIR)/type_expr.o: type_expr.c vbc.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c type_expr.c -o $(TRGDIR)/type_expr.o -I$(TRGDIR)
    
    $(TRGDIR)/ic.o: ic.c vbc.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c ic.c -o $(TRGDIR)/ic.o -I$(TRGDIR)
    
    $(TRGDIR)/statements.o: statements.c vbc.h supp.h vbcc_cpp.h ucpp/cpp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c statements.c -o $(TRGDIR)/statements.o -I$(TRGDIR)
    
    $(TRGDIR)/opt.o: opt.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c opt.c -o $(TRGDIR)/opt.o -I$(TRGDIR)
    
    $(TRGDIR)/av.o: av.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c av.c -o $(TRGDIR)/av.o -I$(TRGDIR)
    
    $(TRGDIR)/rd.o: rd.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c rd.c -o $(TRGDIR)/rd.o -I$(TRGDIR)
    
    $(TRGDIR)/regs.o: regs.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c regs.c -o $(TRGDIR)/regs.o -I$(TRGDIR)
    
    $(TRGDIR)/flow.o: flow.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c flow.c -o $(TRGDIR)/flow.o -I$(TRGDIR)
    
    $(TRGDIR)/cse.o: cse.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c cse.c -o $(TRGDIR)/cse.o -I$(TRGDIR)
    
    $(TRGDIR)/cp.o: cp.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c cp.c -o $(TRGDIR)/cp.o -I$(TRGDIR)
    
    $(TRGDIR)/loop.o: loop.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c loop.c -o $(TRGDIR)/loop.o -I$(TRGDIR)
    
    $(TRGDIR)/alias.o: alias.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c alias.c -o $(TRGDIR)/alias.o -I$(TRGDIR)
    
    $(TRGDIR)/preproc.o: preproc.c vbpp.h supp.h vbc.h $(TRGDIR)/dt.h
    $(CC) -c preproc.c -o $(TRGDIR)/preproc.o -I$(TRGDIR)
    
    $(TRGDIR)/assert.o: ucpp/assert.c ucpp/cpp.h ucpp/mem.h ucpp/hash.h ucpp/tune.h $(TRGDIR)/dt.h
    $(CC) -DNO_UCPP_ERROR_FUNCTIONS -c ucpp/assert.c -o $(TRGDIR)/assert.o -I$(TRGDIR)
    
    $(TRGDIR)/cpp.o: ucpp/cpp.c ucpp/cpp.h ucpp/mem.h ucpp/hash.h ucpp/tune.h $(TRGDIR)/dt.h
    $(CC) -DNO_UCPP_ERROR_FUNCTIONS -c ucpp/cpp.c -o $(TRGDIR)/cpp.o -I$(TRGDIR)
    
    $(TRGDIR)/hash.o: ucpp/hash.c ucpp/cpp.h ucpp/mem.h ucpp/hash.h ucpp/tune.h $(TRGDIR)/dt.h
    $(CC) -DNO_UCPP_ERROR_FUNCTIONS -c ucpp/hash.c -o $(TRGDIR)/hash.o -I$(TRGDIR)
    
    $(TRGDIR)/lexer.o: ucpp/lexer.c ucpp/cpp.h ucpp/mem.h ucpp/hash.h ucpp/tune.h $(TRGDIR)/dt.h
    $(CC) -DNO_UCPP_ERROR_FUNCTIONS -c ucpp/lexer.c -o $(TRGDIR)/lexer.o -I$(TRGDIR)
    
    $(TRGDIR)/macro.o: ucpp/macro.c ucpp/cpp.h ucpp/mem.h ucpp/hash.h ucpp/tune.h $(TRGDIR)/dt.h
    $(CC) -DNO_UCPP_ERROR_FUNCTIONS -c ucpp/macro.c -o $(TRGDIR)/macro.o -I$(TRGDIR)
    
    $(TRGDIR)/mem.o: ucpp/mem.c ucpp/cpp.h ucpp/mem.h ucpp/hash.h ucpp/tune.h $(TRGDIR)/dt.h
    $(CC) -DNO_UCPP_ERROR_FUNCTIONS -c ucpp/mem.c -o $(TRGDIR)/mem.o -I$(TRGDIR)
    
    $(TRGDIR)/eval.o: ucpp/eval.c ucpp/cpp.h ucpp/mem.h ucpp/tune.h $(TRGDIR)/dt.h
    $(CC) -DNO_UCPP_ERROR_FUNCTIONS -c ucpp/eval.c -o $(TRGDIR)/eval.o -I$(TRGDIR)
    
    $(TRGDIR)/machine.o: $(TRGDIR)/machine.c supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h dwarf2.c
    $(CC) -c $(TRGDIR)/machine.c -o $(TRGDIR)/machine.o -I$(TRGDIR) -I.
    
    $(TRGDIR)/opts.o: opt.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c -DNO_OPTIMIZER opt.c -o $(TRGDIR)/opts.o -I$(TRGDIR)
    
    $(TRGDIR)/regss.o: regs.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c -DNO_OPTIMIZER regs.c -o $(TRGDIR)/regss.o -I$(TRGDIR)
    
    $(TRGDIR)/vsc.o: vsc/vsc.h vsc/vsc.c $(TRGDIR)/schedule.h
    $(CC) -c vsc/vsc.c -o $(TRGDIR)/vsc.o -I$(TRGDIR)
    
    $(TRGDIR)/schedule.o: vsc/vsc.h $(TRGDIR)/schedule.h $(TRGDIR)/schedule.c
    $(CC) -c $(TRGDIR)/schedule.c -o $(TRGDIR)/schedule.o -I$(TRGDIR) -Ivsc
    
    
    # Graph coloring register allocator by Alex
    $(TRGDIR)/AdjList.o: GCRegAlloc/AdjList.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c GCRegAlloc/AdjList.c -o $(TRGDIR)/AdjList.o -IGCRegAlloc -I$(TRGDIR)
    
    $(TRGDIR)/DUChain.o: GCRegAlloc/DUChain.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c GCRegAlloc/DUChain.c -o $(TRGDIR)/DUChain.o -IGCRegAlloc -I$(TRGDIR)
    
    $(TRGDIR)/ICodeInsertion.o: GCRegAlloc/ICodeInsertion.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c GCRegAlloc/ICodeInsertion.c -o $(TRGDIR)/ICodeInsertion.o -IGCRegAlloc -I$(TRGDIR)
    
    $(TRGDIR)/NodeList.o: GCRegAlloc/NodeList.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c GCRegAlloc/NodeList.c -o $(TRGDIR)/NodeList.o -IGCRegAlloc -I$(TRGDIR)
    
    $(TRGDIR)/RAllocMain.o: GCRegAlloc/RAllocMain.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c GCRegAlloc/RAllocMain.c -o $(TRGDIR)/RAllocMain.o -IGCRegAlloc -I$(TRGDIR)
    
    $(TRGDIR)/Web.o: GCRegAlloc/Web.c opt.h supp.h $(TRGDIR)/machine.h $(TRGDIR)/dt.h
    $(CC) -c GCRegAlloc/Web.c -o $(TRGDIR)/Web.o -IGCRegAlloc -I$(TRGDIR)
    Sorry about the friggin walls of text just looking for some help here. Thanks for your time guys.

  2. #2
    Registered User
    Join Date
    Sep 2006
    Location
    Beaverton, Oregon, United States
    Posts
    176
    It seems to be looking in the mingw directory tree for vc and I dont know why.

  3. #3
    Registered User
    Join Date
    May 2012
    Posts
    1,066
    Code:
    C:\vbcc>make
    
    Microsoft (R) Program Maintenance Utility Version 1.50
    Copyright (c) Microsoft Corp 1988-94. All rights reserved.
    
    gcc -std=c9x -g -DHAVE_AOS4 frontend/vc.c -o bin/vc -lm
    c:/stuff/mingw/bin/../lib/gcc/mingw32/4.6.2/../../../../mingw32/bin/ld.exe: cann
    ot open output file bin/vc.exe: No such file or directory
    No, gcc tries to create the output file "vc.exe" in the subdirectory "bin" which doesn't exist.
    Looking at this blog-post you need to create this subdirectory yourself before calling make.

    Bye, Andreas

  4. #4
    Registered User
    Join Date
    Sep 2006
    Location
    Beaverton, Oregon, United States
    Posts
    176
    WOW thats awesome! Thank you1 Actually its my bad. I didnt even think to google it.

  5. #5
    Registered User
    Join Date
    Sep 2006
    Location
    Beaverton, Oregon, United States
    Posts
    176
    Am using windows, of course. Having trouble installing vlink. I got it to compile.

    Now doing the install instructions am getting stonewalled:

    Code:
    C:\vlink>mkdir objects
    A subdirectory or file objects already exists.
    
    C:\vlink>make
    
    Microsoft (R) Program Maintenance Utility   Version 1.50
    Copyright (c) Microsoft Corp 1988-94. All rights reserved.
    
            gcc -o objects/main.o -O2 -fomit-frame-pointer -c  main.c
            gcc -o objects/support.o -O2 -fomit-frame-pointer -c  support.c
            gcc -o objects/errors.o -O2 -fomit-frame-pointer -c  errors.c
            gcc -o objects/linker.o -O2 -fomit-frame-pointer -c  linker.c
            gcc -o objects/dir.o -O2 -fomit-frame-pointer -c  dir.c
            gcc -o objects/targets.o -O2 -fomit-frame-pointer -c  targets.c
            gcc -o objects/ar.o -O2 -fomit-frame-pointer -c  ar.c
            gcc -o objects/ldscript.o -O2 -fomit-frame-pointer -c  ldscript.c
            gcc -o objects/pmatch.o -O2 -fomit-frame-pointer -c  pmatch.c
            gcc -o objects/expr.o -O2 -fomit-frame-pointer -c  expr.c
            gcc -o objects/t_amigahunk.o -O2 -fomit-frame-pointer -c  t_amigahunk.c
            gcc -o objects/elf.o -O2 -fomit-frame-pointer -c  elf.c
            gcc -o objects/t_elf32.o -O2 -fomit-frame-pointer -c  t_elf32.c
            gcc -o objects/t_elf64.o -O2 -fomit-frame-pointer -c  t_elf64.c
            gcc -o objects/t_elf64x86.o -O2 -fomit-frame-pointer -c  t_elf64x86.c
            gcc -o objects/t_elf32ppcbe.o -O2 -fomit-frame-pointer -c  t_elf32ppcbe.
    c
            gcc -o objects/t_elf32m68k.o -O2 -fomit-frame-pointer -c  t_elf32m68k.c
            gcc -o objects/t_elf32i386.o -O2 -fomit-frame-pointer -c  t_elf32i386.c
            gcc -o objects/t_elf32arm.o -O2 -fomit-frame-pointer -c  t_elf32arm.c
            gcc -o objects/t_aout.o -O2 -fomit-frame-pointer -c  t_aout.c
            gcc -o objects/t_aoutnull.o -O2 -fomit-frame-pointer -c  t_aoutnull.c
            gcc -o objects/t_aoutm68k.o -O2 -fomit-frame-pointer -c  t_aoutm68k.c
            gcc -o objects/t_aouti386.o -O2 -fomit-frame-pointer -c  t_aouti386.c
            gcc -o objects/t_aoutmint.o -O2 -fomit-frame-pointer -c  t_aoutmint.c
            gcc -o objects/t_ataritos.o -O2 -fomit-frame-pointer -c  t_ataritos.c
            gcc -o objects/t_rawbin.o -O2 -fomit-frame-pointer -c  t_rawbin.c
            gcc -o objects/t_rawseg.o -O2 -fomit-frame-pointer -c  t_rawseg.c
            gcc -o objects/t_vobj.o -O2 -fomit-frame-pointer -c  t_vobj.c
            gcc -o objects/version.o -O2 -fomit-frame-pointer -c  version.c
            gcc -o vlink  objects/main.o objects/support.o objects/errors.o  objects
    /linker.o objects/dir.o objects/targets.o objects/ar.o  objects/ldscript.o objec
    ts/pmatch.o objects/expr.o  objects/t_amigahunk.o objects/elf.o  objects/t_elf32
    .o objects/t_elf64.o objects/t_elf64x86.o  objects/t_elf32ppcbe.o objects/t_elf3
    2m68k.o  objects/t_elf32i386.o objects/t_elf32arm.o  objects/t_aout.o objects/t_
    aoutnull.o objects/t_aoutm68k.o  objects/t_aouti386.o objects/t_aoutmint.o objec
    ts/t_ataritos.o  objects/t_rawbin.o objects/t_rawseg.o objects/t_vobj.o objects/
    version.o
    
    C:\vlink>mkdir -p /test/vlink
    The syntax of the command is incorrect.
    
    C:\vlink>mkdir -p /opt/vbcc/bin
    The syntax of the command is incorrect.
    
    C:\vlink>mkdir /opt/vbcc/bin
    The syntax of the command is incorrect.
    I guess it does not matter in that can just take the new build and overwrite the old build. But I better learn how to do the mkdir syntax correctly. Actually it does matter. I have to make an install package for all this eventually.
    Last edited by A34Chris; 04-22-2013 at 07:21 PM.

  6. #6
    Registered User
    Join Date
    May 2012
    Posts
    1,066
    You don't really need the -p switch of the mkdir command. It just makes it more convenient if you want to create a bigger directory tree because it will create all parent directories in between. For example:
    Code:
    $ mkdir foo/bar/baz
    mkdir: cannot create directory `foo/bar/baz': No such file or directory
    $ mkdir -p foo/bar/baz
    $ tree foo
    foo
    └── bar
        └── baz
    
    2 directories, 0 files
    If it doesn't work for you, you have to create all the directories manually.

    But I think your problem is the '/' as the path delimiter. AFAIK Windows uses the backslash '\'.

    Bye, Andreas

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Updating a vbcc compiler for m68k.
    By A34Chris in forum Tech Board
    Replies: 0
    Last Post: 03-18-2013, 05:43 PM
  2. Permission Denied -using latest c++ compiler
    By thriller500 in forum C++ Programming
    Replies: 7
    Last Post: 11-07-2012, 12:05 PM
  3. Replies: 17
    Last Post: 05-07-2006, 06:11 PM
  4. Replies: 2
    Last Post: 09-09-2004, 12:57 PM
  5. Comile problem using latest Dev C++ Compiler
    By shiny_dico_ball in forum C++ Programming
    Replies: 6
    Last Post: 06-06-2003, 05:32 PM