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

Re: FTBFS due to dynamic variable `_SDA_BASE_@@WXU_2.6' is zero size



On Sat, Sep 24, 2005 at 07:21:25PM +0200, Luk Claes wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi
> 
> My package poedit FTBFS on the buildd with:
> 
> g++  -ggdb -I/usr/lib/wx/include/gtk2-unicode-release-2.6
> - -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__
> - -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1
> - -DNO_GCC_PRAGMA   -DDB_OPEN_WITH_TRANSACTION  "-DPOEDIT_PREFIX=\"/usr\""
>   -o poedit  catalog.o edapp.o edframe.o fileviewer.o parser.o
> isocodes.o prefsdlg.o settingsdlg.o progressinfo.o digger.o gexecute.o
> summarydlg.o findframe.o commentdlg.o transmem.o transmemupd.o
> transmemupd_wizard.o manager.o chooselang.o export_html.o icons.o
> pl_evaluate.o editlbox.o edlistctrl.o   -pthread   -lwx_gtk2u_xrc-2.6
> - -lwx_gtk2u_qa-2.6 -lwx_gtk2u_html-2.6 -lwx_gtk2u_adv-2.6
> - -lwx_gtk2u_core-2.6 -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.6
>  -ldb
> /usr/bin/ld: dynamic variable `_SDA_BASE_@@WXU_2.6' is zero size
> /usr/bin/ld:
> /usr/lib/gcc/powerpc-linux-gnu/4.0.2/../../../../lib/crt1.o(.rodata+0x0):
> unresolvable R_PPC_ADDR32 relocation against symbol `_SDA_BASE_@@WXU_2.6'
> /usr/bin/ld: final link failed: Nonrepresentable section on output
> collect2: ld returned 1 exit status
> make[3]: *** [poedit] Error 1

This indeed happened to be also in building 2.4.27-nubus powerpc kernels, so i
guess you are on powerpc also, right ?

> Can someone please enlighten me how this can be solved, TIA?
> 
> The full build log can be found at [1].

You probably have some kind of ld.script thingy somewhere, hopefully, if not
you need to create a new one. This one has a .sdata entry, and you need to put
a _SDA_BASE_ tag before it, like :

      _SDA_BASE_ = .;
           *(.sdata)

not sure how to do it if you don't have a separate ldscript though, and you
probably need to write a ld.script yourself to solve it.

Now, this may also be a bug in binutils, which is currently some somewhat
problematic CVS snapshot, so you may want to file a bug report against it.

Friendly,

Sven Luther



Reply to: