Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]Emerge -e system failing on odcctools
View unanswered posts
View posts from last 24 hours

 
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Gentoo for Mac OS X (Portage for Mac OS X)
View previous topic :: View next topic  
Author Message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Tue Apr 01, 2008 7:10 pm    Post subject: [Solved]Emerge -e system failing on odcctools Reply with quote

I've completed most of the Prefix Portage installation following this Document:
Gentoo Prefix Bootstrap Process for Mac OS X

I'm on the next to last step trying to perform an emptytree emerge of system, a.k.a.
Code:
emerge -e system

Ive actually copied the startup script into my home directory already, but I wouldn't think that could cause what I describe below.

When Performing this, I end up with 69 packages needing built/rebuilt etc. On package 23(odcctools), the emerge fails like this:
Code:

/Volumes/Gentoo/usr/lib/gcc/powerpc-apple-darwin8/4.3.0/include/g++-v4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from ./src/Options.cpp:33:
./src/Options.h: In member function 'bool Options::CStringEquals::operator()(const char*, const char*) const':
./src/Options.h:204: error: 'strcmp' was not declared in this scope
./src/Options.cpp: In constructor 'Options::Options(int, const char**)':
./src/Options.cpp:60: error: 'ULLONG_MAX' was not declared in this scope
./src/Options.cpp: In member function 'void Options::parseArch(const char*)':
./src/Options.cpp:368: error: 'strcmp' was not declared in this scope
./src/Options.cpp: In member function 'bool Options::checkForFile(const char*, const char*, const char*, Options::FileInfo&)':
./src/Options.cpp:389: error: 'strlen' was not declared in this scope
./src/Options.cpp:390: error: 'possiblePath' was not declared in this scope
./src/Options.cpp:395: error: 'strdup' was not declared in this scope
./src/Options.cpp: In member function 'Options::FileInfo Options::findLibrary(const char*)':
./src/Options.cpp:407: error: 'strlen' was not declared in this scope
./src/Options.cpp:409: error: 'strcmp' was not declared in this scope
./src/Options.cpp: In member function 'Options::FileInfo Options::findFramework(const char*)':
./src/Options.cpp:472: error: 'strlen' was not declared in this scope
./src/Options.cpp:473: error: 'temp' was not declared in this scope
./src/Options.cpp:473: error: 'strcpy' was not declared in this scope
./src/Options.cpp:476: error: 'strchr' was not declared in this scope
./src/Options.cpp: In member function 'Options::FileInfo Options::findFramework(const char*, const char*)':
./src/Options.cpp:493: error: 'PATH_MAX' was not declared in this scope
./src/Options.cpp:494: error: 'possiblePath' was not declared in this scope
./src/Options.cpp:494: error: 'strcpy' was not declared in this scope
./src/Options.cpp:495: error: 'strcat' was not declared in this scope
./src/Options.cpp:502: error: 'realPath' was not declared in this scope
./src/Options.cpp:513: error: 'strdup' was not declared in this scope
./src/Options.cpp: In member function 'Options::FileInfo Options::findFile(const char*)':
./src/Options.cpp:532: error: 'strlen' was not declared in this scope
./src/Options.cpp:532: error: 'strcmp' was not declared in this scope
./src/Options.cpp:539: error: 'strcpy' was not declared in this scope
./src/Options.cpp:542: error: 'strcat' was not declared in this scope
./src/Options.cpp:544: error: 'strdup' was not declared in this scope
./src/Options.cpp:553: error: 'strdup' was not declared in this scope
./src/Options.cpp:560: error: 'strncmp' was not declared in this scope
./src/Options.cpp:561: error: 'strlen' was not declared in this scope
./src/Options.cpp:562: error: 'newPath' was not declared in this scope
./src/Options.cpp:562: error: 'strcpy' was not declared in this scope
./src/Options.cpp:563: error: 'strrchr' was not declared in this scope
./src/Options.cpp:569: error: 'strdup' was not declared in this scope
./src/Options.cpp: In member function 'Options::FileInfo Options::findFileUsingPaths(const char*)':
./src/Options.cpp:584: error: 'strrchr' was not declared in this scope
./src/Options.cpp:593: error: 'strlen' was not declared in this scope
./src/Options.cpp:594: error: 'frameworkDir' was not declared in this scope
./src/Options.cpp:594: error: 'strcpy' was not declared in this scope
./src/Options.cpp:595: error: 'strcat' was not declared in this scope
./src/Options.cpp:597: error: 'strstr' was not declared in this scope
./src/Options.cpp:610: error: 'PATH_MAX' was not declared in this scope
./src/Options.cpp:611: error: 'possiblePath' was not declared in this scope
./src/Options.cpp:611: error: 'strcpy' was not declared in this scope
./src/Options.cpp:612: error: 'strcat' was not declared in this scope
./src/Options.cpp: In member function 'void Options::parseSegAddrTable(const char*, const char*)':
./src/Options.cpp:645: error: 'PATH_MAX' was not declared in this scope
./src/Options.cpp:649: error: 'path' was not declared in this scope
./src/Options.cpp:651: error: 'strchr' was not declared in this scope
./src/Options.cpp:674: error: 'strcmp' was not declared in this scope
./src/Options.cpp: In member function 'void Options::loadFileList(const char*)':
./src/Options.cpp:692: error: 'strrchr' was not declared in this scope
./src/Options.cpp:698: error: 'strncpy' was not declared in this scope
./src/Options.cpp:710: error: 'PATH_MAX' was not declared in this scope
./src/Options.cpp:711: error: 'path' was not declared in this scope
./src/Options.cpp:713: error: 'strchr' was not declared in this scope
./src/Options.cpp:717: error: 'strlen' was not declared in this scope
./src/Options.cpp:718: error: 'builtPath' was not declared in this scope
./src/Options.cpp:718: error: 'strcpy' was not declared in this scope
./src/Options.cpp:719: error: 'strcat' was not declared in this scope
./src/Options.cpp: In member function 'bool Options::SetWithWildcards::hasWildCards(const char*)':
./src/Options.cpp:733: error: 'strpbrk' was not declared in this scope
./src/Options.cpp: In member function 'void Options::loadExportFile(const char*, const char*, Options::SetWithWildcards&)':
./src/Options.cpp:876: error: 'strlcpy' was not declared in this scope
./src/Options.cpp: In member function 'void Options::setUndefinedTreatment(const char*)':
./src/Options.cpp:986: error: 'strcmp' was not declared in this scope
./src/Options.cpp: In member function 'Options::Treatment Options::parseTreatment(const char*)':
./src/Options.cpp:1003: error: 'strcmp' was not declared in this scope
./src/Options.cpp: In member function 'void Options::setVersionMin(const char*)':
./src/Options.cpp:1018: error: 'strncmp' was not declared in this scope
./src/Options.cpp: In member function 'void Options::setWeakReferenceMismatchTreatment(const char*)':
./src/Options.cpp:1049: error: 'strcmp' was not declared in this scope
./src/Options.cpp: In member function 'Options::CommonsMode Options::parseCommonsTreatment(const char*)':
./src/Options.cpp:1064: error: 'strcmp' was not declared in this scope
./src/Options.cpp: In member function 'void Options::addDylibOverride(const char*)':
./src/Options.cpp:1078: error: 'strchr' was not declared in this scope
./src/Options.cpp:1083: error: 'strncpy' was not declared in this scope
./src/Options.cpp: In member function 'void Options::parseOrderFile(const char*, bool)':
./src/Options.cpp:1266: error: 'strncmp' was not declared in this scope
./src/Options.cpp:1293: error: 'strstr' was not declared in this scope
./src/Options.cpp: In member function 'void Options::parseSectionOrderFile(const char*, const char*, const char*)':
./src/Options.cpp:1328: error: 'strcmp' was not declared in this scope
./src/Options.cpp:1331: error: 'strncmp' was not declared in this scope
./src/Options.cpp: In member function 'void Options::addSection(const char*, const char*, const char*)':
./src/Options.cpp:1342: error: 'strlen' was not declared in this scope
./src/Options.cpp:1344: error: 'strlen' was not declared in this scope
./src/Options.cpp:1345: error: 'strdup' was not declared in this scope
./src/Options.cpp: In member function 'void Options::addSectionAlignment(const char*, const char*, const char*)':
./src/Options.cpp:1371: error: 'strlen' was not declared in this scope
./src/Options.cpp:1373: error: 'strlen' was not declared in this scope
./src/Options.cpp: In member function 'void Options::addLibrary(const Options::FileInfo&)':
./src/Options.cpp:1403: error: 'strcmp' was not declared in this scope
./src/Options.cpp: In member function 'void Options::parse(int, const char**)':
./src/Options.cpp:1457: error: 'strcmp' was not declared in this scope
./src/Options.cpp:1497: error: 'strncmp' was not declared in this scope
./src/Options.cpp:1731: error: 'strlen' was not declared in this scope
./src/Options.cpp:1732: error: 'strcpy' was not declared in this scope
./src/Options.cpp:1733: error: 'strcat' was not declared in this scope
./src/Options.cpp:2063: error: 'strchr' was not declared in this scope
./src/Options.cpp:2068: error: 'strlcpy' was not declared in this scope
./src/Options.cpp:2120: error: 'strlen' was not declared in this scope
./src/Options.cpp:2120: error: 'strcmp' was not declared in this scope
./src/Options.cpp: In member function 'void Options::buildSearchPaths(int, const char**)':
./src/Options.cpp:2152: error: 'strcmp' was not declared in this scope
./src/Options.cpp:2191: error: 'PATH_MAX' was not declared in this scope
./src/Options.cpp:2192: error: 'strstr' was not declared in this scope
./src/Options.cpp:2193: error: 'betterLibDir' was not declared in this scope
./src/Options.cpp:2194: error: 'strdup' was not declared in this scope
./src/Options.cpp:2196: error: 'strlen' was not declared in this scope
./src/Options.cpp:2202: error: 'strcpy' was not declared in this scope
./src/Options.cpp:2205: error: 'strcat' was not declared in this scope
./src/Options.cpp:2208: error: 'strdup' was not declared in this scope
./src/Options.cpp:2223: error: 'PATH_MAX' was not declared in this scope
./src/Options.cpp:2224: error: 'strstr' was not declared in this scope
./src/Options.cpp:2225: error: 'betterFrameworkDir' was not declared in this scope
./src/Options.cpp:2226: error: 'strdup' was not declared in this scope
./src/Options.cpp:2228: error: 'strlen' was not declared in this scope
./src/Options.cpp:2234: error: 'strcpy' was not declared in this scope
./src/Options.cpp:2237: error: 'strcat' was not declared in this scope
./src/Options.cpp:2240: error: 'strdup' was not declared in this scope
./src/Options.cpp: In member function 'void Options::checkIllegalOptionCombinations()':
./src/Options.cpp:2448: error: 'strrchr' was not declared in this scope
./src/Options.cpp:2451: error: 'strcmp' was not declared in this scope
./src/Options.cpp:2467: error: 'strrchr' was not declared in this scope
./src/Options.cpp:2470: error: 'strchr' was not declared in this scope
./src/Options.cpp:2472: error: 'strlen' was not declared in this scope
./src/Options.cpp:2473: error: 'strncmp' was not declared in this scope
./src/Options.cpp:2598: error: 'strlen' was not declared in this scope
./src/Options.cpp:2599: error: 'strcmp' was not declared in this scope
./src/Options.cpp:2599: error: 'strncmp' was not declared in this scope
./src/Options.cpp:2603: error: 'strncmp' was not declared in this scope
./src/Options.cpp:2630: error: 'ULLONG_MAX' was not declared in this scope
./src/Options.cpp:2648: error: 'ULLONG_MAX' was not declared in this scope
./src/Options.cpp: In member function 'void Options::checkForClassic(int, const char**)':
./src/Options.cpp:2731: error: 'strcmp' was not declared in this scope
./src/Options.cpp:2755: error: 'strstr' was not declared in this scope
make[1]: *** [Options.o] Error 1
make[1]: Leaving directory `/Volumes/Gentoo/var/tmp/portage/sys-devel/odcctools-20080215/work/odcctools-20080215/ld64'
make: *** [ld64] Error 2
 * ERROR: sys-devel/odcctools-20080215 failed:
 *   emake failed
 *
 * Call stack:
 *               ebuild.sh:  49: <call src_compile>
 *             environment:2097:     emake || die "emake failed"
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * build log: '/Volumes/Gentoo/var/tmp/portage/sys-devel/odcctools-20080215/temp/build.log'
 * ebuild environment: '/Volumes/Gentoo/var/tmp/portage/sys-devel/odcctools-20080215/temp/environment'
 * S: '/Volumes/Gentoo/var/tmp/portage/sys-devel/odcctools-20080215/work/odcctools-20080215'

 * Messages for package sys-devel/odcctools-20080215:

 * ERROR: sys-devel/odcctools-20080215 failed:
 *   emake failed
 *
 * Call stack:
 *               ebuild.sh:  49: <call src_compile>
 *             environment:2097:     emake || die "emake failed"
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * build log: '/Volumes/Gentoo/var/tmp/portage/sys-devel/odcctools-20080215/temp/build.log'
 * ebuild environment: '/Volumes/Gentoo/var/tmp/portage/sys-devel/odcctools-20080215/temp/environment'
 * S: '/Volumes/Gentoo/var/tmp/portage/sys-devel/odcctools-20080215/work/odcctools-20080215'


Code:
emerge --info
Portage 2.2.00.9583-prefix (default-prefix/darwin/macos/10.4/ppc, gcc-4.3.0, unavailable, 8.11.0 Power Macintosh)
=================================================================
System uname: 8.11.0 Power Macintosh powerpc
Timestamp of tree: Wed, 02 Apr 2008 01:32:34 +0000
distcc 2.18.4-Apple.1 powerpc-apple-darwin8.0 (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.5.1-r5
sys-devel/autoconf:  2.61-r01.1
sys-devel/automake:  1.10.1
sys-devel/gcc-config: 1.4.0-r04.1
sys-devel/libtool:   1.5.26
ACCEPT_KEYWORDS="~ppc-macos"
CBUILD="powerpc-apple-darwin8"
CFLAGS="-pipe -mcpu=G4"
CHOST="powerpc-apple-darwin8"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-pipe -mcpu=G4"
DISTDIR="/Volumes/Gentoo/usr/portage/distfiles"
EPREFIX="/Volumes/Gentoo"
FEATURES="collision-protect distlocks metadata-transfer nostrip parallel-fetch preserve-libs sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS=""
PKGDIR="/Volumes/Gentoo/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/Volumes/Gentoo/var/tmp"
PORTDIR="/Volumes/Gentoo/usr/portage"
SYNC="svn+http://overlays.gentoo.org/svn/proj/alt/trunk/prefix-overlay"
USE="aqua coreaudio cracklib midi ncurses nls objc objc++ ppc-macos prefix readline ssl unicode zlib" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="Darwin" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Thu Apr 03, 2008 2:24 am    Post subject: Reply with quote

I solved it :!: :!: :!:

After about 3 days of investigation, I came up with the solution. On a hunch, I saw that my emege info contained a compiler entry:
Code:

Portage 2.2.00.9583-prefix (default-prefix/darwin/macos/10.4/ppc, gcc-4.3.0, unavailable, 8.11.0 Power Macintosh)

I realized that this compiler version was greater than the compiler in my XCode version (4.0.1). I then checked my compiler options in the prefix shell by running:
Code:

gcc-config -l
[*]4.3.0-apple-darwin8
[]4.0.1-apple-darwin8

I switched compilers back to 4.0.1 and re-emerged the offending package. After testing, I unmerged gcc using:
Code:

emerge -C gcc


That's what I get for trying out the real Gentoo 1st. Everyone needs to remember that the important compiler here is gcc-apple, not normal gcc.
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
grobian
Developer
Developer


Joined: 31 May 2006
Posts: 67

PostPosted: Wed Apr 09, 2008 6:13 am    Post subject: Reply with quote

sorry for the late reply.

Indeed, GCC-4.3.0 is "FSF" GCC, and not from Apple's own branch. I don't quite understand how you got gcc emerged at all during the bootstrap process, but AFAICT it shouldn't.

For now, unfortunately, we assume/support gcc-apple as compiler on OSX. Hopefully we can switch to FSF some day.
_________________
Gentoo on a different level
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Gentoo for Mac OS X (Portage for Mac OS X) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum