public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/108491] New: cross compiler does not work: cc1: error: ‘-msecure-plt’ not supported by your assembler
@ 2023-01-23 9:53 marxin at gcc dot gnu.org
2023-01-23 13:02 ` [Bug target/108491] " segher at gcc dot gnu.org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2023-01-23 9:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108491
Bug ID: 108491
Summary: cross compiler does not work: cc1: error:
‘-msecure-plt’ not supported by your assembler
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
CC: segher at gcc dot gnu.org
Target Milestone: ---
Host: x86_64-linux-gnu
Target: powerpc-freebsd13
Building the cross-compiler fails with:
./xgcc -B./ -B/home/marxin/bin/gcc/powerpc-freebsd13/bin/ -isystem
/home/marxin/bin/gcc/powerpc-freebsd13/include -isystem
/home/marxin/bin/gcc/powerpc-freebsd13/sys-include -L/dev/shm/objdir2/gcc/../ld
-xc -nostdinc /dev/null -S -o /dev/null
-fself-test=/home/marxin/Programming/gcc2/gcc/testsuite/selftests
cc1: error: ‘-msecure-plt’ not supported by your assembler
make: *** [/home/marxin/Programming/gcc2/gcc/c/Make-lang.in:128: s-selftest-c]
Error 1
make: *** Waiting for unfinished jobs....
Shouldn't we add detection for an assembler, if it's supported or not?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/108491] cross compiler does not work: cc1: error: ‘-msecure-plt’ not supported by your assembler
2023-01-23 9:53 [Bug target/108491] New: cross compiler does not work: cc1: error: ‘-msecure-plt’ not supported by your assembler marxin at gcc dot gnu.org
@ 2023-01-23 13:02 ` segher at gcc dot gnu.org
2023-01-23 13:09 ` rguenth at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: segher at gcc dot gnu.org @ 2023-01-23 13:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108491
--- Comment #1 from Segher Boessenkool <segher at gcc dot gnu.org> ---
This error is from sysv4.h SUBTARGET_OVERRIDE_OPTIONS. -msecure-plt is
unconditionally required.
It looks like an oversight that it is not required in the assembler you
used (which is that?)
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/108491] cross compiler does not work: cc1: error: ‘-msecure-plt’ not supported by your assembler
2023-01-23 9:53 [Bug target/108491] New: cross compiler does not work: cc1: error: ‘-msecure-plt’ not supported by your assembler marxin at gcc dot gnu.org
2023-01-23 13:02 ` [Bug target/108491] " segher at gcc dot gnu.org
@ 2023-01-23 13:09 ` rguenth at gcc dot gnu.org
2023-01-23 15:30 ` pinskia at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-01-23 13:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108491
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
how did you configure? does the build pick up the host tools?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/108491] cross compiler does not work: cc1: error: ‘-msecure-plt’ not supported by your assembler
2023-01-23 9:53 [Bug target/108491] New: cross compiler does not work: cc1: error: ‘-msecure-plt’ not supported by your assembler marxin at gcc dot gnu.org
2023-01-23 13:02 ` [Bug target/108491] " segher at gcc dot gnu.org
2023-01-23 13:09 ` rguenth at gcc dot gnu.org
@ 2023-01-23 15:30 ` pinskia at gcc dot gnu.org
2023-01-24 13:28 ` marxin at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-01-23 15:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108491
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2023-01-23
Status|UNCONFIRMED |WAITING
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Did you compile binutils first?
Are you doing a combined build?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/108491] cross compiler does not work: cc1: error: ‘-msecure-plt’ not supported by your assembler
2023-01-23 9:53 [Bug target/108491] New: cross compiler does not work: cc1: error: ‘-msecure-plt’ not supported by your assembler marxin at gcc dot gnu.org
` (2 preceding siblings ...)
2023-01-23 15:30 ` pinskia at gcc dot gnu.org
@ 2023-01-24 13:28 ` marxin at gcc dot gnu.org
2023-01-24 13:28 ` marxin at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2023-01-24 13:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108491
--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
~/Programming/gcc2/configure --enable-languages=c --prefix=/home/marxin/bin/gcc
--disable-bootstrap --disable-multilib --disable-libsanitizer
--target=powerpc-freebsd13
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/108491] cross compiler does not work: cc1: error: ‘-msecure-plt’ not supported by your assembler
2023-01-23 9:53 [Bug target/108491] New: cross compiler does not work: cc1: error: ‘-msecure-plt’ not supported by your assembler marxin at gcc dot gnu.org
` (3 preceding siblings ...)
2023-01-24 13:28 ` marxin at gcc dot gnu.org
@ 2023-01-24 13:28 ` marxin at gcc dot gnu.org
2023-01-24 13:35 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2023-01-24 13:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108491
--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
Created attachment 54334
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54334&action=edit
Configure and build log
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/108491] cross compiler does not work: cc1: error: ‘-msecure-plt’ not supported by your assembler
2023-01-23 9:53 [Bug target/108491] New: cross compiler does not work: cc1: error: ‘-msecure-plt’ not supported by your assembler marxin at gcc dot gnu.org
` (4 preceding siblings ...)
2023-01-24 13:28 ` marxin at gcc dot gnu.org
@ 2023-01-24 13:35 ` pinskia at gcc dot gnu.org
2023-01-24 13:43 ` segher at gcc dot gnu.org
2023-01-24 13:52 ` amonakov at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-01-24 13:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108491
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |WONTFIX
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
checking for as... no
checking for powerpc-freebsd13-as... no
So the answer to my question of did you compile binutils first is no and you
are not doing a combined build either:
checking where to find the target as... pre-installed
So this is not a bug that needs to be fixed really.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/108491] cross compiler does not work: cc1: error: ‘-msecure-plt’ not supported by your assembler
2023-01-23 9:53 [Bug target/108491] New: cross compiler does not work: cc1: error: ‘-msecure-plt’ not supported by your assembler marxin at gcc dot gnu.org
` (5 preceding siblings ...)
2023-01-24 13:35 ` pinskia at gcc dot gnu.org
@ 2023-01-24 13:43 ` segher at gcc dot gnu.org
2023-01-24 13:52 ` amonakov at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: segher at gcc dot gnu.org @ 2023-01-24 13:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108491
Segher Boessenkool <segher at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|WONTFIX |INVALID
--- Comment #7 from Segher Boessenkool <segher at gcc dot gnu.org> ---
It is not a bug even.
However, our documentation could be clearer that you need a working assembler
and linker etc., and the hint that putting binutils in the same prefix (before
doing GCC) makes everything automatically work could be helpful?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/108491] cross compiler does not work: cc1: error: ‘-msecure-plt’ not supported by your assembler
2023-01-23 9:53 [Bug target/108491] New: cross compiler does not work: cc1: error: ‘-msecure-plt’ not supported by your assembler marxin at gcc dot gnu.org
` (6 preceding siblings ...)
2023-01-24 13:43 ` segher at gcc dot gnu.org
@ 2023-01-24 13:52 ` amonakov at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: amonakov at gcc dot gnu.org @ 2023-01-24 13:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108491
Alexander Monakov <amonakov at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amonakov at gcc dot gnu.org
--- Comment #8 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
Isn't this what --with-gnu-as --with-gnu-ld options are for?
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2023-01-24 13:52 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-23 9:53 [Bug target/108491] New: cross compiler does not work: cc1: error: ‘-msecure-plt’ not supported by your assembler marxin at gcc dot gnu.org
2023-01-23 13:02 ` [Bug target/108491] " segher at gcc dot gnu.org
2023-01-23 13:09 ` rguenth at gcc dot gnu.org
2023-01-23 15:30 ` pinskia at gcc dot gnu.org
2023-01-24 13:28 ` marxin at gcc dot gnu.org
2023-01-24 13:28 ` marxin at gcc dot gnu.org
2023-01-24 13:35 ` pinskia at gcc dot gnu.org
2023-01-24 13:43 ` segher at gcc dot gnu.org
2023-01-24 13:52 ` amonakov at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).