public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/53423] New: gcc/32/crtbegin.o: wrong ELF class: ELFCLASS64
@ 2012-05-20  6:13 keith_otis at hotmail dot com
  2012-05-20 20:01 ` [Bug bootstrap/53423] " pinskia at gcc dot gnu.org
  2012-05-20 20:13 ` keith_otis at hotmail dot com
  0 siblings, 2 replies; 3+ messages in thread
From: keith_otis at hotmail dot com @ 2012-05-20  6:13 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53423

             Bug #: 53423
           Summary: gcc/32/crtbegin.o: wrong ELF class: ELFCLASS64
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: keith_otis@hotmail.com


buliding {objectdir}/gcc/32 all files are built using the -m64 option, but the
linker uses -m32 and -m64, and since all files are 64-bit, the link fails.

configure is setup as the solaris 10 specific 
CC=gcc -m64

/home/keith/src/gcc-4.7.0/configure \
--enable-languages=c,c++,fortran \
--prefix=/usr/local \
--with-as=/usr/ccs/bin/as \
--without-gnu-ld \
--with-ld=/usr/ccs/bin/ld \
--with-boot-ldflags=-m64 \
--with-stage1-ldflags=-m64 \
--enable-bootstrap \
--enable-shared \
--target=x86_64-pc-solaris2.10

/bin/bash /home/keith/src/gcc-4.7.0/libgcc/../mkinstalldirs 32
mkdir 32
/home/keith/src/gcc-obj/./gcc/xgcc -B/home/keith/src/gcc-obj/./gcc/
-B/usr/local/x86_64-pc-solaris2.10/bin/ -B/usr/local/x86_64-pc-solaris2.10/lib/
-isystem /usr/local/x86_64-pc-solaris2.10/include -isystem
/usr/local/x86_64-pc-solaris2.10/sys-include    -O2  -g -m64 -DIN_GCC   -W
-Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include   -fpic -g -DIN_LIBGCC2
-fbuilding-libgcc -fno-stack-protector  -shared -nodefaultlibs
-Wl,-h,libgcc_s.so.1 -Wl,-z,text -Wl,-z,defs -Wl,-M,libgcc.map -o
32/libgcc_s.so.1.tmp -g -m64 -m32 -B./ _muldi3_s.o _negdi2_s.o _lshrdi3_s.o
_ashldi3_s.o _ashrdi3_s.o _cmpdi2_s.o _ucmpdi2_s.o _clear_cache_s.o
_trampoline_s.o __main_s.o _absvsi2_s.o _absvdi2_s.o _addvsi3_s.o _addvdi3_s.o
_subvsi3_s.o _subvdi3_s.o _mulvsi3_s.o _mulvdi3_s.o _negvsi2_s.o _negvdi2_s.o
_ctors_s.o _ffssi2_s.o _ffsdi2_s.o _clz_s.o _clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o
_ctzdi2_s.o _popcount_tab_s.o _popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o
_paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _powitf2_s.o _mulsc3_s.o
_muldc3_s.o _mulxc3_s.o _multc3_s.o _divsc3_s.o _divdc3_s.o _divxc3_s.o
_divtc3_s.o _bswapsi2_s.o _bswapdi2_s.o _clrsbsi2_s.o _clrsbdi2_s.o
_fixunssfsi_s.o _fixunsdfsi_s.o _fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o
_fixxfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _floatdisf_s.o
_floatdidf_s.o _floatdixf_s.o _floatundisf_s.o _floatundidf_s.o
_floatundixf_s.o _divdi3_s.o _moddi3_s.o _udivdi3_s.o _umoddi3_s.o
_udiv_w_sdiv_s.o _udivmoddi4_s.o tf-signs_s.o addtf3_s.o divtf3_s.o eqtf2_s.o
getf2_s.o letf2_s.o multf3_s.o negtf2_s.o subtf3_s.o unordtf2_s.o fixtfsi_s.o
fixunstfsi_s.o floatsitf_s.o floatunsitf_s.o fixtfdi_s.o fixunstfdi_s.o
floatditf_s.o floatunditf_s.o extendsftf2_s.o extenddftf2_s.o extendxftf2_s.o
trunctfsf2_s.o trunctfdf2_s.o trunctfxf2_s.o enable-execute-stack_s.o
unwind-dw2_s.o unwind-dw2-fde-dip_s.o unwind-sjlj_s.o unwind-c_s.o emutls_s.o
-lc && rm -f 32/libgcc_s.so && if [ -f 32/libgcc_s.so.1 ]; then mv -f
32/libgcc_s.so.1 32/libgcc_s.so.1.backup; else true; fi && mv
32/libgcc_s.so.1.tmp 32/libgcc_s.so.1 && ln -s libgcc_s.so.1 32/libgcc_s.so
ld: fatal: file /home/keith/src/gcc-obj/./gcc/32/crtbegin.o: wrong ELF class:
ELFCLASS64
ld: fatal: file processing errors. No output written to 32/libgcc_s.so.1.tmp
collect2: error: ld returned 1 exit status
make[5]: *** [libgcc_s.so] Error 1
make[5]: Leaving directory
`/export/home/keith/src/gcc-obj/x86_64-pc-solaris2.10/32/libgcc'
make[4]: *** [multi-do] Error 1
make[4]: Leaving directory
`/export/home/keith/src/gcc-obj/x86_64-pc-solaris2.10/libgcc'
make[3]: *** [all-multi] Error 2
make[3]: Leaving directory
`/export/home/keith/src/gcc-obj/x86_64-pc-solaris2.10/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/export/home/keith/src/gcc-obj'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/export/home/keith/src/gcc-obj'
make: *** [bootstrap] Error 2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug bootstrap/53423] gcc/32/crtbegin.o: wrong ELF class: ELFCLASS64
  2012-05-20  6:13 [Bug bootstrap/53423] New: gcc/32/crtbegin.o: wrong ELF class: ELFCLASS64 keith_otis at hotmail dot com
@ 2012-05-20 20:01 ` pinskia at gcc dot gnu.org
  2012-05-20 20:13 ` keith_otis at hotmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-05-20 20:01 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53423

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-05-20 19:31:54 UTC ---
--with-boot-ldflags=-m64 \
--with-stage1-ldflags=-m64 \

Don't do that.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug bootstrap/53423] gcc/32/crtbegin.o: wrong ELF class: ELFCLASS64
  2012-05-20  6:13 [Bug bootstrap/53423] New: gcc/32/crtbegin.o: wrong ELF class: ELFCLASS64 keith_otis at hotmail dot com
  2012-05-20 20:01 ` [Bug bootstrap/53423] " pinskia at gcc dot gnu.org
@ 2012-05-20 20:13 ` keith_otis at hotmail dot com
  1 sibling, 0 replies; 3+ messages in thread
From: keith_otis at hotmail dot com @ 2012-05-20 20:13 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53423

--- Comment #2 from kiko <keith_otis at hotmail dot com> 2012-05-20 20:10:29 UTC ---
did make distclean, removed 

--with-boot-ldflags=-m64 \
--with-stage1-ldflags=-m64 \

from configure, re-ran configure and build still fails:

/bin/bash /home/keith/src/gcc-4.7.0/libgcc/../mkinstalldirs 32
mkdir 32
/home/keith/src/gcc-obj/./gcc/xgcc -B/home/keith/src/gcc-obj/./gcc/
-B/usr/local/x86_64-pc-solaris2.10/bin/ -B/usr/local/x86_64-pc-solaris2.10/lib/
-isystem /usr/local/x86_64-pc-solaris2.10/include -isystem
/usr/local/x86_64-pc-solaris2.10/sys-include    -O2  -g -m64 -DIN_GCC   -W
-Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include   -fpic -g -DIN_LIBGCC2
-fbuilding-libgcc -fno-stack-protector  -shared -nodefaultlibs
-Wl,-h,libgcc_s.so.1 -Wl,-z,text -Wl,-z,defs -Wl,-M,libgcc.map -o
32/libgcc_s.so.1.tmp -g -m64 -m32 -B./ _muldi3_s.o _negdi2_s.o _lshrdi3_s.o
_ashldi3_s.o _ashrdi3_s.o _cmpdi2_s.o _ucmpdi2_s.o _clear_cache_s.o
_trampoline_s.o __main_s.o _absvsi2_s.o _absvdi2_s.o _addvsi3_s.o _addvdi3_s.o
_subvsi3_s.o _subvdi3_s.o _mulvsi3_s.o _mulvdi3_s.o _negvsi2_s.o _negvdi2_s.o
_ctors_s.o _ffssi2_s.o _ffsdi2_s.o _clz_s.o _clzsi2_s.o _clzdi2_s.o _ctzsi2_s.o
_ctzdi2_s.o _popcount_tab_s.o _popcountsi2_s.o _popcountdi2_s.o _paritysi2_s.o
_paritydi2_s.o _powisf2_s.o _powidf2_s.o _powixf2_s.o _powitf2_s.o _mulsc3_s.o
_muldc3_s.o _mulxc3_s.o _multc3_s.o _divsc3_s.o _divdc3_s.o _divxc3_s.o
_divtc3_s.o _bswapsi2_s.o _bswapdi2_s.o _clrsbsi2_s.o _clrsbdi2_s.o
_fixunssfsi_s.o _fixunsdfsi_s.o _fixunsxfsi_s.o _fixsfdi_s.o _fixdfdi_s.o
_fixxfdi_s.o _fixunssfdi_s.o _fixunsdfdi_s.o _fixunsxfdi_s.o _floatdisf_s.o
_floatdidf_s.o _floatdixf_s.o _floatundisf_s.o _floatundidf_s.o
_floatundixf_s.o _divdi3_s.o _moddi3_s.o _udivdi3_s.o _umoddi3_s.o
_udiv_w_sdiv_s.o _udivmoddi4_s.o tf-signs_s.o addtf3_s.o divtf3_s.o eqtf2_s.o
getf2_s.o letf2_s.o multf3_s.o negtf2_s.o subtf3_s.o unordtf2_s.o fixtfsi_s.o
fixunstfsi_s.o floatsitf_s.o floatunsitf_s.o fixtfdi_s.o fixunstfdi_s.o
floatditf_s.o floatunditf_s.o extendsftf2_s.o extenddftf2_s.o extendxftf2_s.o
trunctfsf2_s.o trunctfdf2_s.o trunctfxf2_s.o enable-execute-stack_s.o
unwind-dw2_s.o unwind-dw2-fde-dip_s.o unwind-sjlj_s.o unwind-c_s.o emutls_s.o
-lc && rm -f 32/libgcc_s.so && if [ -f 32/libgcc_s.so.1 ]; then mv -f
32/libgcc_s.so.1 32/libgcc_s.so.1.backup; else true; fi && mv
32/libgcc_s.so.1.tmp 32/libgcc_s.so.1 && ln -s libgcc_s.so.1 32/libgcc_s.so
ld: fatal: file /home/keith/src/gcc-obj/./gcc/32/crtbegin.o: wrong ELF class:
ELFCLASS64
ld: fatal: file processing errors. No output written to 32/libgcc_s.so.1.tmp
collect2: error: ld returned 1 exit status
make[5]: *** [libgcc_s.so] Error 1
make[5]: Leaving directory
`/export/home/keith/src/gcc-obj/x86_64-pc-solaris2.10/32/libgcc'
make[4]: *** [multi-do] Error 1
make[4]: Leaving directory
`/export/home/keith/src/gcc-obj/x86_64-pc-solaris2.10/libgcc'
make[3]: *** [all-multi] Error 2
make[3]: Leaving directory
`/export/home/keith/src/gcc-obj/x86_64-pc-solaris2.10/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/export/home/keith/src/gcc-obj'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/export/home/keith/src/gcc-obj'
make: *** [bootstrap] Error 2


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-20 20:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-20  6:13 [Bug bootstrap/53423] New: gcc/32/crtbegin.o: wrong ELF class: ELFCLASS64 keith_otis at hotmail dot com
2012-05-20 20:01 ` [Bug bootstrap/53423] " pinskia at gcc dot gnu.org
2012-05-20 20:13 ` keith_otis at hotmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).