Support for Alpine Linux 32/64bits

Asked by Alex Rodriguez

I am trying to build this toolchain for Alpine linux, but I wasn't able to succeed so far. I am following the PDF provided at the main page.

Is there any way that someone can help me with this task?

I am using the following ISO image in virtual box: alpine-virt-3.4.1-x86.iso
then I am installing the following packages: apk add python build-base openssl bash m4 flex

So far the build-prerequisites.sh goes trough but build-toolchain.sh stops when building the newlib steps.

Please advise. thank you in advance.

Question information

Language:
English Edit question
Status:
Answered
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Thomas Preud'homme (thomas-preudhomme) said :
#1

Hi Alex,

Could you paste the error message you are facing? Ideally make the whole log available somewhere which is more likely to contain all the information we need to help you.

Best regards.

Revision history for this message
Alex Rodriguez (alejmrm) said :
#2

Thomas--

Here the requested information plus some additional info of my current setup.

Host OS: Windows 8 Pro using vitualbox lastest
Virtual host OS: Linux, alpine distribution alpine-virt-3.4.1-x86[_64].iso

The build procedure follows the PDF documentation, and basically executes the following two commands:

>build-prerequisites.sh
>build-toolchain.sh

How do I attach files? or what method is the preferred one to review external files?

Revision history for this message
Alex Rodriguez (alejmrm) said :
#3
Revision history for this message
Thomas Preud'homme (thomas-preudhomme) said :
#4

Hi Alex,

I believe there is a line missing between those two:

arm-none-eabi-gcc -B/root/toolchain/gcc-arm-none-eabi-5_4-2016q2-20160622/build-native/newlib/arm-none-eabi/thumb/newlib/ -isystem /root/toolchain/gcc-arm-none-eabi-5_4-2016q2-20160622/build-native/newlib/arm-none-eabi/thumb/newlib/targ-include -isystem /root/toolchain/gcc-arm-none-eabi-5_4-2016q2-20160622/src/newlib/newlib/libc/include -B/root/toolchain/gcc-arm-none-eabi-5_4-2016q2-20160622/build-native/newlib/arm-none-eabi/thumb/libgloss/arm -L/root/toolchain/gcc-arm-none-eabi-5_4-2016q2-20160622/build-native/newlib/arm-none-eabi/thumb/libgloss/libnosys -L/root/toolchain/gcc-arm-none-eabi-5_4-2016q2-20160622/src/newlib/libgloss/arm -mthumb -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"2.4.0\" -DPACKAGE_STRING=\"newlib\ 2.4.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I. -I/root/toolchain/gcc-arm-none-eabi-5_4-2016q2-20160622/src/newlib/newlib/libc/syscalls -D__NO_SYSCALLS__ -fno-builtin -g -O2 -ffunction-sections -fdata-sections -mthumb -c -o lib_a-sysclose.o `test -f 'sysclose.c' || echo '/root/toolchain/gcc-arm-none-eabi-5_4-2016q2-20160622/src/newlib/newlib/libc/syscalls/'`sysclose.c
Makefile:383: recipe for target 'lib_a-sysclose.o' failed

Did you include the standard error in the file? Ie. did you run build-toolchain as build-toolchain.sh <OPTIONS> 2>&1 > log-toolchain.txt?

Best regards.

Revision history for this message
Alex Rodriguez (alejmrm) said :
#5

Here is the new log file with all the stdout and stderr output in the file, the following command was executed to generate this fie:

>./build-toolchain.sh --build_type=native --skip_steps=mingw32,mingw32-gdb-with-python,manual > log-toolchain2.txt 2>&1

https://www.dropbox.com/s/zjsvpljf4d0g1pz/log-toolchain2.txt?dl=0

Revision history for this message
Thomas Preud'homme (thomas-preudhomme) said :
#6

Hi Alex,

Given the strong emphasis of Alpine Linux on security and the fact that the toolchain can be build on our machine with the exact same source, I would venture that the segmentation fault found in the log is due to the hardened environment, ie. the compiler tries to access to a resource that it does not have access to and the kernel kills it.

To confirm this I would suggest you to try with a kernel without all these security feature.

Best regards.

Can you help with this problem?

Provide an answer of your own, or ask Alex Rodriguez for more information if necessary.

To post a message you must log in.