The collected works of competentcompton - Page 2

Compilation line is

gcc -g source.c


Also output the result of preprocessing and looking at the result of that it appears that the preprocess is keeping line numbers ok.

Looking at the output from gcc -S and comparing the code from it appears that

disas main show the correct code.

However

info line main

shows

Line 102 of "lg.c" starts at address 0x100026f8 <test_interior+80> amnd ends at <main+1088>

Clearly when I use

break main
run

I would hope that it would indicate that I am at start address 0x???? <main+offset>

Still scratching my head at this one.

Cheers
one other thing I wanted to add. If I compile it with my mipspro 7.4.4m the gdb 6.3 gets the line numbers correct but I get some other issues which I was hoping that using a gcc/gdb combo would fix and not throw this problem up.

Cheers
I thought that it might come down to using a newer version of gdb.

Anyone know who did the neko 6.3 compile. Just want to find out if there any special instructions?

Cheers
well the release notes setings certainly do not work for a compile of gdb 7.6

I'll have to look into this one some more. Already getting compiler errors.

Cheers
Sensitive topic

I have db which is version 7.1 (I think) and it was giving problems with debugging code from my 7.4.4m compiler.

I can't find it and may have lost the disk it is on (darn!)

I thought I would try using gdb 6.3 but it (pparently) has issues with mips C++ code.

Then I thought "sod it" I will try to use gcc 4.7 but presto it doesn't work either.

I have gone full round trip and am now left with compiling gdb myself and hoping that it works with gcc 4.7

:roll:
Hi,

Actually I have a dbx version 7.3.1 (got it wrong before sorry) and it is listed in the software manager as
dbx software so I am not sure if it is from the ProDev or not.

I am working through some of the gdb errors so far I have

regex.c - ATTRIBUTE_ALIGNED_ALIGNOF not defined
sim-memopt.c missing xmalloc declaration
mdmx.c - empty structure initializations
igen.c - unsigned64 not defined (actually from misc.h)

still working through things but given some of the warnings about alignment I would be surprised it this works correctly.

Cheers
Kind of works but at start up get CPU not recgnised assuming not R8000.

Also get some memory errors and can have a tedency to not stop at break points.

Just saying.

Cheers
I know what dbx is and I am not complaining about it per se merely the version I have

The version I have is

7.3.1 MP Oct26 2000

which is quite old and does not recognice the 600MHZ processors I have.
Well,

I think that the dbx as standard comes from the original unix school of thought that dbx is typically the default debugger.

That said, I have given up on the number of errors from gdb7.6, I also tried to compile this with gcc and again a number of weird errors.

So I decided to backtrack to gdb7.5. At least the gcc compile went through without errors.

I'll give a try and see how it goes .

Cheers
I have tried blowing the connectors with compressed air and will see how it goes from here.

If this does not work I'll try component swapping. Probably starting with the mobo.



Cheers
Hi,

Finally got all the fans replaced in my two o300 bricks so I can finally boot it in my office without using ear plugs :)

Got them connected (first time with an 8 cpu o300 system) but the only way I can see to boot them is to have a console connected and issue a

* powerup

from L1.

Anyway to get the dual brick config started from the button on the console. Silly question probably just a bit of a hassle every time to connect a console each time I want to boot the.

On another note

I noticed that one birck has the IP35prom version of 6.210 and the other has version 6.124

Anyway to sync the two prom version from the higher to the lower ?

Cheers
yes the lights on the button are lit.

my c1 brick has the newer version of prom.

Not sure about flash from c1 to c2?

Cheers
thanks used flash to get them to the same prom version

Still can't use the from buton to boot both systems


Is this a realistic expectation?

Cheers
Sure,

I have a dual o200 and as I recall they did both startup from the master being powered up.

When you say that you have to boot them both by pressing the button on each one is there a particular sequence that guarantees correct startup sequence

birck c2 then c1?

Cheers
Hi,

I have a really simple and possibly dumb question :-)

lets take a simple c source file

#include <stdio.h>
int main(int argc, char *argv[])
{
printf("Hello\n");
return 0;
}

When I compile this with

c99 -O3 -n32 -o t t.c -L/usr/lib

I get the error

Expecting n32 objects : /usr/lib/crt1.o is o32

When I compile with

c99 -O3 -n32 -o t t.c

It creates an executable

Any ideas why the -L/usr/lib should make a difference ?

Can anyone confirm this with the mipspro compiler?

Cheers
oh thanks

I wasn't trying to compile this myself I was trying to get through a php 5.5.9 compile and it was barfing on this.

I'll modify the configure options and try agaain

Thanks
Great thanks mnay boots later no problem with brick resolution.

Things are going jut AOK!!
I got the configure seetings from the previous release but it appears that I may have missed something

Cheers
Hi,

I am trying to figure out how to use the round() function from CC with a -c99 option

any help would be appreciated.

I am sure that I have got this backwards but when I try to force is I get a bunch of __restrict errors.

When I add <internal/sgimacros.h> nothing much changes

I am sure that the fix to this is probably pretty simple but I can't quite hit the right button

??

Cheers
hmm,

thanks for your input

that is interesting. So if I write a c program that uses round()

when I compile with c99, or any other option it still get

identifier "round" is undefined.

Additionally C++ code using

#include <cstlib>

to use atoi and it fails with undefined.

Tried the option -LANG:libc_in_namespace_std

which is suggested in the file CC/cstdlib

still no dice. is 7.4 broken with this or am I missing options??

something seems strange here?

Cheers
Hi,

having problems with error from the following code snippet

#include <string>
#include <iostream>

using namespace std;

int main(int,char*argv[])
{
basic_string<wchar_t> ws_t;
basic_istream<wchar_t>* is;
is=&wcin;
if(std::getline(*is,ws_t,L'\n'))
{
wcout << "INPUT : " << ws_t;
}
return 0;
}

just a little test from the actual code but it returns the error

No instance of overloaded function "std::getline" matches

arg types are (std::basic_istream<wchar_t, std::char_traits<wchar_t>>,std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t>>,wchar_t).

anyone have any idea?

sure I have something simple going wrong here but I can't see it right now

Cheers
I am using 6.5.30m and 7.4.4 also - no idea why it does not work then?

Cheers
how do I get a more accurate picture of my system?
That was spot on.

I must have just installed all the patches etc. at the same time and so it reported 7.4.4m but when I opened the .tardist all the patches were marked as ne.

Installing these fixed the problem.

thanks for catching that - I wasted some time but not as much as I could have

Cheers
Hi,

does anyone know if irix has a strerror_r() implemented.

Ran into with a recent compile and want to check before I code one?

Cheers
Hi,

thanks for the reply. I did a similar search and couldn't find anything related other than goserror which is related to sproc and is specifically stated to not be compatible with pthreads.

I was just wondering as to whether there was an equivalent under another name in irix and thought I would check with you guys.

pretty simple to implement and still be reentrant.

thanks again

Cheers
If you use VcXsrv than you can remote login using X from your old windows XP like I do - works mostly, but does not do well storing sessio info between logins

I have ever used VcXsrv in anything other than XP so not sure if newer version work okay but I suspect they should.

chose and XDMCP session and type the hostname of the machine - of course you will probably need to use a serial login prior to this to set the hostname etc.

Cheers