Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I am stuck at installing Gentoo.
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43175
Location: 56N 3W

PostPosted: Sat Mar 10, 2018 12:21 pm    Post subject: Reply with quote

Jaglover,

That has to be a very old GCC.

Ramirez987,

What is the full exact name of the stage3 that you downloaded?
From your kernel build error, it looks like its an old one. It can still be made to work but you will have more updating to do.

Learn to use wgetpaste to share text.

Gentoo is a very flexible distro but that flexibility puts demands on the system admin that binary distros don't.
They make many decisions for you that with Gentoo, its down to the admin.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Ramirez987
n00b
n00b


Joined: 19 Jul 2015
Posts: 23

PostPosted: Sat Mar 10, 2018 12:49 pm    Post subject: Reply with quote

NeddySeagon, I have used the stage3 from your post, so it can't be old:

NeddySeagoon wrote:
Ramirez987,

ulibc is intended for embedded systems with limited functinality.
You should use this stage 3

Its linked from the downloads page. Yon want the x86 side of the page and the i686 button.


I have just mounted a usb.

Fstab:
Code:
# /etc/fstab: static file system information.
[...]
#LABEL=boot      /boot      ext4      noauto,noatime   1 2
#UUID=58e72203-57d1-4497-81ad-97655bd56494      /      ext4      noatime      0 1
#LABEL=swap      none      swap      sw      0 0
#/dev/cdrom      /mnt/cdrom   auto      noauto,ro   0 0
/dev/sda2      /boot      ext2      defaults   0 2


make.conf:
Code:

[...]
MAKEOPTS="-j2"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
USE="a52 acl acpi alsa cdda djvu dvd dvdr flac ftp gif mozilla mp3 mpeg mplayer pdf jack java javascript jpeg qt4 qt5 kde"

# NOTE: This stage was built with the bindist Use flag enabled
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C

GENTOO_MIRRORS="ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://mirror.netcologne.de/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ rsync://ftp-stud.hs-esslingen.de/gentoo/ ftp://ftp.ntua.gr/pub/linux/gentoo/ rsync://gentoo.prz.rzeszow.pl/gentoo ftp://ftp.vectranet.pl/gentoo/ http://mirrors.xservers.ro/gentoo/ http://mirror.bytemark.co.uk/gentoo/ rsync://mirror.bytemark.co.uk/gentoo/ ftp://mirror.bytemark.co.uk/gentoo/ http://mirrors.evowise.com/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ rsync://rsync.mirrorservice.org/distfiles.gentoo.org/ ftp://ftp.mirrorservice.org/sites/distfiles.gentoo.org/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo rsync://rsync.gtlib.gatech.edu/gentoo ftp://ftp.gtlib.gatech.edu/pub/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://lug.mtu.edu/gentoo/ http://gentoo.osuosl.org/"


And Error:
Code:

Select compiled-in fonts (FONTS) [N/y/?] n
#
# configuration written to .config
#
* kernel: >> Cleaning...
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" ARCH="x86" clean
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" ARCH="x86" prepare
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --silentoldconfig Kconfig
  SYSTBL  arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h
  HOSTCC  scripts/basic/bin2c
  CHK     include/config/kernel.release
  UPD     include/config/kernel.release
Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
make: *** [Makefile:1073: prepare-compiler-check] Error 1
make: *** Waiting for unfinished jobs....
  SYSHDR  arch/x86/entry/syscalls/../../include/generated/asm/unistd_32_ia32.h
  SYSHDR  arch/x86/entry/syscalls/../../include/generated/asm/unistd_64_x32.h
  SYSTBL  arch/x86/entry/syscalls/../../include/generated/asm/syscalls_64.h
  SYSHDR  arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_32.h
  SYSHDR  arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_64.h
  SYSHDR  arch/x86/entry/syscalls/../../include/generated/uapi/asm/unistd_x32.h
* Gentoo Linux Genkernel; Version 3.4.52.4
* Running with options: all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86/modules_load ..

* ERROR: Failed to compile the "prepare" target...


EDIT:

I have run command:
Code:
genkernell all --menuconfig

and then turned off the [ ] 64-bit kernel option. It turned off my laptop again. :roll:
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3076
Location: Illinois, USA

PostPosted: Sat Mar 10, 2018 3:20 pm    Post subject: Reply with quote

Ramirez987 wrote:
I believed Gentoo was a flexible OS, but now it seems to me, as random and chaotic. Only way, to have a chance to get something work is to write a sequence of commands in correct order.

That is true of any computer system. If it seems different on Ubuntu or Windows it's only because what you type is really a script or program running a precise sequence of commands in correct order.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13830

PostPosted: Sat Mar 10, 2018 3:43 pm    Post subject: Reply with quote

Neither genkernel nor emerge includes an option to automatically poweroff the computer. Given that this is described as an old laptop, my guess is that you are overheating it and it shuts down automatically to avoid damage. When was it last cleaned? At what temperatures does it operate, both when idle and when running at full CPU load?

What is the output of emerge --info?
Back to top
View user's profile Send private message
Ramirez987
n00b
n00b


Joined: 19 Jul 2015
Posts: 23

PostPosted: Sat Mar 10, 2018 4:10 pm    Post subject: Reply with quote

I thought about the temperatures and overheating, but it has been cleaned and the paste was changed. It was probably years ago, but then again, it was sitting in a closet.
Any way, is there a possibility to slow down the process of unpacking and compiling? Quiet command or someting?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43175
Location: 56N 3W

PostPosted: Sat Mar 10, 2018 6:47 pm    Post subject: Reply with quote

Ramirez987,

Code:
Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler

Use menuconfig to turn that option off.
Set CONFIG_CC_STACKPROTECTOR_NONE.

Some laptops were designed with inadequate cooling. However there are one or two things to do.

Place the laptop on two thick books, so they support the edges only
This allows air to circulate underneath.

With some laptops, they can be operated 'on edge' with the exhaust at the top.
This improves convection and allows air to carry teah away from the bottom.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7550
Location: Goose Creek SC

PostPosted: Sat Mar 10, 2018 7:12 pm    Post subject: Reply with quote

in the refrigerator's freezer section on a wire cooling rack :D
MAKEOPTS="-j1" in /etc/portage/make.conf might ease the load
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Ramirez987
n00b
n00b


Joined: 19 Jul 2015
Posts: 23

PostPosted: Sun Mar 11, 2018 6:06 pm    Post subject: Reply with quote

I've done this:
NeddySeagoon wrote:
Ramirez987,

Code:
Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler

Use menuconfig to turn that option off.
Set CONFIG_CC_STACKPROTECTOR_NONE.
[...]

and this:
DONAHUE wrote:
[...]
MAKEOPTS="-j1" in /etc/portage/make.conf might ease the load

and my laptop turned off again, during kernel compilation. It slowed down the process though...

Maybe I wasn't meant to have Gentoo?

As for overheating, than I still will not believe in that. It isn't the best cooling system in the world and the fan makes more noise, that starting jet engine (it was always like that), but still in all those years it overheated once. Many years ago, during playing some game. It had over a 100 degrees. The space between fan and radiator was filled with dust and there was no air flow. After that I have cleaned it and changed the paste for some metallic one. And cleaned it few times after that. I have looked inside today, there is no dust.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43175
Location: 56N 3W

PostPosted: Sun Mar 11, 2018 6:31 pm    Post subject: Reply with quote

Ramirez987,

Do you have
Code:
cat /sys/devices/virtual/thermal/thermal_zone0/temp
?

You may have thermal_zone1, thermal_zone2 ... as well.
The number 41856 is 41.856 Deg C. That's from my system now.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Ramirez987
n00b
n00b


Joined: 19 Jul 2015
Posts: 23

PostPosted: Mon Mar 12, 2018 11:59 am    Post subject: Reply with quote

I have just thermal_zone0 and result is 53000
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43175
Location: 56N 3W

PostPosted: Mon Mar 12, 2018 12:07 pm    Post subject: Reply with quote

Ramirez987,

That's 53 deg C.

Keep an eye on that when you build things.
If it gets to 80 deg C pause the build with
Code:
ctrl-z
and allow it to cool.
Resume the build with the
Code:
fg
command.

Keep that up until your kernel is built. If your system powers off still, its not overheating.

How old is your battery?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Ramirez987
n00b
n00b


Joined: 19 Jul 2015
Posts: 23

PostPosted: Mon Mar 12, 2018 12:20 pm    Post subject: Reply with quote

There is no battery anymore. It died many years ago.

During compilation, there is error, that turns off my laptop:

Code:
ERROR: mount-ro failed to start
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43175
Location: 56N 3W

PostPosted: Mon Mar 12, 2018 3:25 pm    Post subject: Reply with quote

Ramirez987,

That implies its an orderly commanded shutdown.
mount-ro is a service that runs at the end of the shutdown sequence.

No battery means its not a battery fault.

Keep an eye on the temperature.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Ramirez987
n00b
n00b


Joined: 19 Jul 2015
Posts: 23

PostPosted: Mon Mar 12, 2018 5:17 pm    Post subject: Reply with quote

The temperatures are ok. Max is 69 degrees, which is far from what this laptop can take. During compilation above error occurs and computer is turned off immediately.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43175
Location: 56N 3W

PostPosted: Mon Mar 12, 2018 6:40 pm    Post subject: Reply with quote

Ramirez987,

Boot into memtest86 and run a few memory test cycles.

If there are no errors, your memory subsystem is probably good.
If there are errors, it may not be your RAM.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Ramirez987
n00b
n00b


Joined: 19 Jul 2015
Posts: 23

PostPosted: Tue Mar 13, 2018 3:25 pm    Post subject: Reply with quote

Memtest complete. No errors.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43175
Location: 56N 3W

PostPosted: Tue Mar 13, 2018 5:50 pm    Post subject: Reply with quote

Ramirez987,

I'm out of ideas. Sorry.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Ramirez987
n00b
n00b


Joined: 19 Jul 2015
Posts: 23

PostPosted: Tue Mar 13, 2018 6:17 pm    Post subject: Reply with quote

That is ok. Thanks for all your help.

Last question: is there an archive, that I can download older version of Gentoo ISO and Stage3 files?
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3076
Location: Illinois, USA

PostPosted: Tue Mar 13, 2018 6:22 pm    Post subject: Reply with quote

Don't know why your kernel won't build, but try this http://www.system-rescue-cd.org/
If it boots and runs, copy the kernel that works onto your laptop and you will at least have a working system.
Back to top
View user's profile Send private message
Ramirez987
n00b
n00b


Joined: 19 Jul 2015
Posts: 23

PostPosted: Tue Mar 13, 2018 6:26 pm    Post subject: Reply with quote

Tony0945 wrote:
Don't know why your kernel won't build, but try this http://www.system-rescue-cd.org/
If it boots and runs, copy the kernel that works onto your laptop and you will at least have a working system.


I will try it. Thank you.

For now I have installed Debian. No problems. I have opened fstab file and saw the same error:

Code:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=5b577310-f8fe-4781-96dd-94a6de55f4fc /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=5fa4b61d-b189-4300-b375-23609cd6ba97 none            swap    sw              0       0
/dev/sr0        /media/cdrom0   udf,iso9660 user,noauto     0       0


Can it be used somehow to create the Gentoo file? As I understand this means, that in case of errors the partition will be mounted read-only, which isn't the best thing during kernel compilation.

Another question is about USE flags. Have I used too many? Or forgot about somethig? It is in the wrong place in a conf file?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7550
Location: Goose Creek SC

PostPosted: Tue Mar 13, 2018 10:37 pm    Post subject: Reply with quote

you earlier presented a /etc/fstab file containing
Quote:
#UUID=58e72203-57d1-4497-81ad-97655bd56494 / ext4 noatime 0 1

The "#" in front of "UUID=58e72203-57d1-4497-81ad-97655bd56494 / ext4 noatime 0 1" turns this entry into a remark. The /etc/fstab thus contains no effective entry for mounting the root partition. As the usual kernel options provided by grub mount the root partition ro (read only) and your fstab has no effective entry; the root filesystem remains ro and no emerge can succeed. Your fstab also has no effective entry for swap so any attempt to suspend or hibernate is presumed to be doomed. Run blkid and ensure the UUID's are correct. Remove the "#".
You must create the content of the /etc/fstab file in Gentoo to suit your partitioning and file systems with a text editor (nano or vim or ...).
Best practice for maximum probability of a successful first install is leave USE="" in /etc/portage/make.conf as found after stage 3 tarball is unpacked, The needed USE flags will be provided by the selected profile. For maximum probability of a successful first install leave the profile selection as provided by unpacking stage 3 tarball. After a successful first boot take another look at profiles and select the one that best suits your plans. After a profile change, emerge -uNDav world will upgrade your system. Gentoo wiki provides directions for installing many popular packages. Those directions generally discuss needed USE flags, particularly those global (used for all packages for which the flag is an option) USE flags which should be listed in USE="" in make.conf. The output of emerge frequently identifies USE flags which are needed for particular package dependencies. Usually thes are less than global and are best placed in /etc/portage/package.use.
For more and better see Sections 2 and 3 of the Handbook.
When in trouble with networking after first boot see section 4.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Ramirez987
n00b
n00b


Joined: 19 Jul 2015
Posts: 23

PostPosted: Sat Mar 17, 2018 7:09 pm    Post subject: Reply with quote

Today, after more than two weeks of trying, I gave up on Gentoo. I have installed Lubuntu on this old computer. It went smoothly. RAM is fine, disk is fine. I have logged in and tried youtube. My laptop closed down, again. I will take it to a shooting range, put few bullets in it and throw it to trash. Thanks for all of your help and patience!
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13830

PostPosted: Sat Mar 17, 2018 9:06 pm    Post subject: Reply with quote

Rather than destroy it, donate it to a local electronics salvage shop. Warn them about its quirks, and let them decide whether to put it in a landfill, repair it, or find a home that can live with the problems.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3076
Location: Illinois, USA

PostPosted: Sat Mar 17, 2018 9:57 pm    Post subject: Reply with quote

Hu wrote:
Rather than destroy it, donate it to a local electronics salvage shop. Warn them about its quirks, and let them decide whether to put it in a landfill, repair it, or find a home that can live with the problems.
Yes, there are usable components like hard drive and cd drive. The latter are pretty expensive for laptops.

The problem might be power supply and/or dirt. He should try taking it apart and blowing off.
Back to top
View user's profile Send private message
Ramirez987
n00b
n00b


Joined: 19 Jul 2015
Posts: 23

PostPosted: Sat Mar 17, 2018 10:07 pm    Post subject: Reply with quote

Well... DVD drive doesn't work either :mrgreen:
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
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
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