Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues compiling gdb-ve on NEC Aurora Tsubasa #3

Open
cvonelm opened this issue Apr 19, 2023 · 2 comments
Open

Issues compiling gdb-ve on NEC Aurora Tsubasa #3

cvonelm opened this issue Apr 19, 2023 · 2 comments

Comments

@cvonelm
Copy link

cvonelm commented Apr 19, 2023

I have been trying to compile GDB for the NEC Aurora platform, particularly to obtain a libbfd for use with the NEC platform.

However, I have only managed to produce a bfd for the x86 platform from the code here yet.

Could someone tell me the basic steps for compiling this repository for the NEC platform?

@efocht
Copy link

efocht commented Apr 19, 2023

Sorry, it looks like we're missing the corresponding "meta" package to gdb, which contains a spec file. I hope my colleagues will upload that for the sake of completeness.

There are source rpms in the "normal" repositories, though, one of them is here:
https://sxauroratsubasa.sakura.ne.jp/repos/TSUBASA-repo_el8.6/veos/3.0.1/Source/gdb-ve-7.12.1-7.el8.src.rpm

If you unpack that, you get a spec file which should help you with the build (or rebuild the whole thing). You'll need some VE specific packages, like veos-devel.

Here are some excerpts which should help you:
Requirements for building:

BuildRequires: readline-devel >= 6.2-4
BuildRequires: ncurses-devel texinfo gettext flex bison
BuildRequires: expat-devel
BuildRequires: zlib-devel
BuildRequires: libstdc++
BuildRequires: texinfo-tex
BuildRequires: texlive-collection-latexrecommended
BuildRequires: info
BuildRequires: gzip
BuildRequires: veos-devel
%if 0%{?rhel} == 8
BuildRequires: python36-devel
%else
BuildRequires: python-devel
%endif
Requires: readline
Requires: zlib
Requires: expat
Requires: veos-libveptrace

And the configure step:

../configure                                            \
        --prefix=%{prefix}                              \
        --infodir=%{prefix}/share/info                  \
        --target=ve-nec-linux                           \
        --enable-gdb-build-warnings=,-Wno-unused        \
        --disable-nls                                   \
        --disable-tui                                   \
        --program-prefix=""                             \
        --with-expat                                    \
        --with-system-readline                          \
        --with-system-zlib                              \
        --enable-64-bit-bfd                             \
        --disable-sim                                   \
        --disable-rpath                                 \
        --sysconfdir=%{_sysconfdir}                     \
%if 0%{?rhel} == 8
        --with-python=python3.6                         \
%endif
        --with-system-gdbinit=%{_sysconfdir}/gdbinit

make %{?_smp_mflags} LDFLAGS="$LDFLAGS $FPROFILE_CFLAGS"

@rschoene
Copy link

rschoene commented Jan 15, 2024

Unfortunately, from the sources I do not see how one would build libbfd and libiberty that are included in
https://sxauroratsubasa.sakura.ne.jp/repos/TSUBASA-repo_el8.6/veos/3.0.1/Source/gdb-ve-7.12.1-7.el8.src.rpm
or
https://sxauroratsubasa.sakura.ne.jp/repos/TSUBASA-repo_el8.6/veos/3.1.0/Source/gdb-ve-7.12.1-8.el8.src.rpm
These are also not in any of the packages.
@efocht Any hints?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants