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

travis: Add some arm builds #698

Closed
wants to merge 1 commit into from
Closed

travis: Add some arm builds #698

wants to merge 1 commit into from

Conversation

maflcko
Copy link
Contributor

@maflcko maflcko commented Dec 5, 2019

Proof of concept for #598

Not sure which environment combinations make most sense (something with ASM?)

@sipa
Copy link
Contributor

sipa commented Dec 5, 2019

We have optimized assembly for 32-bit ARM (not enabled by default, and not 64-bit iirc). It'd be neat to test that.

@maflcko
Copy link
Contributor Author

maflcko commented Dec 5, 2019

ok, I set ASM=arm, but that fails:

$ if [ -n "$BUILD" ]; then make -j2 $BUILD; fi

  CC       src/bench_verify.o

  CC       src/bench_sign.o

  CC       src/exhaustive_tests-tests_exhaustive.o

gcc -I. -I./src -g -O2 -Wall -Wextra -Wno-unused-function -c src/gen_context.c -o gen_context.o

  CCAS     src/asm/field_10x26_arm.lo

src/asm/field_10x26_arm.s: Assembler messages:

src/asm/field_10x26_arm.s:1: Error: junk at end of line, first unrecognized character is `@'

src/asm/field_10x26_arm.s:18: Error: unknown pseudo-op: `.syntax'

src/asm/field_10x26_arm.s:19: Error: junk at end of line, first unrecognized character is `@'

src/asm/field_10x26_arm.s:20: Error: unknown pseudo-op: `.eabi_attribute'

src/asm/field_10x26_arm.s:21: Error: unknown pseudo-op: `.eabi_attribute'

src/asm/field_10x26_arm.s:24: Error: junk at end of line, first unrecognized character is `@'

src/asm/field_10x26_arm.s:27: Error: junk at end of line, first unrecognized character is `@'
...


See https://travis-ci.org/MarcoFalke/secp256k1/builds/621315153

@elichai
Copy link
Contributor

elichai commented Dec 5, 2019

Tried that in the past and couldn't make the asm work.
Hope you will :)

@real-or-random
Copy link
Contributor

I haven't had a closer look now but this may help to figure out the right flags (even though it's for cross-compilation)
#621 (comment)

@laanwj
Copy link
Member

laanwj commented Dec 6, 2019

I think you get those errors when trying to compile the 32-bit ARM assembly with a 64-bit targeted assembler.

@maflcko
Copy link
Contributor Author

maflcko commented Dec 9, 2019

I might need to install libc from armhf. That doesn't work, so I reported the issue to travis: https://travis-ci.community/t/apt-addon-does-not-work-for-armhf-on-arm64/6374

@maflcko maflcko closed this Dec 12, 2019
@real-or-random
Copy link
Contributor

Did this work in the end? The travis output looks good, it was just aborted?

@maflcko
Copy link
Contributor Author

maflcko commented Dec 12, 2019

It failed with

/usr/lib/gcc-cross/arm-linux-gnueabihf/5/../../../../arm-linux-gnueabihf/bin/ld: cannot find crti.o: No such file or directory

https://travis-ci.org/MarcoFalke/secp256k1/jobs/624276878#L396

@real-or-random
Copy link
Contributor

Ah yes, thanks for clarifying!

@maflcko maflcko deleted the 1912-travisArm branch November 9, 2021 20:20
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

Successfully merging this pull request may close these issues.

5 participants