Re: [gentoo-user] GCC/Build Problems

2012-07-16 Thread Christopher Lemire
Every time I take the time to think through and write something like
this up, I solve it pretty quickly afterwards. I'll tell you how I
solved it. GCC wasn't the problem, and gcc-config -l wouldn't of done
any good because I only had one gcc. So I created a simple hello.c
that fprint("Hello Working GCC\n"); Then I tried to compile it. I
noticed in the error message (btw, it did not compile) about a library
and binutils. So I already had my emerge setup that if I wanted to
install a bin-package, I could, so I grabbed a bin package of
binutils. hello.c compiled, but I didn't want to get excited too soon.
I had to see if emerge would work without error, and it did. I
compiled a newer kernel and now I need to recompile libtools because
you're supposed to do that everytime you upgrade your gcc. I will
recompile binutils also so it will have optimizations for my hardware.

Christopher Lemire 
Ubuntu 64 bit Linux Raid Level 0

Gnu Privacy Guard Key Fingerprint = 3E1A 9103 EF3D 4885 6866  E9DE
C69F 18B3 E13B 0909

Web: http://linuxinnovations.blogspot.com
Jabber: recursivequicks...@jabber.org


On Mon, Jul 16, 2012 at 8:15 AM, Todd Goodman  wrote:
> * Christopher Lemire  [120716 08:08]:
> [..]
>> Making a simple Hello World and attempting to compile:
>>
>> bullshark@beastlinux ~ % cat hello.c
>> #include 
>>
>> main() {
>>   printf("Hello Working GCC\n.");
>> }
>> bullshark@beastlinux ~ % gcc hello.c -o hello
>> /usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../i686-pc-linux-gnu/bin/as:
>> symbol lookup error:
>> /usr/lib/binutils/i686-pc-linux-gnu/2.21.1/libopcodes-2.21.1.so:
>> undefined symbol: buffer_read_memory
>> bullshark@beastlinux ~ %
>
> You might need to run gcc-config.
>
> Try gcc-config -l and make sure one of the selections has an * next to
> it.
>
> If not, run gcc-config 
> where  is the name you see in the gcc-config -l output (like
> i686-pc-linux-gnu-4.5.3, for example)
>
> Todd
>



[gentoo-user] GCC/Build Problems

2012-07-16 Thread Christopher Lemire
g-libt...@gnu.org"
#define PACKAGE_URL "http://www.gnu.org/software/libtool/";
#define PACKAGE "libtool"
#define VERSION "2.4"

configure: exit 77





And emerge --info

Portage 2.1.10.65 (hardened/linux/x86, gcc-4.5.3, glibc-2.14.1-r3,
3.2.12-gentoo-laptop i686)
=
System uname: Linux-3.2.12-gentoo-laptop-i686-with-gentoo-2.1
Timestamp of tree: Sun, 15 Jul 2012 09:15:01 +
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:  4.2_p20
dev-lang/python:  2.7.3-r2, 3.2.3
dev-util/cmake:   2.8.7-r5
dev-util/pkgconfig:   0.26
sys-apps/baselayout:  2.1-r1
sys-apps/openrc:  0.9.8.4
sys-apps/sandbox: 2.5
sys-devel/autoconf:   2.68
sys-devel/automake:   1.11.1
sys-devel/binutils:   2.21.1-r1
sys-devel/gcc:4.5.3-r2, 4.6.2
sys-devel/gcc-config: 1.6
sys-devel/libtool:2.4-r1
sys-devel/make:   3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:   2.14.1-r3
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -msse -mmmx"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d
/etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release
/etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -msse -mmmx"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-march=i686 -O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified
distlocks ebuild-locks fixlafiles news parallel-fetch
parse-eapi-ebuild-head protect-owned sandbox sfperms strict
unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-march=i686 -O2 -pipe"
GENTOO_MIRRORS="http://mirror.usu.edu/mirrors/gentoo/
http://mirror.datapipe.net/gentoo";
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_GB en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
--compress --force --whole-file --delete --stats --human-readable
--timeout=180 --exclude=/distfiles --exclude=/local
--exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="256-color X acl alsa bash-completion berkdb branding bzip2 cdr
cli cpudetection cracklib crypt cxx dbus dga dri dvd exif fbcon flac
gdbm gif gnutls gpm gstreamer gtk gzip hardened iconv ipv6 jabber jit
joystick jpeg keyboard lcms libnotify lzma matroska mmx modules mouse
mp3 mp4 mpeg mudflap multiuser ncurses nls nptl nsplugin offensive ogg
opengl openmp pam pax_kernel pcre pic png posix pppd pulseaudio qt4
readline sasl session socks5 sox spell sse ssl symlink syslog tcpd
tiff truetype udev unicode unicode3 urandom usb v4l vim-syntax vorbis
wifi win32codecs x264 x86 xattr xcomposite xft xmpp xorg xscreensaver
xvid zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp
atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371
es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident
usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw
asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug
ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route
share shm softvol" APACHE2_MODULES="actions alias auth_basic
authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm
authz_default authz_groupfile authz_host authz_owner authz_user
autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache
env expires ext_filter file_cache filter headers include info
log_config logio mem_cache mime mime_magic negotiation rewrite
setenvif speling status unique_id userdir usertrack vhost_alias"
CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita
karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq
load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech
aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301
nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf
superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev
synaptics keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad
cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer"
LINGUAS="en en_GB en_US" PHP_TARGETS="php5-3"
PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19"
USERLAND="GNU" VIDEO_CARDS="r128" XTABLES_ADDONS="quota2 psd pknock
lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee
tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL,
PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON





Making a simple Hello World and attempting to compile:

bullshark@beastlinux ~ % cat hello.c
#include 

main() {
  printf("Hello Working GCC\n.");
}
bullshark@beastlinux ~ % gcc hello.c -o hello
/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../i686-pc-linux-gnu/bin/as:
symbol lookup error:
/usr/lib/binutils/i686-pc-linux-gnu/2.21.1/libopcodes-2.21.1.so:
undefined symbol: buffer_read_memory
bullshark@beastlinux ~ %


Christopher Lemire 
Ubuntu 64 bit Linux Raid Level 0

Gnu Privacy Guard Key Fingerprint = 3E1A 9103 EF3D 4885 6866  E9DE
C69F 18B3 E13B 0909

Web: http://linuxinnovations.blogspot.com
Jabber: recursivequicks...@jabber.org



Re: [gentoo-user] Distorted Mirroed Overlapping screen with ATI Rage card

2012-07-11 Thread Christopher Lemire
Yes, but that wasn't the problem. I solved it in the last post here

http://forums.gentoo.org/viewtopic-p-7081620.html#7081620

Christopher Lemire 
Ubuntu 64 bit Linux Raid Level 0

Gnu Privacy Guard Key Fingerprint = 3E1A 9103 EF3D 4885 6866  E9DE C69F
18B3 E13B 0909

Web: http://linuxinnovations.blogspot.com
Jabber: recursivequicks...@jabber.org


On Mon, Jul 9, 2012 at 7:10 AM, Tanstaafl  wrote:

> On 2012-07-06 9:00 PM, Christopher Lemire 
> wrote:
>
>> I tried disabling r128 and building the raedon driver into the kernel.
>> However, I am getting the message raedon module not found. It's not a
>> module. It's built into the kernel. Xorg.0.log. I mistakenly typed
>> raedom, but then fixed it to raedon, so if you see that in log, I
>> corrected it and tried starting X again.
>>
>
> Actually, isn't it raDEon, not raEDon? ;)
>
>


Re: [gentoo-user] Distorted Mirroed Overlapping screen with ATI Rage card

2012-07-06 Thread Christopher Lemire
After using a modified version of this:
http://www.baltimoremick.com/blog/2008/08/25/dell-latitude-c800-display-problems-with-ubuntu/

For some reason, it says Driver "ati". I changed that to r128 and a few
other things in there.

Then, I emerged emerge -av x11-drivers/xf86-video-r128

And the picture is beautiful, crystal clear. Now if I could figure out why
my framebuffer goes to a black screen. I had it working. The only change I
made was recompiling the kernel with a 3Com driver for my ethernet. So now,
the only way is to type my username and password without seeing a thing,
then startx or login through ssh. Please help me to get the framebuffer
working. Thank you.

.config (I double checked it this time)
http://vpaste.net/KFPZ9

Christopher Lemire 
Ubuntu 64 bit Linux Raid Level 0

Gnu Privacy Guard Key Fingerprint = 3E1A 9103 EF3D 4885 6866  E9DE C69F
18B3 E13B 0909

Web: http://linuxinnovations.blogspot.com
Jabber: recursivequicks...@jabber.org


On Fri, Jul 6, 2012 at 8:38 PM, Alex Schuster  wrote:

> Christopher Lemire writes:
>
> > I tried disabling r128 and building the raedon driver into the kernel.
> > However, I am getting the message raedon module not found. It's not a
> > module. It's built into the kernel. Xorg.0.log. I mistakenly typed
> > raedom, but then fixed it to raedon, so if you see that in log, I
> > corrected it and tried starting X again.
>
> Do you have VIDEO_CARDS="radeon" in make.conf? That should pull in
> x11-drivers/xf86-video-ati, I think that's what has the missing radeon X
> module, which is different from the kernel module. I think!
>
> > http://vpaste.net/K3N1v
>
> Whoa, now THAT is a weird Xorg.0.log file!
>
> Um, it's the wrong file :)
>
> Wonko
>
>


Re: [gentoo-user] Distorted Mirroed Overlapping screen with ATI Rage card

2012-07-06 Thread Christopher Lemire
I tried disabling r128 and building the raedon driver into the kernel.
However, I am getting the message raedon module not found. It's not a
module. It's built into the kernel. Xorg.0.log. I mistakenly typed raedom,
but then fixed it to raedon, so if you see that in log, I corrected it and
tried starting X again.

http://vpaste.net/K3N1v

Here's my .config:
http://vpaste.net/1MsRr

With no xorg.conf, I get:

beastlinux X11 # startx
xauth:  file /root/.serverauth.1891 does not exist


X.Org X Server 1.12.2
Release Date: 2012-05-29
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.12-gentoo-laptop i686 Gentoo
Current Operating System: Linux beastlinux 3.2.12-gentoo-laptop #2 Fri Jul
6 14:39:55 CDT 2012 i686
Kernel command line: root=/dev/sda3
Build Date: 05 July 2012  05:40:09AM

Current version of pixman: 0.24.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Fri Jul  6 14:57:42 2012
(==) Using system config directory "/usr/share/X11/xorg.conf.d"

Fatal server error:
no screens found

Please consult the The X.Org Foundation support
 at http://wiki.x.org
 for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional
information.

Server terminated with error (1). Closing log file.


Christopher Lemire 
Ubuntu 64 bit Linux Raid Level 0

Gnu Privacy Guard Key Fingerprint = 3E1A 9103 EF3D 4885 6866  E9DE C69F
18B3 E13B 0909

Web: http://linuxinnovations.blogspot.com
Jabber: recursivequicks...@jabber.org


On Fri, Jul 6, 2012 at 5:41 PM, Mick  wrote:

> On Friday 06 Jul 2012 05:09:08 Christopher Lemire wrote:
> > **This is what my laptop's screen with a newly installed Gentoo system
> > running twm to test X looks like (attached image). It's distorted with
> > overlapping and mirrored image. I have a Dell Latitude C800 with the
> video
> > card.
> >
> > http://img6.imagebanana.com/img/qq4qz9jf/0705122206.jpg
> >
> > 01:00.0 VGA compatible controller [0300]: Advanced Micro Devices [AMD]
> nee
> > ATI Rage Mobility M4 AGP [1002:4d46]
> > Subsystem: Dell Device [1028:00a3]
> > Kernel driver in use: aty128fb
> >
> > Yes, I have compiled the r128 driver directly into the kernel. Various
> > people around the internet had posted xorg.conf that was supposed "ati"
> as
> > the driver. I do not have that driver. I substituted in the same
> xorg.conf
> > with r128, and I still had the same issue. I tried with no xorg.conf (the
> > default), and I couldn't startx, errored and crashed. I had also tried X
> > -configure and had the same distorted screen. I know it is possible to
> get
> > this working just fine. I had it working just fine in Arch Linux with
> r128.
> > I really don't want to go back to using Arch. I already used fdisk on it
> to
> > install this new Gentoo system.
>
> You should still be able to startx with no xorg.conf, as long as you have
> KMS
> built in the kernel, any firmware required for your card installed and
> instructions followed closely here:
>
>   http://www.gentoo.org/doc/en/xorg-config.xml
>
> PS.  'ati' is the proprietary driver.  Given the age of your card you
> probably
> need 'radeon' specified in your make.conf.  The above link explains the
> necessary.
>
> HTH.
> --
> Regards,
> Mick
>


[gentoo-user] Distorted Mirroed Overlapping screen with ATI Rage card

2012-07-05 Thread Christopher Lemire
**This is what my laptop's screen with a newly installed Gentoo system
running twm to test X looks like (attached image). It's distorted with
overlapping and mirrored image. I have a Dell Latitude C800 with the video
card.

http://img6.imagebanana.com/img/qq4qz9jf/0705122206.jpg

01:00.0 VGA compatible controller [0300]: Advanced Micro Devices [AMD] nee
ATI Rage Mobility M4 AGP [1002:4d46]
Subsystem: Dell Device [1028:00a3]
Kernel driver in use: aty128fb

Yes, I have compiled the r128 driver directly into the kernel. Various
people around the internet had posted xorg.conf that was supposed "ati" as
the driver. I do not have that driver. I substituted in the same xorg.conf
with r128, and I still had the same issue. I tried with no xorg.conf (the
default), and I couldn't startx, errored and crashed. I had also tried X
-configure and had the same distorted screen. I know it is possible to get
this working just fine. I had it working just fine in Arch Linux with r128.
I really don't want to go back to using Arch. I already used fdisk on it to
install this new Gentoo system.


Christopher Lemire 
Ubuntu 64 bit Linux Raid Level 0

Gnu Privacy Guard Key Fingerprint = 3E1A 9103 EF3D 4885 6866  E9DE C69F
18B3 E13B 0909

Web: http://linuxinnovations.blogspot.com
Jabber: recursivequicks...@jabber.org


[gentoo-user] distcc to compile Gentoo on the laptop

2012-06-12 Thread Christopher Lemire
Hello Gentoo users, I have one of the higher end pentium 3s running at 1ghz
on a laptop. I have started to install Gentoo on it. Once Stage 3
(Hardened) and Portage were installed, the first things I installed
were vim and distcc. My desktop is a amd quad core at 2.8 ghz stock.
When I had Gentoo on it once before, compiling went really fast using
MAKEOPT=-j5. My desktop is now running Fedora 16 and it's 64-bit,
LUKS, RAID0. I looked up from the Gentoo Handbook and the Gentoo Wiki
documentation about distcc. It all seems to assume that all the other
computers are also running Gentoo. Also because the desktop is running
64-bit Fedora, and the laptop can only run 32 bit, there is the need
for cross compiling. Here's all the issues I am running into that I'm
asking for help to solve.

1. Both systems are not Gentoo.

2. Fedora has distcc and distccd available in the repos, but both
packages are 64 bit.

3. The need for cross-compiling between architectures. The Gentoo Wiki
says use crossdev. That package is available in the Gentoo
repositories through emerge, but when I checked with my Fedora system,
it was not.

4. According to what I read, gcc version a.b.c where a, b, and c are
numbers, a and b need to be the same on both systems. It is ok for c
to be different. My Gentoo has gcc 4.5.x while Fedora has gcc 4.6.x.

So my question is if this is do-able and if anybody has experience
doing this. I want to do the distcc both for the learning experience
and because just emerging distcc on the laptop alone took at least 2
hours.

Christopher Lemire 
Ubuntu 64 bit Linux Raid Level 0

Gnu Privacy Guard Key Fingerprint = 3E1A 9103 EF3D 4885 6866  E9DE
C69F 18B3 E13B 0909

Web: http://linuxinnovations.blogspot.com
Jabber: recursivequicks...@jabber.org