Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 246196 - sys-power/iasl does not compile with >sys-devel/bison-2.3
Summary: sys-power/iasl does not compile with >sys-devel/bison-2.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
: 246221 246815 dmouse (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-11-09 19:01 UTC by Robert Piasek (RETIRED)
Modified: 2009-01-24 21:19 UTC (History)
16 users (show)

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


Attachments
Upstream patch (iasl-20080701-fix-missing-types.patch,37.14 KB, patch)
2008-12-28 12:21 UTC, The Glamorous Hacker
Details | Diff
Updated ebuild (iasl-20080701-r1.ebuild,3.37 KB, patch)
2008-12-28 13:33 UTC, The Glamorous Hacker
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Piasek (RETIRED) gentoo-dev 2008-11-09 19:01:51 UTC
Compilation fails with errors:

bison -v -d -y -pAslCompiler aslcompiler.y                                                                                             
aslcompiler.y:797.42-43: $$ for the midrule at $3 of `DefinitionBlockTerm' has no declared type                                        
aslcompiler.y:1114.50-51: $$ for the midrule at $3 of `IncludeTerm' has no declared type                                               
aslcompiler.y:1115.38-39: $$ for the midrule at $6 of `IncludeTerm' has no declared type                                               
aslcompiler.y:1150.50-51: $$ for the midrule at $3 of `BankFieldTerm' has no declared type                                             
aslcompiler.y:1201.42-43: $$ for the midrule at $3 of `CreateBitFieldTerm' has no declared type                                        
aslcompiler.y:1211.42-43: $$ for the midrule at $3 of `CreateByteFieldTerm' has no declared type                                       
aslcompiler.y:1221.42-43: $$ for the midrule at $3 of `CreateDWordFieldTerm' has no declared type                                      
aslcompiler.y:1231.42-43: $$ for the midrule at $3 of `CreateFieldTerm' has no declared type                                           
aslcompiler.y:1242.42-43: $$ for the midrule at $3 of `CreateQWordFieldTerm' has no declared type                                      
aslcompiler.y:1252.42-43: $$ for the midrule at $3 of `CreateWordFieldTerm' has no declared type                                       
aslcompiler.y:1262.42-43: $$ for the midrule at $3 of `DataRegionTerm' has no declared type                                            
aslcompiler.y:1273.50-51: $$ for the midrule at $3 of `DeviceTerm' has no declared type                                                
aslcompiler.y:1282.50-51: $$ for the midrule at $3 of `EventTerm' has no declared type                                                 
aslcompiler.y:1290.50-51: $$ for the midrule at $3 of `FieldTerm' has no declared type                                                 
aslcompiler.y:1302.50-51: $$ for the midrule at $3 of `FunctionTerm' has no declared type                                              
aslcompiler.y:1316.42-43: $$ for the midrule at $3 of `IndexFieldTerm' has no declared type 
... (long list)

with bison 2.3 it gives some warnings, but compiles fine:
bison -v -d -y -pAslCompiler aslcompiler.y                                                            
aslcompiler.y:1114.7-1117.75: warning: unused value: $6                                               
aslcompiler.y:1329.7-1337.134: warning: unused value: $6                                              
aslcompiler.y:1478.7-1483.74: warning: unused value: $10                                              
aslcompiler.y:1478.7-1483.74: warning: unused value: $12                                              
aslcompiler.y:2578.7-2593.120: warning: unused value: $5                                              
aslcompiler.y:2650.7-2664.116: warning: unused value: $5                                              
aslcompiler.y:2811.7-2826.120: warning: unused value: $5                                              
aslcompiler.y:2922.7-2937.120: warning: unused value: $5                                              
aslcompiler.y:3076.37-48: warning: rule never reduced because of conflicts: OptionalResourceType: /* empty */
cp y.tab.c aslcompilerparse.c                                                                                


As a _very temp_ fix I propose to modify ebuild and modify DEPEND="sys-devel/bison
 to DEPEND="<=sys-devel/bison-2.3




Reproducible: Always
Comment 1 Wormo (RETIRED) gentoo-dev 2008-11-10 06:55:01 UTC
Thanks for reporting this issue, assigning to maintainer.
Comment 2 Wormo (RETIRED) gentoo-dev 2008-11-10 07:16:53 UTC
*** Bug 246221 has been marked as a duplicate of this bug. ***
Comment 3 Rafał Mużyło 2008-11-11 15:51:51 UTC
While I know nothing about bison,
this looks a bit like bug 246262, so the bug
may lay in iasl after all.
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2008-11-12 18:51:33 UTC
Should be fixed with bison-2.4-r1. Please test.
Comment 5 jmsb21 2008-11-13 00:14:35 UTC
(In reply to comment #4)
> Should be fixed with bison-2.4-r1. Please test.
> 

Updated to bison-2.4-r1. Still having the same compile problems as before.
Comment 6 Rafał Mużyło 2008-11-15 16:21:20 UTC
Could somebody who's actually using iasl report this upstream ?
Their bugzilla is at http://www.acpica.org/bugzilla,
mailing list details at http://lists.acpica.org/mailman/listinfo/devel
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2008-11-17 07:04:26 UTC
*** Bug 246815 has been marked as a duplicate of this bug. ***
Comment 8 Mernov Georgiy 2008-11-25 01:24:39 UTC
I guess some kind of solution is to downgrade bison to 2.4...without -r1../
Comment 9 Teng Wang 2008-11-27 16:59:36 UTC
(In reply to comment #8)
> I guess some kind of solution is to downgrade bison to 2.4...without -r1../
> 

There is no bison-2.4 in present portage.

Confirm this bug. Got the same log as Wormo
Comment 10 Oliver Sloss 2008-11-28 05:02:26 UTC
confirmed with bison 2.4-r1
works after downgrading to 2.3
Comment 11 Rafał Mużyło 2008-12-03 16:25:01 UTC
*** Bug 249685 has been marked as a duplicate of this bug. ***
Comment 12 dmouse 2008-12-03 18:01:10 UTC
with bison-2.4-r1  sys-power/iasl not compile, but bison-2.3 solved problem

[U] sys-devel/bison
     Available versions:  1.875d 2.3 (~)2.4-r1 {nls static}
     Installed versions:  2.3(11:44:58 12/03/08)(nls -static)

Tulum ~ # emerge =sys-devel/bison-2.3
Tulum ~ # emerge sys-power/iasl
Comment 13 Maciej Grela 2008-12-15 15:52:03 UTC
(In reply to comment #6)
> Could somebody who's actually using iasl report this upstream ?
> Their bugzilla is at http://www.acpica.org/bugzilla,
> mailing list details at http://lists.acpica.org/mailman/listinfo/devel
> 

I've created a bugreport on the upstream bugzilla:

http://www.acpica.org/bugzilla/show_bug.cgi?id=745
Comment 14 Markos Chandras (RETIRED) gentoo-dev 2008-12-20 18:02:29 UTC
(In reply to comment #12)
> with bison-2.4-r1  sys-power/iasl not compile, but bison-2.3 solved problem
> 
> [U] sys-devel/bison
>      Available versions:  1.875d 2.3 (~)2.4-r1 {nls static}
>      Installed versions:  2.3(11:44:58 12/03/08)(nls -static)
> 
> Tulum ~ # emerge =sys-devel/bison-2.3
> Tulum ~ # emerge sys-power/iasl
> 

I can verify this one :)

Comment 15 The Glamorous Hacker 2008-12-28 12:21:24 UTC
Created attachment 176594 [details, diff]
Upstream patch

Upstream patch used in following ebuild.
Comment 16 The Glamorous Hacker 2008-12-28 13:33:49 UTC
Created attachment 176603 [details, diff]
Updated ebuild

Updated ebuild. After adding this file and the patch to your repository, you will need to run "ebuild /path/to/ebuild/iasl-20080701-r1.ebuild digest"
Comment 17 Michael Roberts 2008-12-31 02:24:17 UTC
> Updated ebuild. After adding this file and the patch to your repository, you
> will need to run "ebuild /path/to/ebuild/iasl-20080701-r1.ebuild digest"

I can confirm that this ebuild and patch compiles with bison-2.4.1.
Comment 18 Kfir Ozer 2009-01-11 13:22:47 UTC
this patch worked for me too. thanks alot!
Comment 19 vp 2009-01-19 11:04:44 UTC
still broken for me with bison 2.4.1 (iasl-20080701, the -r1 isn't in portage yet)
Comment 20 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-01-24 21:19:53 UTC
The patch did work, but was too large for $FILESDIR. I just bumped the version to what was released yesterday instead.