r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!REBOL3 Host Kit]

Carl
4-Nov-2010
[673]
Here is the problem with OS X host-kit release:
http://www.rebol.com/r3/docs/osx-linker-symbols.html
GrahamC
4-Nov-2010
[674x2]
So, we can have Android instead?
or ARM?
Andreas
4-Nov-2010
[676]
Carl, what version of GCC are you using on OSX?
What happens if instead of
  

  gcc -dynamiclib -exported_symbols_list exported -o a.lib a.o b.o

you do

  gcc -dynamiclib -Wl,-x -o a.lib a.o b.o
Carl
4-Nov-2010
[677]
Got an ARM?
GrahamC
4-Nov-2010
[678]
and a LEG
Carl
4-Nov-2010
[679x2]
Was waiting for that. ;)
checking...
GrahamC
4-Nov-2010
[681x2]
I have this http://en.wikipedia.org/wiki/NSLU2
Intel XScale IXP420 CPU
Carl
4-Nov-2010
[683]
Andreas: same result.
Andreas
4-Nov-2010
[684]
What version of GCC?
GrahamC
4-Nov-2010
[685]
The Plug computers all use ARM too
Andreas
4-Nov-2010
[686]
(gcc -v)
Carl
4-Nov-2010
[687]
gcc or -Wl,-v ?
Andreas
4-Nov-2010
[688]
gcc
Carl
4-Nov-2010
[689]
gcc 4.0.1
Andreas
4-Nov-2010
[690]
ld -v?
Carl
4-Nov-2010
[691]
cctools-590.23.2
Andreas
4-Nov-2010
[692x2]
ouch
gcc -Wl,-v also results in cctools?
Carl
4-Nov-2010
[694x2]
collect version 4.0.1
and then same as ld above
Andreas
4-Nov-2010
[696]
If you download this:
http://bolka.at/2009/misc/exports.tar.gz

extract and make
Carl
4-Nov-2010
[697]
what is it?
Andreas
4-Nov-2010
[698x2]
foo.c, bar.c and a makefile
should actually be pretty much the same as what you are doing. only 
that i have this exact constellations of files working fine on osx 
with gcc 4.0.1.
Carl
4-Nov-2010
[700]
1 min
Andreas
4-Nov-2010
[701]
will have to check what linker that used, though
Carl
4-Nov-2010
[702x3]
same result as given in my example
I seem to remember from last time we tried this... there's a special 
linker tool required on OS X.
But, it was a while ago, so I could be wrong.
Andreas
4-Nov-2010
[705]
i think my attempt was linking with GNU ld
Carl
4-Nov-2010
[706]
So, I just wanted to post the doc above... and see if there's anyone 
who wants Host-Lib on OS X and is willing to solve the problem in 
some reasonable way.
Andreas
4-Nov-2010
[707x2]
I think the reasonable way is to get you a reasonable linker.
I assume you are on OSX 10.4 ("Tiger")?
Carl
4-Nov-2010
[709x3]
right
So, you're telling me that everyone who built software for 10.4 used 
a bad linker?
libtool -- the name I was trying to remember
Andreas
4-Nov-2010
[712]
No, I'm just saying that for those set of command line flags, your 
linker behaves strange.
Carl
4-Nov-2010
[713]
It's concatenating the objects. An old lazy method of lib building.
Andreas
4-Nov-2010
[714]
How did you install GCC? Via Xcode?
Carl
4-Nov-2010
[715x3]
And, I mean lazy both ways. ;)
Yes, Xcode.
Perhaps I can cross build the lib from a linux box... ?
Andreas
4-Nov-2010
[718]
Yes, but that's a lot of work.
Carl
4-Nov-2010
[719]
Might be worth it.
Andreas
4-Nov-2010
[720]
Would you mind upgrading to Xcode 2.5?
Carl
4-Nov-2010
[721]
What's required to go to 2.5? Most tools are dead-ended for 10.4.
Andreas
4-Nov-2010
[722]
2.5 should work on 10.4.