Skip to contentSkip to conversation

Couple of autotools configure problems

DISCUSSION Jack Mitchell 3 participants 7 messages Sep 10, 2012

lore
Share & tools
lore
#0 lore raw

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,

Signature · 5 lines
  Jack Mitchell ([email protected])
  Embedded Systems Engineer
  http://www.embed.me.uk

--
#1 lore raw
Quoted 24 lines · Jack Mitchell

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'

Quoted 7 lines

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,

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#3 lore raw
In reply to Jack Mitchell
Quoted 2 lines · Jack Mitchell

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.

#2 lore raw
In reply to Martin Jansa
Quoted 28 lines · Martin Jansa
Quoted 27 lines · Jack Mitchell

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?

Quoted 9 lines
Quoted 4 lines

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,

Signature · 5 lines
  Jack Mitchell ([email protected])
  Embedded Systems Engineer
  http://www.embed.me.uk

--
#4 lore raw
In reply to Phil Blundell
Quoted 11 lines · Phil Blundell
Quoted 2 lines · Jack Mitchell

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?!

Signature · 5 lines
  Jack Mitchell ([email protected])
  Embedded Systems Engineer
  http://www.embed.me.uk

--
#5 lore raw
Quoted 3 lines · Jack Mitchell

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.

#6 lore raw
Quoted 11 lines · Phil Blundell
Quoted 3 lines · Jack Mitchell

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,

Signature · 5 lines
  Jack Mitchell ([email protected])
  Embedded Systems Engineer
  http://www.embed.me.uk

--