Skip to contentSkip to conversation

libarchive: task compile fails with `error: static declaration of 'wcscpy' follows non-static declaration`

DISCUSSION Paul Menzel 4 participants 6 messages Mar 23, 2011 – Mar 24, 2011

lore
Share & tools
lore
#0 lore raw

Dear OE folks

trying to test the latest changes in libarchive_2.8.4.bb I hit the following error.

arm-oe-linux-gnueabi-libtool: compile: arm-oe-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi -DHAVE_CONFIG_H -I. -I/oe/build-minimal-eglibc/minimal-dev/sysroots/i686-linux/usr/include/libxml2 -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -g -MT libarchive/archive_entry.lo -MD -MP -MF libarchive/.deps/archive_entry.Tpo -c libarchive/archive_entry.c -fPIC -DPIC -o libarchive/.libs/archive_entry.o libarchive/archive_entry.c:136:18: error: static declaration of 'wcscpy' follows non-static declaration
/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi/usr/include/wchar.h:144:17: note: previous declaration of 'wcscpy' was here
libarchive/archive_entry.c:145:15: error: static declaration of 'wcslen' follows non-static declaration
/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi/usr/include/wchar.h:284:15: note: previous declaration of 'wcslen' was here
arm-oe-linux-gnueabi-libtool: compile: arm-oe-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi -DHAVE_CONFIG_H -I. -I/oe/build-minimal-eglibc/minimal-dev/sysroots/i686-linux/usr/include/libxml2 -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -g -MT libarchive/archive_entry_stat.lo -MD -MP -MF libarchive/.deps/archive_entry_stat.Tpo -c libarchive/archive_entry_stat.c -o libarchive/archive_entry_stat.o >/dev/null 2>&1 arm-oe-linux-gnueabi-libtool: compile: arm-oe-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi -DHAVE_CONFIG_H -I. -I/oe/build-minimal-eglibc/minimal-dev/sysroots/i686-linux/usr/include/libxml2 -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -g -MT libarchive/archive_entry_strmode.lo -MD -MP -MF libarchive/.deps/archive_entry_strmode.Tpo -c libarchive/archive_entry_strmode.c -o libarchive/archive_entry_strmode.o >/dev/null 2>&1 arm-oe-linux-gnueabi-libtool: compile: arm-oe-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi -DHAVE_CONFIG_H -I. -I/oe/build-minimal-eglibc/minimal-dev/sysroots/i686-linux/usr/include/libxml2 -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -g -MT libarchive/archive_entry_xattr.lo -MD -MP -MF libarchive/.deps/archive_entry_xattr.Tpo -c libarchive/archive_entry_xattr.c -o libarchive/archive_entry_xattr.o >/dev/null 2>&1 make[1]: *** [libarchive/archive_entry.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/oe/build-minimal-eglibc/minimal-dev/work/armv7a-oe-linux-gnueabi/libarchive-2.8.4-r0/libarchive-2.8.4'
make: *** [all] Error 2
+ die 'oe_runmake failed'
+ oefatal 'oe_runmake failed'
+ echo FATAL: 'oe_runmake failed'
FATAL: oe_runmake failed
+ exit 1

The following configuration is used.

Build Configuration:
BB_VERSION = "1.12.0"
METADATA_BRANCH = "master"
METADATA_REVISION = "79d295c"
TARGET_ARCH = "arm"
TARGET_OS = "linux-gnueabi"
MACHINE = "beagleboard"
DISTRO = "minimal"
DISTRO_VERSION = "dev-snapshot-20110323"
TARGET_FPU = "soft"

I will test a build using angstrom-2010.x next, but will not have time to track down the fix.

Thanks,

Paul

#1 lore raw
Quoted 1 line · Paul Menzel

libarchive/archive_entry.c:136:18: error: static declaration of 'wcscpy' follows non-static declaration

Seems to be some kind of autoconf lossage. You'll need to check log.do_configure to find out why it thinks wcscpy isn't available.

p.

#2 lore raw
In reply to Paul Menzel

Hi,

I had the same problem,
http://git.openembedded.org/cgit.cgi/openembedded/commit/?id=6db4b9050e0e8b963e2a6b63790e48e3042ea99e
solves it.

Quoted 51 lines · Paul Menzel

Dear OE folks

trying to test the latest changes in libarchive_2.8.4.bb I hit the following error.

       arm-oe-linux-gnueabi-libtool: compile:  arm-oe-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi -DHAVE_CONFIG_H -I. -I/oe/build-minimal-eglibc/minimal-dev/sysroots/i686-linux/usr/include/libxml2 -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -g -MT libarchive/archive_entry.lo -MD -MP -MF libarchive/.deps/archive_entry.Tpo -c libarchive/archive_entry.c  -fPIC -DPIC -o libarchive/.libs/archive_entry.o libarchive/archive_entry.c:136:18: error: static declaration of 'wcscpy' follows non-static declaration
       /oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi/usr/include/wchar.h:144:17: note: previous declaration of 'wcscpy' was here
       libarchive/archive_entry.c:145:15: error: static declaration of 'wcslen' follows non-static declaration
       /oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi/usr/include/wchar.h:284:15: note: previous declaration of 'wcslen' was here
       arm-oe-linux-gnueabi-libtool: compile:  arm-oe-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi -DHAVE_CONFIG_H -I. -I/oe/build-minimal-eglibc/minimal-dev/sysroots/i686-linux/usr/include/libxml2 -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -g -MT libarchive/archive_entry_stat.lo -MD -MP -MF libarchive/.deps/archive_entry_stat.Tpo -c libarchive/archive_entry_stat.c -o libarchive/archive_entry_stat.o >/dev/null 2>&1 arm-oe-linux-gnueabi-libtool: compile:  arm-oe-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi -DHAVE_CONFIG_H -I. -I/oe/build-minimal-eglibc/minimal-dev/sysroots/i686-linux/usr/include/libxml2 -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -g -MT libarchive/archive_entry_strmode.lo -MD -MP -MF libarchive/.deps/archive_entry_strmode.Tpo -c libarchive/archive_entry_strmode.c -o libarchive/archive_entry_strmode.o >/dev/null 2>&1 arm-oe-linux-gnueabi-libtool: compile:  arm-oe-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi -DHAVE_CONFIG_H -I. -I/oe/build-minimal-eglibc/minimal-dev/sysroots/i686-linux/usr/include/libxml2 -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -g -MT libarchive/archive_entry_xattr.lo -MD -MP -MF libarchive/.deps/archive_entry_xattr.Tpo -c libarchive/archive_entry_xattr.c -o libarchive/archive_entry_xattr.o >/dev/null 2>&1 make[1]: *** [libarchive/archive_entry.lo] Error 1
       make[1]: *** Waiting for unfinished jobs....
       make[1]: Leaving directory `/oe/build-minimal-eglibc/minimal-dev/work/armv7a-oe-linux-gnueabi/libarchive-2.8.4-r0/libarchive-2.8.4'
       make: *** [all] Error 2
       + die 'oe_runmake failed'
       + oefatal 'oe_runmake failed'
       + echo FATAL: 'oe_runmake failed'
       FATAL: oe_runmake failed
       + exit 1

The following configuration is used.

       Build Configuration:
       BB_VERSION        = "1.12.0" METADATA_BRANCH   = "master" METADATA_REVISION = "79d295c" TARGET_ARCH       = "arm"
       TARGET_OS         = "linux-gnueabi" MACHINE           = "beagleboard" DISTRO            = "minimal" DISTRO_VERSION    = "dev-snapshot-20110323" TARGET_FPU        = "soft"

I will test a build using angstrom-2010.x next, but will not have time to track down the fix.

Thanks,

Paul

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Signature · 1 line
Kartik
#3 lore raw

Dear Kartik,

Am Mittwoch, den 23.03.2011, 08:00 -0400 schrieb Kartik Mohta:

Quoted 3 lines

I had the same problem,
http://git.openembedded.org/cgit.cgi/openembedded/commit/?id=6db4b9050e0e8b963e2a6b63790e48e3042ea99e
solves it.

I saw that and did bitbake -k libxml2 beforehand but it did not fix the build. I will retry, just in case task configure was not rerun.

Thanks,

Paul

PS: My case shows one reason, why I think pasting error messages into commit messages is a good thing. ;-)

#4 lore raw
In reply to Paul Menzel
Quoted 26 lines · Paul Menzel

Dear OE folks

trying to test the latest changes in libarchive_2.8.4.bb I hit the following error.

arm-oe-linux-gnueabi-libtool: compile: arm-oe-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi -DHAVE_CONFIG_H -I. -I/oe/build-minimal-eglibc/minimal-dev/sysroots/i686-linux/usr/include/libxml2 -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -g -MT libarchive/archive_entry.lo -MD -MP -MF libarchive/.deps/archive_entry.Tpo -c libarchive/archive_entry.c -fPIC -DPIC -o libarchive/.libs/archive_entry.o libarchive/archive_entry.c:136:18: error: static declaration of 'wcscpy' follows non-static declaration
/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi/usr/include/wchar.h:144:17: note: previous declaration of 'wcscpy' was here
libarchive/archive_entry.c:145:15: error: static declaration of 'wcslen' follows non-static declaration
/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi/usr/include/wchar.h:284:15: note: previous declaration of 'wcslen' was here
arm-oe-linux-gnueabi-libtool: compile: arm-oe-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi -DHAVE_CONFIG_H -I. -I/oe/build-minimal-eglibc/minimal-dev/sysroots/i686-linux/usr/include/libxml2 -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -g -MT libarchive/archive_entry_stat.lo -MD -MP -MF libarchive/.deps/archive_entry_stat.Tpo -c libarchive/archive_entry_stat.c -o libarchive/archive_entry_stat.o >/dev/null 2>&1 arm-oe-linux-gnueabi-libtool: compile: arm-oe-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi -DHAVE_CONFIG_H -I. -I/oe/build-minimal-eglibc/minimal-dev/sysroots/i686-linux/usr/include/libxml2 -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -g -MT libarchive/archive_entry_strmode.lo -MD -MP -MF libarchive/.deps/archive_entry_strmode.Tpo -c libarchive/archive_entry_strmode.c -o libarchive/archive_entry_strmode.o >/dev/null 2>&1 arm-oe-linux-gnueabi-libtool: compile: arm-oe-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi -DHAVE_CONFIG_H -I. -I/oe/build-minimal-eglibc/minimal-dev/sysroots/i686-linux/usr/include/libxml2 -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -g -MT libarchive/archive_entry_xattr.lo -MD -MP -MF libarchive/.deps/archive_entry_xattr.Tpo -c libarchive/archive_entry_xattr.c -o libarchive/archive_entry_xattr.o >/dev/null 2>&1 make[1]: *** [libarchive/archive_entry.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/oe/build-minimal-eglibc/minimal-dev/work/armv7a-oe-linux-gnueabi/libarchive-2.8.4-r0/libarchive-2.8.4'
make: *** [all] Error 2
+ die 'oe_runmake failed'
+ oefatal 'oe_runmake failed'
+ echo FATAL: 'oe_runmake failed'
FATAL: oe_runmake failed
+ exit 1

The following configuration is used.

Quoted 11 lines

Build Configuration:
BB_VERSION = "1.12.0"
METADATA_BRANCH = "master"
METADATA_REVISION = "79d295c"
TARGET_ARCH = "arm"
TARGET_OS = "linux-gnueabi"
MACHINE = "beagleboard"
DISTRO = "minimal"
DISTRO_VERSION = "dev-snapshot-20110323"
TARGET_FPU = "soft"

Well it works ok for me on both uclibc/eglibc

Build Configuration:
BB_VERSION = "1.13.0"
METADATA_BRANCH = "master"
METADATA_REVISION = "3e7790b"

TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "efikamx"
DISTRO            = "minimal"
DISTRO_VERSION    = "dev-snapshot-20110324"
TARGET_FPU        = "soft"

and as Phil pointed out somehow your test for wscpy is failing I have

checking for wcrtomb... yes
checking for wcscmp... yes
checking for wcscpy... yes
checking for wcslen... yes
checking for wctomb... yes
checking for wmemcmp... yes
checking for wmemcpy... yes

in log.do_configure

as well as in build/cmake/config.h.in

/* Define to 1 if you have the `wcscpy' function. */ #cmakedefine HAVE_WCSCPY 1

-Khem

Quoted 14 lines

I will test a build using angstrom-2010.x next, but will not have time to track down the fix.

Thanks,

Paul

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Signature · 1 line
-Khem
#5 lore raw

Am Mittwoch, den 23.03.2011, 21:22 -0700 schrieb Khem Raj:

Quoted 62 lines · Paul Menzel
Quoted 24 lines

trying to test the latest changes in libarchive_2.8.4.bb I hit the following error.

arm-oe-linux-gnueabi-libtool: compile: arm-oe-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi -DHAVE_CONFIG_H -I. -I/oe/build-minimal-eglibc/minimal-dev/sysroots/i686-linux/usr/include/libxml2 -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -g -MT libarchive/archive_entry.lo -MD -MP -MF libarchive/.deps/archive_entry.Tpo -c libarchive/archive_entry.c -fPIC -DPIC -o libarchive/.libs/archive_entry.o libarchive/archive_entry.c:136:18: error: static declaration of 'wcscpy' follows non-static declaration
/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi/usr/include/wchar.h:144:17: note: previous declaration of 'wcscpy' was here
libarchive/archive_entry.c:145:15: error: static declaration of 'wcslen' follows non-static declaration
/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi/usr/include/wchar.h:284:15: note: previous declaration of 'wcslen' was here
arm-oe-linux-gnueabi-libtool: compile: arm-oe-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi -DHAVE_CONFIG_H -I. -I/oe/build-minimal-eglibc/minimal-dev/sysroots/i686-linux/usr/include/libxml2 -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -g -MT libarchive/archive_entry_stat.lo -MD -MP -MF libarchive/.deps/archive_entry_stat.Tpo -c libarchive/archive_entry_stat.c -o libarchive/archive_entry_stat.o >/dev/null 2>&1 arm-oe-linux-gnueabi-libtool: compile: arm-oe-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi -DHAVE_CONFIG_H -I. -I/oe/build-minimal-eglibc/minimal-dev/sysroots/i686-linux/usr/include/libxml2 -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -g -MT libarchive/archive_entry_strmode.lo -MD -MP -MF libarchive/.deps/archive_entry_strmode.Tpo -c libarchive/archive_entry_strmode.c -o libarchive/archive_entry_strmode.o >/dev/null 2>&1 arm-oe-linux-gnueabi-libtool: compile: arm-oe-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb --sysroot=/oe/build-minimal-eglibc/minimal-dev/sysroots/armv7a-oe-linux-gnueabi -DHAVE_CONFIG_H -I. -I/oe/build-minimal-eglibc/minimal-dev/sysroots/i686-linux/usr/include/libxml2 -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -g -MT libarchive/archive_entry_xattr.lo -MD -MP -MF libarchive/.deps/archive_entry_xattr.Tpo -c libarchive/archive_entry_xattr.c -o libarchive/archive_entry_xattr.o >/dev/null 2>&1 make[1]: *** [libarchive/archive_entry.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/oe/build-minimal-eglibc/minimal-dev/work/armv7a-oe-linux-gnueabi/libarchive-2.8.4-r0/libarchive-2.8.4'
make: *** [all] Error 2
+ die 'oe_runmake failed'
+ oefatal 'oe_runmake failed'
+ echo FATAL: 'oe_runmake failed'
FATAL: oe_runmake failed
+ exit 1

The following configuration is used.

Quoted 11 lines

Build Configuration:
BB_VERSION = "1.12.0"
METADATA_BRANCH = "master"
METADATA_REVISION = "79d295c"
TARGET_ARCH = "arm"
TARGET_OS = "linux-gnueabi"
MACHINE = "beagleboard"
DISTRO = "minimal"
DISTRO_VERSION = "dev-snapshot-20110323"
TARGET_FPU = "soft"

Well it works ok for me on both uclibc/eglibc

Build Configuration:
BB_VERSION = "1.13.0"
METADATA_BRANCH = "master"
METADATA_REVISION = "3e7790b"

TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "efikamx"
DISTRO            = "minimal"
DISTRO_VERSION    = "dev-snapshot-20110324"
TARGET_FPU        = "soft"

and as Phil pointed out somehow your test for wscpy is failing I have

checking for wcrtomb... yes
checking for wcscmp... yes
checking for wcscpy... yes
checking for wcslen... yes
checking for wctomb... yes
checking for wmemcmp... yes
checking for wmemcpy... yes

Quoted 1 line

in log.do_configure

I had no there. After deleting the build dir and doing a clean build everything worked fine. I guess I had forgotten running configure again before.

Quoted 4 lines

as well as in build/cmake/config.h.in

/* Define to 1 if you have the `wcscpy' function. */ #cmakedefine HAVE_WCSCPY 1

[…]

Thanks,

Paul