[Simh] Build failure of v38-0 on OS X 10.5.3.

Davis Johnson davis at frizzen.com
Wed Jun 25 07:31:22 EDT 2008


By the way, good you included the whole make output, but I snip parts.

Gregory Wright wrote:

>
> Hi,
>
> I downloaded the latest v38-0 release today (24 June 2008).  The host
> system is MacBook Pro 2.6 GHz, 4 GB RAM running OS 10.5.3. The build
> failed with
>
> redwing-dakota> export OSTYPE
> redwing-dakota> make
> gcc -std=c99 -U__STRICT_ANSI__ -g -D_GNU_SOURCE -I . PDP1/pdp1_lp.c 
> PDP1/pdp1_cpu.c PDP1/pdp1_stddev.c PDP1/pdp1_sys.c PDP1/pdp1_dt.c 
> PDP1/pdp1_drm.c PDP1/pdp1_clk.c PDP1/pdp1_dcs.c scp.c sim_console.c 
> sim_fio.c sim_timer.c sim_sock.c sim_tmxr.c sim_ether.c sim_tape.c -I 
> PDP1 -o BIN/pdp1 
> ...snip...
> gcc -std=c99 -U__STRICT_ANSI__ -g -D_GNU_SOURCE -I . VAX/vax_cpu.c 
> VAX/vax_cpu1.c VAX/vax_fpa.c VAX/vax_io.c VAX/vax_cis.c VAX/vax_octa.c 
>  VAX/vax_cmode.c VAX/vax_mmu.c VAX/vax_stddev.c VAX/vax_sysdev.c 
> VAX/vax_sys.c  VAX/vax_syscm.c VAX/vax_syslist.c PDP11/pdp11_rl.c 
> PDP11/pdp11_rq.c PDP11/pdp11_ts.c PDP11/pdp11_dz.c PDP11/pdp11_lp.c 
> PDP11/pdp11_tq.c PDP11/pdp11_xq.c PDP11/pdp11_ry.c PDP11/pdp11_vh.c 
> PDP11/pdp11_cr.c scp.c sim_console.c sim_fio.c sim_timer.c sim_sock.c 
> sim_tmxr.c sim_ether.c sim_tape.c -DVM_VAX -DUSE_INT64 -DUSE_ADDR64 -I 
> VAX -I PDP11  -o BIN/vax 
> VAX/vaxmod_defs.h:457: warning: inline function ‘WriteL’ declared but 
> never defined
> VAX/vaxmod_defs.h:456: warning: inline function ‘WriteW’ declared but 
> never defined
> VAX/vaxmod_defs.h:455: warning: inline function ‘WriteB’ declared but 
> never defined
> VAX/vaxmod_defs.h:454: warning: inline function ‘ReadLP’ declared but 
> never defined

...snip...

> Undefined symbols:
>   "_ReadB", referenced from:
>       _cpu_ex in cc5k1kBU.o
>       _Map_ReadB in cciTF8h7.o
>       _Read in cc1KMW8b.o
>   "_ReadL", referenced from:
>       _Map_ReadB in cciTF8h7.o
>       _Map_ReadW in cciTF8h7.o
>       _Read in cc1KMW8b.o

...snip...

> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make: *** [BIN/vax] Error 1
> redwing-dakota> 
>
>
> The OSTYPE environment variable is set to
>
> redwing-dakota> echo $OSTYPE
> darwin9.0
>
> From a quick look around the source tree it wasn't obvious to me
> where the Read* and Write* functions are defined.

I don't normally do VAX but it looks to me like they are following line 
200 in VAX/vax_mmu.c following line 200.

>
> Is there an additional secret sauce needed to build on OS X?

I've been building it on 10.3.9 PPC system. Library and toolchain issues 
are probably identical for you. All up to VAX built for you, so the 
makefile is probably OK. It looks to me  so much like you are missing 
part of the source that I just downloaded it again and rebuilt. I failed 
to reproduce your problem. That, obviously, doesn't mean you aren't 
having a problem.

I'd suggest grasping at straws:
1) Take a look in VAX/vax_mmu.c for the functions
2) Download and unzip the source again, do you get a different 
VAX/vax_mmu.c?
3) The functions in question are inlined for performance reasons. Try 
taking the SIM_INLINE away from them. Perhaps your compiler doesn't like 
that.
4) What compiler are you using. I tend to assume everybody uses a recent 
GCC, but that isn't always the case.

>
> Best Regards,
> Greg
>
>
> P.S. - And if Ethan is lurking on this list (as I know he sometimes 
> does), belated
> midwinter greetings!
>
>
> Gregory Wright
>
> Antiope Associates LLC
>
> 18 Clay Street
>
> Fair Haven, New Jersey 07704
>
> USA
>
>
> gwright at antiope.com <mailto:gwright at antiope.com>
>
>
> 1 (732) 924-4549
>
> 1 (732) 345-8378 [fax]
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Simh mailing list
>Simh at trailing-edge.com
>http://mailman.trailing-edge.com/mailman/listinfo/simh
>




More information about the Simh mailing list