Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 433948 - sys-process/pidof-bsd-20050501-r4 fails ld: warning: ignoring file /Volumes/iExtra/justin/iPrefix-i386/lib/crt1.10.6.o, file was built for unsupported file format which is not the architecture being linked (i386)
Summary: sys-process/pidof-bsd-20050501-r4 fails ld: warning: ignoring file /Volumes/i...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-04 15:34 UTC by Justin Lecher (RETIRED)
Modified: 2024-01-20 08:12 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,2.93 KB, text/plain)
2012-09-04 15:35 UTC, Justin Lecher (RETIRED)
Details
bootstrapping32.log.xz (bootstrapping32.log.xz,575.10 KB, application/octet-stream)
2012-09-05 08:33 UTC, Justin Lecher (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2012-09-04 15:34:06 UTC
During stage3 using 32bit prefix on multilib OSx

idof.c: In function 'get_pid_of_process':
pidof.c:63: warning: passing argument 1 of 'basename' discards qualifiers from pointer target 
type
ld: warning: directory not found for option 
'-L/Volumes/iExtra/justin/iPrefix-i386/usr/i386-apple-darwin10/lib/gcc'
ld: warning: ignoring file /Volumes/iExtra/justin/iPrefix-i386/lib/crt1.10.6.o, file was built 
for unsupported file format which is not the architecture being linked (i386)
Undefined symbols for architecture i386:
  "start", referenced from:
     -u command line option
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
 * ERROR: sys-process/pidof-bsd-20050501-r4 failed (compile phase):
 *   (no error message)
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2012-09-04 15:35:05 UTC
Portage 2.2.01.20837-prefix (prefix/darwin/macos/10.6/x86, gcc-4.2.1, unavailable, 10.8.0 
x86_64)
=================================================================
System uname: Darwin-10.8.0-x86_64-i386-32bit
Timestamp of tree: Tue, 04 Sep 2012 15:24:39 +0000
distcc 3.1-toolwhip.1 i386-apple-darwin10.0 [disabled]
app-shells/bash:      4.2_p10::gentoo_prefix
dev-lang/python:      2.7.3-r2::gentoo_prefix
dev-util/pkgconfig:   0.27::gentoo_prefix
sys-devel/autoconf:   2.69::gentoo_prefix
sys-devel/automake:   1.12.2::gentoo_prefix
sys-devel/gcc-config: 1.5-r2::gentoo_prefix
sys-devel/libtool:    2.4.2::gentoo_prefix
sys-devel/make:       3.82::gentoo_prefix
Repositories: gentoo_prefix
ACCEPT_KEYWORDS="~x86-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-apple-darwin10"
CFLAGS="-march=prescott"
CHOST="i686-apple-darwin10"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/portage /etc/terminfo"
CXXFLAGS=""
DISTDIR="/Volumes/iExtra/justin/iPrefix-i386/usr/portage/distfiles"
FCFLAGS=""
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks 
ebuild-locks fixlafiles force-prefix news nostrip parallel-fetch parse-eapi-ebuild-head 
preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans 
userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-dead_strip_dylibs"
PKGDIR="/Volumes/iExtra/justin/iPrefix-i386/usr/portage/packages"
PORTAGE_CONFIGROOT="/Volumes/iExtra/justin/iPrefix-i386/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force 
--whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles 
--exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/Volumes/iExtra/justin/iPrefix-i386/var/tmp"
PORTDIR="/Volumes/iExtra/justin/iPrefix-i386/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="aqua coreaudio cracklib cxx mmx mmxext modules ncurses objc objc++ prefix readline sse 
sse2 ssl x86-macos 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon 
braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 
ELIBC="Darwin" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock 
itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf 
superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" 
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" 
LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" 
PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" XTABLES_ADDONS="quota2 
psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq 
steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, 
PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, 
USE_PYTHON
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2012-09-04 15:35:41 UTC
Created attachment 322922 [details]
build.log

build.log
Comment 3 Fabian Groffen gentoo-dev 2012-09-04 15:37:23 UTC
stage3, what compiler is active?
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2012-09-04 15:46:31 UTC
from all I can say it is the prefix i386-apple-darwin10 4.2.1
Comment 5 Fabian Groffen gentoo-dev 2012-09-04 15:57:49 UTC
well, the error suggests the compiler being used isn't targetting i686
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2012-09-04 16:02:31 UTC
ah you mean the compiler for bootstrapping. That could be true. How can I switch between abis of gcc on MacOSx?
Comment 7 Fabian Groffen gentoo-dev 2012-09-04 16:04:06 UTC
are you pre- or post-sync?

pre, it should be set already (if not the ebuild/build might igore what it shouldn't)

post you should have prefix' compiler selected
Comment 8 Justin Lecher (RETIRED) gentoo-dev 2012-09-04 16:07:30 UTC
so the system gcc is targeting i686.
Comment 9 Justin Lecher (RETIRED) gentoo-dev 2012-09-04 16:09:34 UTC
I am post sync already
Comment 10 Fabian Groffen gentoo-dev 2012-09-04 16:11:34 UTC
gcc-config -l then shows?
Comment 11 Justin Lecher (RETIRED) gentoo-dev 2012-09-04 16:15:28 UTC
$ gcc-config -l
 * gcc-config: No gcc profile is active!
/Volumes/iExtra/justin/iPrefix-i386/usr/bin/gcc-config: line 79: 
/Volumes/iExtra/justin/iPrefix-i386/etc/env.d/gcc/config-i686-apple-darwin10: No such file or 
directory
Comment 12 Justin Lecher (RETIRED) gentoo-dev 2012-09-04 16:18:18 UTC
it fails when running emerge -u system.
Comment 13 Fabian Groffen gentoo-dev 2012-09-04 16:35:04 UTC
Your compiler should be activated, and it's not.  That's the problem here.
Comment 14 Justin Lecher (RETIRED) gentoo-dev 2012-09-05 08:33:27 UTC
Created attachment 322974 [details]
bootstrapping32.log.xz

complete bootstrapping.log
Comment 15 Fabian Groffen gentoo-dev 2012-09-05 08:48:19 UTC
>>> Installing (1 of 1) sys-devel/gcc-apple-4.2.1_p5666-r1
 * Switching cross-compiler to i386-apple-darwin10-4.2.1 ...
  [ ok ]

For some reason the thing thinks you've got a cross-compiler here.  Problem might very well be that it should've been i686-apple-darwin10 instead...
Comment 16 Fabian Groffen gentoo-dev 2012-09-05 09:17:00 UTC
this is a bug in the bootstrap script
Comment 17 Justin Lecher (RETIRED) gentoo-dev 2012-09-05 09:18:32 UTC
Thanks for looking into that issue.
Comment 18 Fabian Groffen gentoo-dev 2012-09-05 09:25:32 UTC
Should be fixed now by unsetting CHOST.  Thanks
Comment 19 James Le Cuirot gentoo-dev 2024-01-19 22:49:38 UTC
grobian, I think this fix may have been the wrong approach. Today, if you bootstrap on hardfloat ARM, you end up with the prefix/linux/arm profile and a CHOST of armv7a-softfloat-linux-gnueabi. This also screws up RAP bootstrap because the initial stages use a non-RAP profile.

Perhaps it would have been better to trust the detection and bake that into make.conf? That should avoid the toolchain being treated as a cross-compiler.

That aside, non-RAP really should have a hardfloat ARM profile now. If you'd prefer not having too many profiles, I suggest just changing the existing profile to armv7a-unknown-linux-gnueabihf or just inherit arch/arm/armv7a. Practically no one uses softfloat any more.
Comment 20 Fabian Groffen gentoo-dev 2024-01-20 08:12:07 UTC
I'm not aware of users for the arm non-RAP part.  I believe it was once added for a Pi or something.  So if you say that softfloat is out of the picture, feel free to change it again into hardfloat.  (Or remove it altogether.)

Regarding the hardcoding into make.conf, I guess that's a thing because unlike Prefix non-Linux targets, the CHOST doesn't come from profile?  If so, for Linux we can add it/another file in make.conf dir when we setup with CHOST, maybe?