Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Date: Thu, 16 May 2013 16:34:03 +0200
From: Katja Malvoni <kmalvoni@...il.com>
To: john-dev@...ts.openwall.com
Subject: Parallella: Hello World example error

Hello,

I tried to build hello world example (
http://forums.parallella.org/viewtopic.php?f=13&t=251) but I'm having
problems with the paths.

My host and bsps directories looks different than suggested so I changed
variables in the way that seemed the most logical to me:

ESDK=${EPIPHANY_HOME}
ELIBS=${ESDK}/tools/host/armv7l/lib
EINCS=${ESDK}/tools/host/armv7/include
ELDF=${ESDK}/bsps/bsp/internal.ldf

In ${EPIPHANY_HOME}/tools/host/armv7l/lib there is no libe-hal.so file.
Actually it seems to be missing.

This is the output:

src/hello_world.c: In function ‘main’:
src/hello_world.c:43:2: error: unknown type name ‘e_platform_t’
src/hello_world.c:44:2: error: unknown type name ‘e_epiphany_t’
src/hello_world.c:45:2: error: unknown type name ‘e_mem_t’
src/hello_world.c:59:2: warning: passing argument 1 of ‘e_alloc’ from
incompatible pointer type [enabled by default]
/opt/adapteva/esdk/tools/host/
armv7l/include/epiphany-hal-api.h:27:9: note: expected ‘struct DRAM_t *’
but argument is of type ‘int *’
src/hello_world.c:64:26: error: request for member ‘rows’ in something not
a structure or union
src/hello_world.c:65:26: error: request for member ‘cols’ in something not
a structure or union
src/hello_world.c:66:27: error: request for member ‘row’ in something not a
structure or union
src/hello_world.c:66:54: error: request for member ‘col’ in something not a
structure or union
src/hello_world.c:72:3: warning: passing argument 1 of ‘e_open’ from
incompatible pointer type [enabled by default]
/opt/adapteva/esdk/tools/host/armv7l/include/epiphany-hal-api.h:15:9: note:
expected ‘struct Epiphany_t *’ but argument is of type ‘int *’
src/hello_world.c:72:3: error: too many arguments to function ‘e_open’
/opt/adapteva/esdk/tools/host/armv7l/include/epiphany-hal-api.h:15:9: note:
declared here
src/hello_world.c:77:44: error: ‘e_true’ undeclared (first use in this
function)
src/hello_world.c:77:44: note: each undeclared identifier is reported only
once for each function it appears in
src/hello_world.c:82:3: warning: passing argument 1 of ‘e_read’ from
incompatible pointer type [enabled by default]
/opt/adapteva/esdk/tools/host/armv7l/include/epiphany-hal-api.h:17:9: note:
expected ‘struct Epiphany_t *’ but argument is of type ‘int *’
src/hello_world.c:82:3: warning: passing argument 5 of ‘e_read’ makes
integer from pointer without a cast [enabled by default]
/opt/adapteva/esdk/tools/host/armv7l/include/epiphany-hal-api.h:17:9: note:
expected ‘size_t’ but argument is of type ‘char *’
src/hello_world.c:82:3: error: too many arguments to function ‘e_read’
/opt/adapteva/esdk/tools/host/armv7l/include/epiphany-hal-api.h:17:9: note:
declared here
src/hello_world.c:86:3: warning: passing argument 1 of ‘e_close’ from
incompatible pointer type [enabled by default]
/opt/adapteva/esdk/tools/host/armv7l/include/epiphany-hal-api.h:16:9: note:
expected ‘struct Epiphany_t *’ but argument is of type ‘int *’
src/hello_world.c:91:2: warning: passing argument 1 of ‘e_free’ from
incompatible pointer type [enabled by default]
/opt/adapteva/esdk/tools/host/armv7l/include/epiphany-hal-api.h:28:9: note:
expected ‘struct DRAM_t *’ but argument is of type ‘int *’



Best regards,

Katja

Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.