LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Calculate
User Name
Password
Calculate This forum is for the discussion of Calculate Linux.

Notices

Reply
 
Search this Thread
Old 04-06-2010, 10:11 AM   #1
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,071

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Make questions and ARCH questions for gentoo/calculate


OK

so I got my nice shiny fluxbox CLS 10.2 desktop
lookin good and now gonna rebuild system for my PC
as athlonXP 2400+ K7

Lookin at calculates docs, I see this stuff
http://www.calculate-linux.org/main/...tion_of_system

and then I see this about setting the /etc/make.conf
http://en.gentoo-wiki.com/wiki/Safe_..._XP.2FGeode_NX

and so I should go with the 2nd one or what??

And, how should I set the make.conf, like so?

Code:
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

LINGUAS="en en_US"
MAKEOPTS="-j2"
-j1 or -j2??

Whats best for my system???

And how do I set genkernel.conf?
thanks
 
Old 04-06-2010, 03:36 PM   #2
Lautre
Calculate Linux
 
Registered: Jun 2009
Location: Saint-Petersburg, Russia
Distribution: Calculate Linux
Posts: 92

Rep: Reputation: 25
Look this: http://en.gentoo-wiki.com/wiki/Safe_Cflags
"If you have an Intel or AMD CPU and are using >=sys-devel/gcc-4.2.3, using -march=native is recommended."

"jX" only affects a speed of assembly systems. You can speed up a compilation with the option: EMERGE_DEFAULT_OPTS="--jobs=4" in /etc/make.conf
 
Old 04-06-2010, 05:28 PM   #3
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,071

Original Poster
Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Thanks Lautre

so all I need is the native tag?

and if my PC has only one CPU, I should just use -j1 or no?
 
Old 04-06-2010, 08:44 PM   #4
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,348

Rep: Reputation: 184Reputation: 184
From what little research I did on this it should be one more than the number of processors you have. So with one processor it would be j2. From what I read it allows full use of unused processor clock cycles or something like that. About a month or so ago installed Gentoo on this computer, an emachine with a single amd64 processor. Reinstalled Gentoo several times. I notice that with -j2 the kernel compilation the computer processing two different sections of the config file at the same time, bouncing back and forth between the two different sections kind of like in parallel . Where as with -j1 the computer was processing the config file in the an orderly sequence during the compilation. Using -j2 seemed to be faster. Hope this helps with out too much confusion.
 
Old 04-08-2010, 01:39 PM   #5
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,071

Original Poster
Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Instead of making a new Thread, I am going to expound on this one as I may have messed something up...

Today; I am trying to install Pyroom and Gambas2 into my calculate scratch 10.4 fluxbox system.

I found a pyroom ebuild here
http://dev.gentoo.org/~nightmorph/mi...office/pyroom/

and according to gambas site gambas should be in portage repo
but its not
http://gambasdoc.org/help/doc/package?view&en

so, I had to get it here
http://bugs.gentoo.org/show_bug.cgi?id=146871

so, after setting up my ebuild stuff in usr/local as per this
http://linuxreviews.org/gentoo/ebuilds/#toc1

I did both

emerge gambas

and

emerge pyroom

I get these errors

for Pyroom

Code:
!!! All ebuilds that could satisfy "app-office/pyroom" have been masked.
!!! One of the following masked packages is required to complete your request:
- app-office/pyroom-0.4.1 (masked by: missing keyword)
for Gambas
Code:
 * ERROR: dev-db/gambas-2.7.0 failed:
 *   gcc needs to be build with the USE flag libffi
 * 
 * Call stack:
 *             ebuild.sh, line  54:  Called pkg_setup
 *   gambas-2.7.0.ebuild, line  51:  Called die
 * The specific snippet of code:
 *   	die "gcc needs to be build with the USE flag libffi"

I tried cl-unmask on pyroom

Code:
One of the packages not match your architecture.
Please revise dependences of the packages by your own* using flags concealment of packages.
my arch is athlon-xp

NOTE: I have taken a slack pkg I made of pyroom and manually installed
it along with its depends and it works great!

So, why cant portage do it?


How do i fix all this and how do I do "gcc needs to be build with the USE flag libffi"


any ideas?

thanks
 
Old 04-09-2010, 12:53 AM   #6
Lautre
Calculate Linux
 
Registered: Jun 2009
Location: Saint-Petersburg, Russia
Distribution: Calculate Linux
Posts: 92

Rep: Reputation: 25
To install app-office/pyroom, enough to unmask him, dev-db/gambas must be compiled with the flag "libffi".
run
Code:
echo dev-db/gambas libffi >> /etc/portage/package.use/using
then
Code:
cl-unmask app-office/pyroom
emerge app-office/pyroom
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
A couple questions about Arch servers and Python vs PHP... sajro Linux - Server 2 03-08-2008 04:02 PM
Arch Questions cheetahman Arch 3 07-05-2006 09:56 AM
A few questions on gentoo. ps2cho Linux - Distributions 8 07-26-2005 04:36 AM
questions about sound in arch linux. greythorne Arch 2 06-27-2005 07:26 AM
Questions about gentoo MACSRULE Linux - General 1 04-19-2004 07:28 AM


All times are GMT -5. The time now is 03:54 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration