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

cross compilation make error:testcases/commands/ldd/datafiles/Makefile:30: lddfile1.obj.so] Error 1 #1102

Open
xingxinggu opened this issue Nov 21, 2023 · 1 comment
Labels

Comments

@xingxinggu
Copy link

(.text+0xf4): dangerous relocation: unsupported relocation
collect2: error: ld returned 1 exit status
make[4]: *** [/data/user/ltp-20230929/testcases/commands/ldd/datafiles/Makefile:30: lddfile1.obj.so] Error 1
rm lddfile5.o lddfile1.o lddfile2.o lddfile4.o lddfile3.o
make[3]: *** [../../../include/mk/generic_trunk_target.inc:108: all] Error 2
make[2]: *** [../../include/mk/generic_trunk_target.inc:108: all] Error 2
make[1]: *** [../include/mk/generic_trunk_target.inc:108: all] Error 2
make[1]: Leaving directory '/data/user/ltp-20230929/testcases'
make: *** [Makefile:94: testcases-all] Error 2

@pevik
Copy link
Member

pevik commented Nov 28, 2023

We can hardly help you with cross compilation (we have no idea about your toolchain, you didn't put more info about your environment).

Maybe it's not related to cross compilation, but to some strict flag. I suppose the problem is only with testcases/commands/ldd/datafiles/lddfile1.c, the rest compiles, right? If yes try to run make V=1 in testcases/commands/ldd/datafiles/.

@pevik pevik added the question label Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants