Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

[evm] Compile error "error: Invalid value "ethereum" for '--arch <ARCHITECTURE>' #61

Closed
junkil-park opened this issue Apr 21, 2022 · 1 comment
Projects

Comments

@junkil-park
Copy link
Collaborator

junkil-park commented Apr 21, 2022

$ npx hardhat compile
Nothing to compile
Building 14 Move packages...

Failed to build /Users/jkpark/Work/move/language/evm/hardhat-examples/contracts/Native
error: Invalid value "ethereum" for '--arch <ARCHITECTURE>': Unrecognized architecture ethereum -- only "move", "async-move" are supported

For more information try --help


Failed to build /Users/jkpark/Work/move/language/evm/hardhat-examples/contracts/Greeter
error: Invalid value "ethereum" for '--arch <ARCHITECTURE>': Unrecognized architecture ethereum -- only "move", "async-move" are supported

For more information try --help


Failed to build /Users/jkpark/Work/move/language/evm/hardhat-examples/contracts/FortyTwo
error: Invalid value "ethereum" for '--arch <ARCHITECTURE>': Unrecognized architecture ethereum -- only "move", "async-move" are supported

For more information try --help


Failed to build /Users/jkpark/Work/move/language/evm/hardhat-examples/contracts/ExternalCall
error: Invalid value "ethereum" for '--arch <ARCHITECTURE>': Unrecognized architecture ethereum -- only "move", "async-move" are supported

For more information try --help


Failed to build /Users/jkpark/Work/move/language/evm/hardhat-examples/contracts/Event
error: Invalid value "ethereum" for '--arch <ARCHITECTURE>': Unrecognized architecture ethereum -- only "move", "async-move" are supported

For more information try --help


Failed to build /Users/jkpark/Work/move/language/evm/hardhat-examples/contracts/ERC721Tradable
error: Invalid value "ethereum" for '--arch <ARCHITECTURE>': Unrecognized architecture ethereum -- only "move", "async-move" are supported

For more information try --help


Failed to build /Users/jkpark/Work/move/language/evm/hardhat-examples/contracts/ERC721Mock
error: Invalid value "ethereum" for '--arch <ARCHITECTURE>': Unrecognized architecture ethereum -- only "move", "async-move" are supported

For more information try --help


Failed to build /Users/jkpark/Work/move/language/evm/hardhat-examples/contracts/ERC20Mock
error: Invalid value "ethereum" for '--arch <ARCHITECTURE>': Unrecognized architecture ethereum -- only "move", "async-move" are supported

For more information try --help


Failed to build /Users/jkpark/Work/move/language/evm/hardhat-examples/contracts/ERC20DecimalsMock
error: Invalid value "ethereum" for '--arch <ARCHITECTURE>': Unrecognized architecture ethereum -- only "move", "async-move" are supported

For more information try --help


Failed to build /Users/jkpark/Work/move/language/evm/hardhat-examples/contracts/ERC1155Tradable
error: Invalid value "ethereum" for '--arch <ARCHITECTURE>': Unrecognized architecture ethereum -- only "move", "async-move" are supported

For more information try --help


Failed to build /Users/jkpark/Work/move/language/evm/hardhat-examples/contracts/ERC1155Mock
error: Invalid value "ethereum" for '--arch <ARCHITECTURE>': Unrecognized architecture ethereum -- only "move", "async-move" are supported

For more information try --help


Failed to build /Users/jkpark/Work/move/language/evm/hardhat-examples/contracts/Caller
error: Invalid value "ethereum" for '--arch <ARCHITECTURE>': Unrecognized architecture ethereum -- only "move", "async-move" are supported

For more information try --help


Failed to build /Users/jkpark/Work/move/language/evm/hardhat-examples/contracts/Revert
error: Invalid value "ethereum" for '--arch <ARCHITECTURE>': Unrecognized architecture ethereum -- only "move", "async-move" are supported

For more information try --help


Failed to build /Users/jkpark/Work/move/language/evm/hardhat-examples/contracts/Token
error: Invalid value "ethereum" for '--arch <ARCHITECTURE>': Unrecognized architecture ethereum -- only "move", "async-move" are supported

For more information try --help

An unexpected error occurred:

Error: Failed to build one or more Move packages
    at SimpleTaskDefinition.action (/Users/jkpark/Work/move/language/evm/hardhat-move/src/index.ts:388:19)
    at Environment._runTaskDefinition (/Users/jkpark/Work/move/language/evm/hardhat-examples/node_modules/hardhat/src/internal/core/runtime-environment.ts:219:14)
    at Environment.run (/Users/jkpark/Work/move/language/evm/hardhat-examples/node_modules/hardhat/src/internal/core/runtime-environment.ts:131:14)
    at SimpleTaskDefinition.action (/Users/jkpark/Work/move/language/evm/hardhat-examples/node_modules/hardhat/src/builtin-tasks/compile.ts:1422:7)
    at Environment._runTaskDefinition (/Users/jkpark/Work/move/language/evm/hardhat-examples/node_modules/hardhat/src/internal/core/runtime-environment.ts:219:14)
    at Environment.run (/Users/jkpark/Work/move/language/evm/hardhat-examples/node_modules/hardhat/src/internal/core/runtime-environment.ts:131:14)
    at main (/Users/jkpark/Work/move/language/evm/hardhat-examples/node_modules/hardhat/src/internal/cli/cli.ts:218:5)
@junkil-park junkil-park added this to To do in move-on-evm via automation Apr 21, 2022
@junkil-park
Copy link
Collaborator Author

The error will go away if move-cli is installed with the evm-backend feature (cargo install --path . --features evm-backend).

move-on-evm automation moved this from To do to Done Apr 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Development

No branches or pull requests

1 participant