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

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



On 2014-01-02 19:22 +0100, Thomas Vaughan wrote:

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

Install gcc-multilib, it includes the necessary symlink
/usr/include/asm -> x86_64-linux-gnu/asm for "g++ -m32" to work.

Cheers,
       Sven


Reply to: