mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Errors building pkg-config: Multiple definitions
@ 2017-03-27 17:35 Guillermo Rodriguez Garcia
  2017-03-28  6:47 ` Guillermo Rodriguez Garcia
  2017-03-28  7:52 ` Michael Olbrich
  0 siblings, 2 replies; 4+ messages in thread
From: Guillermo Rodriguez Garcia @ 2017-03-27 17:35 UTC (permalink / raw)
  To: ptxdist

Hello all,

Trying to rebuild the OSELAS Mini2440 BSP. Again this had been built
previously on Ubuntu 10 and 12, now trying to rebuild on a new
machine.

ptxdist-2013.09.0
BSP release 2013.10.0
Host: Ubuntu 16.04.2

When building the host-pkg-config package I get a ton of errors about
multiple definitions in the internal copy of glib. Here's a short
fragment:

[...]
./.libs/libglib.a(gtree.o): In function `g_bit_storage':
/home/grodriguez/work/ptxdist/OSELAS.BSP-Pengutronix-Mini2440-2013.10.0/platform-mini2440/build-host/pkg-config-0.25/glib-1.2.10/glib.h:1616:
multiple definition of `g_bit_storage'
testglib.o:/home/grodriguez/work/ptxdist/OSELAS.BSP-Pengutronix-Mini2440-2013.10.0/platform-mini2440/build-host/pkg-config-0.25/glib-1.2.10/glib.h:1616:
first defined here
./.libs/libglib.a(gutils.o): In function `g_bit_nth_lsf':
/home/grodriguez/work/ptxdist/OSELAS.BSP-Pengutronix-Mini2440-2013.10.0/platform-mini2440/build-host/pkg-config-0.25/glib-1.2.10/glib.h:1579:
multiple definition of `g_bit_nth_lsf'
testglib.o:/home/grodriguez/work/ptxdist/OSELAS.BSP-Pengutronix-Mini2440-2013.10.0/platform-mini2440/build-host/pkg-config-0.25/glib-1.2.10/glib.h:1579:
first defined here
./.libs/libglib.a(gutils.o): In function `g_bit_nth_msf':
/home/grodriguez/work/ptxdist/OSELAS.BSP-Pengutronix-Mini2440-2013.10.0/platform-mini2440/build-host/pkg-config-0.25/glib-1.2.10/glib.h:1597:
multiple definition of `g_bit_nth_msf'
testglib.o:/home/grodriguez/work/ptxdist/OSELAS.BSP-Pengutronix-Mini2440-2013.10.0/platform-mini2440/build-host/pkg-config-0.25/glib-1.2.10/glib.h:1597:
first defined here
./.libs/libglib.a(gutils.o): In function `g_bit_storage':
/home/grodriguez/work/ptxdist/OSELAS.BSP-Pengutronix-Mini2440-2013.10.0/platform-mini2440/build-host/pkg-config-0.25/glib-1.2.10/glib.h:1616:
multiple definition of `g_bit_storage'
testglib.o:/home/grodriguez/work/ptxdist/OSELAS.BSP-Pengutronix-Mini2440-2013.10.0/platform-mini2440/build-host/pkg-config-0.25/glib-1.2.10/glib.h:1616:
first defined here
collect2: error: ld returned 1 exit status

Any hints on where to start ?

-- 
Guillermo Rodriguez Garcia
guille.rodriguez@gmail.com

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] Errors building pkg-config: Multiple definitions
  2017-03-27 17:35 [ptxdist] Errors building pkg-config: Multiple definitions Guillermo Rodriguez Garcia
@ 2017-03-28  6:47 ` Guillermo Rodriguez Garcia
  2017-03-28  7:52 ` Michael Olbrich
  1 sibling, 0 replies; 4+ messages in thread
From: Guillermo Rodriguez Garcia @ 2017-03-28  6:47 UTC (permalink / raw)
  To: ptxdist

Hello,

A follow up on this:

2017-03-27 19:35 GMT+02:00 Guillermo Rodriguez Garcia
<guille.rodriguez@gmail.com>:
> Hello all,
>
> Trying to rebuild the OSELAS Mini2440 BSP. Again this had been built
> previously on Ubuntu 10 and 12, now trying to rebuild on a new
> machine.
>
> ptxdist-2013.09.0
> BSP release 2013.10.0
> Host: Ubuntu 16.04.2
>
> When building the host-pkg-config package I get a ton of errors about
> multiple definitions in the internal copy of glib. Here's a short
> fragment:
>
> [...]
> ./.libs/libglib.a(gtree.o): In function `g_bit_storage':
> /home/grodriguez/work/ptxdist/OSELAS.BSP-Pengutronix-Mini2440-2013.10.0/platform-mini2440/build-host/pkg-config-0.25/glib-1.2.10/glib.h:1616:
> multiple definition of `g_bit_storage'
> testglib.o:/home/grodriguez/work/ptxdist/OSELAS.BSP-Pengutronix-Mini2440-2013.10.0/platform-mini2440/build-host/pkg-config-0.25/glib-1.2.10/glib.h:1616:
> first defined here
> ./.libs/libglib.a(gutils.o): In function `g_bit_nth_lsf':
> /home/grodriguez/work/ptxdist/OSELAS.BSP-Pengutronix-Mini2440-2013.10.0/platform-mini2440/build-host/pkg-config-0.25/glib-1.2.10/glib.h:1579:
> multiple definition of `g_bit_nth_lsf'
> testglib.o:/home/grodriguez/work/ptxdist/OSELAS.BSP-Pengutronix-Mini2440-2013.10.0/platform-mini2440/build-host/pkg-config-0.25/glib-1.2.10/glib.h:1579:
> first defined here
> ./.libs/libglib.a(gutils.o): In function `g_bit_nth_msf':
> /home/grodriguez/work/ptxdist/OSELAS.BSP-Pengutronix-Mini2440-2013.10.0/platform-mini2440/build-host/pkg-config-0.25/glib-1.2.10/glib.h:1597:
> multiple definition of `g_bit_nth_msf'
> testglib.o:/home/grodriguez/work/ptxdist/OSELAS.BSP-Pengutronix-Mini2440-2013.10.0/platform-mini2440/build-host/pkg-config-0.25/glib-1.2.10/glib.h:1597:
> first defined here
> ./.libs/libglib.a(gutils.o): In function `g_bit_storage':
> /home/grodriguez/work/ptxdist/OSELAS.BSP-Pengutronix-Mini2440-2013.10.0/platform-mini2440/build-host/pkg-config-0.25/glib-1.2.10/glib.h:1616:
> multiple definition of `g_bit_storage'
> testglib.o:/home/grodriguez/work/ptxdist/OSELAS.BSP-Pengutronix-Mini2440-2013.10.0/platform-mini2440/build-host/pkg-config-0.25/glib-1.2.10/glib.h:1616:
> first defined here
> collect2: error: ld returned 1 exit status

The problem here is gcc 5 and the fact that "inline" has different
semantics in C99. The easiest fix here is to use gcc-4.x instead. I
can confirm that the problem is not present when building with
gcc-4.9.

Guillermo Rodriguez Garcia
guille.rodriguez@gmail.com

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] Errors building pkg-config: Multiple definitions
  2017-03-27 17:35 [ptxdist] Errors building pkg-config: Multiple definitions Guillermo Rodriguez Garcia
  2017-03-28  6:47 ` Guillermo Rodriguez Garcia
@ 2017-03-28  7:52 ` Michael Olbrich
  2017-03-28  8:49   ` Guillermo Rodriguez Garcia
  1 sibling, 1 reply; 4+ messages in thread
From: Michael Olbrich @ 2017-03-28  7:52 UTC (permalink / raw)
  To: ptxdist

On Mon, Mar 27, 2017 at 07:35:22PM +0200, Guillermo Rodriguez Garcia wrote:
> Hello all,
> 
> Trying to rebuild the OSELAS Mini2440 BSP. Again this had been built
> previously on Ubuntu 10 and 12, now trying to rebuild on a new
> machine.
> 
> ptxdist-2013.09.0
> BSP release 2013.10.0
> Host: Ubuntu 16.04.2
> 
> When building the host-pkg-config package I get a ton of errors about
> multiple definitions in the internal copy of glib. Here's a short
> fragment:
[...]

That's a bug in pkg-config, I think. Use a newer PTXdist version or copy
rules/host-pkg-config.make from the current version into your BSP.

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] Errors building pkg-config: Multiple definitions
  2017-03-28  7:52 ` Michael Olbrich
@ 2017-03-28  8:49   ` Guillermo Rodriguez Garcia
  0 siblings, 0 replies; 4+ messages in thread
From: Guillermo Rodriguez Garcia @ 2017-03-28  8:49 UTC (permalink / raw)
  To: ptxdist

Hi Michael,

2017-03-28 9:52 GMT+02:00 Michael Olbrich <m.olbrich@pengutronix.de>:
> On Mon, Mar 27, 2017 at 07:35:22PM +0200, Guillermo Rodriguez Garcia wrote:
>> Hello all,
>>
>> Trying to rebuild the OSELAS Mini2440 BSP. Again this had been built
>> previously on Ubuntu 10 and 12, now trying to rebuild on a new
>> machine.
>>
>> ptxdist-2013.09.0
>> BSP release 2013.10.0
>> Host: Ubuntu 16.04.2
>>
>> When building the host-pkg-config package I get a ton of errors about
>> multiple definitions in the internal copy of glib. Here's a short
>> fragment:
> [...]
>
> That's a bug in pkg-config, I think. Use a newer PTXdist version or copy
> rules/host-pkg-config.make from the current version into your BSP.

I have worked around this by using gcc-4.x instead of gcc-5. With
gcc-4.9 the problem is gone.

Best,

Guillermo Rodriguez Garcia
guille.rodriguez@gmail.com

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-28  8:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-27 17:35 [ptxdist] Errors building pkg-config: Multiple definitions Guillermo Rodriguez Garcia
2017-03-28  6:47 ` Guillermo Rodriguez Garcia
2017-03-28  7:52 ` Michael Olbrich
2017-03-28  8:49   ` Guillermo Rodriguez Garcia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox