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

[Modular CLI]: modular update mojo error: duplicate or unknown struct parameter name: cpu #1024

Closed
abtzz opened this issue Oct 9, 2023 · 4 comments
Labels
modular-cli modular tool issues mojo-repo Tag all issues with this label

Comments

@abtzz
Copy link

abtzz commented Oct 9, 2023

Issue description

modular update mojo error: duplicate or unknown struct parameter name: cpu

Steps to reproduce

modular update mojo

loc("#M.target<triple = \22x86_64-unknown-linux\22, cpu = \22znver3\22, features = \22+64bit,+adx,+aes,+avx,+avx2,+bmi,+bmi2,+clflushopt,+clwb,+clzero,+cmov,+crc32,+cx16,+cx8,+f16c,+fma,+fsgsbase,+fxsr,+invpcid,+lzcnt,+mmx,+movbe,+mwaitx,+pclmul,+pku,+popcnt,+prfchw,+rdpid,+rdpru,+rdrnd,+rdseed,+sahf,+sha,+shstk,+sse,+sse2,+sse3,+sse4.1,+sse4.2,+sse4a,+ssse3,+vaes,+vpclmulqdq,+wbnoinvd,+x87,+xsave,+xsavec,+xsaveopt,+xsaves\22, data_layout = \22e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128\22, simd_bit_width = 256>":1:50): error: duplicate or unknown struct parameter name: cpu
Please submit a bug report to https://github.com/modularml/mojo/issues and include the crash backtrace along with all the relevant source codes.
Stack dump:
0. Program arguments: modular update mojo
#0 0x000055d6f5616bb7 (/usr/bin/modular+0x4eebb7)
#1 0x000055d6f561486e (/usr/bin/modular+0x4ec86e)
#2 0x000055d6f561727f (/usr/bin/modular+0x4ef27f)
#3 0x00007ff455242520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#4 0x000055d6f59d4434 (/usr/bin/modular+0x8ac434)
#5 0x000055d6f59d3abf (/usr/bin/modular+0x8ababf)
#6 0x000055d6f55f26f4 (/usr/bin/modular+0x4ca6f4)
#7 0x000055d6f55f1ada (/usr/bin/modular+0x4c9ada)
#8 0x000055d6f55d8ec3 (/usr/bin/modular+0x4b0ec3)
#9 0x00007ff455229d90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#10 0x00007ff455229e40 call_init ./csu/../csu/libc-start.c:128:20
#11 0x00007ff455229e40 __libc_start_main ./csu/../csu/libc-start.c:379:5
#12 0x000055d6f55d855e (/usr/bin/modular+0x4b055e)
Segmentation fault (core dumped)

Version Info

modular 0.2.0 (355ea9c0)



Distributor ID:	Ubuntu
Description:	Ubuntu 22.04 LTS
Release:	22.04
Codename:	jammy



Architecture:            x86_64
  CPU op-mode(s):        32-bit, 64-bit
  Address sizes:         48 bits physical, 48 bits virtual
  Byte Order:            Little Endian
CPU(s):                  16
  On-line CPU(s) list:   0-15
Vendor ID:               AuthenticAMD
  Model name:            AMD Ryzen 7 5800U with Radeon Graphics
    CPU family:          25
    Model:               80
    Thread(s) per core:  2
    Core(s) per socket:  8
@abtzz abtzz added the modular-cli modular tool issues label Oct 9, 2023
@gryznar
Copy link
Contributor

gryznar commented Oct 9, 2023

What version of Mojo you are using? 0.3.1 has rebuilt instalator, so if you are upgrading from version before 0.3.1 (as stated here: https://docs.modular.com/mojo/changelog.html#v0.4.0-2023-10-05) you have to update Modular first and then clean Mojo before update:

sudo apt-get update
sudo apt-get install modular
modular clean
modular install mojo

@HJLebbink
Copy link

I had the same, modular clean fixed it

@elephantum
Copy link

@HJLebbink thanks, that worked for me as well!

(a bit strange to run modular clean on clean setup, but it worked)

@ematejska ematejska added the mojo-repo Tag all issues with this label label Apr 29, 2024
@jackos
Copy link
Collaborator

jackos commented Jun 6, 2024

There were some problems updating prior releases, should no longer be a problem

@jackos jackos closed this as completed Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
modular-cli modular tool issues mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

6 participants