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

Issue when making Buffers and dot2vhdl #4

Open
BowenKwan opened this issue Sep 17, 2020 · 2 comments
Open

Issue when making Buffers and dot2vhdl #4

BowenKwan opened this issue Sep 17, 2020 · 2 comments

Comments

@BowenKwan
Copy link

BowenKwan commented Sep 17, 2020

I was trying to make the buffer and dot2vhdl, however, I have faced some weird error.

For buffer, I got conflicts between string.h and graphviz/cdt.h

/usr/include/string.h:65:12: error: conflicting declaration of ‘int memcmp(const void*, const void*, size_t)’ with ‘C’ linkage
 extern int memcmp (const void *__s1, const void *__s2, size_t __n)
            ^~~~~~
In file included from /usr/include/graphviz/cgraph.h:17,
                 from src/DFnetlist_read_dot.cpp:4:
/usr/include/graphviz/cdt.h:242:13: note: previous declaration with ‘C++’ linkage
 extern int  memcmp _ARG_((const Void_t*, const Void_t*, size_t));
             ^~~~~~

For now I manually commented out the relevant line in graphviz/cdt.h . Is is ok to do so? After the make, I have a file name "buffers" in the bin folder, is this what I susposed to get?

For dot2vhdl, I got the following erro message

g++ -O3 -g -Wall -static -fpermissive     src/table_printer.o src/dot_parser.o src/vhdl_writer.o src/lsq_generator.o src/checks.o src/eda_if.o src/reports.o src/string_utils.o src/sys_utils.o src/dot2vhdl.o -o bin/dot2vhdl  
/opt/rh/devtoolset-8/root/usr/libexec/gcc/x86_64-redhat-linux/8/ld: cannot find -lm
/opt/rh/devtoolset-8/root/usr/libexec/gcc/x86_64-redhat-linux/8/ld: cannot find -lc
collect2: error: ld returned 1 exit status
make: *** [Makefile:62: bin/dot2vhdl] Error 1

I do not see -lc in the Makefile, and the 2 -lm are both commented out. Do you have any idea why -lm and -lc are needed and how I can get those during the make?

I am now running dynamatic on Centos 7. Latest version of Graphviz available is 2.30.1. The gcc is of version 8.3.1, from using devtoolset-8.

Thank you very much for your help!

@VPTT VPTT mentioned this issue Dec 4, 2020
@Andrea-Guerrieri
Copy link
Collaborator

Hi,

Sorry for the long lag about this.
There is any chance that you can use Ubuntu 18.4, or the VM available on dynamatic.epfl.ch?

Andrea

@Prithvi-Velicheti
Copy link

Prithvi-Velicheti commented Feb 4, 2022

Removing "static" in CFLAGS of makefile helped me in building "dot2vhdl" in RHEL8 and the above problem can be solved by it.

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