[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Help: 'g++ -m32 ...' does not find <asm/socket.h>



Using Debian unstable and default g++ (4.8.2), I am recently unable to build a project that was building a few weeks ago.

---BEGIN SNIPPET FROM BUILD LOG---
libtool: compile:  g++ ... -m32 -fmessage-length=0 -O0 -fPIC -ggdb3 -fvar-tracking-assignments -W -Wall -Wconversion -Wshadow -Wcast-align -Wwrite-strings -Wpointer-arith -MT bar.lo -MD -MP -MF .deps/bar.Tpo -c bar.cpp -o bar.o
In file included from /usr/include/sys/socket.h:39:0,
                 from /usr/include/netinet/in.h:24,
                 from /usr/include/arpa/inet.h:22,
...
/usr/include/bits/socket.h:343:24: fatal error: asm/socket.h: No such file or directory
 #include <asm/socket.h>
                        ^
compilation terminated.
---END SNIPPET FROM BUILD LOG---

% uname -a
Linux foo 3.12-1-amd64 #1 SMP Debian 3.12.6-2 (2013-12-29) x86_64 GNU/Linux

% dpkg -S asm/socket.h
linux-headers-3.12-1-common: /usr/src/linux-headers-3.12-1-common/arch/x86/include/uapi/asm/socket.h
linux-libc-dev:amd64: /usr/include/x86_64-linux-gnu/asm/socket.h
linux-headers-3.11-2-common: /usr/src/linux-headers-3.11-2-common/arch/x86/include/uapi/asm/socket.h

% dpkg -l 'lib*32*dev' | grep ii | awk '{print $2}'
lib32gcc-4.8-dev
lib32readline6-dev
lib32stdc++-4.8-dev
lib32tinfo-dev
libx32gcc-4.8-dev
libx32stdc++-4.8-dev

Any help would be appreciated.

--
Thomas E. Vaughan

Reply to: