Discussion:
Is calling a binary in the sb2 from outside of the sb2 possible?
Journeyer J. Joh
2012-09-28 01:45:42 UTC
Permalink
Hello List,

I am using the scratchbox2 in the Tizen SDK. The version is shown below.

2.2.3-rc-5a1a714

I want to compile a 'hello world' with Clang/LLVM using the toolchain
in the scratchbox2(except the gcc, cc1, as).
This means that I want to compile a 'hello world' with Clang/LLVM +
(ld, c library, c header files and any shared libraries for ld in the
scratchbox2)

The scratchbox2 has been set to compile for x86 emulator and provides
a debian-lilke environment with gcc.

To do my purpose, I think, I can
- Put Clang/LLVM inside the scratchbox2 environment like gcc and use
it in the sb2.
- Use ld, c library, c header files and any shared libraries for ld in
the scratchbox2 along with my Clang/LLVM outside of the sb2 on the
host PC(Ubuntu).

In my investigation, the later one is almost impossible. I was able to
make the binary with this combination but the linker in the sb2 uses
libc.so.6 outside of the sb2.
So I wonder if my investigation is wrong!

Q1. Can I call the linker in the sb2 from the outside of the sb2 in a
way the the linker works only with the resources(like libc.so.6) the
sb2 provides not at all with the one in the host OS(the Ubuntu).

With regards to the former,
Q2. I wonder if I can integrate Clang/LLVM to the sb2(I use sb2 in the
Tizen SDK 1.0 or 2.0. They have the same sb2).
I tried this. I mean I compiled Clang/LLVM in the sb2 with the gcc and
toolchain in the sb2.
But this clang uses resources outside of the sb2 even though I
executed it in the sb2 shell.
This phenomenon is not understandable to me.
And even the compiled clang needs later versions of c/c++ libraries
than the current ones in the sb2.
I tried to install later ones with 'dpkg' but I've only failed.
Q3. How can I update c/c++ libraries in the sb2.
Can I just add some source list for debian into sb2 sourcelist?

Thank you in advance.

Journeyer J. Joh
--
----------------------------------------
Journeyer J. Joh
o o s a p r o g r a m m e r
a t
g m a i l d o t c o m
----------------------------------------
Loading...