Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76916 - setfont (from sys-apps/kbd) says "Input file: trailing garbage" (CFLAGS='--param max-gcse-passes=2')
Summary: setfont (from sys-apps/kbd) says "Input file: trailing garbage" (CFLAGS='--pa...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-06 09:34 UTC by Joël
Modified: 2005-01-10 17:13 UTC (History)
0 users

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


Attachments
Output of "emerge info" (emerge_info,3.54 KB, text/plain)
2005-01-06 09:35 UTC, Joël
Details
Output of "strace setfont" run as user (strace_setfont,5.36 KB, text/plain)
2005-01-06 09:36 UTC, Joël
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joël 2005-01-06 09:34:52 UTC
Calling "setfont" on my machine, as user, without any argument produces:

setfont: Input file: trailing garbage

This has been happenening for a few days, and I don't know what might be the cause (maybe my fault too !!)

The error also happens at boot when setting my lat9w-14 font specified in rc.conf.

I've attached a strace and the output of my emerge info, in case someone wants to look :-)

Thanks
Comment 1 Joël 2005-01-06 09:35:31 UTC
Created attachment 47770 [details]
Output of "emerge info"
Comment 2 Joël 2005-01-06 09:36:40 UTC
Created attachment 47771 [details]
Output of "strace setfont" run as user
Comment 3 SpanKY gentoo-dev 2005-01-09 21:04:10 UTC
what version of baselayout ?  what version of kbd ?

if you run `setfont lat9w-14` on the console, does it work ?  if you re-emerge kbd, does it still break ?  has this only started happening since you upgraded to a newer kernel ?
Comment 4 Joël 2005-01-10 17:05:22 UTC
Thanks for your answer !

No, when I try to do "setfont lat9w-14", it displays the same error message. I have baselayout-1.11.8 and kbd-1.12-r3.

But I think I just found the cause: it's in the CFLAGS. If I rebuild 'kbd' with just "-O2 --param max-gcse-passes=2" it produces a nonworking 'setfont'. If I remove the '--param max-gcse-passes=2' and I rebuild 'kbd', it works.

Now, I've been using this 'max-gcse-passes' parameter because it improved the speed on some loops (in my programs), but I'm not sure whether it's really supposed to be stable or not.

Anyway, I'm using gcc-3.4.3-r1. I could test with other gcc and/or kbd versions if needed.

Do you think this could be worth mentioning for the gcc people ?
Comment 5 SpanKY gentoo-dev 2005-01-10 17:13:11 UTC
if there's a bug to be filed, i'd ask you to do it (since you can easily reproduce on your system :])

at any rate, we dont track '--param' CFLAGS in Gentoo; it's up to the user to fix those kind of bugs

if you do file a bug, please post the URL here so we can keep track of it :)