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

An error about building the test code of libtomcrypt. #95

Closed
longyu1987 opened this issue Oct 30, 2014 · 8 comments
Closed

An error about building the test code of libtomcrypt. #95

longyu1987 opened this issue Oct 30, 2014 · 8 comments

Comments

@longyu1987
Copy link

Hello everyone,
I'm sorry to bother you again.I try to embed the libtomcrypt test code that locate in the directory
core/lib/libtomcrypt/test/ to the TA.What my aim is to test the internal API of libtomcrypt in the OP-TEE.But,in the link stage,there is an error listed in the following.
" gcc-linaro-arm-linux-gnueabihf-4.9-2014.05_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.9.1/libgcc.a(_dvmd_lnx.o): In function __aeabi_ldiv0': (.text+0x6): undefined reference toraise' "
I don't know what I use the compiler is correct? Maybe this error is result from other reasons.I can't find the real reasons. So,I'm hope to get you help.Thanks.
Best regards

@jbech-linaro
Copy link
Contributor

Hi,

I think this is the same problem we have seen lately. We haven't been able to look into it in detail yet. But if it the same problem as we have been facing a temporary workaround is to build with DEBUG=0 instead of DEBUG=1.

Let us keep this issue open until we have found and solved the problem. Thanks for reporting this.

@longyu1987
Copy link
Author

OK,I will try to trace this problem again.Thanks for your advice.

@jbech-linaro
Copy link
Contributor

A short update, it seems like we are doing a divide by zero somewhere and we have no function taking care of this under some circumstances. After reading about this (various sources) it seems like we need to implement this functions by ourselves in OP-TEE to trap the division by zero. For more information see
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka4061.html
http://infocenter.arm.com/help/topic/com.arm.doc.ihi0043d/IHI0043D_rtabi.pdf <- 4.3.2

But again, let's keep this issue open until we have solved it.

@longyu1987
Copy link
Author

Yes,I agree with you.We need to implement this function("raise").In addition ,there is a macro ARGTYPE defined in the file tomycrypt_cfg.h(optee_os/core/lib/libtomcrypt/include/). If the value of ARGTYPE equals to 0,the raise function will be called.

@ghost ghost closed this as completed Aug 26, 2015
@savage0
Copy link

savage0 commented Aug 31, 2015

there is a error——Rootfs copy cannot be done because ROOTFS_DIR is not defined
anyone know how to fix it?thanks!

@vchong
Copy link
Contributor

vchong commented Sep 1, 2015

Is it an error or just a warning? I've seen this before but the rootfs works just fine, i.e. the filesystem.cpio.gz file is actually being generated, just that the copy operation has failed due to ROOTFS_DIR being undefined. If you see filesystem.cpio.gz, then you can probably just use it. The build script might have to be updated though to resolve the error/warning.

@ghost ghost reopened this Sep 1, 2015
@pascal-brand38
Copy link
Contributor

This "warning" was emitted when compiling optee_client. It has been removed in OP-TEE/optee_client#34. Is it this one, or something else?

@pascal-brand38
Copy link
Contributor

@savage0 let me know if I can close the issue. Without any answer, I'll close it.

@ghost ghost closed this as completed Sep 22, 2015
This issue was closed.
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

5 participants