Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 246703 - cross-mips-pc-linux-gnu/gcc-4.2.4 - libbackend.a(options.o):(.rodata+0x6b90): undefined reference to `TARGET_R10K_SPECEX'
Summary: cross-mips-pc-linux-gnu/gcc-4.2.4 - libbackend.a(options.o):(.rodata+0x6b90):...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: MIPS Porters
URL:
Whiteboard: Blocks Gentoo Prefix support for mips...
Keywords: Bug, REGRESSION
Depends on:
Blocks:
 
Reported: 2008-11-14 11:26 UTC by Vault13
Modified: 2012-08-19 00:22 UTC (History)
3 users (show)

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


Attachments
the 2 files made by crossdev/emerge (gcc-4.2.4.7z,22.81 KB, application/x-7z-compressed)
2008-11-14 11:27 UTC, Vault13
Details
ebuild which fixes the problem (gcc-4.2.4-r1.ebuild,2.50 KB, text/plain)
2008-11-17 10:17 UTC, Vault13
Details
sys-devel/gcc-4.2.4-r01.4 build log from Gentoo Prefix (build.log,495.38 KB, text/plain)
2012-06-03 02:04 UTC, Richard Yao (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vault13 2008-11-14 11:26:45 UTC
//After failing to compile llvm-gcc for MIPS, i decided to cross-compile gcc-4.24 which llvm-gcc is based on and then hack crossdev and toolchain eclass to compile llvm-gcc

But

crossdev --g 4.2.3 --without-headers mips-pc-linux-gnu
crossdev --g 4.2.4 --without-headers mips-pc-linux-gnu

both fail sayin

undefined reference to `TARGET_R10K_SPECEX'

when compilin gcc-stage1

I enclose the 2 files which crossdev suggests
Comment 1 Vault13 2008-11-14 11:27:57 UTC
Created attachment 171704 [details]
the 2 files made by crossdev/emerge
Comment 2 Manuel Lauss 2008-11-15 07:49:59 UTC
Caused by patches 92 and 93 from the gcc-4.2.4 gentoo patch archive.
Comment 3 Vault13 2008-11-17 06:38:11 UTC
(In reply to comment #2)
> Caused by patches 92 and 93 from the gcc-4.2.4 gentoo patch archive.

found patch 92, but not 93

=================== ebuild log start ==================
 *   74_all_sh-pr24836.patch ...
  [ ok ]
 *   90_all_mips-add-march-r10k.patch ...
  [ ok ]
 *   91_all_mips-ip28_cache_barriers-v4.patch ...
  [ ok ]
 *   92_all_mips-pthread-with-shared.patch ...
  [ ok ]
 * Done with patching
 * Applying uClibc patches ...
 *   90_all_100-uclibc-conf.patch ...
  [ ok ]
 *   90_all_103-uclibc-conf-noupstream.patch ...
=================== ebuild log end   ==================
Comment 4 Manuel Lauss 2008-11-17 07:57:57 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Caused by patches 92 and 93 from the gcc-4.2.4 gentoo patch archive.
> 
> found patch 92, but not 93
> 
> =================== ebuild log start ==================
>  *   74_all_sh-pr24836.patch ...
>   [ ok ]
>  *   90_all_mips-add-march-r10k.patch ...
>   [ ok ]
>  *   91_all_mips-ip28_cache_barriers-v4.patch ...
>   [ ok ]
>  *   92_all_mips-pthread-with-shared.patch ...
>   [ ok ]
>  * Done with patching
>  * Applying uClibc patches ...
>  *   90_all_100-uclibc-conf.patch ...
>   [ ok ]
>  *   90_all_103-uclibc-conf-noupstream.patch ...
> =================== ebuild log end   ==================
> 

Sorry, it's the (broken) R10K support, so patches 90 and 91.
Comment 5 Vault13 2008-11-17 10:17:31 UTC
Created attachment 172065 [details]
ebuild which fixes the problem

Zapping the two sick patches and forcing earlier binutils (to walk-around bug no. 229173) solved the problem

crossdev --g 4.2.4-r1 --b 2.18-r1 --without-headers mips-pc-linux-gnu

crossdev was successful, the new compiler produces executables for mips{1,2,3}

i enclose the hacked ebuild gcc-4.2.4-r1.ebuild (it is only few lines longer than original gcc-4.2.4-r1.ebuild)

i leave the bug status unchanged
Comment 6 SpanKY gentoo-dev 2009-02-16 08:32:56 UTC
use gcc-4.3.3
Comment 7 Mark Loeser (RETIRED) gentoo-dev 2009-05-16 20:45:54 UTC
Is this still a problem with gcc-4.3?
Comment 8 Richard Yao (RETIRED) gentoo-dev 2012-06-03 02:04:06 UTC
Created attachment 313997 [details]
sys-devel/gcc-4.2.4-r01.4 build log from Gentoo Prefix

This failure occurs on Gentoo Prefix. Currently, the Gentoo Prefix bootstrap process requires GCC 4.2.x due to dependencies added in later versions. I would like to add a MIPS profile to Getnoo Prefix, so this needs to be fixed.

This issue occurs consistently on gcc42.fsffrance.org
Comment 9 SpanKY gentoo-dev 2012-08-19 00:22:23 UTC
91_all_mips-ip28_cache_barriers-v4.patch has been dropped from 4.3+.  assuming this is fixed as a result.