This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: inlining failed
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: "Dominik Táborský" <bremby at seznam dot cz>
- Cc: libc-help at sourceware dot org
- Date: Sat, 29 Nov 2008 16:19:04 -0500
- Subject: Re: inlining failed
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=CqGjmf4Y60c0VzvD8tHnTsZuBhfSXhL6hm9+V8Qnjso=; b=Kbjihi84PWP61ji3FfEBiwN8fwht95aTKot8jDevUEBN3nQJNuFQ0ZTwnHBZ1POqPs yHyRBOX4unPIbVlPTANEIUIWNrCP6xuKf0jDhVMd8GklAPI+fz8S3tEoVuAoOVtcwBQm 9j7EQJdDoFWDGX0RfraTmZCmcG/26PNEqTnZI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=Z05gslaIVuKG+Q/ag21TFQNpDRtNRJtnDPwEEFt0vgMdXNi1stUchc3USBOJguNBuT WDz2bD7ky2pHtDKBvDIEWrteZXvpSX5BlL1hMu28xBPm4EiRYuUwAyH5BSJv789lKHl9 dNuTy4onhxu8br4FFJeyC855naXTNAvQygDB4=
- References: <1227974019.24048.32.camel@eddy>
On Sat, Nov 29, 2008 at 10:53 AM, Dominik Táborský <bremby@seznam.cz> wrote:
> This might be a stupid question, since I wasn't able to google the
> answer. I'm sorry in that case.
>
> I have been trying to build Glibc 2.8.90 (20080505) and 2.9 (from
> tarball, thanks Brett! ) for a few days now, trying to figure out the
> compiler settings, mainly. I have overcome many problems, but I got
> stuck on this, and can't move on:
>
> ../misc/syslog.c: In function '__vsyslog_chk':
> ../misc/syslog.c:123: sorry, unimplemented: inlining failed in call to
> 'syslog': function body not available
> ../misc/syslog.c:155: sorry, unimplemented: called from here
>
>
> My system is Ubuntu 8.10 with latest updates, gcc 4.3.2, CFLAGS se to
> -O2 -mtune=i586 -funit-at-a-time.
>
> I think the -fno-stack-protector is also needed to compile glibc, but so
> far, no matter how hard I've tried, how long I have been googling this,
> I just can't get it compiled...
>
> Anyone's got ideas?
Yes. Turn off unit-at-a-time (-fno-unit-at-a-time) for this file.
The function syslog is actually __syslog, but the compiler doesn't
seem to notice this, and when it tries to inline the function it fails
to find the function body.
In practice the compiler *should* know, since ldbl_strong_alias is
strong_alias and that uses the alias attribute, but apparently this
doesn't work when doing unit-at-a-time.
This is probably a compiler bug, or an unimplemented feature.
Cheers,
Carlos.