Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 510344 - <sys-devel/gcc-4.4 fails to build with sys-devel/bison-3.0.2 due to treelang
Summary: <sys-devel/gcc-4.4 fails to build with sys-devel/bison-3.0.2 due to treelang
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: bison-3-breakage
  Show dependency tree
 
Reported: 2014-05-14 21:21 UTC by Ruud Koolen (RETIRED)
Modified: 2014-05-18 20:28 UTC (History)
0 users

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


Attachments
Proposed patch (gcc-4.3.6-bison-3.patch,406 bytes, patch)
2014-05-14 21:21 UTC, Ruud Koolen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ruud Koolen (RETIRED) archtester gentoo-dev Security 2014-05-14 21:21:51 UTC
Created attachment 376936 [details, diff]
Proposed patch

gcc versions older than 4.4 don't build with bison 3, due to bison 3 apparently dropping deprecated syntax:

/var/tmp/portage/sys-devel/gcc-4.3.6-r1/work/build/./prev-gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.3.6-r1/work/build/./prev-gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -c   -m64 -O2 -pipe -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros 				     -Wno-overlength-strings  -Wno-error  -DHAVE_CONFIG_H -I. -Itreelang -I/var/tmp/portage/sys-devel/gcc-4.3.6-r1/work/gcc-4.3.6/gcc -I/var/tmp/portage/sys-devel/gcc-4.3.6-r1/work/gcc-4.3.6/gcc/treelang -I/var/tmp/portage/sys-devel/gcc-4.3.6-r1/work/gcc-4.3.6/gcc/../include -I/var/tmp/portage/sys-devel/gcc-4.3.6-r1/work/gcc-4.3.6/gcc/../libcpp/include  -I/var/tmp/portage/sys-devel/gcc-4.3.6-r1/work/gcc-4.3.6/gcc/../libdecnumber -I/var/tmp/portage/sys-devel/gcc-4.3.6-r1/work/gcc-4.3.6/gcc/../libdecnumber/bid -I../libdecnumber    treelang/parse.c -o treelang/parse.o
/var/tmp/portage/sys-devel/gcc-4.3.6-r1/work/gcc-4.3.6/gcc/treelang/parse.y: In function ‘yyparse’:
/var/tmp/portage/sys-devel/gcc-4.3.6-r1/work/gcc-4.3.6/gcc/treelang/parse.y:689: error: expected ‘;’ before ‘}’ token
/var/tmp/portage/sys-devel/gcc-4.3.6-r1/work/gcc-4.3.6/gcc/treelang/parse.y:690: error: expected ‘;’ before ‘}’ token

Attached patch fixes it. It should apply cleanly to 4.1, 4.2 and 4.3; I didn't test earlier versions.
Comment 1 SpanKY gentoo-dev 2014-05-18 20:25:51 UTC
we should just drop treelang.  it was removed in >=gcc-4.4.  pretty sure it's not useful in old versions anymore either.

https://en.wikipedia.org/wiki/Treelang