Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 286039 - Multiple versions of dev-scheme/plt-scheme fail during configuration with the profile flag.
Summary: Multiple versions of dev-scheme/plt-scheme fail during configuration with the...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-22 23:51 UTC by Bernie Hackett
Modified: 2009-09-27 19:36 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge.info,3.77 KB, text/plain)
2009-09-23 00:00 UTC, Bernie Hackett
Details
config.log (config.log,27.04 KB, text/plain)
2009-09-23 00:10 UTC, Bernie Hackett
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernie Hackett 2009-09-22 23:51:48 UTC
I tried emerging a few versions of plt-scheme using the profile flag. They all failed at the check for sizeof(char). It builds and installs fine without this use flag. Setting MAKEOPTS to -j1 doesn't help.

The problem exists on both x86 and amd64 multilib.

Reproducible: Always

Steps to Reproduce:
1. USE="profile" emerge plt-scheme

Actual Results:  
configure fails while trying to calculate sizeof(char):
.
.
checking for iconv.h... yes
checking iconv is usable... no
checking for mbsrtowcs... no
checking for char... yes
checking size of char... configure: error: cannot compute sizeof (char)
See `config.log' for more details.


Expected Results:  
dev-scheme/plt-scheme should configure, build and install

This is the test that is failing:

|    typedef char ac__type_sizeof_;
| static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
| static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
| #include <stdio.h>
| #include <stdlib.h>
| int
| main ()
| {
| 
|   FILE *f = fopen ("conftest.val", "w");
|   if (! f)
|     return 1;
|   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
|     {
|       long int i = longval ();
|       if (i != ((long int) (sizeof (ac__type_sizeof_))))
|       return 1;
|       fprintf (f, "%ld\n", i);
|     }
|   else
|     {
|       unsigned long int i = ulongval ();
|       if (i != ((long int) (sizeof (ac__type_sizeof_))))
|       return 1;
|       fprintf (f, "%lu\n", i);
|     }
|   return ferror (f) || fclose (f) != 0;
| 
|   ;
|   return 0;
| }
configure:7259: error: cannot compute sizeof (char)

My best guess is it can't open 'conftest.val'.
Comment 1 Bernie Hackett 2009-09-23 00:00:25 UTC
Created attachment 204982 [details]
emerge --info
Comment 2 Bernie Hackett 2009-09-23 00:10:47 UTC
Created attachment 204984 [details]
config.log
Comment 3 Sebastian Luther (few) 2009-09-27 14:19:01 UTC
from you config.log:
i686-pc-linux-gnu-gcc: -pg and -fomit-frame-pointer are incompatible
Comment 4 Bernie Hackett 2009-09-27 16:52:19 UTC
(In reply to comment #3)
> from you config.log:
> i686-pc-linux-gnu-gcc: -pg and -fomit-frame-pointer are incompatible
> 

Ah, you're right and that makes sense. It might be better if the ebuild checked for that and printed a useful error message as a hint if you try to use the profile flag.

Thanks
Comment 5 Sebastian Luther (few) 2009-09-27 17:25:05 UTC
(In reply to comment #4)
> It might be better if the ebuild checked for that and printed a useful error
> message as a hint if you try to use the profile flag.

This has been discussed many times and the answer is no because a) where to stop with filtering flags? There are many flags that might break compilation or at run time. b) Users profiling applications are supposed to know what they are doing.
Comment 6 Bernie Hackett 2009-09-27 19:36:14 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > It might be better if the ebuild checked for that and printed a useful error
> > message as a hint if you try to use the profile flag.
> 
> This has been discussed many times and the answer is no because a) where to
> stop with filtering flags? There are many flags that might break compilation or
> at run time. b) Users profiling applications are supposed to know what they are
> doing.
> 

Fair enough. Thanks for the help!