Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Troubles configuring gentoo use kernel...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
ballsystemlord
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2013
Posts: 82

PostPosted: Mon Jan 12, 2015 5:42 pm    Post subject: [SOLVED] Troubles configuring gentoo use kernel... Reply with quote

I've been trying to configure and install gentoo for more the 12 hours now (I lost count), I want to get some answers to some Qs and I also have some recomendations.
Please forgive any error in my post as I'm using curl to do it and this is my fist attempt as such a thing.
It would be nice if your cd included hwinfo or some such thing as not all hardware is detected using lspci.
I'd like to point out that the install CD lacks an IRC client and that the password you send in a reply email for your forum account is very long to type by hand esp. because it contains upper case chars (If your password is not on the computer how can you get into the forums to ask for help?) And what would/could I do if my email account only allowed a javascript enablerd browser to visit it? This is a bad way of doing things IMHO.
Second, not all of us are seasoned emerge users, in fact, some people have never worked the CLI before in thier life, or even Linux for that matter, so it would be very nice if you could include man pages in you CD, you have 500MiB to spare.
The file /usr/share/portage/config/make.conf.example does not exist. It does though in the chroot, you maight want to mention that some files are located in the chroot since I did not chroot all my ttys.
I set the variable ACCEPT_LINCENSE to FREE and the kerenel would not compile. Now tell me, If you can't compile the kernel then what FREE program can you run without it? This is ridiculas! Why even offer the FREE option if the LINUX KERNEL IS DEPENDENT ON NON-FREE SOFTWARE? I'm not certain what peice(s) of software prevent the instalation. Anyway I removed the FREE declaration and now it will install.
I'd also like to say that when I compiled bc I got an error, I tracked it down to a misspelling of one of the gcc options, try as I might I could not find my mistake so I used the shell and nano to do a fancy version of copy and paste. I tried using nano as the veiwer for man pages ( man emerge | nano ) but nano crashed, in fact nano does not appear to support reading from stdin, it always crashes, for example:
echo the big brown fox jumped over the lazy dogs back | nano
This is bad because nano supports copy/paste but less does not.
If I had sent you a report asking for help concerning the spelling of the gcc option, I would have had no Idea how to paste most of the data that is requested, and more often then not, it's to big for me to type out, not to mention the amount of error someone would make in the process. My recomendation would be that you create a simple shell script file directing curl to send the appropriate out put to the right place. If you don't beleive me look at the size of the enviroment file, it's just one example of four.
I also noticed that links SILENTLY ignors the options -html-t-background-color and -html-t-text-color, I wanted my screen text brighter or the background darker becaue the sun was reflecting off my screen.
The bindist flag could be more descriptive, work is ongoing in this field according to my research.
The following USE flags could be better explained, when I can I give questions, when I can't is when I don't understand what something is. Also you might add in to the descriptions that some support, for instance for sybase, is support for a proprietary program, otherwise people might think that they will soon be playing whith "The next great thing" in free software, when, in reality, it's not free software and costs money.

calendar (what calendar are you going to use?), caps, cdb(there is more then one implimentation of it out there and I don't know anyone who knows the name of the author of qmail off the top of thier head), ctype (C has many types, a user might think, but this flag is for php), dbm (has many deffinitions on the web), flatfile (understanding it depends on an understanding of dbm), iconv (where would it be used), introspection (is it still used only by gnome?), java6 (I have no clue what the right hand side of the OR means), m17n-lib (you might want to put down that an english person does not need it (it's part of the default intall of Opensuse)), memlimit (does it add a flag like: -l 1MiB to the programs it affects or does it disable some functionallity so as to achieve less memory useage?), mmxest (/usr/portage/profiles/use.desc recommends using cpuinfo which is not on the cd (and you don't want to install anything until your done customizing the USE variable :) You might sugest cat-ing /proc/cpuinfo), modules (If I'm compiling the kernel won't it automatically buid the modules? Where would this be useful? Or perhaps you were refering to python modules?) motif (I thought that motif was deprecated since it was "bloated" and "clunky", what would use it?), mpi, multilib (I thought that multilib was a profile, if I use it as a global USE flag would that be bad?), next, nocd, offensive (the existance of linux is "offensive to Bill, the existance of proprietary software is arguably "offensive" to RMS, the fact that lame can create audio files compatible with mp3 is "offensive" to the patent owners... perhaps you are refering to several documents in the emacs bundle? A list might be nice), pcntl, savedconfig (which config? /etc/portage/make.conf?), session (what's the difference?), source (I'm guessing this means to zip the source of program x and install that zipped file to somewhere, might want to make it more clear though, since sources are often *zip'ed and used as src packages on deb and rpm based systems and compressing and then decompressing the source would be a wast here), startup-notification, vhosts, videos (I'm guessing this includes warzone2100, but is there a list somewhere?), wddx, yaz.

Argh! ctrl-x needs badly to be remapped on the nano editor! I was thinking I was cutting and then hit n for "No I don't want to leave", when, in reality, it meant, "Do you want to save pregress?"
When you compile an executable there are several types of debugging information, the best, and biggest, is dwarf2 (as far as I know, that is) but your flags option gives only one value, debug, thought this might work well with, let's say, shell script, because there really is only one way to include debugging information (that is code it in with a flag or create a diff), it does not do so well with C.
If I wanted docs (the doc USE flag), for multiple packages, must I list all the packages by name? Could I use wild cards or something?
If I compiled my kernel without the debug flag would that affect the debug options contained in the kernel?
I can't set the value of "General setup -> kernel log buffer size" I tried setting it to 24 32 36 20 and it just won't accept the change. I have no idea what "Networking support -> Networking options -> TCP: advanced congestion control -> Default congestion control" should be set to (it defults to "cubic"). "Device dirvers -> generic driver opts -> Maximum PAGE_SIZE order of alignment for contiguous buffers" refuses to take a value (I set it at the default of 8). "Cryptographic API -> FIPS 200 compliance", it says not to enable it unless you know what it does (I'm aware that the SHA512 spec is specified by FIPS but I've no ides what this is. Considering the importance of security I'd imagine that you might have given a few pointers concerning the security setup of the kernel. A lot of the drivers have a debugging option, but few tell how to turn it on or off, I, personally, wanted to know how to change the "Device Drivers -> Network Device Support -> Wireless LAN -> Atheros wireless cards -> Atheros debugging" used by the driver ath9k on and off. You might also have mentioned that you need to know your normal screen resolution if you have a touch sensitive device (See "Device drivers -> Input device support" ). Also, I've no idea what my laptop's key board is and lspci does not help. "Kernel hacking -> prink and dmesg options -> Default message log level" Do the different values have any specific meaning and if so, what? Can it be changed dynamically? Same path -> Delay each boot printk message by N milliseconds, the help section recommends setting the "loops per jiffie" option, but I can't seem to find it. "Kernel hacking -> Compile-time checks and compiler options -> Strip asembler-generated symbols during link," I've heard of sripping as the act of removing debug information, but this appears to be different, what would you use the symbols that it is going to strip for?
How do you get a list of files in package x? emerge does not seem to have an option for this.
I'm looking at the new USE flags I've set up and I started searching for various packages I'd like to install, but I can't seem to find why some packages, are masked, for example curl can't use threads and adns but grep can't find the reason in or below /usr/portage/profiles.
The descriptions for the various packages look rather short (one line), is this normal?
FYI: I'm going to try to post this with curl as it was much eiser to write with nano then links, I'm not sure it will work right as I've never posted with curl before.

Thanks


Last edited by ballsystemlord on Mon Nov 16, 2015 6:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7089
Location: Saint Amant, Acadiana

PostPosted: Mon Jan 12, 2015 11:09 pm    Post subject: Reply with quote

ballsystemlord,

hmmm ... lots of your problems stem from simple fact you are doing things the hard way.

I did not read everything, but you could be much better off using SysRescueCD [on USB stick] instead of Gentoo install CD. Using SysRescue there is no problem pasting from less, you have nice GUI with Gentoo install being just one terminal window. app-portage/gentoolkit will give you equery, Gentoo package query tool. app-text/wgetpaste will give you handy tool to put practically anything you want into a pastebin site.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10261
Location: Somewhere over Atlanta, Georgia

PostPosted: Mon Jan 12, 2015 11:26 pm    Post subject: Reply with quote

More in the same vein of what Jaglover was mentioning. Profiles are Gentoo's main mechanism for setting reasonable defaults for USE flags for a particular usage pattern. If you choose a profile that matches your intended system usage, you can essentially ignore USE flags for the rest of the install. (You can always change USE flags later.)
Quote:
How do you get a list of files in package x?
That's the equery command, which is part of gentoolkit. Emerge that. Then
Code:
equery files x
I should also mention that this command lists the files that were installed by package x (past tense). There's no such thing as a list of files that will be installed as this is build dependent.

Definitely use SystemRescueCD. The Gentoo Minimal Install CD is called minimal for good reason. Good luck. (More questions are fine, but shorter questions would be appreciated: there's a good bit of TL;DR going on here.)

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.


Last edited by John R. Graham on Mon Jan 12, 2015 11:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
ian.au
Guru
Guru


Joined: 07 Apr 2011
Posts: 433
Location: Australia

PostPosted: Mon Jan 12, 2015 11:54 pm    Post subject: Re: Troubles configuring gentoo use kernel... Reply with quote

Look, I really don't know how to respond to most of your post, but a couple of things:
ballsystemlord wrote:
I've been trying to configure and install gentoo for more the 12 hours now (I lost count), I want to get some answers to some Qs and I also have some recomendations.

The file /usr/share/portage/config/make.conf.example does not exist. It does though in the chroot, you maight want to mention that some files are located in the chroot since I did not chroot all my ttys.
I set the variable ACCEPT_LINCENSE to FREE and the kerenel would not compile. Now tell me, If you can't compile the kernel then what FREE program can you run without it? This is ridiculas! Why even offer the FREE option if the LINUX KERNEL IS DEPENDENT ON NON-FREE SOFTWARE? I'm not certain what peice(s) of software prevent the instalation. Anyway I removed the FREE declaration and now it will install.

Post your /etc/portage/make.conf, preferably with the commented attempt to set the default license to 'free'.

If indeed you tried to set a package ACCEPT_LINCENCE as you say, that wouldn't work

in /etc/portage/make.conf
Code:
ACCEPT_LICENSE="-* @FREE"

In terms of trying to redirect output to nano try this:

echo 'the big brown fox jumped over the lazy dogs back' > file.txt && nano file.txt

Your attempts would result in a sighup and probably a bunch of files in /~ styled nano.something

To get a good Gentoo experience, initially, you really need to closely follow the handbook. ie. how would it work not to chroot into your new install to set your environment up?

I use systemrescuecd and the handbook and rarely have had to ask for help here.

Cheers,
Back to top
View user's profile Send private message
ballsystemlord
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2013
Posts: 82

PostPosted: Wed Jan 14, 2015 6:54 pm    Post subject: Reply with quote

Ok, next time I'll use the USB stick option, I normally install linux from cd though.
As to the portage make conf, here's the code but mind I'm still stuck in text mode so you'll have to wait.
I know my post was long but I wanted to give you as much of a whole picture of the transition as possible, and I had hoped for some improvement in the way of docs for use flags.
Back to top
View user's profile Send private message
ballsystemlord
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2013
Posts: 82

PostPosted: Wed Jan 14, 2015 7:25 pm    Post subject: Reply with quote

I forgot, I can pastebin the file for you,
bpaste.net/show/36e4a21c46c7
I thought you would be more concerned and know more about the inability to compile the linux kernel when only free packages are allowed.
Back to top
View user's profile Send private message
ian.au
Guru
Guru


Joined: 07 Apr 2011
Posts: 433
Location: Australia

PostPosted: Wed Jan 14, 2015 10:46 pm    Post subject: Reply with quote

ballsystemlord wrote:
I forgot, I can pastebin the file for you,
bpaste.net/show/36e4a21c46c7
I thought you would be more concerned and know more about the inability to compile the linux kernel when only free packages are allowed.


In relation to your pastebin:

Code:

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
# Use -fpredictive-commoning -pipe
CFLAGS="-O2 -march=native -mmmx -msse -mssse3 -msse4.1 -msse4.2 -mfsgsbase -mxsave -mxsaveopt -mpopcnt -mfxsr -msahf -mrecip=all -minline-stringops-dynamically -mcmodel=medium  "
CXXFLAGS="${CFLAGS}"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="-3dfx -3dnow -3dnowext mmx mmxext sse sse2 ssse3 sse4_1 sse4_2 X Xaw3d a52 aac -accessibility aalib acl acpi adns afs aim alsa -altivec ao apache2 apm -aqua atm audiofile -avx -avx2 bash-completion bcmath -bidi bindist blas bluetooth branding bsf bzip2 cairo -canna cdda -cddb cdparanioa cdr cgi clamav -coreaudio cracklib crypt cscope css ctype -cups curl curlwrappers dbi dbm -dbus dedicated dga directfb djvu dri dts dv dvb dvd dvdr -eds -emacs encode enscript -evo examples exif expat fam fastcgi fbcon ffmpeg fftw firebird flac flatfile fltk fontconfig foomaticdb -freetds -freewnn frontbase ftp gcj gd gdbm geoip ggi gif gimp glut gmp -gnome -gnome-keyring gnuplot gnutls gphoto gpm gps graphviz gsl gsm gstreamer gtk -gtkhtml guile gzip hddtemp hdf5 hscolor -ibm iconv icq icu idn -ieee1394 imagmagic imap imlib infiniband inifile -inotify iodbc ios ipod ipv6 -iwmmxt jabber jack javascript jbig jingle -jit -joystick jpeg jpeg2k -kde kerbose ladspa lame lapack lash latex lcms labass labcaca labedit labffi -labnotify labsamplerate labwww lirc lm_sensors lua lzma lzo -m17n-lib mad maildir matroska matrox mbox mhash -migemo mikmod milter mime mmap mms mng modplug modules -mozilla mp3 mp4 mpeg mpi mplayer msn -mssql mtp -mule musepack -musicbrainz mysql nas ncurses -neon -netboot netcdf -networkmanager nis nls nntp nsplugin ocaml ocamlopt -oci8 -oci8-instant-client adbc offensive ofx ogg openal openexr opengl openmp -oracle -orc osc oscar oss -pam -pccmia pcntl pcre pda pdf perl php -plasma plotutils png portaudio posix postgres postscript ppds prelude -pulseaudio python qdbm qmail-spp qt4 qt5 quicktime radius raw -rdesktop readline recode rss ruby sasl scanner sdl seamonkey -semantic-desktop sharedmem shorten simplexml slang slp -smartcard smp sndfile snmp soap sockets socks5 sound sox speex spell sqlite sqlite3 ssl subversion svg svga -sybase -sybase-ct syslog -systemd sysvipc szip taglib tcl tcpd theora threads tidy tiff timidity tk tokenizer truetype -udev udisks unicode upnp upnp-av upower usb vaapi -vala vcd vdpau vhosts vnc vorbis wayland wavpack wddx webkit wifi wmf wxwidgets x264 xattr xcb xcomposite xemacs xface xft xine xinerama xinetd xml xmlrpc xmp xmpp xosd xpm xscreensaver xsl xv xvid yahoo yaz -zeroconf zlib zsh-completion"

# Things that I'm not certain about.
# avahi ayatana berkdb boundschecking calendar cdb caps cdinstall connman enboss filecaps geoip handbook hardend introspection java java6 kolab memlimit motif next nocd policykit samba savedconfig session skey source startup-notification uclibc udisks videos

# Trouble
# java gtk ldap cups zeroconf gnutls xine directfb

ACCEPT_LICENSE="-@EULA"
AUTOCLEAN="yes"
PORTAGE_ELOG_SYSTEM="save"
MAKE_OPTS="-j3"

# Set by them.
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"

# Auto generated from mirrorselect -i -o >> /etc/portage/make.conf
GENTOO_MIRRORS="ftp://mirror.datapipe.net/gentoo ftp://ftp.gtlib.gatech.edu/pub/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://lug.mtu.edu/gentoo/ ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ ftp://gentoo.mirrors.pair.com/ ftp://mirrors.rit.edu/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://gentoo.llarian.net/pub/gentoo ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://ftp.lug.udel.edu/pub/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://ftp.wallawalla.edu/pub/mirrors/ftp.gentoo.org"

# Auto generated from mirrorselect -i -r -o >> /etc/portage/make.conf
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"


Can I ask what the ultimate purpose of this computer will be?

As an example, my cflags for an amd64 desktop running gnome and systemd

Code:

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=core2 -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="-kde -qt4 X dbus gtk gnome alsa"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
MAKEOPTS="-j2"


I really recommend that you go back to the handbook install for your arch and get a solid base system installed.

I think you have misunderstood the concept of USE flags here.

Once you have a system up and running, it's reasonably trivial to set up a vm and play with build settings.

I'll take a wild guess that the Kernel will configure and build just fine with the "-* @FREE" switch once the rest of your configuration is sane, so I'd put that issue on the back burner meantime.

Cheers
Back to top
View user's profile Send private message
ballsystemlord
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2013
Posts: 82

PostPosted: Fri Jan 16, 2015 2:53 pm    Post subject: Reply with quote

I fail to understand what you don't understand about the USE and comilation flags. If I'm going to compile something I might as well do a good job of it. As for the use flags, I wanted a complete toolkit at my disposal. If I set a crazy setting is it really a problem? After all, the USE flags are there to be customized and used, right? Whether I grep to grep through text or binary or with perl regexes or posix EREs it still works, even if the regex is not written that intellegently, or is 300 chars long, it still works fine.
As for the ultimate purpose of the computer, it's a laptop that is used towards the end of being a very internet centered computer that will be used for C, sql, shell, and awk experiments from time to time. It's main purpose is downloading "interesting" documentation for offline study (my internet connection is intermittent).
Why, though, would the USE flags affect the kernel? It's not even linked against C library?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10261
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Jan 16, 2015 3:09 pm    Post subject: Reply with quote

USE flags don't affect the kernel compile but some do affect the kernel source code setup. You can see what USE flags that gentoo-sources (or any package, for that matter) responds to with equery:
Code:
equery uses gentoo-sources
It's also worth noting that CFLAGS don't affect the kernel compile either. You must select that in the kernel configuration (in menuconfig, it's at "Processor type and features / Processor family").

I also responded previously that USE flags are set to a reasonable starting point by profile. You may find that many of the USE flags that you've manually set are already set by a correctly chosen profile. Sorry to frustrate you. Take a look at this explanation that I wrote a few years ago about USE flag documentation.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
ballsystemlord
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2013
Posts: 82

PostPosted: Fri Jan 16, 2015 4:19 pm    Post subject: Reply with quote

Ah! The answer, however, asks more questions then it answers. I will look into it though and try to find out what the linux kernel can or does have that makes it be defined as !@FREE.
Perhaps if I researched the use flags affect on various packages a better description could be contributed to portage?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10261
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Jan 16, 2015 4:24 pm    Post subject: Reply with quote

Yes, I believe this contribution would be well received. The proper way to do this would be through Gentoo Bugzilla. I'd recommend making a proposal including just a few example elaborated descriptions for critique by the developers.

The other thing to note is that USE flags (especially global USE flags) may mean slightly different things for different packages. Therefore, there's a practical limit to the achievable specificity.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6281

PostPosted: Fri Jan 16, 2015 6:03 pm    Post subject: Reply with quote

Concerning deblob and license: The most current kernel ebuilds set DEBLOB_AVAILABLE="0".
When this is set, deblob functionality is not executed (and thus also the license is not changed).
I suppose this is, because deblob has not yet been updated for the current kernels.
Why these ebuilds contain IUSE=deblob anyway, I don't know. Perhaps it is a bug, or perhaps the maintainer does not want to force reinstall once deblob becomes available.
Back to top
View user's profile Send private message
ballsystemlord
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2013
Posts: 82

PostPosted: Fri Jan 16, 2015 6:30 pm    Post subject: Reply with quote

I understand, but it will have to wait till I get a little more settled into gentoo.
All other matters that I mentioned previously should probably get there own thread eventually, so you may close this one,
Thanks
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6281

PostPosted: Fri Jan 16, 2015 6:36 pm    Post subject: Reply with quote

ballsystemlord wrote:
so you may close this one

You must close the thread by editing your first post and adding SOLVED to the subject.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum