WebFaction
Community site: login faq

I am trying to build glibc2.11 and running into an error during the configure. I am following the instructions I found here (just replacing 2.11 for the 2.9 in the instructions): http://forum.webfaction.com/viewtopic.php?id=4828

The error I am getting is:

configure: error: gcc must provide the <cpuid.h> header

Anyways, just wanted to see if someone might have a suggestion

asked 03 Feb '11, 03:07

mtsmit2
11
accept rate: 0%

1

This happened to me on an old Gentoo system I was running a few months ago. The problem was that newer version of glibc require a pretty new gcc.

Could you try building a newer version gcc first?

(03 Feb '11, 03:14) David L ♦♦

That kind of worked but has caused a much bigger issue.

I built gcc 4.5.2, then used it to build glibc 2.11. Running configure and make worked fine, but a segmentation fault occurred when I was running make install. Now most commands (including things like ls, rm, etc.) are giving a segmentation fault.

I can remove my lib folder from LD_LIBRARY_PATH and the commands start working again, so at least I am not completley screwed.

Any suggestions as to what might be causing the seg faults and how to fix them?

(03 Feb '11, 08:58) mtsmit2

Also, does anyone know an easy way to uninstall the glibc that I just installed?

(03 Feb '11, 09:04) mtsmit2

Well, I wasn't expecting that.

Do you have a copy of the message from the segfault?

(03 Feb '11, 09:05) David L ♦♦

Nope just says "segmentation fault" on most commands that I run.

(03 Feb '11, 09:08) mtsmit2

Oh, duh. I think I see the problem now.

Your glibc is being picked up before the system's glibc. These two different versions are causing the segfaults.

If you move your 'lib' directory somewhere at the end of your current LD_LIBRARY_PATH it should work.

Failing that, if you strace one of the failing commands, what does it output? (Assuming you can get strace to work, of course).

(03 Feb '11, 09:14) David L ♦♦
showing 5 of 6 show 1 more comments
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×6

question asked: 03 Feb '11, 03:07

question was seen: 2,475 times

last updated: 04 Feb '11, 03:07

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM