help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to supress debug symbols?


From: Tatsuro MATSUOKA
Subject: Re: How to supress debug symbols?
Date: Thu, 14 May 2009 10:44:06 +0900 (JST)

Hello Alex.

It is perhaps possible to build octave binary with GCC-4.3.0 with shared 
libstdc++.

However my simple trial ./configure ;make ... gave with the libraries in the 
package in octave 3.0.2
did not work because of application error.
Perhaps I had to use Benjamin's scripts on the OctaveFoge SVN.

I have had the my own build the libraries and decided to build octave 
staticlibstdc++ .
My purpose is not distribute binaries but for my own use.

>From the point view stabilities of the compiler, GCC-4.3.2 or later is 
>superior than GCC-4.3.0.
I have select the stability that enable us to use '-O3 -fomit-framepointer' 
which gives me faster
binaries.

For the distributing binaries, the size is important factor. Therefore 
Benjamin's selection is
reasonable.  However, for my personal use, I rather select stability and speed.

Regards

Tatsuro  

--- Alexander Mamonov wrote:

> Thank you for your advice.
> My mistake was that I added -shared-libgcc to CPPFLAGS instead of
> CFLAGS and CXXFLAGS, that's why I got the oct files linked statically
> (I have TDM gcc-4.3.0, so linking to shared system libraries should be
> enabled in gcc).
> I assume that in MinGW distribution of 3.0.2 shared linking was used
> (the oct files are small), did you have any problems because of that?
> 
> Regards,
> Alex
> 
> 2009/5/12 Tatsuro MATSUOKA <address@hidden>:
> > Hello
> >
> > MinGW/GCC-TDM-4.3.0 supports experimentally supports shared libstdc++.
> > According to the developers' document, the shared libstdc++ on 4.3.0 has 
> > problems so that they
> stopped
> > supporting the shared libstdc++ from GCC-4.3.2
> >
> > Benjamin Lindar uses this compiler with great care because it is 
> > experimental and sometimes
> fall into
> > unexpected results because of unsolved problems.
> >
> > Both MinGW official team and TDM release team are trying to support shared 
> > libstdc++ but their
> trials
> > are now still on the way.
> >
> > Regards
> >
> > Tatsuro
> >
> > --- Michael Goffioul wrote:
> >
> >> MinGW/gcc does not support shared libstdc++, it uses the static
> >> one (at the moment). That's why each oct-file is so large.
> >>
> >> Michael.
> >>
> >>
> >> On Mon, May 11, 2009 at 11:54 PM, Alexander Mamonov <address@hidden> wrote:
> >> > My bad, I didn't pass anything in CXXFLAGS and CFLAGS, so it seems
> >> > that they were defaulted to -g -O2. Sorry for the trouble.
> >> > I could still use some advice on .oct files though.
> >> >
> >> > Regards,
> >> > Alex
> >> >
> >> > On Mon, May 11, 2009 at 3:16 PM, Alexander Mamonov <address@hidden> 
> >> > wrote:
> >> >> Hello,
> >> >>
> >> >> I'm absolutely sure that the CXXFLAGS and CFLAGS variables that I set
> >> >> before doing ./configure do not contain any -g parameters. Another
> >> >> problem that I have noticed is that while the size of dll's was
> >> >> sufficiently reduced by doing the -Wl,--strip-debug hack, the size of
> >> >> .oct files is still quite large (on the order of couple MB each). Can
> >> >> it be that they are also built with debug symbols? Or can it be that
> >> >> they are linked statically and thus have such a large size?
> >> >> Input from MinGW gurus here (Tatsuro, Benjamin) is appreciated.
> >> >> Thanks,
> >> >>
> >> >> Alex
> >> >>
> >> >> On Mon, May 11, 2009 at 11:45 AM, John W. Eaton <address@hidden> wrote:
> >> >>> On 10-May-2009, Alexander Mamonov wrote:
> >> >>>
> >> >>> | I'm trying to compile Octave from the recent sources (MinGW TDM gcc
> >> >>> | 4.3.0), and I want to keep the size of the resulting ddl's small. I
> >> >>> | tried adding -Wl,--strip-debug to LDFLAGS, but it seems that it does
> >> >>> | not affect anything. After ./configure I can see my LDFLAGS being
> >> >>> | added to Makeconf, but when the dll is built, I do not see my LDFLAGS
> >> >>> | in the console output. If I hack Makeconf and add -Wl,--strip-debug 
> >> >>> to
> >> >>> | SH_LDFLAGS it works, but this is of course very ugly way of doing
> >> >>> | things. What is the proper way to build Octave without debug symbols?
> >> >>>
> >> >>> If you don't want debugging symbols, then don't use -g in CXXFLAGS,
> >> >>> CFLAGS, and FFLAGS.
> >> >>>
> >> >>> jwe
> >> >>>
> >> >>
> >> > _______________________________________________
> >> > Help-octave mailing list
> >> > address@hidden
> >> > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
> >> >
> >> _______________________________________________
> >> Help-octave mailing list
> >> address@hidden
> >> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
> >>
> >
> >
> > --------------------------------------
> > Power up the Internet with Yahoo! Toolbar.
> > http://pr.mail.yahoo.co.jp/toolbar/
> >
> 


--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]