Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79911 - emerge gcc-config fails immediately because of reference "wait.h: No such file or directory"
Summary: emerge gcc-config fails immediately because of reference "wait.h: No such fil...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC Linux
: High major (vote)
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
Depends on: 58106
Blocks:
  Show dependency tree
 
Reported: 2005-01-28 17:41 UTC by Shabba
Modified: 2006-04-12 10:52 UTC (History)
1 user (show)

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


Attachments
patch to add support for ppc-macos (gcc-config-1.3.10-r1.ebuild.patch,1.20 KB, patch)
2005-03-06 04:41 UTC, Robin Perkins
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Shabba 2005-01-28 17:41:05 UTC
MacShabba:/Users/shabba root# emerge gcc-config
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-devel/gcc-config-1.3.9 to /
>>> Unpacking source...
>>> Source unpacked.
/usr/portage/sys-devel/gcc-config/files/wrapper-1.4.4.c:17:18: wait.h: No such file or directory

!!! ERROR: sys-devel/gcc-config-1.3.9 failed.
!!! Function src_compile, Line 26, Exitcode 1
!!! compile wrapper

runnong in debug mode:
+ gcc -O2 -Wall -o wrapper /usr/portage/sys-devel/gcc-config/files/wrapper-1.4.4.c
/usr/portage/sys-devel/gcc-config/files/wrapper-1.4.4.c:17:18: wait.h: No such file or directory



Reproducible: Always
Steps to Reproduce:
1. keyword sys-devel/gcc-config-1.3.9 with ppc-macos
2. emerge gcc-config
3. 
Actual Results:  
!!! ERROR: sys-devel/gcc-config-1.3.9 failed.
:o(

Expected Results:  
>>> sys-devel/gcc-config-1.3.9 merged.
;o)

MacShabba:/Users/shabba root# emerge info
!!! Relying on the shell to locate gcc, this may break
!!! DISTCC, installing gcc-config and setting your current gcc
!!! profile will fix this
Portage 2.0.51-r3 (default-darwin/macos/10.3, gcc-3.3, libsystem-7.1-r0, 7.7.0 Power Macintosh)
===============================================================
==
System uname: 7.7.0 Power Macintosh powerpc
macos-20041118
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled]
Autoconf: 
Automake: 
Binutils: 
Headers:  sys-libs/libsystem-7.1
Libtools: 
ACCEPT_KEYWORDS="ppc-macos"
AUTOCLEAN="yes"
CFLAGS=""
CHOST="powerpc-apple-darwin"
COMPILER=""
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/
qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="nls ppc-macos"

i do find it ironic that 'emerge info' states that i need to install gcc-config :oP
Comment 1 Robin Perkins 2005-01-29 06:50:33 UTC
changed the reference from #include <wait.h> to #include <sys/wait.h>

this then leaves a complaint about not being able to find /etc/init.d/functions.sh

which is part of the baselayout bug (58106)
Comment 2 Robin Perkins 2005-03-06 04:41:58 UTC
Created attachment 52779 [details, diff]
patch to add support for ppc-macos

Should fix above two problems. Suspect is also eliminates the dependancy on
58106.

The ebuild was rearranged somewhat so that the files are modified in the
WORKDIR as opposed to on the fly / in the INSTALLDIR in order to add support
(additional modifications) for ppc-macos.
Comment 3 SpanKY gentoo-dev 2005-03-16 15:32:05 UTC
changed the include to sys/wait.h in cvs