This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/83421] New: GCC give better error when 32bit x86 libs not found


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83421

            Bug ID: 83421
           Summary: GCC give better error when 32bit x86 libs not found
           Product: gcc
           Version: 5.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jg at jguk dot org
  Target Milestone: ---

Hello

I've included below build output. I'm using a x86_64 machine, and testing -m32

Can a more appropriate message be provided?  The solution is to install
gcc-multilib package on ubuntu... but a clearer message would be helpful...

jonny@ubuntu1404:~/code$ gcc -O2 -Wall -Wextra -Wpedantic -m32 -o main main.c
In file included from /usr/include/stdio.h:27:0,
                 from main.c:3:
/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or
directory
compilation terminated.



//gcc -O2 -Wall -Wextra -Wpedantic -m32 -o main main.c

#include <stdio.h>

int main (void)
{
    size_t value = 0;
    size_t result = value - 1;

    printf("result: %zu\n", result);

    return 0;
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]