Skip to contentSkip to conversation

Xenomai cannot be built in Debian Stretch

Xenomai Leopold Palomo-Avellaneda 1 participant 2 messages Nov 8, 2017 – Nov 9, 2017

lore
Share & tools
lore
#0 lore raw

Hi,

I'm trying to build Xenomai 3.0.5 in a Debian Stretch/Buster Amd64 env. I'm getting this error:

/usr/bin/ld: -r and -pie may not be used together

It's because the default -pie in gcc. I have tried to investigate, but I have not found the "-r". probably because the wrap-link script.

Please, could you give me some idea how to solve it?

Best regards,

Leopold

Signature · 8 lines
--
Linux User 152692     GPG: 05F4A7A949A2D9AA
Catalonia
-------------------------------------
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
#1 lore raw
Quoted 6 lines · Leopold Palomo-Avellaneda

Hi,

I'm trying to build Xenomai 3.0.5 in a Debian Stretch/Buster Amd64 env. I'm getting this error:

Quoted 7 lines

/usr/bin/ld: -r and -pie may not be used together

It's because the default -pie in gcc. I have tried to investigate, but I have not found the "-r". probably because the wrap-link script.

Please, could you give me some idea how to solve it?

I'm answer myself. It seems that yesterday I was obfuscated. Just

export CFLAGS="$CFLAGS -no-pie"

solved the problem.

Best regards,

Leopold

Signature · 8 lines
--
Linux User 152692     GPG: 05F4A7A949A2D9AA
Catalonia
-------------------------------------
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?