LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 04-02-2015, 03:02 PM   #1
drlukacs
Member
 
Registered: Oct 2012
Location: Halifax, NS, Canada
Distribution: Slackware
Posts: 34

Rep: Reputation: 4
gcc bootstrap fails with --with-fpu=neon-vfpv4


configuration parameters include:

Code:
--with-cpu=cortex-a7 --with-tune=cortex-a7 --with-arch=armv7-a --with-float=softfp  --with-fpu=neon-vfpv4 --disable-werror
and produces:

Code:
/bin/sh ./libtool  --tag=CC   --mode=compile /home/woland/tmp/build-gcc/gcc.build.lnx/./gcc/xgcc -B/home/woland/tmp/build-gcc/gcc.build.lnx/./gcc/ -B/usr/arm-slackware-linux-gnueabi/bin/ -B/usr/arm-slackware-linux-gnueabi/lib/ -isystem  /usr/arm-slackware-linux-gnueabi/include -isystem /usr/arm-slackware-linux-gnueabi/sys-include    -DHAVE_CONFIG_H -I. -I../../../gcc-4.8.4/libgo  -I ../../../gcc-4.8.4/libgo/runtime -I../../../gcc-4.8.4/libgo/../libffi/include -I../libffi/include -pthread  -fexceptions -fplan9-extensions  -Wall -Wextra -Wwrite-strings -Wcast-qual   -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I ../../../gcc-4.8.4/libgo/../libgcc -I ../../../gcc-4.8.4/libgo/../libbacktrace -I ../../gcc/include -g -O2 -march=armv7-a -mtune=cortex-a7 -mfloat-abi=softfp -MT go-type-complex.lo -MD -MP -MF .deps/go-type-complex.Tpo -c -o go-type-complex.lo `test -f 'runtime/go-type-complex.c' || echo '../../../gcc-4.8.4/libgo/'`runtime/go-type-complex.c
libtool: compile:  /home/woland/tmp/build-gcc/gcc.build.lnx/./gcc/xgcc -B/home/woland/tmp/build-gcc/gcc.build.lnx/./gcc/ -B/usr/arm-slackware-linux-gnueabi/bin/ -B/usr/arm-slackware-linux-gnueabi/lib/ -isystem /usr/arm-slackware-linux-gnueabi/include -isystem /usr/arm-slackware-linux-gnueabi/sys-include -DHAVE_CONFIG_H -I. -I../../../gcc-4.8.4/libgo -I ../../../gcc-4.8.4/libgo/runtime -I../../../gcc-4.8.4/libgo/../libffi/include -I../libffi/include -pthread -fexceptions -fplan9-extensions -Wall -Wextra -Wwrite-strings -Wcast-qual -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I ../../../gcc-4.8.4/libgo/../libgcc -I ../../../gcc-4.8.4/libgo/../libbacktrace -I ../../gcc/include -g -O2 -march=armv7-a -mtune=cortex-a7 -mfloat-abi=softfp -MT go-type-complex.lo -MD -MP -MF .deps/go-type-complex.Tpo -c ../../../gcc-4.8.4/libgo/runtime/go-type-complex.c  -fPIC -DPIC -o .libs/go-type-complex.o
../../../gcc-4.8.4/libgo/runtime/go-type-complex.c: In function '__go_type_hash_complex':
../../../gcc-4.8.4/libgo/runtime/go-type-complex.c:87:1: error: unrecognizable insn:
 }
 ^
(insn 99 98 100 17 (set (reg:DI 175 [ D.9567 ])
        (unspec:DI [
                (mem/c:DI (plus:SI (reg/f:SI 105 virtual-stack-vars)
                        (const_int -24 [0xffffffffffffffe8])) [6  S8 A32])
            ] UNSPEC_MISALIGNED_ACCESS)) ../../../gcc-4.8.4/libgo/runtime/go-type-complex.c:51 -1
     (nil))
../../../gcc-4.8.4/libgo/runtime/go-type-complex.c:87:1: internal compiler error: in extract_insn, at recog.c:2154
0x38cb63 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*)
        ../../gcc-4.8.4/gcc/rtl-error.c:109
0x38cbb7 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        ../../gcc-4.8.4/gcc/rtl-error.c:117
0x35f1af extract_insn(rtx_def*)
        ../../gcc-4.8.4/gcc/recog.c:2154
0x2611e7 instantiate_virtual_regs_in_insn
        ../../gcc-4.8.4/gcc/function.c:1565
0x2611e7 instantiate_virtual_regs
        ../../gcc-4.8.4/gcc/function.c:1932
Please submit a full bug report,
For details, see Bug 65664
 
Old 04-03-2015, 09:07 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
http://community.arm.com/groups/tool...-command-lines
 
Old 04-03-2015, 12:18 PM   #3
drlukacs
Member
 
Registered: Oct 2012
Location: Halifax, NS, Canada
Distribution: Slackware
Posts: 34

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by Keruskerfuerst View Post
It is not clear to me how this link can help in fixing the problem, which seems to be related to how gcc compiles code for the armv7-a/neon combination.
 
Old 04-03-2015, 12:30 PM   #4
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
If you have a look at the GNU GCC manual (https://gcc.gnu.org/onlinedocs/gcc-4.8.4/gcc.pdf), you wont find with-fpu=neon-vfpv4.
 
Old 04-03-2015, 12:36 PM   #5
drlukacs
Member
 
Registered: Oct 2012
Location: Halifax, NS, Canada
Distribution: Slackware
Posts: 34

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by Keruskerfuerst View Post
If you have a look at the GNU GCC manual (https://gcc.gnu.org/onlinedocs/gcc-4.8.4/gcc.pdf), you wont find with-fpu=neon-vfpv4.
I am afraid you are confusing compiler options with bootstrap parameters.

--with-fpu=neon-vfpv4 makes -mfpu=neon-vfpv4 the default for the compiler: see Installing GCC: Configuration
Quote:
--with-schedule=cpu
--with-arch=cpu
--with-arch-32=cpu
--with-arch-64=cpu
--with-tune=cpu
--with-tune-32=cpu
--with-tune-64=cpu
--with-abi=abi
--with-fpu=type
--with-float=type
These configure options provide default values for the -mschedule=, -march=, -mtune=, -mabi=, and -mfpu= options and for -mhard-float or -msoft-float. As with --with-cpu, which switches will be accepted and acceptable values of the arguments depend on the target.
 
Old 04-04-2015, 08:20 AM   #6
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
You may try to use the actual version of gcc: https://gcc.gnu.org/mirrors.html
 
Old 04-04-2015, 08:56 AM   #7
drlukacs
Member
 
Registered: Oct 2012
Location: Halifax, NS, Canada
Distribution: Slackware
Posts: 34

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by Keruskerfuerst View Post
You may try to use the actual version of gcc: https://gcc.gnu.org/mirrors.html
Can you please elaborate on what you mean by "actual version"?
 
Old 04-04-2015, 09:06 AM   #8
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
I have searched through the bug database of gentoo. The error you have posted is not in the bug database.

Actual version: i mean gcc version 4.9.2. Maybe this version works better.
 
Old 04-04-2015, 09:08 AM   #9
drlukacs
Member
 
Registered: Oct 2012
Location: Halifax, NS, Canada
Distribution: Slackware
Posts: 34

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by Keruskerfuerst View Post
I have searched through the bug database of gentoo. The error you have posted is not in the bug database.

Actual version: i mean gcc version 4.9.2. Maybe this version works better.
If you have gcc 4.9.2 installed on an arm machine, I will be happy to share with you a small package of source code for testing whether the same error can be reproduced.
 
Old 04-04-2015, 09:10 AM   #10
drlukacs
Member
 
Registered: Oct 2012
Location: Halifax, NS, Canada
Distribution: Slackware
Posts: 34

Original Poster
Rep: Reputation: 4
Patch that makes the problem disappear

The following patch makes the problem go away insofar as bootstrap is concerned:

http://gcc.gnu.org/ml/gcc-patches/2014-05/msg02510.html

The patch involves rewriting certain functions for libgo.

The aforementioned errors can still be reproduced if one attempts to compile the old libgo files with certain parameters.
 
  


Reply

Tags
bootstrap, gcc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in 'make bootstrap' of gcc Chapter 5.4 of LFS 6.3 Veena_Gecw Linux From Scratch 1 10-27-2012 07:43 AM
bootstrap error 2 compiling gcc lord_Tux Linux From Scratch 3 04-18-2010 12:48 PM
gcc 4.0.3 first pass - 'make bootstrap' radiodee1 Linux From Scratch 6 10-10-2006 04:20 PM
GCC first build for LFS, bootstrap error Blibblob Linux From Scratch 8 01-07-2004 06:50 PM
gcc 2.3 bootstrap error NGraphiX Linux From Scratch 1 05-15-2003 12:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 05:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration