Bug 27110 - gdb 10.1 fails to build on 32-bit Ubuntu Xenial
Summary: gdb 10.1 fails to build on 32-bit Ubuntu Xenial
Status: RESOLVED WORKSFORME
Alias: None
Product: gdb
Classification: Unclassified
Component: build (show other bugs)
Version: 10.1
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-24 00:03 UTC by mephi42
Modified: 2023-08-28 13:57 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed: 2022-04-15 00:00:00
Project(s) to access:
ssh public key:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mephi42 2020-12-24 00:03:55 UTC
I'm just doing configure + make.  The following errors occur:


1)
In file included from ./../gdbsupport/gdb_string_view.h:49:0,
                 from ./../gdbsupport/common-utils.h:46,
                 from ./../gdbsupport/common-defs.h:125,
                 from ../gdb/nat/amd64-linux-siginfo.c:21:
./../gdbsupport/gdb_assert.h:27:33: error: static assertion failed: 
 #define gdb_static_assert(expr) static_assert (expr, "")


2)
linux-amd64-ipa.cc: In function 'const target_desc* get_ipa_tdesc(int)':
linux-amd64-ipa.cc:210:60: error: 'amd64_linux_read_description' was not declared in this scope
   return amd64_linux_read_description (idx2mask[idx], false);


3)
amd64-linux-nat.c:71:3: error: 'RAX' was not declared in this scope
   RAX * 8, RCX * 8,  /* %eax, %ecx */


4)
In file included from amd64-linux-nat.c:26:0:
amd64-linux-nat.c: In function 'ps_err_e ps_get_thread_area(ps_prochandle*, lwpid_t, int, void**)':
amd64-linux-nat.c:367:42: error: 'struct user_regs_struct' has no member named 'fs_base'
       offsetof (struct user_regs_struct, fs_base), 0);


Configuring with --target=i686-linux-gnu resolves this issue.
Comment 1 mephi42 2020-12-24 00:45:57 UTC
A few more things:

1) This is 32-bit Ubuntu Xenial running in Docker on x86_64 kernel.
2) uname -m says x86_64.
3) --host=i686-linux-gnu helps as well.
Comment 2 Tom Tromey 2022-04-08 00:06:53 UTC
Is this still an issue?
I'm surprised it doesn't build here, my first inclination
is to say something's weird in the setup.
Or maybe config.guess is guessing wrong for some reason.
Comment 3 Tom Tromey 2023-08-28 13:57:48 UTC
A year without a reply.