Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 357445 - sys-boot/grub-1.99_rc1 with no-multilib - kern/i386/pc/startup.S:161: Error: attempt to move .org backwards
Summary: sys-boot/grub-1.99_rc1 with no-multilib - kern/i386/pc/startup.S:161: Error: ...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://savannah.gnu.org/bugs/?32676
Whiteboard:
Keywords:
: 367725 376961 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-04 22:13 UTC by Aleister
Modified: 2016-05-21 11:34 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,483.31 KB, text/plain)
2011-03-04 22:13 UTC, Aleister
Details
Comment 4 in patch format (gentoo-bug357445.patch,580 bytes, patch)
2011-04-03 13:29 UTC, rinus
Details | Diff
emerge --info for reference (amd64-hardend_emerge-info.txt,4.72 KB, text/plain)
2011-04-03 13:32 UTC, rinus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aleister 2011-03-04 22:13:00 UTC
looks like the -m32 flag gets passed to gcc somehow. Just want to mention that it is on a hardened box if that should have anything to say...

Reproducible: Always

Steps to Reproduce:

Actual Results:  
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -Wall -W -I../include -I../include  -DGRUB_MACHINE_PCBIOS=1 -DGRUB_MACHINE=I386_PC -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/include -DGRUB_FILE=\"kern/i386/pc/startup.S\" -I. -I. -I.. -I.. -I../include -I../include     -g -m32 -DASM_FILE=1     -MT kern/i386/pc/kernel_exec-startup.o -MD -MP -MF kern/i386/pc/.deps-core/kernel_exec-startup.Tpo -c -o kern/i386/pc/kernel_exec-startup.o `test -f 'kern/i386/pc/startup.S' || echo './'`kern/i386/pc/startup.S
reed_solomon.c: Assembler messages:
reed_solomon.c:707: Warning: ignoring changed section attributes for .text
kern/i386/pc/startup.S:161: Error: attempt to move .org backwards
kern/i386/pc/startup.S:456: Error: attempt to move .org backwards
kern/i386/pc/startup.S:458: Error: attempt to move .org backwards


emerge --info
Portage 2.1.9.25 (hardened/linux/amd64/no-multilib, gcc-4.4.5, glibc-2.11.2-r3, 2.6.37-hardened-r1 x86_64)
=================================================================
System uname: Linux-2.6.37-hardened-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7700_@_2.40GHz-with-gentoo-1.12.14
Timestamp of tree: Fri, 04 Mar 2011 01:40:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p9
dev-lang/python:     2.6.6-r2, 3.1.3-r1
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/net_portage"
EMERGE_DEFAULT_OPTS="--with-bdeps y --jobs 2 --load-average 4"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.tiscali.nl"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/hardened-development"
SYNC="rsync://192.168.0.1/gentoo-portage"
USE="acl amd64 bzip2 cli cracklib crypt cups cxx dri gdbm gpm hardened iconv justify mmx modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pic pppd python readline session sse sse2 ssl sysfs tcpd unicode urandom xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Aleister 2011-03-04 22:13:44 UTC
Created attachment 264757 [details]
build log
Comment 2 satmd 2011-03-05 14:50:31 UTC
I'm getting this too on amd64 no-multilib hardened - core i7. But it compiled fine on two amd no-multilib hardened with core 2 duo and xeon.
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-03-20 09:56:38 UTC
Added upstream link, also reported on FreeBSD.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-03-20 20:34:55 UTC
This is the minimal values that allow it to compile:
increase:
GRUB_KERNEL_I386_PC_RAW_SIZE by 6 
GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART by 8

However I can't do a boot test on that for a while (remote servers).
Comment 5 rinus 2011-04-03 13:29:37 UTC
Created attachment 268327 [details, diff]
Comment 4 in patch format

(In reply to comment #4)
> This is the minimal values that allow it to compile:
> increase:
> GRUB_KERNEL_I386_PC_RAW_SIZE by 6 
> GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART by 8

Altough i don't know what it does exactly, i can confirm that this works for me on hardened amd64. Grub compiles and boots in kvm.

I'll attach my 'emerge --info' later.
Comment 6 rinus 2011-04-03 13:32:27 UTC
Created attachment 268329 [details]
emerge --info for reference

My emerge --info to have a reference of a working system.
Comment 7 SpanKY gentoo-dev 2011-05-18 00:25:51 UTC
*** Bug 367725 has been marked as a duplicate of this bug. ***
Comment 8 darin hensley 2011-06-03 21:00:43 UTC
I am using hardened system with an intel i3 series. This patch worked. Ebuild needs to be updated with it, please. I ran into this problem about a month ago.
Comment 9 Aleister 2011-06-03 23:55:17 UTC
gnu.org is down so i cant confirm that they have handled (but it is reported) this bug upstream and so it would be fixed hopefully in the next RC. But if that is the case we could just wait, but i am not the grub maintainer so it is up to them/her. This is a RC after all...
Comment 10 Aleister 2011-06-03 23:56:58 UTC
her/them/he/it/is
sorry the herd?
Comment 11 Aleister 2011-06-03 23:57:28 UTC
her/them/he/it/is
sorry the herd?
Comment 12 SpanKY gentoo-dev 2011-07-30 06:31:50 UTC
*** Bug 376961 has been marked as a duplicate of this bug. ***