View previous topic :: View next topic |
Author |
Message |
honeymak Guru
Joined: 30 Dec 2002 Posts: 537
|
Posted: Thu Nov 29, 2007 3:04 am Post subject: can't compile gcc-3.3.6-r1 |
|
|
build.log:stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/ -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -o f771 f/bad.o f/bit.o f/bld.o f/com.o f/data.o f/equiv.o f/expr.o f/global.o f/implic.o f/info.o f/intrin.o f/lab.o f/lex.o f/malloc.o f/name.o f/parse.o f/src.o f/st.o f/sta.o f/stb.o f/stc.o f/std.o f/ste.o f/storag.o f/stp.o f/str.o f/sts.o f/stt.o f/stu.o f/stv.o f/stw.o f/symbol.o f/target.o f/top.o f/type.o f/where.o main.o libbackend.a ../libiberty/libiberty.a
build.log:bison -v /var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/parse.y\
build.log: --output=/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/parse.c --defines
build.log:bison: cannot open file `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/parse.y--output=/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/parse.c': No such file or directory
build.log:make[2]: *** [/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/parse.h] Error 1
[made sticky by NeddySeagoon on 9 Dec 07 as there is a lot of this about]
is there a typo somewhere in the bison command?
but i got another machine finished that update........just a blind guess _________________ hackers - make sth real
academics - read sth said to be real |
|
Back to top |
|
|
honeymak Guru
Joined: 30 Dec 2002 Posts: 537
|
Posted: Thu Nov 29, 2007 3:08 am Post subject: |
|
|
$(srcdir)/treelang/parse.c $(srcdir)/treelang/parse.h: $(srcdir)/treelang/parse.y
$(BISON) $(BISONFLAGS) -v $(srcdir)/treelang/parse.y\
--output=$(srcdir)/treelang/parse.c --defines
in /var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/Make-lang.in
the 2nd line parse.y\ didn't include a space for cmdline separation
i dunno how to make and submit patches for gentoo
would u guys pls kindly help?
_________________ hackers - make sth real
academics - read sth said to be real |
|
Back to top |
|
|
honeymak Guru
Joined: 30 Dec 2002 Posts: 537
|
Posted: Thu Nov 29, 2007 3:50 am Post subject: |
|
|
after i edited the Make-lang.in
and
ebuild sys-devel/gcc/gcc-3.3.6-r1.ebuild compile
i found
stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/ -o treelang/lex.o -c -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wmissing-prototypes -Wmissing-declarations -DHAVE_CONFIG_H -I. -Itreelang -I/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc -I/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang -I/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/config -I/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/../include /var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/lex.c
/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/lex.c: In function `yy_get_next_buffer':
/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/lex.c:1305: warning: comparison between signed and unsigned
/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/lex.c: At top level:
/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/lex.c:1862: warning: no previous prototype for `yyget_lineno'
/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/lex.c:1871: warning: no previous prototype for `yyget_in'
/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/lex.c:1879: warning: no previous prototype for `yyget_out'
/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/lex.c:1887: warning: no previous prototype for `yyget_leng'
/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/lex.c:1896: warning: no previous prototype for `yyget_text'
/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/lex.c:1905: warning: no previous prototype for `yyset_lineno'
/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/lex.c:1917: warning: no previous prototype for `yyset_in'
/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/lex.c:1922: warning: no previous prototype for `yyset_out'
/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/lex.c:1927: warning: no previous prototype for `yyget_debug'
/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/lex.c:1932: warning: no previous prototype for `yyset_debug'
/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/lex.c:1966: warning: no previous prototype for `yylex_destroy'
stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/ -o treelang/parse.o -c -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wmissing-prototypes -Wmissing-declarations -DHAVE_CONFIG_H -I. -Itreelang -I/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc -I/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang -I/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/config -I/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/../include /var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/parse.c
/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/parse.c: In function `yytnamerr':
/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/parse.c:1111: warning: implicit declaration of function `stpcpy'
/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/parse.c:1111: error: invalid operands to binary -
/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/parse.c: In function `yysyntax_error':
/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/parse.c:1170: warning: assignment makes pointer from integer without a cast
/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/gcc-3.3.6/gcc/treelang/parse.c:1186: warning: assignment makes pointer from integer without a cast
make[2]: *** [treelang/parse.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-3.3.6-r1/work/build/gcc'
make: *** [bootstrap-lean] Error 2
did i make anything wrong?
i just added the space for that bison line _________________ hackers - make sth real
academics - read sth said to be real |
|
Back to top |
|
|
mark_alec Bodhisattva
Joined: 11 Sep 2004 Posts: 6066 Location: Melbourne, Australia
|
Posted: Thu Nov 29, 2007 4:45 am Post subject: |
|
|
Post your 'emerge --info' _________________ www.gentoo.org.au || #gentoo-au |
|
Back to top |
|
|
honeymak Guru
Joined: 30 Dec 2002 Posts: 537
|
Posted: Thu Nov 29, 2007 12:11 pm Post subject: |
|
|
Portage 2.1.3.19 (default-linux/x86/2007.0, gcc-4.1.1, glibc-2.6.1-r0, 2.6.22-gentoo-r9 i686)
=================================================================
System uname: 2.6.22-gentoo-r9 i686 Intel(R) Xeon(R) CPU 5110 @ 1.60GHz
Timestamp of tree: Wed, 28 Nov 2007 01:47:01 +0000
app-shells/bash: 3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python: 2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.61-r1
sys-devel/automake: 1.9.6-r2, 1.10
sys-devel/binutils: 2.16.1-r3, 2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool: 1.5.24
virtual/os-headers: 2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.kaist.ac.kr/pub/gentoo http://distfiles.gentoo.org http://www.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.asia.gentoo.org/gentoo-portage"
USE="acl berkdb bitmap-fonts cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog midi mudflap multislot ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl tcpd truetype-fonts type1-fonts unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY _________________ hackers - make sth real
academics - read sth said to be real |
|
Back to top |
|
|
Wormo Retired Dev
Joined: 29 Nov 2004 Posts: 526 Location: SB County California
|
Posted: Mon Dec 03, 2007 3:31 am Post subject: |
|
|
honeymak, I'm getting the same kind of problems. The old gcc code needs more patching to work with modern dev tools, so the ebuild could use a fresh patch to fix these types of issues.
GNU make behavior changed at some point so it no longer passes the mandatory tab at the front of a line as part of a multi-line command. That's why you need whitespace after the tab to make the multi-line command come out right.
The error in parse.c can be fixed by adding
Code: | #define _GNU_SOURCE |
in parse.y before including string.h, so that stpcpy declaration is not missing and gcc knows the operand types in parse.c line 1111.
The bad news is that after fixing parse.y you just run into another error, which I'm still working on... |
|
Back to top |
|
|
Wormo Retired Dev
Joined: 29 Nov 2004 Posts: 526 Location: SB County California
|
|
Back to top |
|
|
TheFueley Tux's lil' helper
Joined: 24 Sep 2003 Posts: 75 Location: Washington DC
|
Posted: Tue Dec 04, 2007 2:38 am Post subject: |
|
|
can you tell me what to edit, where to edit, what files, and how it should look? This is freaking annoying. Any help is appreciate. _________________ The Fueley
0x54 0x68 0x65 0x20 0x46 0x75 0x65 0x6C 0x65 0x79 |
|
Back to top |
|
|
TheFueley Tux's lil' helper
Joined: 24 Sep 2003 Posts: 75 Location: Washington DC
|
Posted: Tue Dec 04, 2007 3:39 pm Post subject: |
|
|
Actually, My question should be...How do I apply those patch files mentioned in bug 183766? Where do I place them and then what do I do with them? _________________ The Fueley
0x54 0x68 0x65 0x20 0x46 0x75 0x65 0x6C 0x65 0x79 |
|
Back to top |
|
|
TheFueley Tux's lil' helper
Joined: 24 Sep 2003 Posts: 75 Location: Washington DC
|
Posted: Tue Dec 04, 2007 5:38 pm Post subject: |
|
|
Wow, did I have fun with this.
1) I downloaded the files from the bug report mentioned by Wormo, saved them in sys-devel/gcc
2) USE="-*" emerge -DNv =sys-devel/gcc-3.3.6-r2
**No Go, file not in Manifest error and package masked due to corruption error**
3) ebuild /usr/portage/sys-devel/gcc/gcc-3.3.6-r2.ebuild digest
4) USE="-*" emerge -DNv =sys-devel/gcc-3.3.6-r2
**Failed again, something about $EPATCH_VALUE invalid, $EPATCH_VALUE is:
/usr/portage/sys-devel/gcc/files/gcc-3.3-makelang.patch no such file or directory
So, I had put the .patch files in the wrong directory, no prob.
Now, ls, mv, and cp are all missing. Literally, I cannot run them. So how do I move these files from on dir to the next?
I scp'ed them from one box to this one, into the sys-devel/gcc/files dir**
5) USE="-*" emerge -DNv =sys-devel/gcc-3.3.6-r2
** Failed with file not in Manifest error**
6) ebuild /usr/portage/sys-devel/gcc/gcc-3.3.6-r2.ebuild digest
7) USE="-*" emerge -DNv =sys-devel/gcc-3.3.6-r2
Success, now I can finish building gnome on this box. _________________ The Fueley
0x54 0x68 0x65 0x20 0x46 0x75 0x65 0x6C 0x65 0x79 |
|
Back to top |
|
|
nill n00b
Joined: 04 Dec 2007 Posts: 28 Location: PDX homebum
|
Posted: Thu Dec 06, 2007 8:05 pm Post subject: |
|
|
This is weird, I got the same error, but the weired thing is that that version of gcc was already installed, i just ran
to try and fix some expat issues i've been having since a few days ago from the move to expat-2. Now it breaks?? This is too much gentoo is the only distro I loose sleep over ...
[edit]
and then I find out that i'm actually using GCC-4.1.2, so with this whole slots thing portage has, would it be safe for me to remove the older version of gcc-3.3.6 even though it's already installed on my system, but fails when I rebuild it with emerge -e system ?? _________________ fun in PDX -> http://www.zoobomb.net |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Thu Dec 06, 2007 8:36 pm Post subject: |
|
|
Nobody should need gcc-3.3.x any more.
Gentoo expects you to be using gcc-3.4.x or later. Users finding that portage wants to build gcc-3.3 should instead Code: | emerge sys-libs/libstdc++-v3 | this provides the gcc-3.3.x libstdc++-v3 without the entire compiler and satisfies those packages that were linked against that library.
Users may also want to run to confirm they are using gcc-3.4.x or later.
gcc is slotted - later versions are installed but not selected for you. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
nill n00b
Joined: 04 Dec 2007 Posts: 28 Location: PDX homebum
|
Posted: Thu Dec 06, 2007 10:02 pm Post subject: |
|
|
so there is no reason for me to keep the older version of gcc installed ?
Code: |
~ # gcc-config -l
[1] i486-pc-linux-gnu-3.3.6
[2] i486-pc-linux-gnu-4.1.2 *
|
thanks _________________ fun in PDX -> http://www.zoobomb.net
Last edited by nill on Thu Dec 06, 2007 10:35 pm; edited 1 time in total |
|
Back to top |
|
|
mbell Tux's lil' helper
Joined: 18 Dec 2004 Posts: 93
|
Posted: Thu Dec 06, 2007 10:05 pm Post subject: |
|
|
NeddySeagoon wrote: | Nobody should need gcc-3.3.x any more.
Gentoo expects you to be using gcc-3.4.x or later. Users finding that portage wants to build gcc-3.3 should instead Code: | emerge sys-libs/libstdc++-v3 | this provides the gcc-3.3.x libstdc++-v3 without the entire compiler and satisfies those packages that were linked against that library.
Users may also want to run to confirm they are using gcc-3.4.x or later.
gcc is slotted - later versions are installed but not selected for you. |
I had the exact same problem, and fixed it with the above. I only have gcc-4.1.2 on my system now, plus libstdc++-v3. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Fri Dec 07, 2007 3:11 pm Post subject: |
|
|
nill,
Correct and you only need libstdc++-v3 if you have binary packages that are compiled against that library. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
cshobe n00b
Joined: 07 Dec 2007 Posts: 10
|
Posted: Sat Dec 08, 2007 8:23 am Post subject: |
|
|
sun-jdk:1.6 tries to pull in gcc 3.3.6. In turn, trying to compile konqueror or firefox on a new install with the java USE flag causes sun-jdk:1.6 to be pulled in.
This only happens for me on ~x86. On amd64, the java USE flag pulls in only sun-jre-bin rather than the full jdk.
Cheers,
--
Casey Allen Shobe |
|
Back to top |
|
|
think4urs11 Bodhisattva
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Tue Feb 19, 2008 12:22 pm Post subject: |
|
|
removed sticky _________________ Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself |
|
Back to top |
|
|
|