LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-17-2007, 04:58 PM   #1
ichrispa
Member
 
Registered: Mar 2005
Location: Dresden, Germany
Distribution: OpenSuse 11.2/3, Debian 5.0 , Debian 1.3.1, OpenBSD
Posts: 277

Rep: Reputation: 32
xfree-4.6.0: compiler hangs when compiling scanpci.c


Hi everyone,

after trying for quite some time to get xorg to run on my pc I have switched to trying to get xfree86 to work. Unfortunately, that won't cooperate either - at least I think it doesn't.

The problem is the following:
After 'make World' make goes ahead compiling in perfect harmony... until it gets stuck at the Xserver. in the hw subdirectory it tries to compile x86fscanpci.c; the result is that the compiler tremendously hogs up system resources (up to 1GB of swap!). The permanent i/o from swap makes the hdd almost inaccessible to other applications.

I know this behavior can't be normal. or is it?
 
Old 08-17-2007, 05:49 PM   #2
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
did you know xfree86-4.7 was just recently released?
 
Old 08-17-2007, 09:37 PM   #3
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
Quote:
Originally Posted by ichrispa View Post

I know this behavior can't be normal. or is it?
on the surface i would say no but if you are doing alot of other stuff while trying to compile x then ??

give it a shot and just let it run without using the machine.
gcc does alot of inlining with x and is creating alot of symbolic names and functions it is swapping around.
 
Old 08-18-2007, 07:02 PM   #4
ichrispa
Member
 
Registered: Mar 2005
Location: Dresden, Germany
Distribution: OpenSuse 11.2/3, Debian 5.0 , Debian 1.3.1, OpenBSD
Posts: 277

Original Poster
Rep: Reputation: 32
Quote:
did you know xfree86-4.7 was just recently released?
No, I didn't. Can I get it over git?

Quote:
on the surface i would say no but if you are doing alot of other stuff while trying to compile x then ??
Although I can understand that compiling can be very demanding on system resources I would say that 440MB of RAM and 660MB of swap with just 0.4% of processor load (2.4 Celeron) is a bit out of the ordinary...
I turned of just about anything I could spare (include all sound support,network and crond down to the modules). I think I can't cut my system any more slack. after that, I let the compiler run over night (approx. 14 hours). It was still compiling the very same file after that time had ellapsed. I monitored my cpufreq to make sure that acpi didnt try to save power by throttling my CPU, which it didn't as it should have.

I have never seen something like this before...

/e I checked syslogd for error messages, too. nothing...
 
Old 08-18-2007, 09:51 PM   #5
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
oh goodness no i didn't realise the scope of the problem.
your compiler is going wack. I had a little 90MHz desktop from the 80s that would do better at compiling x than that.
and you are using gcc on not an exotic platform how strange.
My guess is that the build of your gcc is tainted and broken in some way.
but it's just a guess.
 
Old 08-19-2007, 11:54 AM   #6
ichrispa
Member
 
Registered: Mar 2005
Location: Dresden, Germany
Distribution: OpenSuse 11.2/3, Debian 5.0 , Debian 1.3.1, OpenBSD
Posts: 277

Original Poster
Rep: Reputation: 32
i'm usin gcc 4.2.0. But i also tried installing the distros package and using that instead, but the result is still the same...

I'm going to get xfree-4.7 and try it again, just for the sake of it.

I confess that I don't know what to do. back to xorg (7.2) I guess. I am stuck at the Xserver (as usual...). There is a package dependency to a package called pixman-0.9.2. I know libpixman, which is part of the cairo library, but all I can find is 0.1.6. Apart from that libpixman doesn't install its header under (includeDir)/pixman/. Do you know a package called pixman or libpixman that has a similar version?
 
Old 08-19-2007, 01:50 PM   #7
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
have you tried the simple sed fixes at the begining of this and using a config file on your 4.6 ?
http://www.linuxfromscratch.org/blfs...x/xfree86.html
be carefull with the lines about external libs if you don't have a full developement environment set up
 
Old 08-20-2007, 12:52 PM   #8
ichrispa
Member
 
Registered: Mar 2005
Location: Dresden, Germany
Distribution: OpenSuse 11.2/3, Debian 5.0 , Debian 1.3.1, OpenBSD
Posts: 277

Original Poster
Rep: Reputation: 32
I'm afraid that didn't help either. Damn! This is beginning to get really frustrating. I will try to get a binary package next, perhaps I'm missing something or am using an incorrect version that rpm can bicker about.
 
Old 08-20-2007, 12:54 PM   #9
ichrispa
Member
 
Registered: Mar 2005
Location: Dresden, Germany
Distribution: OpenSuse 11.2/3, Debian 5.0 , Debian 1.3.1, OpenBSD
Posts: 277

Original Poster
Rep: Reputation: 32
I'm afraid that didn't help either. I must be cursed, there's no other way to explain this.

What I'm gonna try next is installing a binary package. perhaps rpm will bicker about a version incoherence of a dependency or something similar...
 
Old 08-23-2007, 05:22 PM   #10
ichrispa
Member
 
Registered: Mar 2005
Location: Dresden, Germany
Distribution: OpenSuse 11.2/3, Debian 5.0 , Debian 1.3.1, OpenBSD
Posts: 277

Original Poster
Rep: Reputation: 32
ok, two things happened:

1) I installed a binary package of xfree86-4.6.0, which runs just fine. I am probably going to simply use it as is. This is the only way I am going to get an Xserver running on my pc.

2) I tried to compile 4.7.0. It gets stuck at exactly the same file, even with the patches installed...
 
  


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 gcc without compiler? davuuud Linux - Software 6 02-03-2009 11:16 AM
updating xfree on rh9 by compiling from source mkaman Red Hat 2 08-29-2004 05:50 PM
Xfree hangs on startup snu Linux - General 2 07-10-2003 11:41 AM
scanpci not showing anything php_rocks Linux - Software 1 07-07-2003 11:58 PM
scanpci can't see my tntriva card. bit7 Linux - Hardware 9 12-27-2002 04:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:18 PM.

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