Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 183543 - gcc-3.4.6-r1 fails to compile with USE="ip28"
Summary: gcc-3.4.6-r1 fails to compile with USE="ip28"
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: MIPS Linux
: High normal (vote)
Assignee: MIPS Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-28 15:38 UTC by Mathias Weigt
Modified: 2007-10-12 00:05 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias Weigt 2007-06-28 15:38:45 UTC
I tried to emerge the stable gcc-3.4.6-r1 which has the new ip28 patches enabled. Unfortunately it stopped compiling with an error.

Reproducible: Always

Steps to Reproduce:
1.USE="ip28" emerge =gcc-3.4.6-r1
2.
3.

Actual Results:  
gcc -c    -O -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long    -DHAVE_CONFIG_H    -I. -I. -I/var/tmp/portage/sys-devel/gcc-3.4.6-r1/work/gcc-3.4.6/gcc -I/var/tmp/portage/sys-devel/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/. -I/var/tmp/portage/sys-devel/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/../include  \
                /var/tmp/portage/sys-devel/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/config/mips/mips.c -o mips.o
/var/tmp/portage/sys-devel/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/config/mips/mips.c: In function 'mips_reorg':
/var/tmp/portage/sys-devel/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/config/mips/mips.c:8807: error: invalid storage class for function 'r10k_insert_cache_barriers'
/var/tmp/portage/sys-devel/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/config/mips/mips.c:8808: warning: implicit declaration of function 'r10k_insert_cache_barriers'
In file included from /var/tmp/portage/sys-devel/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/config/mips/mips.c:9673:
/var/tmp/portage/sys-devel/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/config/mips/r10k-cacheb.c: In function 'is_stack_pointer':
/var/tmp/portage/sys-devel/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/config/mips/r10k-cacheb.c:60: warning: unused parameter 'data'
/var/tmp/portage/sys-devel/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/config/mips/r10k-cacheb.c: In function 'check_p_mem_expr':
/var/tmp/portage/sys-devel/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/config/mips/r10k-cacheb.c:66: warning: unused parameter 'data'
/var/tmp/portage/sys-devel/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/config/mips/r10k-cacheb.c: In function 'check_p_pattern_for_store':
/var/tmp/portage/sys-devel/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/config/mips/r10k-cacheb.c:96: warning: unused parameter 'data'
/var/tmp/portage/sys-devel/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/config/mips/r10k-cacheb.c: In function 'check_insn_for_store':
/var/tmp/portage/sys-devel/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/config/mips/r10k-cacheb.c:150: warning: suggest parentheses around arithmetic in operand of |
/var/tmp/portage/sys-devel/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/config/mips/r10k-cacheb.c:204: warning: suggest parentheses around arithmetic in operand of |
/var/tmp/portage/sys-devel/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/config/mips/r10k-cacheb.c: At top level:
/var/tmp/portage/sys-devel/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/config/mips/r10k-cacheb.c:304: error: static declaration of 'r10k_insert_cache_barriers' follows non-static declaration
/var/tmp/portage/sys-devel/gcc-3.4.6-r1/work/gcc-3.4.6/gcc/config/mips/mips.c:8808: error: previous implicit declaration of 'r10k_insert_cache_barriers' was here
make[2]: *** [mips.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-3.4.6-r1/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-3.4.6-r1/work/build/gcc'
make: *** [bootstrap-lean] Error 2

!!! ERROR: sys-devel/gcc-3.4.6-r1 failed.
Call stack:
  ebuild.sh, line 1615:   Called dyn_compile
  ebuild.sh, line 972:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  ebuild.sh, line 1305:   Called toolchain_src_compile
  toolchain.eclass, line 26:   Called gcc_src_compile
  toolchain.eclass, line 1541:   Called gcc_do_make
  toolchain.eclass, line 1415:   Called die

!!! emake failed with bootstrap-lean
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-devel/gcc-3.4.6-r1/temp/build.log'.


Expected Results:  
should compile/merge fine

emerge --info
Portage 2.1.2.7 (default-linux/mips/2007.0/ip28/o32, gcc-4.1.1, glibc-2.3.6-r5, 2.6.17.10-mipsgit-20060618-ip28r10k mips64)
=================================================================
System uname: 2.6.17.10-mipsgit-20060618-ip28r10k mips64 R10000 V2.5 FPU V0.0
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 28 Jun 2007 12:00:01 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.14.4
ACCEPT_KEYWORDS="mips"
AUTOCLEAN="yes"
CBUILD="mips-unknown-linux-gnu"
CFLAGS="-O2 -march=mips4 -pipe -mabi=32 -fomit-frame-pointer -ftracer -fforce-addr"
CHOST="mips-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=mips4 -pipe -mabi=32 -fomit-frame-pointer -ftracer -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="berkdb bitmap-fonts cli cracklib fortran gdbm gpm iconv ip28 isdnlog libwww midi mips mudflap multitarget nls openmp pam pcre perl pppd python readline reflection sdl session spl ssl tcpd truetype-fonts type1-fonts unicode xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy fbdev impact newport v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

gcc-config -l
 [1] mips-unknown-linux-gnu-3.4.6
 [2] mips-unknown-linux-gnu-3.4.6-hardenednopiessp
 [3] mips-unknown-linux-gnu-4.1.1 *
 [4] mips64-unknown-linux-gnu-3.4.6
 [5] mips64-unknown-linux-gnu-4.1.1 *
Comment 1 Joshua Kinard gentoo-dev 2007-06-29 01:59:21 UTC
This was probably fixed in 3.4.6-r2 actually.  I'm not sure though, as we don't support gcc-3.4 on mips anymore.  We fully moved to gcc-4.x quite a while ago.  Is there some problem with 4.x that you're running into?
Comment 2 Mathias Weigt 2007-07-01 07:58:32 UTC
(In reply to comment #1)
> This was probably fixed in 3.4.6-r2 actually.  I'm not sure though, as we don't
> support gcc-3.4 on mips anymore.  We fully moved to gcc-4.x quite a while ago. 
> Is there some problem with 4.x that you're running into?
> 
No, It wasn't fixed (just tried - same error). I did not know that it isn't supported any more. You may change the status to "won't fix". And to answer the second question: No there isn't any problem with gcc-4.x (just my old problem with binutils and compiling the kernel, for what I'm desparately switching compilers, binutils and running binutils-config - but I will ask this on the mailing list)
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-10-12 00:05:14 UTC
(In reply to comment #1)
> we don't support gcc-3.4 on mips anymore.  We fully moved to gcc-4.x quite a while ago. 

No point for this to stay open then.