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

RISCV rv32g undefined reference to `__divdi3' #225

Open
panjea opened this issue Jul 28, 2024 · 0 comments
Open

RISCV rv32g undefined reference to `__divdi3' #225

panjea opened this issue Jul 28, 2024 · 0 comments

Comments

@panjea
Copy link

panjea commented Jul 28, 2024

is nnom compatible with RISCV 32bit rv32g?

['/home/rap/gir/riscv32/bin/riscv32-unknown-elf-gcc', '-march=rv32g', '-mabi=ilp32', '-static', '-mcmodel=medany', '-fvisibility=hidden', '-nostdlib', '-nostartfiles', '-T/tmp/riscv.ld', '-o', '/tmp/riscv.riscv.32.bin', '/tmp/riscv.s', './nnom/src/core/nnom_tensor.c.o', './nnom/src/core/nnom_layers.c.o', './nnom/src/core/nnom.c.o', './nnom/src/core/nnom_utils.c.o', './nnom/src/layers/nnom_reshape.c.o', './nnom/src/layers/nnom_sumpool.c.o', './nnom/src/layers/nnom_dw_conv2d.c.o', './nnom/src/layers/nnom_output.c.o', './nnom/src/layers/nnom_flatten.c.o', './nnom/src/layers/nnom_rnn.c.o', './nnom/src/layers/nnom_zero_padding.c.o', './nnom/src/layers/nnom_upsample.c.o', './nnom/src/layers/nnom_maxpool.c.o', './nnom/src/layers/nnom_cropping.c.o', './nnom/src/layers/nnom_conv2d_trans.c.o', './nnom/src/layers/nnom_baselayer.c.o', './nnom/src/layers/nnom_concat.c.o', './nnom/src/layers/nnom_lstm_cell.c.o', './nnom/src/layers/nnom_avgpool.c.o', './nnom/src/layers/nnom_lambda.c.o', './nnom/src/layers/nnom_activation.c.o', './nnom/src/layers/nnom_matrix.c.o', './nnom/src/layers/nnom_input.c.o', './nnom/src/layers/nnom_dense.c.o', './nnom/src/layers/nnom_softmax.c.o', './nnom/src/layers/nnom_conv2d.c.o', './nnom/src/layers/nnom_simple_cell.c.o', './nnom/src/layers/nnom_global_pool.c.o', './nnom/src/layers/nnom_gru_cell.c.o', './nnom/src/backends/nnom_local.c.o', './nnom/src/backends/nnom_local_q15.c.o', '/tmp/nnomtest.c.o']
/home/rap/gir/riscv32/bin/../lib/gcc/riscv32-unknown-elf/12.1.0/../../../../riscv32-unknown-elf/bin/ld: ./nnom/src/backends/nnom_local_q15.c.o: in function `.L317':
nnom_local_q15.c:(.text+0x4e74): undefined reference to `__divdi3'
collect2: error: ld returned 1 exit status

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

1 participant