Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Issues getting flags to work (solved)
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
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2196

PostPosted: Tue Aug 15, 2017 5:06 pm    Post subject: Issues getting flags to work (solved) Reply with quote

At least I think it's flags. I'm currently running off an install CD (USB drive, but anyway), chroot in, got nearly 95% of my install done, then I get to emerging grub:

Code:
./build-grub-mkfont -o unicode.pf2 ./unifont.pcf || (rm -f unicode.pf2; exit 1)
./build-grub-mkfont -o ascii.pf2 ./unifont.pcf -r 0x0-0x7f,0x2190-0x2193,0x2501-0x251B || (rm -f ascii.pf2; exit 1)
/bin/sh: line 1: 26141 Illegal instruction     ./build-grub-mkfont -o ascii.pf2 ./unifont.pcf -r 0x0-0x7f,0x2190-0x2193,0x2501-0x251B
/bin/sh: line 1: 26140 Illegal instruction     ./build-grub-mkfont -o unicode.pf2 ./unifont.pcf
make[2]: *** [Makefile:12719: unicode.pf2] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:12722: ascii.pf2] Error 1
make[2]: Leaving directory '/var/tmp/portage/sys-boot/grub-2.02/work/grub-2.02-efi-64'
make[1]: *** [Makefile:10904: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-boot/grub-2.02/work/grub-2.02-efi-64'
make: *** [Makefile:3130: all] Error 2
 * ERROR: sys-boot/grub-2.02::gentoo failed (compile phase):
 *   emake failed


I then think I may not have swap enabled, I emerge htop, and attempt to run it:

Code:
(chroot) livecd /etc/init.d # htop
Illegal instruction


So yeah, I think it may be flags, correct me if you believe differently.

Here's my make.conf:

Code:
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=broadwell -O2 -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
USE="X alsa bindist gnome -kde"
CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3"


And my cpuinfo:

Code:
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Genuine Intel(R) CPU           U7300  @ 1.30GHz
stepping        : 10
microcode       : 0xa07
cpu MHz         : 1300.000
cache size      : 3072 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl aperfmperf eagerfpu pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm tpr_shadow vnmi flexpriority dtherm
bugs            :
bogomips        : 2593.70
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:


2 Cores, didn't list other core.
_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim


Last edited by Bigun on Tue Aug 15, 2017 7:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30916
Location: here

PostPosted: Tue Aug 15, 2017 5:20 pm    Post subject: Reply with quote

Code:
CFLAGS="-march=broadwell -O2 -pipe"

Your cpu seems a Core 2 Duo and correct -march is core2 (Safe CFLAGS).
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2196

PostPosted: Tue Aug 15, 2017 5:26 pm    Post subject: Reply with quote

Nailed it.
_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2196

PostPosted: Tue Aug 15, 2017 6:07 pm    Post subject: Reply with quote

I'm back, still failed.

Code:
./build-grub-mkfont -o unicode.pf2 ./unifont.pcf || (rm -f unicode.pf2; exit 1)
/bin/sh: line 1: 16874 Illegal instruction     ./build-grub-mkfont -o unicode.pf2 ./unifont.pcf
make[2]: *** [Makefile:12719: unicode.pf2] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/sys-boot/grub-2.02/work/grub-2.02-efi-64'
make[1]: *** [Makefile:10904: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-boot/grub-2.02/work/grub-2.02-efi-64'
make: *** [Makefile:3130: all] Error 2
 * ERROR: sys-boot/grub-2.02::gentoo failed (compile phase):
 *   emake failed


But htop worked.
_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Tue Aug 15, 2017 6:12 pm    Post subject: Re: Issues getting flags to work Reply with quote

Bigun wrote:
At least I think it's flags. I'm currently running off an install CD (USB drive, but anyway), chroot in, got nearly 95% of my install done, then I get to emerging grub

i don't have any flags on for grub. what flags are you using?
_________________
"Growth for the sake of growth is the ideology of the cancer cell." Edward Abbey
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2196

PostPosted: Tue Aug 15, 2017 6:18 pm    Post subject: Reply with quote

Code:
[ebuild  N     ] sys-boot/grub-2.02:2/2.02::gentoo  USE="fonts nls themes -debug -device-mapper -doc -efiemu (-libzfs) -mount -multislot -sdl -static {-test} -truetype" GRUB_PLATFORMS="efi-64 pc -coreboot -efi-32 -emu -ieee1275 -loongson -multiboot -qemu -qemu-mips -uboot -xen -xen-32" 0 KiB

_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30916
Location: here

PostPosted: Tue Aug 15, 2017 6:58 pm    Post subject: Reply with quote

This is only an (bad?) idea, error seems fonts related, try to recompile media-libs/freetype:2 package.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2196

PostPosted: Tue Aug 15, 2017 7:15 pm    Post subject: Reply with quote

fedeliallalinea wrote:
This is only an (bad?) idea, error seems fonts related, try to recompile media-libs/freetype:2 package.


Build successful. Thank you.
_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30916
Location: here

PostPosted: Tue Aug 15, 2017 7:19 pm    Post subject: Reply with quote

Bigun wrote:
Build successful. Thank you.

Consider to recompile all packages with emerge -e @world for not having other Illegal instruction errors
_________________
Questions are guaranteed in life; Answers aren't.
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