Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Error compiling sys-devel/binutils-apple 4.2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
Mustang-Speed
n00b
n00b


Joined: 26 Jan 2005
Posts: 31

PostPosted: Sun Jul 29, 2012 8:33 pm    Post subject: Error compiling sys-devel/binutils-apple 4.2 Reply with quote

Hi,

Error compiling sys-devel/binutils-apple 4.2

seems to stem from the missing command "md" (I assume is associated with gcc -MD)

"md -d -u ./Makedep ./allocate.d
/Users/Akytarus/Gentoo/bin/bash: md: command not found"

Why am i missing the md command..?
How do i get it back...?

Code:
ake[2]: Entering directory `/Users/Akytarus/Gentoo/var/tmp/portage/sys-devel/binutils-apple-4.2/work/cctools-809/libstuff/dynamic_obj'
gcc -march=nocona  -g -I../../include -Wall  -D_MACH_I386_THREAD_STATUS_FPSTATE_LEGACY_FIELD_NAMES_ -D_ARCHITECTURE_I386_FPU_FPSTATE_LEGACY_FIELD_NAMES_  -march=nocona  -c \
   -MD -dependency-file ./allocate.d \
   -o ./allocate.o ../allocate.c
md -d -u ./Makedep ./allocate.d
/Users/Akytarus/Gentoo/bin/bash: md: command not found
make[2]: *** [allocate.o] Error 127
make[2]: Leaving directory `/Users/Akytarus/Gentoo/var/tmp/portage/sys-devel/binutils-apple-4.2/work/cctools-809/libstuff/dynamic_obj'
make[1]: *** [dynamic] Error 2
make[1]: Leaving directory `/Users/Akytarus/Gentoo/var/tmp/portage/sys-devel/binutils-apple-4.2/work/cctools-809/libstuff'
make: *** [all] Error 1
emake failed
 * ERROR: sys-devel/binutils-apple-4.2 failed (compile phase):
 *   emake failed for the cctools
 *
 * Call stack:
 *     ebuild.sh, line   85:  Called call-ebuildshell 'src_compile'
 *   environment, line  472:  Called src_compile
 *   environment, line 2462:  Called compile_cctools
 *   environment, line  518:  Called die
 * The specific snippet of code:
 *       emake LIB_PRUNETRIE="-L../../${LD64}/src -lprunetrie" EFITOOLS= LTO= COMMON_SUBDIRS='libstuff ar misc otool' SUBDIRS_32= RC_CFLAGS="${CFLAGS}" OFLAG="${CFLAGS}" || die "emake failed for the cctools";
 *
 * If you need support, post the output of 'emerge --info =sys-devel/binutils-apple-4.2',
 * the complete build log and the output of 'emerge -pqv =sys-devel/binutils-apple-4.2'.
 * The complete build log is located at '/Users/Akytarus/Gentoo/var/tmp/portage/sys-devel/binutils-apple-4.2/temp/build.log'.
 * The ebuild environment file is located at '/Users/Akytarus/Gentoo/var/tmp/portage/sys-devel/binutils-apple-4.2/temp/environment'.
 * Working directory: '/Users/Akytarus/Gentoo/var/tmp/portage/sys-devel/binutils-apple-4.2/work/cctools-809'
 * S: '/Users/Akytarus/Gentoo/var/tmp/portage/sys-devel/binutils-apple-4.2/work'

>>> Failed to emerge sys-devel/binutils-apple-4.2, Log file:

>>>  '/Users/Akytarus/Gentoo/var/tmp/portage/sys-devel/binutils-apple-4.2/temp/build.log'

 * Messages for package sys-devel/binutils-apple-4.2:

 * ERROR: sys-devel/binutils-apple-4.2 failed (compile phase):
 *   emake failed for the cctools
 *
 * Call stack:
 *     ebuild.sh, line   85:  Called call-ebuildshell 'src_compile'
 *   environment, line  472:  Called src_compile
 *   environment, line 2462:  Called compile_cctools
 *   environment, line  518:  Called die
 * The specific snippet of code:
 *       emake LIB_PRUNETRIE="-L../../${LD64}/src -lprunetrie" EFITOOLS= LTO= COMMON_SUBDIRS='libstuff ar misc otool' SUBDIRS_32= RC_CFLAGS="${CFLAGS}" OFLAG="${CFLAGS}" || die "emake failed for the cctools";
 *
 * If you need support, post the output of 'emerge --info =sys-devel/binutils-apple-4.2',
 * the complete build log and the output of 'emerge -pqv =sys-devel/binutils-apple-4.2'.
 * The complete build log is located at '/Users/Akytarus/Gentoo/var/tmp/portage/sys-devel/binutils-apple-4.2/temp/build.log'.
 * The ebuild environment file is located at '/Users/Akytarus/Gentoo/var/tmp/portage/sys-devel/binutils-apple-4.2/temp/environment'.
 * Working directory: '/Users/Akytarus/Gentoo/var/tmp/portage/sys-devel/binutils-apple-4.2/work/cctools-809'
 * S: '/Users/Akytarus/Gentoo/var/tmp/portage/sys-devel/binutils-apple-4.2/work'


Last edited by Mustang-Speed on Mon Jul 30, 2012 12:21 am; edited 1 time in total
Back to top
View user's profile Send private message
Tatsh
Apprentice
Apprentice


Joined: 22 Jul 2007
Posts: 187

PostPosted: Sun Jul 29, 2012 10:29 pm    Post subject: Reply with quote

Try building md from Apple's source:

http://opensource.apple.com/source/adv_cmds/adv_cmds-147/md/

md is removed as of Mountain Lion.
Back to top
View user's profile Send private message
Mustang-Speed
n00b
n00b


Joined: 26 Jan 2005
Posts: 31

PostPosted: Sun Jul 29, 2012 11:54 pm    Post subject: Reply with quote

OK,

Some information:

I'm trying to install a Gentoo Prefix under OSX 10.8 - Mountain Lion
I've Installed Xcode 4.4 as well as the Command Line Tools
I've followed the guide right up to compiling "sys-devel/binutils-apple" & "sys-devel/gcc-apple"

Since the "md" binary and other advanced tools are missing in OSX 10.8 it seems imposible to finish my Gentoo Prefix...!

Note:

Seems that I cant build md from apple sources on its own.
Could someone attach the 10.7.4 binaries for me or a workaround...?

Thanks
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Tue Jul 31, 2012 12:06 am    Post subject: Reply with quote

Moved from Installing Gentoo to Gentoo on Alternative Architectures.
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Tue Aug 14, 2012 4:57 am    Post subject: Reply with quote

It should be relatively easy:


Download and make md from Apple: http://opensource.apple.com/source/adv_cmds/adv_cmds-147/md/

Get those three files in a directory, do a make && make install, then copy /tmp/md/Release/usr/bin/md to $EPREFIX/usr/bin/md .

I'm stuck a little later in the install. Ugh, Mountain Lion.
_________________
Votre moment detente
What is the nature of conflict?
Back to top
View user's profile Send private message
jcdx
n00b
n00b


Joined: 16 Dec 2013
Posts: 25

PostPosted: Fri Dec 20, 2013 10:39 am    Post subject: Reply with quote

Hi,

I run into exact the same problem:
Error compiling sys-devel/binutils-apple 4.3

Code:
 md -d -u ./Makedep ./allocate.d
/gentoo/bin/bash: md: command not found


Building "md" from source http://opensource.apple.com/source/adv_cmds/adv_cmds-147/md/ fails on Mac OS 10.9.
As I found "md" is not supported anymore since at least 10.8.5 considering http://www.opensource.apple.com/source/adv_cmds/adv_cmds-149/

I do not really understand what "md" does http://opensource.apple.com/source/adv_cmds/adv_cmds-147/md/md.1
but may be instead of building and using a "depricated" tool it is possible to use a softlink to an up-to-date alternative?

But which tool under Mac OS > 10.8 provides the same functionality?

Greetings
jcdx
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures 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