Hi Shiraz,

I checked in fixes for those issues on Friday, you could pull in the latest
from our git repo at ASF.

Let me know if you encounter more issues,
M

> On Oct 29, 2015, at 7:57 AM, marko kiiskila <[email protected]> wrote:
> 
> Hi Shiraz,
> 
> that is harmless, but annoying error message. Looks like the compilation is 
> trying
> to look for binary objsize for some post processing of the binary.
> 
> However, the compilation did produce good output. You should be able
> to execute sim.
> 
>> On Oct 29, 2015, at 4:41 AM, Shiraz Nisar <[email protected]> wrote:
>> 
>> Hi All,
>> 
>> I have been able to compile test_sim on linux by doing the following changes
>> 
>> 1. commenting out util.h include in hal-uart.c
>> 2. Including pty.h and stdio.h
>> 
>> It compiles but then i get an Error 127. Verbose output is:
>> 
>> shiraznisar@osboxes:~/dev/larva$ newt -l VERBOSE target build sim_test
>> Building target sim_test (project = test)
>> 2015/10/29 11:33:20 [INFO] ccPath = gcc, arPath = ar, flags =  -m32 -Wall
>> -Werror -ggdb -O0 -ggdb -O0
>> 2015/10/29 11:33:20 [INFO] Compiling C if outdated
>> (/home/shiraznisar/dev/larva/libs/testutil/src/*.c) case.c suite.c
>> testutil.c
>> 2015/10/29 11:33:20 [INFO] Compiling C if outdated
>> (/home/shiraznisar/dev/larva/libs/testutil/src/arch/sim/*.c)
>> testutil_arch_sim.c
>> 2015/10/29 11:33:20 [INFO] Compiling assembly if outdated
>> (/home/shiraznisar/dev/larva/libs/testutil/src/arch/sim/*.s)
>> 2015/10/29 11:33:20 [INFO] Compiling C if outdated
>> (/home/shiraznisar/dev/larva/libs/testutil/src/arch/sim/*.c)
>> testutil_arch_sim.c
>> 2015/10/29 11:33:20 [INFO] ccPath = gcc, arPath = ar, flags =  -m32 -Wall
>> -Werror -ggdb -O0 -ggdb -O0
>> 2015/10/29 11:33:20 [INFO] Compiling C if outdated
>> (/home/shiraznisar/dev/larva/libs/os/src/*.c) os.c os_callout.c os_eventq.c
>> os_heap.c os_mbuf.c os_mempool.c os_mutex.c os_sanity.c os_sched.c os_sem.c
>> os_task.c os_time.c
>> 2015/10/29 11:33:20 [INFO] Compiling C if outdated
>> (/home/shiraznisar/dev/larva/libs/os/src/arch/sim/*.c) os_arch_sim.c
>> 2015/10/29 11:33:20 [INFO] Compiling assembly if outdated
>> (/home/shiraznisar/dev/larva/libs/os/src/arch/sim/*.s)
>> 2015/10/29 11:33:20 [INFO] Compiling C if outdated
>> (/home/shiraznisar/dev/larva/libs/os/src/test/*.c) mbuf_test.c
>> mempool_test.c mutex_test.c os_test.c sem_test.c
>> 2015/10/29 11:33:20 [INFO] Compiling C if outdated
>> (/home/shiraznisar/dev/larva/libs/os/src/test/arch/sim/*.c)
>> os_test_arch_sim.c
>> 2015/10/29 11:33:20 [INFO] Compiling assembly if outdated
>> (/home/shiraznisar/dev/larva/libs/os/src/test/arch/sim/*.s)
>> 2015/10/29 11:33:20 [INFO] ccPath = gcc, arPath = ar, flags =  -m32 -Wall
>> -Werror -ggdb -O0 -ggdb -O0
>> 2015/10/29 11:33:20 [INFO] Compiling C if outdated
>> (/home/shiraznisar/dev/larva/hw/mcu/native/src/*.c) hal_flash.c hal_gpio.c
>> hal_system.c hal_uart.c
>> 2015/10/29 11:33:20 [INFO] Compiling C if outdated
>> (/home/shiraznisar/dev/larva/hw/mcu/native/src/*.c) hal_flash.c hal_gpio.c
>> hal_system.c hal_uart.c
>> 2015/10/29 11:33:20 [INFO] ccPath = gcc, arPath = ar, flags =  -m32 -Wall
>> -Werror -ggdb -O0 -ggdb -O0
>> 2015/10/29 11:33:20 [INFO] Compiling C if outdated
>> (/home/shiraznisar/dev/larva/libs/nffs/src/*.c) crc16.c nffs.c nffs_area.c
>> nffs_block.c nffs_cache.c nffs_config.c nffs_crc.c nffs_dir.c nffs_file.c
>> nffs_flash.c nffs_format.c nffs_gc.c nffs_hash.c nffs_inode.c nffs_misc.c
>> nffs_path.c nffs_restore.c nffs_write.c nffsutil.c
>> 2015/10/29 11:33:20 [INFO] Compiling C if outdated
>> (/home/shiraznisar/dev/larva/libs/nffs/src/test/*.c)
>> 2015/10/29 11:33:20 [INFO] Compiling C if outdated
>> (/home/shiraznisar/dev/larva/libs/nffs/src/test/arch/sim/*.c) nffs_test.c
>> nffs_test_system_01.c
>> 2015/10/29 11:33:20 [INFO] Compiling assembly if outdated
>> (/home/shiraznisar/dev/larva/libs/nffs/src/test/arch/sim/*.s)
>> 2015/10/29 11:33:20 [INFO] ccPath = gcc, arPath = ar, flags =  -m32 -Wall
>> -Werror -ggdb -O0 -ggdb -O0
>> 2015/10/29 11:33:20 [INFO] Compiling C if outdated
>> (/home/shiraznisar/dev/larva/libs/bootutil/src/*.c) bootutil_misc.c loader.c
>> 2015/10/29 11:33:20 [INFO] Compiling C if outdated
>> (/home/shiraznisar/dev/larva/libs/bootutil/src/test/*.c) boot_test.c
>> 2015/10/29 11:33:20 [INFO] ccPath = gcc, arPath = ar, flags =  -m32 -Wall
>> -Werror -ggdb -O0 -ggdb -O0
>> 2015/10/29 11:33:20 [INFO] Compiling C if outdated
>> (/home/shiraznisar/dev/larva/libs/testreport/src/*.c) results.c testreport.c
>> 2015/10/29 11:33:20 [INFO] Compiling C if outdated
>> (/home/shiraznisar/dev/larva/libs/testreport/src/arch/sim/*.c) io.c
>> 2015/10/29 11:33:20 [INFO] Compiling assembly if outdated
>> (/home/shiraznisar/dev/larva/libs/testreport/src/arch/sim/*.s)
>> 2015/10/29 11:33:20 [INFO] Compiling C if outdated
>> (/home/shiraznisar/dev/larva/libs/testreport/src/arch/sim/*.c) io.c
>> 2015/10/29 11:33:20 [INFO] ccPath = gcc, arPath = ar, flags =  -m32 -Wall
>> -Werror -ggdb -O0 -ggdb -O0
>> 2015/10/29 11:33:20 [INFO] Compiling C if outdated
>> (/home/shiraznisar/dev/larva/project/test/src/*.c) test.c
>> Building project test
>> 2015/10/29 11:33:20 [VERBOSE] objdump -wxdS
>> /home/shiraznisar/dev/larva/project/test//bin/sim_test/test.elf >>
>> /home/shiraznisar/dev/larva/project/test//bin/sim_test/test.elf.lst
>> 2015/10/29 11:33:21 [VERBOSE] o=
>> 2015/10/29 11:33:21 [VERBOSE] objdump -s -j .text
>> /home/shiraznisar/dev/larva/project/test//bin/sim_test/test.elf >>
>> /home/shiraznisar/dev/larva/project/test//bin/sim_test/test.elf.lst
>> 2015/10/29 11:33:21 [VERBOSE] o=
>> 2015/10/29 11:33:21 [VERBOSE] objdump -s -j .rodata
>> /home/shiraznisar/dev/larva/project/test//bin/sim_test/test.elf >>
>> /home/shiraznisar/dev/larva/project/test//bin/sim_test/test.elf.lst
>> 2015/10/29 11:33:21 [VERBOSE] o=
>> 2015/10/29 11:33:21 [VERBOSE] objdump -s -j .data
>> /home/shiraznisar/dev/larva/project/test//bin/sim_test/test.elf >>
>> /home/shiraznisar/dev/larva/project/test//bin/sim_test/test.elf.lst
>> 2015/10/29 11:33:21 [VERBOSE] o=
>> 2015/10/29 11:33:21 [VERBOSE] objsize
>> /home/shiraznisar/dev/larva/project/test//bin/sim_test/test.elf >>
>> /home/shiraznisar/dev/larva/project/test//bin/sim_test/test.elf.lst
>> 2015/10/29 11:33:21 [VERBOSE] o=sh: 1: objsize: not found
>> Error: exit status 127
>> 
>> 
>> @Marko thanks for the help.
>> 
>> Please let me know if there is any solution to this.
>> 
>> Thanks
>> 
>> On Thu, Oct 29, 2015 at 3:13 AM, marko kiiskila <[email protected]> wrote:
>> 
>>> Hi,
>>> 
>>> I think I know what this is. openpty() prototype on MacOS vs Linux.
>>> When building on Linux, we should include pty.h instead of util.h.
>>> 
>>>> On Oct 27, 2015, at 11:43 PM, Sterling Hughes <
>>> [email protected]> wrote:
>>>> 
>>>> Hi Shiraz,
>>>> 
>>>> Could you add the -lVERBOSE option to the newt program and send the
>>> command used to build + output.
>>>> 
>>>> Thanks!
>>>> Sterling
>>>> 
>>>>> On Oct 27, 2015, at 11:02 PM, Shiraz Nisar <[email protected]>
>>> wrote:
>>>>> 
>>>>> Hi,
>>>>> 
>>>>> I've been trying to build the simulator on linux ubuntu vm
>>>>> 
>>>>> It complains about not able to find include file util.h
>>>>> 
>>>>> Am i missing a package. Can anyone please confirm.
>>> 
>>> 
> 

Reply via email to