Managed to compile glibc 2.13 for Alpha

Yann E. MORIN yann.morin.1998@anciens.enib.fr
Mon May 2 22:14:00 GMT 2011


Ioannis, All,

On Friday 29 April 2011 11:42:25 venetis@mail.capsl.udel.edu wrote:
> I managed to compile glibc 2.13 for Alpha EV67.

Thank you for pinging me on this! I'm sorry, I did not find time to
do it earlier... :-(

Anyway, it is not convenient to test those changes. Next time, could you
please try to send proper Mercurial changesets (see the third entry in
"docs/C - Misc. tutorials.txt" : "Using Mercurial to hack crosstool-NG").

Your changes are missing updates to the glibc config file to add the
new version. With 'hg email', it would have been sent automatically.
I'll add it manually here.

> Specifically, the target 
> architecture is alphaev67-unknown-linux-gnu.
> The rest of the toolchain consists of:
> gcc 4.3.5
> binutils 2.21
> linux 2.6.38.3
> gmp 5.0.1
> mpfr 3.0.0

Could please provide the .config you used so we can add it as a sample?

> I had to add a few patches for Alpha (the four patches sent on 28/02/2011
> here http://sourceware.org/ml/libc-ports/2011-02/) and modify a few
> others. The only really problematic patch was 370-fnmatch.patch which I
> could not modify to make it work, so I deleted it from the patchset.

Did you check if it was applied (as is, or differently) upstream?

> If you try any of these patchsets, don't forget during configuration of
> crosstool-ng to go to the menu "C library" -> "gcc extra flags" and add
> the flag "-Wl,--no-relax".

What's the purpose of that? Can't it be automated in some ways?
I would like to rely as much as possible on the code (or at least on
config knobs) for this kind of stuff. For example:
  if [ "${arch}" = "alpha" -a "${other_condition}" = "y" ]; then
    gcc_flags += "-Wl,--no-relax"
  fi

> I also had to select the option "Force unwind 
> support". The help says that the need for this option is architecture
> dependant.

Virtually, all ELF targets supported by crosstool-NG as unwinding,
so *maybe* this should default to 'y'?...

> Any chance to see these patchsets in the main branch of crosstool-ng?

I'm working on it. :-)

> PS1: Please refer to my previous message
> (http://sourceware.org/ml/crossgcc/2011-03/msg00055.html) for the details
> of what I changed/added in the 2.12.1 patchset)
> 
> PS2: I have a few issues compiling a newer gcc (>= 4.4.x). The PPL library
> gives me some problems (either that it cannot find version 4.3.1 of GMP or
> if I select that specific version compilation ends because make cannot
> find a rule to build a Java file). If anyone has any clue what might
> happening here please let me know.

Yes, there are many broken combinations. Currently, I think that choosing
the latest versions of all companion libraries should be working. You will
have to enable 'EXPERIMENTAL' in the 'Misc' menu.

I think we could probably do a cleanup pass to remove old versions, and
keep only one/two version/s that we know is/are working...

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.  |
'------------------------------^-------^------------------^--------------------'

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



More information about the crossgcc mailing list