All of lore.kernel.org
 help / color / mirror / Atom feed
From: Timur Tabi <timur-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
To: devicetree-discuss
	<devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org>
Subject: dtc build failures on OS X
Date: Tue, 19 May 2009 21:08:14 -0500	[thread overview]
Message-ID: <ed82fe3e0905191908v8c5fcdft953c4e1ba7969f2a@mail.gmail.com> (raw)

I'm trying to build dtc on Mac OS X.  The compilation seems to go
okay, but the linker dies.  First, it says this:

	 LD libfdt/libfdt.so
ld: unknown option: --version-script=libfdt/version.lds
collect2: ld returned 1 exit status

A Google search suggested that I can just delete the --version-script
option.  I did that, and now I get this error:

	 LD libfdt/libfdt.so
ld: unknown option: -soname
collect2: ld returned 1 exit status

This web page: http://lists.apple.com/archives/unix-porting/2003/Oct/msg00032.html
had some suggestions on how to fix that, so my Makefile now looks like
this:

$(LIBFDT_lib):
        @$(VECHO) LD $@
        $(CC) $(LDFLAGS) -fPIC -Wl,-dylib_install_name -Wl,$(notdir
$@) -shared -o $(LIBFDT_objdir)/libfdt-$(DTC_VERSION).so $^
        ln -s libfdt-$(DTC_VERSION).so $(LIBFDT_objdir)/libfdt.so

But now I get this error:

	 LD libfdt/libfdt.so
Undefined symbols:
  "_main", referenced from:
      start in crt1.10.5.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

So now I'm stuck.  Has anyone tried this before?  Can anyone tell me
how to fix this?

-- 
Timur Tabi
Linux kernel developer at Freescale

             reply	other threads:[~2009-05-20  2:08 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-20  2:08 Timur Tabi [this message]
     [not found] ` <ed82fe3e0905191908v8c5fcdft953c4e1ba7969f2a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-05-20  4:43   ` dtc build failures on OS X David Gibson
2009-05-20  7:46   ` Jean-Christophe PLAGNIOL-VILLARD
     [not found]     ` <20090520074611.GW17539-RQcB7r2h9QmfDR2tN2SG5Ni2O/JbrIOy@public.gmane.org>
2009-05-26  3:37       ` Timur Tabi
     [not found]         ` <ed82fe3e0905252037r574e56ecjd8689b800c74561f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-05-26 18:07           ` [PATCH V2] add Mac OS X support Jean-Christophe PLAGNIOL-VILLARD
     [not found]             ` <1243361246-1743-1-git-send-email-plagnioj-sclMFOaUSTBWk0Htik3J/w@public.gmane.org>
2009-05-27  3:37               ` Timur Tabi
2009-06-13 19:21               ` Jean-Christophe PLAGNIOL-VILLARD
     [not found]                 ` <20090613192148.GN25406-RQcB7r2h9QmfDR2tN2SG5Ni2O/JbrIOy@public.gmane.org>
2009-07-15 17:26                   ` Timur Tabi
     [not found]                     ` <ed82fe3e0907151026w4c957398s63ce7d8dae7c5460-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-07-16  0:43                       ` Jon Loeliger
     [not found]                         ` <E1MRF4Z-0005vL-Hl-CYoMK+44s/E@public.gmane.org>
2009-07-16  2:12                           ` Timur Tabi
2009-07-16  2:33               ` Jon Loeliger
2009-05-20 12:38   ` dtc build failures on OS X Segher Boessenkool
     [not found]     ` <C44AFDDE-9BB1-4914-8B26-5816D83B909A-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
2009-05-20 23:08       ` David Gibson
     [not found]         ` <20090520230823.GB10487-787xzQ0H9iRg7VrjXcPTGA@public.gmane.org>
2009-05-21 17:46           ` Segher Boessenkool
     [not found]             ` <82CF1AB0-22C1-4C33-B6E1-B8816AF2E094-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
2009-05-22  1:29               ` David Gibson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ed82fe3e0905191908v8c5fcdft953c4e1ba7969f2a@mail.gmail.com \
    --to=timur-kzfg59tc24xl57midrcfdg@public.gmane.org \
    --cc=devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.