64bit Genode and Fiasco.OC
d.waddington at ...60...
Mon Mar 14 19:47:00 CET 2011
CC_OPT seems to work on the compile stage, but not the link stage...
/usr/local/genode-gcc-x86_32/bin/genode-x86-g++ -m32 -L/usr/lib32
-DFOOOOOOBARRR -ffunction-sections -fno-strict-aliasing -nostdinc -g
-march=i686 -O2 -MMD -MP -MT 'new_delete.o new_delete.d' -Wall -I.
-Wl,--whole-archive -Wl,--start-group alsa.o main.o new_delete.o
$libs/console/console.lib.a $libs/env/env.lib.a $libs/heap/heap.lib.a
$libs/syscall/syscall.lib.a $libs/thread/thread.lib.a -Wl,--end-group
On 03/14/2011 11:36 AM, Norman Feske wrote:
> Hi Daniel,
>> Looks like the problem is only specific to ..
>> everything else builds 32bit version on 64bit host platform.
> These targets alongside 'os/src/drivers/framebuffer/sdl' are hybrid
> programs using both the Genode framework as well as native Linux
> libraries. The 'audio_out' "driver" translates Genode's
> 'Audio_out_session' to ALSA, 'nic' translates Genode's 'Nic_session' to
> a Linux tap device, and 'fb_sdl' translates Genode's
> 'Framebuffer_session' and 'Input_session' to libSDL. Because of their
> hybrid nature, those programs are built without the '-nostdlib' switch.
> This way, the libraries at '/usr/lib' end up in those binaries.
>>> It looks like I need to add -m32 -L/usr/lib32 to the linux-compiled
>>> build flags - not sure how to do this, CC_OPT doesn't seem to
>>> percolate through.
> Normally, 'CC_OPT' is the right variable to use. However, I would not
> specify those arguments globally (hence, a spec-file is the wrong place
> for them). They should exceptionally be used for hybrid targets only.
> Can you successfully build 'audio_out' by adding those arguments to
> 'CC_OPT' in its 'target.mk' file?
> Best regards
*Daniel G. Waddington Ph.D. C.Sci. **| **Samsung Information Systems
Principal Engineer/Research Manager, Systems Research Group, Computer
t: 408-544-5675 f: 408-544-5540 c: 408-890-0479
d.waddington at ...60... <mailto:d.waddington at ...60...>
*****P*lease consider the environment before printing this email.
This message is intended only for the named recipient(s) above and may
contain confidential or privileged informat ion or protected attorney
work product. If you are not the intended recipient, any review,
dissemination, distribution or copying is strictly prohibited. If you
have received this message in error, please immediately notify the
sender and delete this message and its attachments from your computer
and dispose of all other copies or printouts. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the users