litex-hub / linux-on-litex-vexriscv

Linux on LiteX-VexRiscv
BSD 2-Clause "Simplified" License
550 stars 174 forks source link

ERROR:SoC:LOCALIP1 Constant already declared #394

Closed jjagielo closed 1 week ago

jjagielo commented 2 weeks ago

I am running:

$ ./make.py --board=arty_a7 --cpu-count=1 --build

and I am getting the following error (Same as the title):

ERROR:SoC:LOCALIP1 Constant already declared.

Is there something I need to manually change in my environment to remove this already declared constant?

jjagielo commented 2 weeks ago

I am also now getting the following error, after following this thread: https://gist.github.com/ibndias/6f44d1d55251324f5b873436ad290ab3?permalink_comment_id=4938520#gistcomment-4938520

jason@jason-VirtualBox:~/Desktop/LiteX/linux-on-litex-vexriscv$ ./make.py --board=arty_a7 --cpu-count=1 --build
Traceback (most recent call last):
  File "/home/jason/Desktop/LiteX/linux-on-litex-vexriscv/./make.py", line 844, in <module>
    main()
  File "/home/jason/Desktop/LiteX/linux-on-litex-vexriscv/./make.py", line 733, in main
    board = supported_boards[board_name]()
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jason/Desktop/LiteX/linux-on-litex-vexriscv/./make.py", line 76, in __init__
    from litex_boards.targets import arty
ImportError: cannot import name 'arty' from 'litex_boards.targets' (/usr/local/lib/python3.12/dist-packages/litex_boards-2024.4-py3.12.egg/litex_boards/targets/__init__.py)
trabucayre commented 2 weeks ago

Fixed by 6f65868 Since some time soc/add_ethernet add localip/remoteip constants automatically when parameter are not None (here only local_ip is provided so no more need to do that in soc_linux.py)

jjagielo commented 1 week ago

Did a pull from the master branch and everything is resolved, thanks!