[okl4-developer] elfweaver, Object name "master" already in use.
Geoffrey Lee
glee at ok-labs.com
Thu Jun 12 08:41:00 EST 2008
On Wed, Jun 11, 2008 at 05:33:39PM +0200, Lukas HANEL wrote:
> Hi,
>
> I am trying to port an LCD driver to OKL4 on my platform. I was
> modifying the drivers example and putting in source files in my drivers
> folder. After some code cleaning I could compile and finally link the
> vlcd server. Using okl4_2.1
Hi Lukas
Just a wild guess but maybe the name that you gave the LCD driver
(in Sconstruct or similar) clashes with an existing entity
because you re-used the build files without changing the name?
-gl
>
> But, in the final elfweaving, a mysterious error occurs:
>
> [ELF ] build/images/image.elf
> Error: Object name "master" already in use.
>
> I was then adding some debug output in elfweaver and got the following
> output. Any idea?
>
> thanks,
> Lukas Hänel
>
> tools/pyelf/elfweaver --traceback merge -obuild/images/image.elf
> build/images/weaver.xml
> <weaver.namespace.ObjectNameSpace instance at 0x824fdac>
> {'master': <weaver.bootinfo.Cap instance at 0xb7990b6c>}
> <weaver.bootinfo.Cap instance at 0xb7990a8c>
> An error occurred: global name 'print_exc' is not defined
> Now printing a traceback.
>
> Traceback (most recent call last):
> File "tools/pyelf/elfweaver", line 74, in ?
> main(sys.argv)
> File "/home/lukas/okl4_2.1/tools/pyelf/weaver/main.py", line 94, in main
> commands[args[1]](args[2:])
> File "/home/lukas/okl4_2.1/tools/pyelf/weaver/merge.py", line 187, in
> merge_cmd
> merge(spec_file, options)
> File "/home/lukas/okl4_2.1/tools/pyelf/weaver/merge.py", line 119, in
> merge
> namespace, image, machine, pools, bootinfo)
> File "/home/lukas/okl4_2.1/tools/pyelf/weaver/merge.py", line 97, in
> collect_image_objects
> collect_program_pd_elements(parsed, ignore_name, namespace, image,
> machine, bootinfo, pools)
> File "/home/lukas/okl4_2.1/tools/pyelf/weaver/prog_pd_xml.py", line
> 583, in collect_program_pd_elements
> collect_program_element(el, ignore_name, namespace, image, machine,
> bootinfo, pools)
> File "/home/lukas/okl4_2.1/tools/pyelf/weaver/prog_pd_xml.py", line
> 336, in collect_program_element
> prog_namespace, machine, pools, image, bootinfo)
> File "/home/lukas/okl4_2.1/tools/pyelf/weaver/prog_pd_xml.py", line
> 234, in collect_environment_element
> cap_list = cap.get_object().create_implicit_objects(namespace,
> machine, pools, image, bootinfo)
> File "/home/lukas/okl4_2.1/tools/pyelf/weaver/device.py", line 226,
> in create_implicit_objects
> namespace.add(master.get_name(), master)
> File "/home/lukas/okl4_2.1/tools/pyelf/weaver/namespace.py", line
> 119, in add
> print_exc(file=sys.stdout)
> NameError: global name 'print_exc' is not defined
>
> _______________________________________________
> Developer mailing list
> Developer at okl4.org
> https://lists.okl4.org/mailman/listinfo/developer
>
--
More information about the Developer
mailing list