Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 204416 - sys-devel/bison doesn't create /usr/lib/liby.a on x86 and sparc (maybe others)
Summary: sys-devel/bison doesn't create /usr/lib/liby.a on x86 and sparc (maybe others)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-05 12:09 UTC by Cristi Magherusan
Modified: 2009-03-09 19:14 UTC (History)
4 users (show)

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


Attachments
installs liby.a (bison-2.3.ebuild.patch,334 bytes, patch)
2008-04-19 08:25 UTC, Robert A.
Details | Diff
installs liby.a (bison-2.3.ebuild,1.05 KB, text/plain)
2008-04-19 08:26 UTC, Robert A.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cristi Magherusan 2008-01-05 12:09:39 UTC
I've noticed this on x86 and ~x86 gentoo-hardened boxes, it works on amd64, but someone confirmed failures on plain ~x86, ~x86 hardened and ~sparc. anyone can confirm on other platforms?

Reproducible: Always

Steps to Reproduce:
1. run "gcc -ly"
Actual Results:  
$ gcc -ly
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../../i686-pc-linux-gnu/bin/ld: cannot find -ly
collect2: ld returned 1 exit status

Expected Results:  
$ gcc -ly
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/../../../../lib64/liby.a(main.o): In function `main':
(.text+0x18): undefined reference to `yyparse'
collect2: ld returned 1 exit status
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-01-05 12:19:09 UTC
(In reply to comment #0)

It's exactly the other way round - bison-1.875d ebuild fails to remove it on 64bit platforms... :)

-rm -f "${D}"/usr/lib/liby.a
+rm -f "${D}"/usr/$(get_libdir)/liby.a

Anyway, it's not supposed to install this, closing.
Comment 2 Cristi Magherusan 2008-01-05 12:36:49 UTC
So how am I supposed to compile sources that link against -ly?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-01-05 14:23:47 UTC
(In reply to comment #2)
> So how am I supposed to compile sources that link against -ly?

Fixing the sources sounds like a good idea since nothing should ever need this dummy thing. The application compiled should supply its own main() and yyerror().
You have any example of real application that wants to link to this?
Comment 4 Paula Stanciu 2008-01-05 16:06:25 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > So how am I supposed to compile sources that link against -ly?
> 
> Fixing the sources sounds like a good idea since nothing should ever need this
> dummy thing. The application compiled should supply its own main() and
> yyerror().
> You have any example of real application that wants to link to this?
> 

I do... ghsom http://www.ifs.tuwien.ac.at/~andi/ghsom/ (Growing Hierarchical Self-Organizing Map)
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2008-01-05 17:44:15 UTC
(In reply to comment #4)
> (In reply to comment #3)
> I do... ghsom http://www.ifs.tuwien.ac.at/~andi/ghsom/ (Growing Hierarchical
> Self-Organizing Map)
 
Erm... I definitely don't think this kaboom is due to bison... :P

http://rafb.net/p/mdH6KE45.html
Comment 6 Harald van Dijk (RETIRED) gentoo-dev 2008-01-05 18:06:01 UTC
liby is required for systems supporting the POSIX C Language Development Utilities optional feature. The base-system folks may choose not to support that, but if they don't, bison/yacc should really be removed from system packages altogether, and added as an explicit dependency for whatever needs it. Forcing an implementation for everyone that lacks required functionality that *is* provided by upstream is extremely poor form at best, in my opinion.

Regarding comment #5, that's a difference between GCC 3.4 and newer versions.
Comment 7 Robert A. 2008-04-19 08:25:16 UTC
Created attachment 150259 [details, diff]
installs liby.a

I have no clue why the ebuild says "
# We do not need this.
rm -r "${D}"/usr/lib* || die
"
I do need this for compiling a parser and its obviously also needed by others.
Comment 8 Robert A. 2008-04-19 08:26:04 UTC
Created attachment 150260 [details]
installs liby.a
Comment 9 Henning Rogge 2009-03-09 19:07:45 UTC
The library is still missing in bison 2.4.1 (and is used by the most recent mcast-tools by YOSHIFUJI Hideaki.
Comment 10 Volker Hemmann 2009-03-09 19:14:41 UTC
really - is there ONE good reason to remove the file?

Because I can't think of one.

On the other hand there is a lot of breakage caused by its absence. So - where are the valid reasons to remove it?