[Simh] SimH 3.6-0 (problems compiling VAX using MinGW) DIAGNOSIS

Hittner, David T. david.hittner at ngc.com
Fri Jun 9 10:04:03 EDT 2006


You might try these gcc-specific makefiles that I have been
experimenting with.
This makefile builds (and rebuilds) file-by-file instead of a full
rebuild if any file is out of sync.

Put the files in the top-level SIMH directory, then:

set path=%path%;c:\mingw\bin
make vax

Note that the location of the WinPCAP directories are defined in the
external Gnumakefile_variables file.
You may need to change this (or disable PCAP) in the variables file
depending on your needs.

Let me know if there are any improvements that I could add.
Dave


> -----Original Message-----
> From: simh-bounces at trailing-edge.com 
> [mailto:simh-bounces at trailing-edge.com] On Behalf Of Wilm Boerhout
> Sent: Friday, June 09, 2006 8:50 AM
> To: SIMH Mailing List
> Subject: Re: [Simh] SimH 3.6-0 (problems compiling VAX using 
> MinGW) DIAGNOSIS
> 
> The cause seems to be this: in the makefile, symbols are 
> defined for the VAX (and VAX780) folder names. These names 
> are used then both for locating the modules to build, and for 
> the "-I" switch, as in:
> 
> VAXD = VAX/
> VAX = ${VAXD}vax_cpu.c ${VAXD}vax_cpu1.c ${VAXD}vax_fpa.c 
> ${VAXD}vax_io.c \
>     ${VAXD}vax_cis.c ${VAXD}vax_octa.c  ${VAXD}vax_cmode.c \ [snip]
>     ${PDP11D}pdp11_vh.c ${PDP11D}pdp11_cr.c VAX_OPT = 
> -DVM_VAX -DUSE_INT64 -DUSE_ADDR64 -I ${VAXD} -I ${PDP11D} 
> ${NETWORK_OPT}
> 
> Output from "gcc -v" (below) shows that the "I ${VAXD}" 
> results in gcc not including that folder in its include path. 
> When I manually change "-I ${VAXD}" to "-I VAX", effectively 
> omitting the forward slash, the build will go fine.
> 
> I cannot see how this has ever worked. Then again, this is my 
> first experience with gcc, so what do I know?
> 
> /Wilm
> 
> Reading specs from C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/specs
> Configured with: ../gcc/configure --with-gcc --with-gnu-ld 
> --with-gnu-as
> --host=mingw32 --target=mingw32 --prefix=/mingw 
> --enable-threads --disable-nls --enable 
> -languages=c,c++,f77,ada,objc,java
> --disable-win32-registry --disable-shared 
> --enable-sjlj-exceptions --enable-libgcj --disable-java-awt 
> --without-x --enable-java-gc=boehm --disable-libgcj-debug 
> --enable-interpreter --enable-hash-synchronization 
> --enable-libstdcxx-debug Thread model: win32 gcc version 
> 3.4.2 (mingw-special)  
> C:/MinGW/bin/../libexec/gcc/mingw32/3.4.2/cc1.exe -quiet -v 
> -I. -I VAX/ -I PDP11/ -iprefix C:\MinGW\bin/../lib/gcc/mingw32/3.4.2/
> -U__STRICT_ANSI__ -DVM_VAX -DUSE_INT64 -DUSE_ADDR64 
> VAX/vax_cpu.c -quiet -dumpbase vax_cpu.c -auxbase vax_cpu -O3 
> -std=c99 -version -o D:\Temp\User/cc23aaaa.s ignoring 
> nonexistent directory 
> "C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../mingw32/include"
> ignoring nonexistent directory "/mingw/include"
> ignoring nonexistent directory "/mingw/include"
> ignoring nonexistent directory "/mingw/lib/gcc/mingw32/3.4.2/include"
> ignoring nonexistent directory "/mingw/mingw32/include"
> ignoring nonexistent directory "/mingw/include"
> *ignoring nonexistent directory "VAX/"*
> *ignoring nonexistent directory "PDP11/"* #include "..." 
> search starts here:
> #include <...> search starts here:
>  .
>  C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../include
>  C:/MinGW/bin/../lib/gcc/mingw32/3.4.2/include
> End of search list.
> _______________________________________________
> Simh mailing list
> Simh at trailing-edge.com
> http://mailman.trailing-edge.com/mailman/listinfo/simh
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GNUmakefile_variables
Type: application/octet-stream
Size: 2849 bytes
Desc: GNUmakefile_variables
URL: <http://mailman.trailing-edge.com/pipermail/simh/attachments/20060609/0d62d756/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GNUmakefile
Type: application/octet-stream
Size: 24668 bytes
Desc: GNUmakefile
URL: <http://mailman.trailing-edge.com/pipermail/simh/attachments/20060609/0d62d756/attachment-0003.obj>


More information about the Simh mailing list