Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9009009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:05:18+00:00 2026-06-16T02:05:18+00:00

I am trying to build glibc-2.13 with debugging symbols for ARM using the Linaro

  • 0

I am trying to build glibc-2.13 with debugging symbols for ARM using the Linaro Toolchain on a 32-bit Ubuntu 10.04 Virtual Machine. From what I have researched, the steps to do so ( and the steps I’ve taken ) are shown here:

mkdir /home/user/Desktop/glibc
cd /home/user/Desktop/glibc
wget http://ftp.gnu.org/gnu/glibc/glibc-ports-2.13.tar.gz
wget http://ftp.gnu.org/gnu/glibc/glibc-2.13.tar.bz2
tar xvjf glibc-2.13.tar.bz2
tar xvf glibc-ports-2.13.tar.gz
mkdir -p glibc-2.13/ports
cp -r glibc-ports-2.13/* glibc-2.13/ports
mkdir tmp
mkdir glibc-build
cd glibc-build
export CFLAGS="-O1 -g"
export CPPFLAGS="-O1 -g"
export CC=/home/user/proj/toolchain/linaro/bin/arm-linux-gnueabi-gcc
export CXX=/home/user/proj/toolchain/linaro/bin/arm-linux-gnueabi-g++
../glibc-2.13/configure --host=arm-linux --prefix=/home/user/Desktop/glibc/tmp --enable-addons ports=yes
make

The configure step completes and when I move on to make, the build errors after a short time with the following error:

In file included from ../ports/sysdeps/unix/sysv/linux/arm/ldsodefs.h:23:0,
                 from ../csu/libc-tls.c:21,
                 from ../ports/sysdeps/arm/libc-tls.c:20:
../sysdeps/unix/sysv/linux/ldsodefs.h:64:0: note: this is the location of the previous definition
/tmp/ccgCNS8e.s: Assembler messages:
/tmp/ccgCNS8e.s:174: Error: invalid swi expression
/tmp/ccgCNS8e.s:174: Error: value of 983045 too large for field of 2 bytes at 196
make[2]: *** [/home/user/Desktop/glibc/glibc-build/csu/libc-tls.o] Error 1
make[2]: Leaving directory `/home/user/Desktop/glibc/glibc-2.13/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/home/user/Desktop/glibc/glibc-2.13'
make: *** [all] Error 2

From what I’ve read ‘tls’ is required, and if I try to build –without-tls , it errors saying that I do need tls. I haven’t found anything on Google for this problem.

Does anyone know how I can resolve this and get past this error? Thanks –

EDIT: I’ve added the following exports before the configure command and still get the same error:

export CC=/home/user/gemini/toolchain/linaro/bin/arm-linux-gnueabi-gcc
export CXX=/home/user/gemini/toolchain/linaro/bin/arm-linux-gnueabi-g++
export AR=/home/user/proj/toolchain/linaro/bin/arm-linux-gnueabi-ar
export AS=/home/user/proj/toolchain/linaro/bin/arm-linux-gnueabi-as
export LD=/home/user/proj/toolchain/linaro/bin/arm-linux-gnueabi-ld
export RANLIB=/home/user/proj/toolchain/linaro/bin/arm-linux-gnueabi-ranlib
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T02:05:19+00:00Added an answer on June 16, 2026 at 2:05 am

    I don’t know exactly what the deal was – possibly specifying the incorrect –host parameter for my toolchain. I ended up successfully compiling glibc 2.13 on my Ubuntu 32-bit 10.04 VM with the following commands:

    sudo apt-get install libmpc-dev -y
    sudo apt-get install libgmp-dev -y
    sudo apt-get install libmpfr-dev -y
    sudo apt-get install autoconf -y
    sudo apt-get install gawk -y
    cd ~/Desktop
    GLIBC_VERSION="2.13"
    rm -rf glibc
    mkdir /home/user/Desktop/glibc
    cd /home/user/Desktop/glibc
    wget http://ftp.gnu.org/gnu/glibc/glibc-ports-$GLIBC_VERSION.tar.gz
    wget http://ftp.gnu.org/gnu/glibc/glibc-$GLIBC_VERSION.tar.bz2
    rm -rf glibc-build/ tmp/ glibc-$GLIBC_VERSION/ glibc-ports-$GLIBC_VERSION/
    tar xvjf glibc-$GLIBC_VERSION.tar.bz2
    tar xvf glibc-ports-$GLIBC_VERSION.tar.gz
    mkdir -p glibc-$GLIBC_VERSION/ports
    cp -r glibc-ports-$GLIBC_VERSION/* glibc-$GLIBC_VERSION/ports
    mkdir tmp
    mkdir glibc-build
    cd glibc-build
    CFLAGS="-O1 -g"
    CPPFLAGS="-O1 -g"
    CC=/home/user/proj/toolchain/linaro/bin/arm-linux-gnueabi-gcc
    CXX=/home/user/proj/toolchain/linaro/bin/arm-linux-gnueabi-g++
    AR=/home/user/proj/toolchain/linaro/bin/arm-linux-gnueabi-ar
    AS=/home/user/proj/toolchain/linaro/bin/arm-linux-gnueabi-as
    LD=/home/user/proj/toolchain/linaro/bin/arm-linux-gnueabi-ld
    RANLIB=/home/user/proj/toolchain/linaro/bin/arm-linux-gnueabi-ranlib
    export PATH=$PATH:/home/user/proj/toolchain/linaro/bin
    export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
    ../glibc-$GLIBC_VERSION/configure --with-tls --host=arm-linux-gnueabi --prefix=/home/user/Desktop/glibc/tmp --enable-addons ports=yes
    make
    cd ../
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a std::vector< tr1::shared_ptr<mapObject> > that I'm trying build from data contained in
I am trying to build Maliit ( https://wiki.maliit.org/Documentation/Installing ) on Ubuntu 10.04 32-bit. I
Trying to build a ajax comment system .I have a list populated from MYSQL
I am trying to install glibc 2.3.2 on my Ubuntu using gcc v3.4.6, but
I was trying Build For Archiving application (from Titanium Mobile) with xCode 4.4, but
I'm trying build a method which returns the shortest path from one node to
Edit : Made title a bit clearer. I am trying to wrap glibc's __assert_fail
I am trying build a DataTable one row at a time using the following
Trying to build the following simple example #include <boost/python.hpp> using namespace boost::python; tuple head_and_tail(object
Trying to build a marquee control with smooth text animation. Current efforts include: Using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.