All of lore.kernel.org
 help / color / mirror / Atom feed
* dtc build failures on OS X
@ 2009-05-20  2:08 Timur Tabi
       [not found] ` <ed82fe3e0905191908v8c5fcdft953c4e1ba7969f2a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 15+ messages in thread
From: Timur Tabi @ 2009-05-20  2:08 UTC (permalink / raw)
  To: devicetree-discuss

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2009-07-16  2:33 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-20  2:08 dtc build failures on OS X Timur Tabi
     [not found] ` <ed82fe3e0905191908v8c5fcdft953c4e1ba7969f2a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-05-20  4:43   ` 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

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.