On Thu, Jun 28, 2012 at 9:36 PM, Sean McBride <s...@rogue-research.com> wrote:
> On Wed, 27 Jun 2012 20:39:52 +0200, Ludovic Rousseau said:
>>> We're specifying gnu99 in AM_CFLAGS, so I wouldn't expect it to end up
>>> in LD_FLAGS. This is benign, so I'm not sure it's worth spending time on
>>> fixing that.
>>
>>clang is complaining, during _compilation_, that it can't use '-std=gnu99'.
>>This has nothing to do with LD_FLAGS or link.
>
> Are you sure?  What are you basing that assertion on?  -std=gnu99 is
> a valid compiler flag, so it doesn't make sense that it would ignore it.
> I think clang's error message "argument unused during compilation"
> is misleading us.  If you build with verbose on, I think you'll find it's
>  the linking invocation that's causing this message.

You are right. The error message is misleading and indeed the
linking invocation causes this message.

mymacmini:build xiaofanc$ make
make  all-recursive
Making all in libusb
/bin/sh ../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H
-I. -I../../libusbx/libusb -I..    -fvisibility=hidden -std=gnu99
-Wall -Wundef -Wunused -Wstrict-prototypes
-Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow  -g
-O2 -MT libusb_1_0_la-core.lo -MD -MP -MF .deps/libusb_1_0_la-core.Tpo
-c -o libusb_1_0_la-core.lo `test -f 'core.c' || echo
'../../libusbx/libusb/'`core.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../../libusbx/libusb
-I.. -fvisibility=hidden -std=gnu99 -Wall -Wundef -Wunused
-Wstrict-prototypes -Werror-implicit-function-declaration
-Wno-pointer-sign -Wshadow -g -O2 -MT libusb_1_0_la-core.lo -MD -MP
-MF .deps/libusb_1_0_la-core.Tpo -c ../../libusbx/libusb/core.c
-fno-common -DPIC -o .libs/libusb_1_0_la-core.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../../libusbx/libusb
-I.. -fvisibility=hidden -std=gnu99 -Wall -Wundef -Wunused
-Wstrict-prototypes -Werror-implicit-function-declaration
-Wno-pointer-sign -Wshadow -g -O2 -MT libusb_1_0_la-core.lo -MD -MP
-MF .deps/libusb_1_0_la-core.Tpo -c ../../libusbx/libusb/core.c -o
libusb_1_0_la-core.o >/dev/null 2>&1
mv -f .deps/libusb_1_0_la-core.Tpo .deps/libusb_1_0_la-core.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H
-I. -I../../libusbx/libusb -I..    -fvisibility=hidden -std=gnu99
-Wall -Wundef -Wunused -Wstrict-prototypes
-Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow  -g
-O2 -MT libusb_1_0_la-descriptor.lo -MD -MP -MF
.deps/libusb_1_0_la-descriptor.Tpo -c -o libusb_1_0_la-descriptor.lo
`test -f 'descriptor.c' || echo '../../libusbx/libusb/'`descriptor.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../../libusbx/libusb
-I.. -fvisibility=hidden -std=gnu99 -Wall -Wundef -Wunused
-Wstrict-prototypes -Werror-implicit-function-declaration
-Wno-pointer-sign -Wshadow -g -O2 -MT libusb_1_0_la-descriptor.lo -MD
-MP -MF .deps/libusb_1_0_la-descriptor.Tpo -c
../../libusbx/libusb/descriptor.c  -fno-common -DPIC -o
.libs/libusb_1_0_la-descriptor.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../../libusbx/libusb
-I.. -fvisibility=hidden -std=gnu99 -Wall -Wundef -Wunused
-Wstrict-prototypes -Werror-implicit-function-declaration
-Wno-pointer-sign -Wshadow -g -O2 -MT libusb_1_0_la-descriptor.lo -MD
-MP -MF .deps/libusb_1_0_la-descriptor.Tpo -c
../../libusbx/libusb/descriptor.c -o libusb_1_0_la-descriptor.o
>/dev/null 2>&1
mv -f .deps/libusb_1_0_la-descriptor.Tpo .deps/libusb_1_0_la-descriptor.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H
-I. -I../../libusbx/libusb -I..    -fvisibility=hidden -std=gnu99
-Wall -Wundef -Wunused -Wstrict-prototypes
-Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow  -g
-O2 -MT libusb_1_0_la-io.lo -MD -MP -MF .deps/libusb_1_0_la-io.Tpo -c
-o libusb_1_0_la-io.lo `test -f 'io.c' || echo
'../../libusbx/libusb/'`io.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../../libusbx/libusb
-I.. -fvisibility=hidden -std=gnu99 -Wall -Wundef -Wunused
-Wstrict-prototypes -Werror-implicit-function-declaration
-Wno-pointer-sign -Wshadow -g -O2 -MT libusb_1_0_la-io.lo -MD -MP -MF
.deps/libusb_1_0_la-io.Tpo -c ../../libusbx/libusb/io.c  -fno-common
-DPIC -o .libs/libusb_1_0_la-io.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../../libusbx/libusb
-I.. -fvisibility=hidden -std=gnu99 -Wall -Wundef -Wunused
-Wstrict-prototypes -Werror-implicit-function-declaration
-Wno-pointer-sign -Wshadow -g -O2 -MT libusb_1_0_la-io.lo -MD -MP -MF
.deps/libusb_1_0_la-io.Tpo -c ../../libusbx/libusb/io.c -o
libusb_1_0_la-io.o >/dev/null 2>&1
mv -f .deps/libusb_1_0_la-io.Tpo .deps/libusb_1_0_la-io.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H
-I. -I../../libusbx/libusb -I..    -fvisibility=hidden -std=gnu99
-Wall -Wundef -Wunused -Wstrict-prototypes
-Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow  -g
-O2 -MT libusb_1_0_la-sync.lo -MD -MP -MF .deps/libusb_1_0_la-sync.Tpo
-c -o libusb_1_0_la-sync.lo `test -f 'sync.c' || echo
'../../libusbx/libusb/'`sync.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../../libusbx/libusb
-I.. -fvisibility=hidden -std=gnu99 -Wall -Wundef -Wunused
-Wstrict-prototypes -Werror-implicit-function-declaration
-Wno-pointer-sign -Wshadow -g -O2 -MT libusb_1_0_la-sync.lo -MD -MP
-MF .deps/libusb_1_0_la-sync.Tpo -c ../../libusbx/libusb/sync.c
-fno-common -DPIC -o .libs/libusb_1_0_la-sync.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../../libusbx/libusb
-I.. -fvisibility=hidden -std=gnu99 -Wall -Wundef -Wunused
-Wstrict-prototypes -Werror-implicit-function-declaration
-Wno-pointer-sign -Wshadow -g -O2 -MT libusb_1_0_la-sync.lo -MD -MP
-MF .deps/libusb_1_0_la-sync.Tpo -c ../../libusbx/libusb/sync.c -o
libusb_1_0_la-sync.o >/dev/null 2>&1
mv -f .deps/libusb_1_0_la-sync.Tpo .deps/libusb_1_0_la-sync.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H
-I. -I../../libusbx/libusb -I..    -fvisibility=hidden -std=gnu99
-Wall -Wundef -Wunused -Wstrict-prototypes
-Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow  -g
-O2 -MT libusb_1_0_la-darwin_usb.lo -MD -MP -MF
.deps/libusb_1_0_la-darwin_usb.Tpo -c -o libusb_1_0_la-darwin_usb.lo
`test -f 'os/darwin_usb.c' || echo
'../../libusbx/libusb/'`os/darwin_usb.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../../libusbx/libusb
-I.. -fvisibility=hidden -std=gnu99 -Wall -Wundef -Wunused
-Wstrict-prototypes -Werror-implicit-function-declaration
-Wno-pointer-sign -Wshadow -g -O2 -MT libusb_1_0_la-darwin_usb.lo -MD
-MP -MF .deps/libusb_1_0_la-darwin_usb.Tpo -c
../../libusbx/libusb/os/darwin_usb.c  -fno-common -DPIC -o
.libs/libusb_1_0_la-darwin_usb.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../../libusbx/libusb
-I.. -fvisibility=hidden -std=gnu99 -Wall -Wundef -Wunused
-Wstrict-prototypes -Werror-implicit-function-declaration
-Wno-pointer-sign -Wshadow -g -O2 -MT libusb_1_0_la-darwin_usb.lo -MD
-MP -MF .deps/libusb_1_0_la-darwin_usb.Tpo -c
../../libusbx/libusb/os/darwin_usb.c -o libusb_1_0_la-darwin_usb.o
>/dev/null 2>&1
mv -f .deps/libusb_1_0_la-darwin_usb.Tpo .deps/libusb_1_0_la-darwin_usb.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile clang -DHAVE_CONFIG_H
-I. -I../../libusbx/libusb -I..    -fvisibility=hidden -std=gnu99
-Wall -Wundef -Wunused -Wstrict-prototypes
-Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow  -g
-O2 -MT libusb_1_0_la-threads_posix.lo -MD -MP -MF
.deps/libusb_1_0_la-threads_posix.Tpo -c -o
libusb_1_0_la-threads_posix.lo `test -f 'os/threads_posix.c' || echo
'../../libusbx/libusb/'`os/threads_posix.c
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../../libusbx/libusb
-I.. -fvisibility=hidden -std=gnu99 -Wall -Wundef -Wunused
-Wstrict-prototypes -Werror-implicit-function-declaration
-Wno-pointer-sign -Wshadow -g -O2 -MT libusb_1_0_la-threads_posix.lo
-MD -MP -MF .deps/libusb_1_0_la-threads_posix.Tpo -c
../../libusbx/libusb/os/threads_posix.c  -fno-common -DPIC -o
.libs/libusb_1_0_la-threads_posix.o
libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../../libusbx/libusb
-I.. -fvisibility=hidden -std=gnu99 -Wall -Wundef -Wunused
-Wstrict-prototypes -Werror-implicit-function-declaration
-Wno-pointer-sign -Wshadow -g -O2 -MT libusb_1_0_la-threads_posix.lo
-MD -MP -MF .deps/libusb_1_0_la-threads_posix.Tpo -c
../../libusbx/libusb/os/threads_posix.c -o
libusb_1_0_la-threads_posix.o >/dev/null 2>&1
mv -f .deps/libusb_1_0_la-threads_posix.Tpo
.deps/libusb_1_0_la-threads_posix.Plo
/bin/sh ../libtool  --tag=CC   --mode=link clang -fvisibility=hidden
-std=gnu99 -Wall -Wundef -Wunused -Wstrict-prototypes
-Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow  -g
-O2 -version-info 1:0:1 -no-undefined -Wl,-prebind  -o libusb-1.0.la
-rpath /usr/local/Cellar/libusb/HEAD/lib libusb_1_0_la-core.lo
libusb_1_0_la-descriptor.lo libusb_1_0_la-io.lo libusb_1_0_la-sync.lo
libusb_1_0_la-darwin_usb.lo libusb_1_0_la-threads_posix.lo  -lobjc
-Wl,-framework,IOKit -Wl,-framework,CoreFoundation
libtool: link: clang -dynamiclib  -o .libs/libusb-1.0.0.dylib
.libs/libusb_1_0_la-core.o .libs/libusb_1_0_la-descriptor.o
.libs/libusb_1_0_la-io.o .libs/libusb_1_0_la-sync.o
.libs/libusb_1_0_la-darwin_usb.o .libs/libusb_1_0_la-threads_posix.o
-lobjc  -O2 -Wl,-prebind -Wl,-framework -Wl,IOKit -Wl,-framework
-Wl,CoreFoundation   -install_name
/usr/local/Cellar/libusb/HEAD/lib/libusb-1.0.0.dylib
-compatibility_version 2 -current_version 2.0 -Wl,-single_module
libtool: link: (cd ".libs" && rm -f "libusb-1.0.dylib" && ln -s
"libusb-1.0.0.dylib" "libusb-1.0.dylib")
libtool: link: ar cru .libs/libusb-1.0.a  libusb_1_0_la-core.o
libusb_1_0_la-descriptor.o libusb_1_0_la-io.o libusb_1_0_la-sync.o
libusb_1_0_la-darwin_usb.o libusb_1_0_la-threads_posix.o
libtool: link: ranlib .libs/libusb-1.0.a
libtool: link: ( cd ".libs" && rm -f "libusb-1.0.la" && ln -s
"../libusb-1.0.la" "libusb-1.0.la" )
Making all in doc
make[2]: Nothing to be done for `all'.
Making all in examples
clang -DHAVE_CONFIG_H -I. -I../../libusbx/examples -I..
-I../../libusbx/libusb  -std=gnu99 -Wall -Wundef -Wunused
-Wstrict-prototypes -Werror-implicit-function-declaration
-Wno-pointer-sign -Wshadow -g -O2 -MT listdevs.o -MD -MP -MF
.deps/listdevs.Tpo -c -o listdevs.o ../../libusbx/examples/listdevs.c
mv -f .deps/listdevs.Tpo .deps/listdevs.Po
/bin/sh ../libtool  --tag=CC   --mode=link clang -std=gnu99 -Wall
-Wundef -Wunused -Wstrict-prototypes
-Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow -g
-O2   -o listdevs listdevs.o ../libusb/libusb-1.0.la -lobjc
-Wl,-framework,IOKit -Wl,-framework,CoreFoundation
libtool: link: clang -std=gnu99 -Wall -Wundef -Wunused
-Wstrict-prototypes -Werror-implicit-function-declaration
-Wno-pointer-sign -Wshadow -g -O2 -o .libs/listdevs listdevs.o
-Wl,-framework -Wl,IOKit -Wl,-framework -Wl,CoreFoundation
../libusb/.libs/libusb-1.0.dylib -lobjc
clang: warning: argument unused during compilation: '-std=gnu99'
clang -DHAVE_CONFIG_H -I. -I../../libusbx/examples -I..
-I../../libusbx/libusb  -std=gnu99 -Wall -Wundef -Wunused
-Wstrict-prototypes -Werror-implicit-function-declaration
-Wno-pointer-sign -Wshadow -g -O2 -MT xusb.o -MD -MP -MF
.deps/xusb.Tpo -c -o xusb.o ../../libusbx/examples/xusb.c
mv -f .deps/xusb.Tpo .deps/xusb.Po
/bin/sh ../libtool  --tag=CC   --mode=link clang -std=gnu99 -Wall
-Wundef -Wunused -Wstrict-prototypes
-Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow -g
-O2   -o xusb xusb.o ../libusb/libusb-1.0.la -lobjc
-Wl,-framework,IOKit -Wl,-framework,CoreFoundation
libtool: link: clang -std=gnu99 -Wall -Wundef -Wunused
-Wstrict-prototypes -Werror-implicit-function-declaration
-Wno-pointer-sign -Wshadow -g -O2 -o .libs/xusb xusb.o -Wl,-framework
-Wl,IOKit -Wl,-framework -Wl,CoreFoundation
../libusb/.libs/libusb-1.0.dylib -lobjc
clang: warning: argument unused during compilation: '-std=gnu99'
clang -DHAVE_CONFIG_H -I. -I../../libusbx/examples -I..
-I../../libusbx/libusb  -std=gnu99 -Wall -Wundef -Wunused
-Wstrict-prototypes -Werror-implicit-function-declaration
-Wno-pointer-sign -Wshadow -g -O2 -MT dpfp.o -MD -MP -MF
.deps/dpfp.Tpo -c -o dpfp.o ../../libusbx/examples/dpfp.c
mv -f .deps/dpfp.Tpo .deps/dpfp.Po
/bin/sh ../libtool  --tag=CC   --mode=link clang -std=gnu99 -Wall
-Wundef -Wunused -Wstrict-prototypes
-Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow -g
-O2   -o dpfp dpfp.o ../libusb/libusb-1.0.la -lobjc
-Wl,-framework,IOKit -Wl,-framework,CoreFoundation
libtool: link: clang -std=gnu99 -Wall -Wundef -Wunused
-Wstrict-prototypes -Werror-implicit-function-declaration
-Wno-pointer-sign -Wshadow -g -O2 -o .libs/dpfp dpfp.o -Wl,-framework
-Wl,IOKit -Wl,-framework -Wl,CoreFoundation
../libusb/.libs/libusb-1.0.dylib -lobjc
clang: warning: argument unused during compilation: '-std=gnu99'
clang -DHAVE_CONFIG_H -I. -I../../libusbx/examples -I..
-I../../libusbx/libusb   -std=gnu99 -Wall -Wundef -Wunused
-Wstrict-prototypes -Werror-implicit-function-declaration
-Wno-pointer-sign -Wshadow -g -O2 -MT dpfp_threaded-dpfp_threaded.o
-MD -MP -MF .deps/dpfp_threaded-dpfp_threaded.Tpo -c -o
dpfp_threaded-dpfp_threaded.o `test -f 'dpfp_threaded.c' || echo
'../../libusbx/examples/'`dpfp_threaded.c
mv -f .deps/dpfp_threaded-dpfp_threaded.Tpo .deps/dpfp_threaded-dpfp_threaded.Po
/bin/sh ../libtool  --tag=CC   --mode=link clang  -std=gnu99 -Wall
-Wundef -Wunused -Wstrict-prototypes
-Werror-implicit-function-declaration -Wno-pointer-sign -Wshadow -g
-O2   -o dpfp_threaded dpfp_threaded-dpfp_threaded.o
../libusb/libusb-1.0.la -lobjc -Wl,-framework,IOKit
-Wl,-framework,CoreFoundation
libtool: link: clang -std=gnu99 -Wall -Wundef -Wunused
-Wstrict-prototypes -Werror-implicit-function-declaration
-Wno-pointer-sign -Wshadow -g -O2 -o .libs/dpfp_threaded
dpfp_threaded-dpfp_threaded.o -Wl,-framework -Wl,IOKit -Wl,-framework
-Wl,CoreFoundation  ../libusb/.libs/libusb-1.0.dylib -lobjc
clang: warning: argument unused during compilation: '-std=gnu99'
make[2]: Nothing to be done for `all-am'.




-- 
Xiaofan

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to