All of lore.kernel.org
 help / color / mirror / Atom feed
* Couple of autotools configure problems
@ 2012-09-10 13:00 Jack Mitchell
  2012-09-10 13:08 ` Phil Blundell
  2012-09-10 13:15 ` Martin Jansa
  0 siblings, 2 replies; 7+ messages in thread
From: Jack Mitchell @ 2012-09-10 13:00 UTC (permalink / raw)
  To: openembedded-devel

First off:

| automake: warnings are treated as errors
| lib/Makefile.am:22: warning: ':='-style assignments are not portable
| lib/Makefile.am:23: warning: ':='-style assignments are not portable
| autoreconf: automake failed with exit status: 1
| ERROR: autoreconf execution failed.

What is a portable version of ':=', maybe '+='? I can't get anything but 
unrelated hits from Google.

Secondly:

| autoreconf: running: aclocal -I 
/mnt/storage/yoctoBuilds/poky-beaglebone.git/beaglebone-db/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.12 
-I 
/mnt/storage/yoctoBuilds/poky-beaglebone.git/beaglebone-db/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/libwebsockets-0.0.0-r0/git/aclocal-copy/ 
-I 
/mnt/storage/yoctoBuilds/poky-beaglebone.git/beaglebone-db/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.12 
-I 
/mnt/storage/yoctoBuilds/poky-beaglebone.git/beaglebone-db/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/libwebsockets-0.0.0-r0/git/aclocal-copy/ 
--force --warnings=cross
| aclocal: warning: unknown warning category 'cross'

Where does this warning=cross come from and how come it doesn't effect 
any other autotool builds?

I am attempting to compile libwebsockets which is located at: 
http://git.warmcat.com/cgi-bin/cgit/libwebsockets/tree/

Cheers,

-- 

   Jack Mitchell (jack@embed.me.uk)
   Embedded Systems Engineer
   http://www.embed.me.uk

--




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

* Re: Couple of autotools configure problems
  2012-09-10 13:00 Couple of autotools configure problems Jack Mitchell
@ 2012-09-10 13:08 ` Phil Blundell
  2012-09-10 14:16   ` Jack Mitchell
  2012-09-10 13:15 ` Martin Jansa
  1 sibling, 1 reply; 7+ messages in thread
From: Phil Blundell @ 2012-09-10 13:08 UTC (permalink / raw)
  To: openembedded-devel

On Mon, 2012-09-10 at 14:00 +0100, Jack Mitchell wrote:
> What is a portable version of ':=', maybe '+='? I can't get anything but 
> unrelated hits from Google.

I don't think there is any portable equivalent.  However, if you know
you will always be using GNU make then the portability is something of a
non-issue.  

You could work around it by just not passing -Werror -Wall to automake.

p.




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

* Re: Couple of autotools configure problems
  2012-09-10 13:00 Couple of autotools configure problems Jack Mitchell
  2012-09-10 13:08 ` Phil Blundell
@ 2012-09-10 13:15 ` Martin Jansa
  2012-09-10 13:28   ` Jack Mitchell
  1 sibling, 1 reply; 7+ messages in thread
From: Martin Jansa @ 2012-09-10 13:15 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 1595 bytes --]

On Mon, Sep 10, 2012 at 02:00:12PM +0100, Jack Mitchell wrote:
> First off:
> 
> | automake: warnings are treated as errors
> | lib/Makefile.am:22: warning: ':='-style assignments are not portable
> | lib/Makefile.am:23: warning: ':='-style assignments are not portable
> | autoreconf: automake failed with exit status: 1
> | ERROR: autoreconf execution failed.
> 
> What is a portable version of ':=', maybe '+='? I can't get anything but 
> unrelated hits from Google.
> 
> Secondly:
> 
> | autoreconf: running: aclocal -I 
> /mnt/storage/yoctoBuilds/poky-beaglebone.git/beaglebone-db/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.12 
> -I 
> /mnt/storage/yoctoBuilds/poky-beaglebone.git/beaglebone-db/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/libwebsockets-0.0.0-r0/git/aclocal-copy/ 
> -I 
> /mnt/storage/yoctoBuilds/poky-beaglebone.git/beaglebone-db/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.12 
> -I 
> /mnt/storage/yoctoBuilds/poky-beaglebone.git/beaglebone-db/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/libwebsockets-0.0.0-r0/git/aclocal-copy/ 
> --force --warnings=cross
> | aclocal: warning: unknown warning category 'cross'
> 
> Where does this warning=cross come from and how come it doesn't effect 
> any other autotool builds?
> 
> I am attempting to compile libwebsockets which is located at: 
> http://git.warmcat.com/cgi-bin/cgit/libwebsockets/tree/
> 
> Cheers,

See this thread
http://lists.linuxtogo.org/pipermail/openembedded-core/2012-September/029108.html

Cheers,

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

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

* Re: Couple of autotools configure problems
  2012-09-10 13:15 ` Martin Jansa
@ 2012-09-10 13:28   ` Jack Mitchell
  0 siblings, 0 replies; 7+ messages in thread
From: Jack Mitchell @ 2012-09-10 13:28 UTC (permalink / raw)
  To: openembedded-devel

On 10/09/12 14:15, Martin Jansa wrote:
> On Mon, Sep 10, 2012 at 02:00:12PM +0100, Jack Mitchell wrote:
>> First off:
>>
>> | automake: warnings are treated as errors
>> | lib/Makefile.am:22: warning: ':='-style assignments are not portable
>> | lib/Makefile.am:23: warning: ':='-style assignments are not portable
>> | autoreconf: automake failed with exit status: 1
>> | ERROR: autoreconf execution failed.
>>
>> What is a portable version of ':=', maybe '+='? I can't get anything but
>> unrelated hits from Google.
>>
>> Secondly:
>>
>> | autoreconf: running: aclocal -I
>> /mnt/storage/yoctoBuilds/poky-beaglebone.git/beaglebone-db/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.12
>> -I
>> /mnt/storage/yoctoBuilds/poky-beaglebone.git/beaglebone-db/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/libwebsockets-0.0.0-r0/git/aclocal-copy/
>> -I
>> /mnt/storage/yoctoBuilds/poky-beaglebone.git/beaglebone-db/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.12
>> -I
>> /mnt/storage/yoctoBuilds/poky-beaglebone.git/beaglebone-db/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/libwebsockets-0.0.0-r0/git/aclocal-copy/
>> --force --warnings=cross
>> | aclocal: warning: unknown warning category 'cross'
>>
>> Where does this warning=cross come from and how come it doesn't effect
>> any other autotool builds?
>>
>> I am attempting to compile libwebsockets which is located at:
>> http://git.warmcat.com/cgi-bin/cgit/libwebsockets/tree/
>>
>> Cheers,
> See this thread
> http://lists.linuxtogo.org/pipermail/openembedded-core/2012-September/029108.html
>
> Cheers,
>

Thanks, seems as though the patch has just landed in master in the past 
few minutes!

As for the first issue I have found that ':=' operator means 'expand and 
use' , they are used here and it turns out to be a make issue, not 
configure:

libwebsockets_la_CFLAGS:=-Wall -std=gnu99 -pedantic
libwebsockets_la_LDFLAGS:=

Could I change them to

libwebsockets_la_CFLAGS =-Wall -std=gnu99 -pedantic
libwebsockets_la_LDFLAGS =

or even,

libwebsockets_la_CFLAGS+=-Wall -std=gnu99 -pedantic
libwebsockets_la_LDFLAGS+=

I don't see anything that needs expanding, or does it expand the 
variable and then append the new flags?

Cheers,

-- 

   Jack Mitchell (jack@embed.me.uk)
   Embedded Systems Engineer
   http://www.embed.me.uk

--




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

* Re: Couple of autotools configure problems
  2012-09-10 13:08 ` Phil Blundell
@ 2012-09-10 14:16   ` Jack Mitchell
  2012-09-10 14:22     ` Phil Blundell
  0 siblings, 1 reply; 7+ messages in thread
From: Jack Mitchell @ 2012-09-10 14:16 UTC (permalink / raw)
  To: openembedded-devel

On 10/09/12 14:08, Phil Blundell wrote:
> On Mon, 2012-09-10 at 14:00 +0100, Jack Mitchell wrote:
>> What is a portable version of ':=', maybe '+='? I can't get anything but
>> unrelated hits from Google.
> I don't think there is any portable equivalent.  However, if you know
> you will always be using GNU make then the portability is something of a
> non-issue.
>
> You could work around it by just not passing -Werror -Wall to automake.
>
> p.
>

Ok, re-building now - will let you know how it goes. I removed the -Wall 
flag. It makes no sense at all as the -Wall flag is passed using the := 
operator, is that not a contradiction in itself?!

-- 

   Jack Mitchell (jack@embed.me.uk)
   Embedded Systems Engineer
   http://www.embed.me.uk

--




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

* Re: Couple of autotools configure problems
  2012-09-10 14:16   ` Jack Mitchell
@ 2012-09-10 14:22     ` Phil Blundell
  2012-09-10 14:32       ` Jack Mitchell
  0 siblings, 1 reply; 7+ messages in thread
From: Phil Blundell @ 2012-09-10 14:22 UTC (permalink / raw)
  To: openembedded-devel

On Mon, 2012-09-10 at 15:16 +0100, Jack Mitchell wrote:
> Ok, re-building now - will let you know how it goes. I removed the -Wall 
> flag. It makes no sense at all as the -Wall flag is passed using the := 
> operator, is that not a contradiction in itself?!

Sounds like you might be looking at the wrong -Wall.  The one that
matters here is the one in AM_INIT_AUTOMAKE(), not to be confused with
the compiler option of the same name which gets set in CFLAGS.

p.






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

* Re: Couple of autotools configure problems
  2012-09-10 14:22     ` Phil Blundell
@ 2012-09-10 14:32       ` Jack Mitchell
  0 siblings, 0 replies; 7+ messages in thread
From: Jack Mitchell @ 2012-09-10 14:32 UTC (permalink / raw)
  To: openembedded-devel

On 10/09/12 15:22, Phil Blundell wrote:
> On Mon, 2012-09-10 at 15:16 +0100, Jack Mitchell wrote:
>> Ok, re-building now - will let you know how it goes. I removed the -Wall
>> flag. It makes no sense at all as the -Wall flag is passed using the :=
>> operator, is that not a contradiction in itself?!
> Sounds like you might be looking at the wrong -Wall.  The one that
> matters here is the one in AM_INIT_AUTOMAKE(), not to be confused with
> the compiler option of the same name which gets set in CFLAGS.
>
> p.
>
>

Ok, that makes more sense!

Thanks,

-- 

   Jack Mitchell (jack@embed.me.uk)
   Embedded Systems Engineer
   http://www.embed.me.uk

--




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

end of thread, other threads:[~2012-09-10 14:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-10 13:00 Couple of autotools configure problems Jack Mitchell
2012-09-10 13:08 ` Phil Blundell
2012-09-10 14:16   ` Jack Mitchell
2012-09-10 14:22     ` Phil Blundell
2012-09-10 14:32       ` Jack Mitchell
2012-09-10 13:15 ` Martin Jansa
2012-09-10 13:28   ` Jack Mitchell

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.