On 19 Mar 2013, at 17:04, "Dave McGuire" <mcguire at neurotica.com> wrote:
On 03/19/2013 04:58 PM, Cory Smelosky wrote:
I have done this and the result is less errors, but I still get some:
(I did try with the cp as well. No change)
bash-3.2$ unzip -aaqq master
bash-3.2$ cd simh-master
bash-3.2$ /opt/csw/bin/gmake vax GCC=/opt/solarisstudio12.3/bin/CC
Change GCC=/opt/solarisstudio12.3/bin/CC to GCC=/opt/solarisstudio12.3/bin/cc
The simh code base is C not C++.
Ahh. That's an odd way to differentiate between a C and C++ compiler...
It's pretty standard, actually. It's just not the way GCC does it.
I'm used to either Unices that don't differentiate that way, or predate C++. ;)
-Dave
--
Dave McGuire, AK4HZ
New Kensington, PA
On Tue, Mar 19, 2013 at 5:04 PM, Dave McGuire <mcguire at neurotica.com> wrote:
On 03/19/2013 04:58 PM, Cory Smelosky wrote:
I have done this and the result is less errors, but I still get some:
(I did try with the cp as well. No change)
bash-3.2$ unzip -aaqq master
bash-3.2$ cd simh-master
bash-3.2$ /opt/csw/bin/gmake vax GCC=/opt/solarisstudio12.3/bin/CC
Change GCC=/opt/solarisstudio12.3/bin/CC to GCC=/opt/solarisstudio12.3/bin/cc
The simh code base is C not C++.
Ahh. That's an odd way to differentiate between a C and C++ compiler...
It's pretty standard, actually. It's just not the way GCC does it.
-Dave
--
Dave McGuire, AK4HZ
New Kensington, PA
Hello!
Yes indeed. Never mind the fact that the tools share an origin with
both Solaris and BSD and of course Linux.
Now Dave I can see you from your windows, as I type this. Please stop
staring. Yes I'm the one in the older yellow car with the young lady.
Also you didn't release the 32 Gigabytes that they need, so they are
going to request an extra 64 instead.
-----
Gregg C Levine gregg.drwho8 at gmail.com
"This signature fought the Time Wars, time and again."
On 2013-03-19 21:58, Cory Smelosky wrote:
On 19 Mar 2013, at 16:52, "Mark Pizzolato - Info Comm" <Mark at infocomm.com> wrote:
On Tuesday, March 19, 2013 at 1:12 PM, Cory Smelosky wrote:
I have done this and the result is less errors, but I still get some:
(I did try with the cp as well. No change)
bash-3.2$ unzip -aaqq master
bash-3.2$ cd simh-master
bash-3.2$ /opt/csw/bin/gmake vax GCC=/opt/solarisstudio12.3/bin/CC
Change GCC=/opt/solarisstudio12.3/bin/CC to GCC=/opt/solarisstudio12.3/bin/cc
The simh code base is C not C++.
Ahh. That's an odd way to differentiate between a C and C++ compiler...
I seem to remember that this was a rather common convention a while back. Not that I necessarily think it was a good one.
Johnny
On 03/19/2013 05:03 PM, Mark Pizzolato - Info Comm wrote:
I do know that on Dave's system I was using 'cc' instead of 'CC', and
the latest code compiles now without any issues.
Nice work! Thank you for your efforts.
-Dave
--
Dave McGuire, AK4HZ
New Kensington, PA
On 03/19/2013 04:58 PM, Cory Smelosky wrote:
I have done this and the result is less errors, but I still get some:
(I did try with the cp as well. No change)
bash-3.2$ unzip -aaqq master
bash-3.2$ cd simh-master
bash-3.2$ /opt/csw/bin/gmake vax GCC=/opt/solarisstudio12.3/bin/CC
Change GCC=/opt/solarisstudio12.3/bin/CC to GCC=/opt/solarisstudio12.3/bin/cc
The simh code base is C not C++.
Ahh. That's an odd way to differentiate between a C and C++ compiler...
It's pretty standard, actually. It's just not the way GCC does it.
-Dave
--
Dave McGuire, AK4HZ
New Kensington, PA
On Tuesday, March 19, 2013 at 1:58 PM, Cory Smelosky wrote:
On 19 Mar 2013, at 16:52, "Mark Pizzolato - Info Comm"
<Mark at infocomm.com> wrote:
On Tuesday, March 19, 2013 at 1:12 PM, Cory Smelosky wrote:
I have done this and the result is less errors, but I still get some:
(I did try with the cp as well. No change)
bash-3.2$ unzip -aaqq master
bash-3.2$ cd simh-master
bash-3.2$ /opt/csw/bin/gmake vax GCC=/opt/solarisstudio12.3/bin/CC
Change GCC=/opt/solarisstudio12.3/bin/CC to
GCC=/opt/solarisstudio12.3/bin/cc
The simh code base is C not C++.
Ahh. That's an...odd way to differentiate between a C and C++ compiler...
I'm just guessing that is what is going on.
I do know that on Dave's system I was using 'cc' instead of 'CC', and the latest code compiles now without any issues.
- Mark
On 19 Mar 2013, at 16:52, "Mark Pizzolato - Info Comm" <Mark at infocomm.com> wrote:
On Tuesday, March 19, 2013 at 1:12 PM, Cory Smelosky wrote:
I have done this and the result is less errors, but I still get some:
(I did try with the cp as well. No change)
bash-3.2$ unzip -aaqq master
bash-3.2$ cd simh-master
bash-3.2$ /opt/csw/bin/gmake vax GCC=/opt/solarisstudio12.3/bin/CC
Change GCC=/opt/solarisstudio12.3/bin/CC to GCC=/opt/solarisstudio12.3/bin/cc
The simh code base is C not C++.
Ahh. That's an odd way to differentiate between a C and C++ compiler...
- Mark
On Tuesday, March 19, 2013 at 1:12 PM, Cory Smelosky wrote:
I have done this and the result is less errors, but I still get some:
(I did try with the cp as well. No change)
bash-3.2$ unzip -aaqq master
bash-3.2$ cd simh-master
bash-3.2$ /opt/csw/bin/gmake vax GCC=/opt/solarisstudio12.3/bin/CC
Change GCC=/opt/solarisstudio12.3/bin/CC to GCC=/opt/solarisstudio12.3/bin/cc
The simh code base is C not C++.
- Mark
On 03/19/2013 03:07 PM, Mark Pizzolato - Info Comm wrote:
When I compile on Dave s system using Sun C ( 5.12), I needed to change
the line endings to LF from CR-LF.
If dos2unix took a list of filenames to convert in-place then we d
merely do:
$ dos2unix makefile *.txt *.c *.h */*.h */*.c
$ find . -type f -name *.[ch] -exec dos2unix {} \;
-Dave
--
Dave McGuire, AK4HZ
New Kensington, PA
On 19 Mar 2013, at 15:07, "Mark Pizzolato - Info Comm" <Mark at infocomm.com> wrote:
Numerous changes over the last few days. Please pull the latest from github before proceeding.
Done.
When I compile on Dave s system using Sun C ( 5.12), I needed to change the line endings to LF from CR-LF.
If dos2unix took a list of filenames to convert in-place then we d merely do:
$ dos2unix makefile *.txt *.c *.h */*.h */*.c
Since dos2unix doesn t work like I d hope, we can get around this with unzip:
$ unzip aa master.zip
$ mkdir temp
$ cd temp
$ unzip ../master.zip
$ cp simh-master/VAX/*.bin simh-master/VAX/*.exe ../simh-master/VAX/
$ cd ../simh-master
$ /opt/csw/bin/gmake vax GCC=/opt/solarisstudio12.3/bin/CC
I have done this and the result is less errors, but I still get some:
(I did try with the cp as well. No change)
bash-3.2$ unzip -aaqq master
bash-3.2$ cd simh-master
bash-3.2$ /opt/csw/bin/gmake vax GCC=/opt/solarisstudio12.3/bin/CC
lib paths are: /lib /usr/lib
using libm: /lib/libm.so
using librt: /lib/librt.so
using libpthread: /lib/libpthread.so /usr/include/pthread.h
using libdl: /lib/libdl.so /usr/include/dlfcn.h
using libpcap: /usr/include/pcap.h
***
*** vax Simulator being built with:
*** - compiler optimizations and no debugging support. Sun C 5.12.
*** - dynamic networking support using Solaris provided libpcap components.
***
mkdir -p BIN
/opt/solarisstudio12.3/bin/CC -U__STRICT_ANSI__ -O2 -I . -D_GNU_SOURCE -D_LARGEFILE_SOURCE -DUSE_READER_THREAD -DSIM_ASYNCH_IO -DHAVE_DLOPEN=so sim_BuildROMs.c -o BIN/BuildROMs
"sim_BuildROMs.c", line 42: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 42: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 42: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 43: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 43: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 43: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 44: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 44: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 44: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 45: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 45: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 45: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 46: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 46: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 46: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 107: Error: Cannot assign void* to char*.
"sim_BuildROMs.c", line 119: Error: Cannot assign void* to unsigned char*.
"sim_BuildROMs.c", line 158: Error: Cannot assign void* to unsigned char*.
"sim_BuildROMs.c", line 169: Error: Cannot assign const char* to char*.
"sim_BuildROMs.c", line 245: Error: Cannot assign void* to unsigned char*.
5 Error(s) and 15 Warning(s) detected.
gmake: *** [BIN/BuildROMs] Error 2
Hitting an issue when using SunCC from Solaris Studio now:
bash-3.2$ /opt/csw/bin/gmake vax GCC=/opt/solarisstudio12.3/bin/CC
lib paths are: /lib /usr/lib
using libm: /lib/libm.so
using librt: /lib/librt.so
using libpthread: /lib/libpthread.so /usr/include/pthread.h
using libdl: /lib/libdl.so /usr/include/dlfcn.h
using libpcap: /usr/include/pcap.h
***
*** vax Simulator being built with:
*** - compiler optimizations and no debugging support. Sun C 5.12.
*** - dynamic networking support using Solaris provided libpcap components.
***
/opt/solarisstudio12.3/bin/CC -U__STRICT_ANSI__ -O2 -I . -D_GNU_SOURCE -D_LARGEFILE_SOURCE -DUSE_READER_THREAD -DSIM_ASYNCH_IO -DHAVE_DLOPEN=so sim_BuildROMs.c -o BIN/BuildROMs
"sim_BuildROMs.c", line 42: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 42: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 42: Warning: String literal converted to char* in initialization.
"sim_BuildROMs..c", line 43: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 43: Warning: String literal converted to char* in initialization..
"sim_BuildROMs.c", line 43: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 44: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 44: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 44: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 45: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 45: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 45: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 46: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 46: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 46: Warning: String literal converted to char* in initialization.
"sim_BuildROMs.c", line 107: Error: Cannot assign void* to char*.
"sim_BuildROMs..c", line 119: Error: Cannot assign void* to unsigned char*.
"sim_BuildROMs.c", line 158: Error: Cannot assign void* to unsigned char*.
"sim_BuildROMs.c", line 169: Error: Cannot assign const char* to char*.
"sim_BuildROMs.c", line 245: Error: Cannot assign void* to unsigned char*.
5 Error(s) and 15 Warning(s) detected.
gmake: *** [BIN/BuildROMs] Error 2