This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

clang: error: argument unused during compilation: ‘-g’

0

I am on FreeBSD 6.3 using clang 3.1 to build wireshark 1.11.0-SVN-52370.

gmake[3]: Entering directory /usr/home/timpr/workspace/wireshark-1.11.0-SVN-52370/epan/wmem' CCLD wmem_test clang: error: argument unused during compilation: '-g' gmake[3]: *** [wmem_test] Error 1 gmake[3]: Leaving directory/usr/home/timpr/workspace/wireshark-1.11.0-SVN-52370/epan/wmem'

I assume the root cause of the problem is how LINK is defined, using a couple CFLAGS. Removing them resolves that problem.

LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ $(AM_LDFLAGS) $(LDFLAGS) -o [email protected]

asked 08 Oct '13, 13:14

tdprime's gravatar image

tdprime
1222
accept rate: 0%

Silly question, perhaps, but are you using configure? There's a specific test that checks whether the compiler accepts -g that should have run.

(09 Oct '13, 08:47) beroset