Fix Plume arm builds #427

Merged
mcrosson merged 4 commits from llvm-multiarch-fixes into master 2019-01-18 19:57:20 +00:00
mcrosson commented 2019-01-12 05:41:11 +00:00 (Migrated from github.com)

llvm latest svn commit is broken as of 2019/01/12. This patch pins the llvm+lld versions used for arm compiles.

It also tweaks the architecture detection to be more reliable in multi-lib/multi-arch situations where the CPU is 64bit but the runtime is 32bit.

llvm latest svn commit is broken as of 2019/01/12. This patch pins the llvm+lld versions used for arm compiles. It also tweaks the architecture detection to be more reliable in multi-lib/multi-arch situations where the CPU is 64bit but the runtime is 32bit.
codecov[bot] commented 2019-01-12 06:14:53 +00:00 (Migrated from github.com)

Codecov Report

Merging #427 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #427   +/-   ##
=======================================
  Coverage   27.64%   27.64%           
=======================================
  Files          63       63           
  Lines        7336     7336           
=======================================
  Hits         2028     2028           
  Misses       5308     5308
# [Codecov](https://codecov.io/gh/Plume-org/Plume/pull/427?src=pr&el=h1) Report > Merging [#427](https://codecov.io/gh/Plume-org/Plume/pull/427?src=pr&el=desc) into [master](https://codecov.io/gh/Plume-org/Plume/commit/09a26b46025a085b31140e7f1d261b1da245a0e2?src=pr&el=desc) will **not change** coverage. > The diff coverage is `n/a`. ```diff @@ Coverage Diff @@ ## master #427 +/- ## ======================================= Coverage 27.64% 27.64% ======================================= Files 63 63 Lines 7336 7336 ======================================= Hits 2028 2028 Misses 5308 5308 ```
igalic (Migrated from github.com) reviewed 2019-01-12 06:38:35 +00:00
@ -4,0 +15,4 @@
print('amd64', end='')
elif processor == 'armv7l':
print('armhf', end='')
EOF
igalic (Migrated from github.com) commented 2019-01-12 06:37:47 +00:00

how big is the chance that anyone's still using i386?

how big is the chance that anyone's still using i386?
mcrosson (Migrated from github.com) reviewed 2019-01-12 06:53:29 +00:00
@ -4,0 +15,4 @@
print('amd64', end='')
elif processor == 'armv7l':
print('armhf', end='')
EOF
mcrosson (Migrated from github.com) commented 2019-01-12 06:53:29 +00:00

@igalic the main linux kernel dev's have suggested dropping i386 support...

If it's something others run into I'm happy to add it back but i need the platform.machine() output to add it to the conditional. I don't have access to i386 and didn't want to add an arch that I don't have valid output for.

@igalic the main linux kernel dev's have suggested dropping i386 support... If it's something others run into I'm happy to add it back but i need the platform.machine() output to add it to the conditional. I don't have access to i386 and didn't want to add an arch that I don't have valid output for.
elegaanz (Migrated from github.com) reviewed 2019-01-12 10:44:41 +00:00
@ -2,2 +2,3 @@
ARCH=`arch`
ARCH=$(python <<EOF
from __future__ import print_function
elegaanz (Migrated from github.com) commented 2019-01-12 10:44:41 +00:00

Wouldn't it be possible to do the same with Bash? And maybe you could use Python 3 if it present instead of importing from __future__.

Wouldn't it be possible to do the same with Bash? And maybe you could use Python 3 if it present instead of importing from `__future__`.
igalic (Migrated from github.com) reviewed 2019-01-12 13:50:46 +00:00
@ -2,2 +2,3 @@
ARCH=`arch`
ARCH=$(python <<EOF
from __future__ import print_function
igalic (Migrated from github.com) commented 2019-01-12 13:50:46 +00:00

Wouldn't it be possible to do the same with Bash?

yes. with great difficulty.

And maybe you could use Python

+1

> Wouldn't it be possible to do the same with Bash? yes. with great difficulty. > And maybe you could use Python +1
mcrosson (Migrated from github.com) reviewed 2019-01-12 18:24:12 +00:00
@ -2,2 +2,3 @@
ARCH=`arch`
ARCH=$(python <<EOF
from __future__ import print_function
mcrosson (Migrated from github.com) commented 2019-01-12 18:24:12 +00:00

@BaptisteGelez I was trying to do this in bash initally and... it ended up being easier to read and maintain with python.

Re python 2/3 ; the code in question will run under both. Ubuntu and Debian still have python2 as a default and the slim docker images don't include both by default. I wanted to keep the code as generic as possible so additional dependencies won't be necessary if it's used elsewhere.

@BaptisteGelez I was trying to do this in bash initally and... it ended up being easier to read and maintain with python. Re python 2/3 ; the code in question will run under both. Ubuntu and Debian still have python2 as a default and the slim docker images don't include both by default. I wanted to keep the code as generic as possible so additional dependencies won't be necessary if it's used elsewhere.
elegaanz (Migrated from github.com) approved these changes 2019-01-18 19:55:05 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Plume/Plume#427
No description provided.