Bug 89476

Summary: gcc crashes with error in "remap_page_range_R2baf18f2"
Product: [Retired] Red Hat Linux Reporter: Ralf Kleineisel <ralf>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 9   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-04-23 12:10:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ralf Kleineisel 2003-04-23 12:02:36 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225

Description of problem:
gcc does not compile various sources with the error:

dag.c: In function `dag_mmap':
dag.c:1665: warning: passing arg 1 of `remap_page_range_R2baf18f2' makes pointer
from integer without a cast
dag.c:1665: incompatible type for argument 4 of `remap_page_range_R2baf18f2'
dag.c:1665: too few arguments to function `remap_page_range_R2baf18f2'
make[1]: *** [dag.o] Error 1
make[1]: Leaving directory `/root/dag-2.4.9/drv'
make: *** [all] Error 2

This happens with different c-sources from different authors that compile fine
on other distributions of linux.

One example is mplayer-0.90-1.src.rpm.

Version-Release number of selected component (if applicable):
gcc-3.2.2-5

How reproducible:
Always

Steps to Reproduce:
1. Get mplayer-0.90-1.src.rpm
2. cd /usr/src/redhat/BUILD/MPlayer-0.90/drivers
3. make
    

Actual Results:  See above.

Expected Results:  Should compile.

Additional info:

Comment 1 Jakub Jelinek 2003-04-23 12:10:33 UTC
What makes you think gcc crashes on the code? It just emits error diagnostic,
where the code you're trying to compile supplies less arguments to
remap_page_range_R2baf18f2 function than its prototype requires.