Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

error: ‘scm_new_port_table_entry’ was not declared in this scope #82

Closed
buttercutter opened this issue Jun 1, 2017 · 9 comments
Closed

Comments

@buttercutter
Copy link

I am having build errors regarding riscv-binutils-gdb

The errors are similar to the one below;

/home/promach/Documents/Grive/Personal/CPU/RISC-V/rocket-chip/riscv-tools/riscv-gnu-toolchain/build/../riscv-binutils-gdb/gdb/guile/scm-ports.c:139:10: error: ‘scm_new_port_table_entry’ was not declared in this scope
   port = scm_new_port_table_entry (port_type);
          ^~~~~~~~~~~~~~~~~~~~~~~~

I have attached the error log file in error.txt below.

error.txt

My system configuration is as follows:
Arch Linux, gcc (GCC) 7.1.1 20170528 , GNU ld (GNU Binutils) 2.28.0.20170506

@aswaterman
Copy link
Contributor

This isn't a problem in binutils; rather, it is a Guile library version mismatch. See riscv-collab/riscv-gnu-toolchain#244 and riscv-collab/riscv-gnu-toolchain#247

@kyrias
Copy link

kyrias commented Jun 2, 2017

Specifically the workaround with riscv-collab/riscv-gnu-toolchain#247 would be to either install a compatible Guile version and specify that, or specify --with-guile=no, when building riscv-gnu-toolchain.

@buttercutter
Copy link
Author

@kyrias Strange, I do not understand why is your pull request not merged.

I have tried with ./build.sh --with-guile=no , I suppose this is not the correct way to do so.

Do I need to nodify the 3 files in riscv-gnu-toolchain on my own ?

@buttercutter
Copy link
Author

buttercutter commented Jun 3, 2017

@kyrias sorry for multiple posting of comments. I am now using the merged commit and the error still persists. I have tried building toolchain with and without using autoreconf, I have no idea what I have missed out. Do you have any idea ?

@kyrias
Copy link

kyrias commented Jun 3, 2017

Add --with-guile=no to the riscv-gnu-toolchain line in build.sh.

@buttercutter
Copy link
Author

buttercutter commented Jun 3, 2017

adding that to build.sh also does not work.
My system guile version is guile (GNU Guile) 2.2.2

build_project riscv-gnu-toolchain --prefix=$RISCV --with-guile=no

build.txt

@kyrias
Copy link

kyrias commented Jun 3, 2017

Are you entirely certain that the riscv-gnu-toolchain submodule is in fact the one with it? And what exactly does the build.sh line look like now?

@kyrias
Copy link

kyrias commented Jun 5, 2017

@ProMach Could you try running git -C riscv-gnu-toolchain describe --long --tags from the riscv-tools directory?

@buttercutter
Copy link
Author

@kyrias Thanks. It is solved.

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

No branches or pull requests

3 participants