Date: Thu, 20 Oct 2005 00:04:25 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 636 ************************************************** Wednesday 19 October 2005 Number 636 ************************************************** Subjects for today 1 Re: gdb for gcc 3.3.2 and 3.3.5? : Knut St. Osmundsen" 2 Re: GNU Patch v2.54 : Andreas Buening **= Email 1 ==========================** Date: Tue, 18 Oct 2005 17:36:21 +0200 From: "Knut St. Osmundsen" Subject: Re: gdb for gcc 3.3.2 and 3.3.5? Jon Saxton wrote: > So close! > > I rebuilt the libraries as .a files in a.out format. Now gcc -Zomf -o > gives various errors depending on > the specific command line. Sometimes it just spaces up about ten lines > and exits without generating an exe or any message. Other times I get > LNK1081 errors (out of space for ) or "No space for NB04" whatever > that might be. Very frustrating. I've never ever seen that error. But at you using the right linker? (see below) > I may end up moving the code to a UNIX system and debugging there. > Might be easier. If you're a gdb fan, it will sure be easier. :-) > > Jon Saxton wrote: > >> Knut: >> >> Thanks also for your input. I have made much progress but I am one >> small step from having it work properly. >> >> I had to tweak a lot of my environment settings and my dmake >> configuration files to run emxomfar instead of ar, to let me see >> ilink.exe, idebug.exe and the DLLs and data files that those programs >> need. I set emxomf_linker and exmomfld_type even though the default is >> set for VAC++ 3.6.5 which is what I have installed. You want to use the ilink v5 from the mozilla build page. You do not ever want to you ilink from VAC 3.6.5, it's buggy and likely to blow up at the smallest provocation. the only other usable ilink version is the one from VAC308. >> I rebuilt my own (static) libraries by compiling with -Zomf and using >> emxomfar to assemble a .lib file. I thought that I had the libraries in >> the right format so I put -Xlibrary -Zno-autoconv in the gcc linker >> invocation command to stop automatic conversion of my libraries from >> a.out format to omf format. >> >> The current stumbling block is a message which pops out of the link ... >> >> wealkd:: ..\lib\os2\simpl.lib: error: Invalid library format or read >> error >> emxomfld: weak prelinker failed. (rc=-1) >> >> I have the impression that emxomfld really prefers a.out format. :-) (No, it preferes OMF. The automatic a.out conversion is only there for making building debuggable code simpler.) >> I'll try rebuilding my libraries the old way but it would be really >> annoying to have to compile with -Zomf for most code but without -Zomf >> for stuff that is going into a library. I expect that isn't going to be >> necessary and that it is probably just a matter of understanding this >> stuff much better. >> >> >> >> Knut St. Osmundsen wrote: >> >>> >>> >>> Jon Saxton wrote: >>> >>>> Thanks, Dave for your reply. >>>> >>>> I had just come to the conclusion that the OMF route is mandatory. >>>> That raises some more issues because I cannot find any documentation >>>> on the omf switches. I looked in the GCC "docs" folder and tried >>>> various gcc --help options with no success. >>>> >>>> I have yet to look in the emx docs. That I'll do shortly. >>>> >>>> Can I still use gcc as a front end to the linker or do I have to >>>> change my makefiles to invoke ILINK? >>> >>> >>> >>> >>> gcc / g++ -Zomf will invoke ilink for you (using emxomfld). >>> >>> emxomfld will before invoking ilink to a prelink step in which it >>> automatically converts any aout objects/libs to omf objects/libs. >>> Thus it is only required to add -Zomf to the linking stage. >>> >>> If you cannot distiguish between the linking and the compiling, you >>> must make sure you're using emxomfar and not ar as librarian. The >>> ilink and emxomfld cannot make use of OMF objects in a library >>> created with ar. >>> >>> Kind Regards, >>> knut >>> >>> >>> >>> >> >> >> >> >> > > > > **= Email 2 ==========================** Date: Tue, 18 Oct 2005 23:36:53 +0200 From: Andreas Buening Subject: Re: GNU Patch v2.54 John Poltorak wrote: > Any chance of uploading your port somewhere? I've uploaded it temporarily to http://unix.os2site.com/sw/pub/source/autoconf/patch-2_5_4.zip and http://unix.os2site.com/sw/pub/source/autoconf/patch-2_5_4-bin.zip It's possible that I took the (tiny) patches from somewhere else (maybe except for Makefile.in or so) but I don't remember. Bye, Andreas