All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Bird, Timothy" <Tim.Bird@sony.com>
To: "dhinakar.k@samsung.com" <dhinakar.k@samsung.com>,
	"fuego@lists.linuxfoundation.org"
	<fuego@lists.linuxfoundation.org>
Subject: Re: [Fuego] Functional.expat test fails during build stage on 64-bit x86 Ubuntu target
Date: Fri, 6 Oct 2017 15:11:47 +0000	[thread overview]
Message-ID: <ECADFF3FD767C149AD96A924E7EA6EAF3AD20E0E@USCULXMSG01.am.sony.com> (raw)
In-Reply-To: <20171006121044epcms5p6fa91e425e71694d0632efcc3282aa624@epcms5p6>

> -----Original Message-----
> From Dhinakar Kalyanasundaram on Sent: Friday, October 06, 2017 5:11 AM


> I get the following error during 'fuego build phase', while executing
> Functional.expat test on x86 Ubuntu target.

This was fixed in my 'next' branch with the following commit:
https://bitbucket.org/tbird20d/fuego-core/commits/9f9ef8ff6d56a9ccb4b858eb59640f1354feaf1a

Please do a 'git pull' on the appropriate fuego-core repository on your host, to pull
the latest commits for this branch.

Thanks for the report!
 -- Tim

commentary inline below...

> ##### doing fuego phase: build ########
> Unpacking expat-2.0.0.tar.gz
> patching file xmltest.sh
> /fuego-rw/buildzone/TRAV-Ethernet-x86.default.Functional.expat-x86_64
> checking build system type... x86_64-gnu-linux-gnu
...
> checking for an ANSI C99-conforming __func__... yes
> configure: creating ./config.status
> config.status: creating Makefile
> config.status: creating expat_config.h
> /bin/sh ./libtool --silent --mode=compile gcc -I./lib -I. -g -O2 -Wall -Wmissing-
> prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H   -o
> lib/xmlparse.lo -c lib/xmlparse.c
...
> g++ -I. -I./lib -g -O2   -c -o tests/runtestspp.o tests/runtestspp.cpp
> In file included from tests/runtests.c:18:0,
>                  from tests/runtestspp.cpp:6:
> tests/runtests.c: In function 'void basic_setup()':
> tests/minicheck.h:26:59: warning: deprecated conversion from string
> constant to 'char*' [-Wwrite-strings]
> #define fail(msg)  _fail_unless(0, __FILE__, __LINE__, msg)
>                                                            ^
> tests/runtests.c:38:9: note: in expansion of macro 'fail'
>          fail("Parser not created.");
>          ^
> tests/runtests.c: In function 'void test_nul_byte()':
> tests/minicheck.h:26:59: warning: deprecated conversion from string
> constant to 'char*' [-Wwrite-strings]
> #define fail(msg)  _fail_unless(0, __FILE__, __LINE__, msg)
>                                                            ^
> tests/runtests.c:159:9: note: in expansion of macro 'fail'
>          fail("Parser did not report error on NUL-byte.");
>          ^
> In file included from tests/runtestspp.cpp:6:0:

I haven't looked into fixing these warnings ("deprecated conversion from
string constant to 'char *'").  They are not the items causing the build
failure, but it would be nice to get them resolved also.  It's low
priority for the release.  If anyone has an idea for fixing this, please
let me know.  Since they're coming from a macro, I think it's likely a
simple fix at a single location would resolve it, but I haven't had time
to look at it.

...[ lots more of that warning omitted ]...

> tests/runtests.c: In function 'int external_entity_handler(XML_Parser, const
> XML_Char*, const XML_Char*, const XML_Char*, const XML_Char*)':
> ./lib/expat.h:674:52: error: cast from 'void*' to 'int' loses precision [-
> fpermissive]
> #define XML_GetUserData(parser) (*(void **)(parser))
>                                                     ^
> tests/runtests.c:1179:27: note: in expansion of macro 'XML_GetUserData'
>      int callno = 1 + (int)XML_GetUserData(parser);
>                            ^

This is the actual bug.  Casting a (void*) to an (int) for a 64-bit architecture.

The commit mentioned above changes the type for callno to 'intptr_t'
to avoid this problem.

Please pull the commit and try the test again.

Thanks.


      reply	other threads:[~2017-10-06 15:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20171006121044epcms5p6fa91e425e71694d0632efcc3282aa624@epcms5p6>
2017-10-06 12:10 ` [Fuego] Functional.expat test fails during build stage on 64-bit x86 Ubuntu target Dhinakar Kalyanasundaram
2017-10-06 15:11   ` Bird, Timothy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ECADFF3FD767C149AD96A924E7EA6EAF3AD20E0E@USCULXMSG01.am.sony.com \
    --to=tim.bird@sony.com \
    --cc=dhinakar.k@samsung.com \
    --cc=fuego@lists.linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.