LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 03-12-2009, 12:36 AM   #1
J_K_L
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Rep: Reputation: 0
compiling glic for ARM9 in Cygwin


Hi all, I'm currently compiling glibc for my MINI2440 (arm920t). The board is great but using glibc-2.3.2. Now I want to upgrade it to glibc-2.7

glibc version: 2.7
port package patched, linuxthread unused

$ CC=arm-linux-gcc ../glibc-2.7/configure --host=arm-linux --prefix="/usr" --with-headers=${TARGET_PREFIX}/include

Then I see:

Code:
checking for .protected and .hidden assembler directive... yes
checking whether __attribute__((visibility())) is supported... no
configure: error: compiler support for visibility attribute is required
So what does this mean? how to counter this?
Thanks in advance
 
Old 03-13-2009, 02:31 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

What is wrong with glibc 2.3 ... why change it ?
And glibc is not at all easy to change, all applications,
libraries and the kernel depends on it,
glibc is your system ! Installing another glibc will
probably make the system unusable forever.
http://www.gnu.org/software/libc/resources.html
Quote:
Building glibc is quite tricky and has a number of pitfalls, not the least
of which include :

* Never install over a live system. The connection between the individual
parts of the glibc shared libraries is special. The libc.so shared library
uses private interfaces in ld.so and vice versa. On a live system with
dynamically linked applications if a new libc.so replaces an old one with a
different internal ABI your system will be broken. libpthread.so, libm.so, and
librt.so have similar problems. At a minimum, install into a separate chroot
environment.
* There is a high possibility you will end up creating a different public
ABI. If you were to begin distributing binaries they would at a minimum not
work, and at best create a lot of confusion.

If you find yourself needing to build a customised version of glibc, you are
best to use the framework offered by your distribution (i.e. the rpm or deb
package build facilities).
Generally about building 'glibc', please see CLFS
http://trac.cross-lfs.org/
Book : http://cross-lfs.org/view/1.1.0/x86/
http://cross-lfs.org/view/1.1.0/x86/...ols/glibc.html
.....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling linux-2.6.26 for ln2440sbc (ARM9 core) jituelect Linux - Embedded & Single-board computer 2 09-29-2008 10:46 PM
cygwin compiling PatrickNew Programming 6 07-27-2007 02:54 PM
cygwin -> compiling lib3ds hylke General 0 06-21-2005 02:02 AM
compiling opengl with cygwin adhara Programming 0 07-28-2004 05:58 AM
glic-dependence !!! tricky_linux Linux - Software 2 10-04-2003 12:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 12:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration