This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb problem


Titus, Guylhem, All,

On Wednesday 17 August 2011 23:31:36 Titus von Boxberg wrote:
> Am 17.08.2011 um 22:41 schrieb Guylhem Aznar:
> 
> > -static -L../lib -lncurses -L../lib -lncurses -dynamic   -o tic
> 
> -static is not supported on Darwin.

Sigh... It slipped through... :-/

> Yann, I thought that static linking was disabled now?

Yes, but no... :-(

> PS: Why is it building ncurses, anyway?

- we need ncurses to build the native gdb that runs on the target.
- we need new-enough version of ncurses.
- ncurses needs tic to build... whatever it need to build.
- tic comes from ncurses
- new-enough ncurses hang when using too-old tic

--> so we need to build out own tic from the same version of ncurses we use
So far, we statically build our tic. As I said above, it slipped through...

Titus, thanks for spotting this.

Guylhem, if you don't really need a native gdb on your target, just disable
it for now. Otherwise, care to test the attached patch?

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh
--- a/scripts/build/debug/300-gdb.sh
+++ b/scripts/build/debug/300-gdb.sh
@@ -197,7 +197,6 @@
                 --build=${CT_BUILD}                                             \
                 --host=${CT_BUILD}                                              \
                 --prefix=/usr                                                   \
-                --without-shared                                                \
                 --enable-symlinks                                               \
                 --with-build-cc=${CT_REAL_BUILD}-gcc                            \
                 --with-build-cpp=${CT_REAL_BUILD}-gcc                           \

--
For unsubscribe information see http://sourceware.org/lists.html#faq

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]