Skip to contentSkip to conversation

package/llvm: fix build with gcc < 5.1

PATCH New Valentin Korenblit 3 participants 3 messages Apr 13, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/llvm: fix build with gcc < 5.1

Fixes:

http://autobuild.buildroot.net/results/0c046a1b57a4f0b992333003d41062e1b256eb0d

---
 package/llvm/llvm.mk | 3 +++
 1 file changed, 3 insertions(+)
package/llvm/llvm.mk +3 -0
index cd374d74b4..28c5e89706 100644
@@ -17,6 +17,9 @@ LLVM_INSTALL_STAGING = YES
 HOST_LLVM_DEPENDENCIES = host-python
 LLVM_DEPENDENCIES = host-llvm
 
+HOST_LLVM_CONF_OPTS += -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON
+LLVM_CONF_OPTS += -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON
+
 # Don't build clang libcxx libcxxabi lldb compiler-rt lld polly as llvm subprojects
 # This flag assumes that projects are checked out side-by-side and not nested
 HOST_LLVM_CONF_OPTS += -DLLVM_ENABLE_PROJECTS=""
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 package/llvm: fix build with gcc < 5.1

Hi Valentin,

Le 13/04/2019 ? 10:45, Valentin Korenblit a ?crit?:

Quoted 14 lines

Fixes:

http://autobuild.buildroot.net/results/0c046a1b57a4f0b992333003d41062e1b256eb0d

---
 package/llvm/llvm.mk | 3 +++
 1 file changed, 3 insertions(+)
package/llvm/llvm.mk +0 -0
index cd374d74b4..28c5e89706 100644

package/llvm/llvm.mk LLVM_INSTALL_STAGING = YES · line 19

Quoted 3 lines
package/llvm/llvm.mk +0 -0
@@ -17,6 +17,9 @@ LLVM_INSTALL_STAGING = YES
 HOST_LLVM_DEPENDENCIES = host-python
 LLVM_DEPENDENCIES = host-llvm
 

Maybe a comment about these options is welcome :)

# LLVM >= 9.0 will soon require C++14 support, building llvm 8.x using a toolchain using gcc < 5.1 is deprecated but still build with gcc >= 4.8. # https://reviews.llvm.org/D57264

package/llvm/llvm.mk LLVM_INSTALL_STAGING = YES · line 21

Quoted 2 lines
package/llvm/llvm.mk +2 -0
+HOST_LLVM_CONF_OPTS += -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON
+LLVM_CONF_OPTS += -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON

Best regards,
Romain

Quoted 5 lines
package/llvm/llvm.mk +1 -0
+
 # Don't build clang libcxx libcxxabi lldb compiler-rt lld polly as llvm subprojects
 # This flag assumes that projects are checked out side-by-side and not nested
 HOST_LLVM_CONF_OPTS += -DLLVM_ENABLE_PROJECTS=""
#2 lore raw

PATCH 1/1 package/llvm: fix build with gcc < 5.1

Quoted 23 lines · Romain Naour

Hi Valentin,

Le 13/04/2019 ? 10:45, Valentin Korenblit a ?crit?:

Quoted 14 lines

Fixes:

http://autobuild.buildroot.net/results/0c046a1b57a4f0b992333003d41062e1b256eb0d

---
 package/llvm/llvm.mk | 3 +++
 1 file changed, 3 insertions(+)
package/llvm/llvm.mk +0 -0
index cd374d74b4..28c5e89706 100644

package/llvm/llvm.mk LLVM_INSTALL_STAGING = YES · line 19

Quoted 3 lines
package/llvm/llvm.mk +0 -0
@@ -17,6 +17,9 @@ LLVM_INSTALL_STAGING = YES
 HOST_LLVM_DEPENDENCIES = host-python
 LLVM_DEPENDENCIES = host-llvm
 

Maybe a comment about these options is welcome :)

Quoted 3 lines

# LLVM >= 9.0 will soon require C++14 support, building llvm 8.x using a toolchain using gcc < 5.1 is deprecated but still build with gcc >= 4.8. # https://reviews.llvm.org/D57264

I did exactly that and applied to master, thanks.

Regards,
Arnout

Quoted 17 lines

package/llvm/llvm.mk LLVM_INSTALL_STAGING = YES · line 21

Quoted 2 lines
package/llvm/llvm.mk +2 -0
+HOST_LLVM_CONF_OPTS += -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON
+LLVM_CONF_OPTS += -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON

Best regards,
Romain

package/llvm/llvm.mk LLVM_INSTALL_STAGING = YES · line 25

Quoted 5 lines
package/llvm/llvm.mk +1 -0
+
 # Don't build clang libcxx libcxxabi lldb compiler-rt lld polly as llvm subprojects
 # This flag assumes that projects are checked out side-by-side and not nested
 HOST_LLVM_CONF_OPTS += -DLLVM_ENABLE_PROJECTS=""

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot