Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on ARM
  • Search

aarch64 sys-devel/llvm-6.0.0 [gcc -mno-bmi]

Gentoo on all things ARM. Both 32 bit and 64 bit.
Tell about your hardware and CHOST.
Problems with crossdev targeting ARM hardware go here too.
Post Reply
  • Print view
Advanced search
10 posts • Page 1 of 1
Author
Message
mDup
Apprentice
Apprentice
Posts: 212
Joined: Fri Apr 14, 2006 11:38 pm

aarch64 sys-devel/llvm-6.0.0 [gcc -mno-bmi]

  • Quote

Post by mDup » Tue Mar 13, 2018 8:56 am

aarch64 emerge fails because of :

Code: Select all

 
    Change Dir: /var/tmp/portage/sys-devel/llvm-6.0.0/work/llvm-6.0.0.src-.arm64/CMakeFiles/CMakeTmp
    
    Run Build Command:"/usr/bin/ninja" "cmTC_01fc8"
    [1/2] Building C object CMakeFiles/cmTC_01fc8.dir/testCCompiler.c.o
    FAILED: CMakeFiles/cmTC_01fc8.dir/testCCompiler.c.o 
    /usr/bin/aarch64-unknown-linux-gnu-gcc    -DNDEBUG -march=native -O2 -pipe -fomit-frame-pointer -mno-bmi -o CMakeFiles/cmTC_01fc8.dir/testCCompiler.c.o -c testCCompiler.c
    aarch64-unknown-linux-gnu-gcc: error: unrecognized command line option ‘-mno-bmi’; did you mean ‘-Wno-abi’?
    ninja: build stopped: subcommand failed.
anyone knows how to work around this?
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56082
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Tue Mar 13, 2018 12:11 pm

mDup,

Is it a USE flag issue?

Code: Select all

 # emerge -pv sys-devel/llvm

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   *] sys-devel/llvm-6.0.0:6::gentoo  USE="libffi ncurses xml -debug (-doc) -gold -libedit {-test} -xar" LLVM_TARGETS="(AArch64) BPF -AMDGPU -ARM -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -Sparc -SystemZ -X86 -XCore" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
That's with the /17.0/ desktop profile, gcc-7.3.0, the gold linker and binutils 2.30.

If you post how you are building your llvm, I'll try to make mine fail.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
mDup
Apprentice
Apprentice
Posts: 212
Joined: Fri Apr 14, 2006 11:38 pm

  • Quote

Post by mDup » Tue Mar 13, 2018 5:10 pm

NeddySeagoon wrote:mDup,

Is it a USE flag issue?

Code: Select all

 # emerge -pv sys-devel/llvm

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   *] sys-devel/llvm-6.0.0:6::gentoo  USE="libffi ncurses xml -debug (-doc) -gold -libedit {-test} -xar" LLVM_TARGETS="(AArch64) BPF -AMDGPU -ARM -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -Sparc -SystemZ -X86 -XCore" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB
That's with the /17.0/ desktop profile, gcc-7.3.0, the gold linker and binutils 2.30.

If you post how you are building your llvm, I'll try to make mine fail.
Thanks for attention. My setup looks similar to yours. Only use flag I do not have is xml. It does not help however.
Perhaps you have ARCH in env (I don't)?
I looked in the code and bmi looks Intel specific (I am not sure).

Code: Select all

(desktop) kvim2-gentoo ~ # emerge -pv sys-devel/llvm
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild  NS    ] sys-devel/llvm-6.0.0:6::gentoo [5.0.1:5::gentoo] USE="libffi ncurses -debug (-doc) -gold -libedit {-test} -xar -xml" LLVM_TARGETS="(AArch64) BPF -AMDGPU -ARM -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -Sparc -SystemZ -X86 -XCore" 101 KiB

Total: 1 package (1 in new slot), Size of downloads: 101 KiB

(desktop) kvim2-gentoo ~ # eselect profile list | grep '*'
  [6]   default/linux/arm64/17.0 (dev) *

(desktop) kvim2-gentoo ~ # eselect gcc list | grep '*'
 [2] aarch64-unknown-linux-gnu-7.3.0 *

(desktop) kvim2-gentoo ~ # eselect binutils list | grep '*'
 [2] aarch64-unknown-linux-gnu-2.30 *

Can you try:

Code: Select all

# echo > test.c
# gcc -mno-bmi -c  test.c
gcc: error: unrecognized command line option ‘-mno-bmi’; did you mean ‘-Wno-abi’?
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56082
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Tue Mar 13, 2018 5:39 pm

mDup,

I can reproduce that.

Code: Select all

neddy_test1 arm64-build ~ # echo > test.c           
neddy_test1 arm64-build ~ # gcc -mno-bmi -c  test.c
gcc: error: unrecognized command line option '-mno-bmi'; did you mean '-Wno-abi'?
I don't see ARCH set in the environment

Something has changed on my system though ...

Code: Select all

    /usr/bin/aarch64-unknown-linux-gnu-gcc    -DNDEBUG -mcpu=cortex-a53+crc -mtune=cortex-a53 -ftree-vectorize -O2 -pipe -fomit-frame-pointer -mno-bmi -o CMakeFiles/cmTC_1d41c.dir/testCCompiler.c.o -c testCCompiler.c
    aarch64-unknown-linux-gnu-gcc: error: unrecognized command line option '-mno-bmi'; did you mean '-Wno-abi'?
    ninja: build stopped: subcommand failed.
so I can't rebuild llvm-6.0.0.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
mDup
Apprentice
Apprentice
Posts: 212
Joined: Fri Apr 14, 2006 11:38 pm

  • Quote

Post by mDup » Wed Mar 14, 2018 12:04 am

NeddySeagoon wrote:mDup,

I can reproduce that.

Code: Select all

neddy_test1 arm64-build ~ # echo > test.c           
neddy_test1 arm64-build ~ # gcc -mno-bmi -c  test.c
gcc: error: unrecognized command line option '-mno-bmi'; did you mean '-Wno-abi'?
I don't see ARCH set in the environment

Something has changed on my system though ...

Code: Select all

    /usr/bin/aarch64-unknown-linux-gnu-gcc    -DNDEBUG -mcpu=cortex-a53+crc -mtune=cortex-a53 -ftree-vectorize -O2 -pipe -fomit-frame-pointer -mno-bmi -o CMakeFiles/cmTC_1d41c.dir/testCCompiler.c.o -c testCCompiler.c
    aarch64-unknown-linux-gnu-gcc: error: unrecognized command line option '-mno-bmi'; did you mean '-Wno-abi'?
    ninja: build stopped: subcommand failed.
so I can't rebuild llvm-6.0.0.
Thanks a lot for checking. So something recent in gentoo must have introduced the faulty gcc command line option.
I'll try to figure out.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56082
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Wed Mar 14, 2018 7:01 pm

mDup,

It now Bug [bug=650506]sys-devel/llvm-6.0.0 no longer builds on ~arm64[/bug]
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
mDup
Apprentice
Apprentice
Posts: 212
Joined: Fri Apr 14, 2006 11:38 pm

  • Quote

Post by mDup » Fri Mar 30, 2018 6:05 pm

NeddySeagoon wrote:mDup,

It now Bug [bug=650506]sys-devel/llvm-6.0.0 no longer builds on ~arm64[/bug]
It looks like bug is fixed. I am trying build now.
Top
Khumarahn
Apprentice
Apprentice
Posts: 199
Joined: Fri Apr 17, 2009 2:12 am

  • Quote

Post by Khumarahn » Fri Mar 30, 2018 6:20 pm

It builds for me.
Top
mDup
Apprentice
Apprentice
Posts: 212
Joined: Fri Apr 14, 2006 11:38 pm

  • Quote

Post by mDup » Fri Mar 30, 2018 6:44 pm

Khumarahn wrote:It builds for me.
same here.
by the way, which arm64 laptop do you have?
Top
Khumarahn
Apprentice
Apprentice
Posts: 199
Joined: Fri Apr 17, 2009 2:12 am

  • Quote

Post by Khumarahn » Fri Mar 30, 2018 7:24 pm

mDup wrote:which arm64 laptop do you have?
It is Teres 1 by Olimex https://www.olimex.com/Products/DIY-Laptop/KITS
I have a repo with tweaks for it and a bootable gentoo image: https://github.com/khumarahn/teres1-gentoo
Top
Post Reply
  • Print view

10 posts • Page 1 of 1

Return to “Gentoo on ARM”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic