#14842: Error building bootstraping libicuio while cross-compiling ARM on Ubuntu
18.04
----------------------------+----------------------------
Reporter: pemdp | Owner: bonefish
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Build System | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: arm
----------------------------+----------------------------
Comment (by kallisti5):
Here's the build flags for those... look ok to me :-|
{{{
make[1]: Entering directory
'/work/generated.arm/objects/haiku/arm/packaging/repositories
/HaikuPortsCross-build/dev-libs/icu_bootstrap/work-57.1/sources/icu-
target/io'
arm-unknown-haiku-g++ -DU_HAVE_ELF_H=1 -DU_HAVE_ATOMIC=1
-DU_CHARSET_IS_UTF8=1 -I../../icu/source/common -I../../icu/source/i18n
-DU_ATTRIBUTE_DEPRECATED= -DU_IO_IMPLEMENTATION -O2 -W -Wall -pedantic
-Wpointer-arith -Wwrite-strings -Wno-long-long --std=c++0x -c -DPIC
-fPIC -o locbund.o ../../icu/source/io/locbund.cpp
arm-unknown-haiku-gcc -DU_HAVE_ELF_H=1 -DU_HAVE_ATOMIC=1
-DU_CHARSET_IS_UTF8=1 -I../../icu/source/common -I../../icu/source/i18n
-DU_ATTRIBUTE_DEPRECATED= -DU_IO_IMPLEMENTATION -O2 -std=c9x -Wall
-pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings
-c -DPIC -fPIC -o ufile.o ../../icu/source/io/ufile.c
arm-unknown-haiku-gcc -DU_HAVE_ELF_H=1 -DU_HAVE_ATOMIC=1
-DU_CHARSET_IS_UTF8=1 -I../../icu/source/common -I../../icu/source/i18n
-DU_ATTRIBUTE_DEPRECATED= -DU_IO_IMPLEMENTATION -O2 -std=c9x -Wall
-pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings
-c -DPIC -fPIC -o ufmt_cmn.o ../../icu/source/io/ufmt_cmn.c
arm-unknown-haiku-g++ -DU_HAVE_ELF_H=1 -DU_HAVE_ATOMIC=1
-DU_CHARSET_IS_UTF8=1 -I../../icu/source/common -I../../icu/source/i18n
-DU_ATTRIBUTE_DEPRECATED= -DU_IO_IMPLEMENTATION -O2 -W -Wall -pedantic
-Wpointer-arith -Wwrite-strings -Wno-long-long --std=c++0x -c -DPIC
-fPIC -o uprintf.o ../../icu/source/io/uprintf.cpp
arm-unknown-haiku-gcc -DU_HAVE_ELF_H=1 -DU_HAVE_ATOMIC=1
-DU_CHARSET_IS_UTF8=1 -I../../icu/source/common -I../../icu/source/i18n
-DU_ATTRIBUTE_DEPRECATED= -DU_IO_IMPLEMENTATION -O2 -std=c9x -Wall
-pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings
-c -DPIC -fPIC -o uprntf_p.o ../../icu/source/io/uprntf_p.c
arm-unknown-haiku-gcc -DU_HAVE_ELF_H=1 -DU_HAVE_ATOMIC=1
-DU_CHARSET_IS_UTF8=1 -I../../icu/source/common -I../../icu/source/i18n
-DU_ATTRIBUTE_DEPRECATED= -DU_IO_IMPLEMENTATION -O2 -std=c9x -Wall
-pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings
-c -DPIC -fPIC -o uscanf.o ../../icu/source/io/uscanf.c
arm-unknown-haiku-gcc -DU_HAVE_ELF_H=1 -DU_HAVE_ATOMIC=1
-DU_CHARSET_IS_UTF8=1 -I../../icu/source/common -I../../icu/source/i18n
-DU_ATTRIBUTE_DEPRECATED= -DU_IO_IMPLEMENTATION -O2 -std=c9x -Wall
-pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings
-c -DPIC -fPIC -o uscanf_p.o ../../icu/source/io/uscanf_p.c
arm-unknown-haiku-gcc -DU_HAVE_ELF_H=1 -DU_HAVE_ATOMIC=1
-DU_CHARSET_IS_UTF8=1 -I../../icu/source/common -I../../icu/source/i18n
-DU_ATTRIBUTE_DEPRECATED= -DU_IO_IMPLEMENTATION -O2 -std=c9x -Wall
-pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings
-c -DPIC -fPIC -o ustdio.o ../../icu/source/io/ustdio.c
arm-unknown-haiku-gcc -DU_HAVE_ELF_H=1 -DU_HAVE_ATOMIC=1
-DU_CHARSET_IS_UTF8=1 -I../../icu/source/common -I../../icu/source/i18n
-DU_ATTRIBUTE_DEPRECATED= -DU_IO_IMPLEMENTATION -O2 -std=c9x -Wall
-pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings
-c -DPIC -fPIC -o sprintf.o ../../icu/source/io/sprintf.c
arm-unknown-haiku-gcc -DU_HAVE_ELF_H=1 -DU_HAVE_ATOMIC=1
-DU_CHARSET_IS_UTF8=1 -I../../icu/source/common -I../../icu/source/i18n
-DU_ATTRIBUTE_DEPRECATED= -DU_IO_IMPLEMENTATION -O2 -std=c9x -Wall
-pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings
-c -DPIC -fPIC -o sscanf.o ../../icu/source/io/sscanf.c
arm-unknown-haiku-g++ -DU_HAVE_ELF_H=1 -DU_HAVE_ATOMIC=1
-DU_CHARSET_IS_UTF8=1 -I../../icu/source/common -I../../icu/source/i18n
-DU_ATTRIBUTE_DEPRECATED= -DU_IO_IMPLEMENTATION -O2 -W -Wall -pedantic
-Wpointer-arith -Wwrite-strings -Wno-long-long --std=c++0x -c -DPIC
-fPIC -o ustream.o ../../icu/source/io/ustream.cpp
arm-unknown-haiku-g++ -DU_HAVE_ELF_H=1 -DU_HAVE_ATOMIC=1
-DU_CHARSET_IS_UTF8=1 -I../../icu/source/common -I../../icu/source/i18n
-DU_ATTRIBUTE_DEPRECATED= -DU_IO_IMPLEMENTATION -O2 -W -Wall -pedantic
-Wpointer-arith -Wwrite-strings -Wno-long-long --std=c++0x -c -DPIC
-fPIC -o ucln_io.o ../../icu/source/io/ucln_io.cpp
arm-unknown-haiku-g++ -O2 -W -Wall -pedantic -Wpointer-arith -Wwrite-
strings -Wno-long-long --std=c++0x -shared -Wl,-soname
-Wl,libicuio.so.57 -o ../lib/libicuio.so.57.1 locbund.o ufile.o ufmt_cmn.o
uprintf.o uprntf_p.o uscanf.o uscanf_p.o ustdio.o sprintf.o sscanf.o
ustream.o ucln_io.o -L../lib -licuuc -L../stubdata -licudata -L../lib
-licui18n
/work/generated.arm/cross-tools-arm/lib/gcc/arm-unknown-haiku/7.3.0
/../../../../arm-unknown-haiku/bin/ld: /work/generated.arm/cross-tools-
arm/lib/gcc/arm-unknown-haiku/7.3.0/../../../../arm-unknown-
haiku/lib/libstdc++.a(ostream-inst.o): relocation R_ARM_REL32 against
external or undefined symbol `_ZTIN10__cxxabiv115__forced_unwindE' can not
be used when making a shared object; recompile with -fPIC
/work/generated.arm/cross-tools-arm/lib/gcc/arm-unknown-haiku/7.3.0
/../../../../arm-unknown-haiku/bin/ld: /work/generated.arm/cross-tools-
arm/lib/gcc/arm-unknown-haiku/7.3.0/../../../../arm-unknown-
haiku/lib/libstdc++.a(ostream-
inst.o)(.ARM.extab.text._ZNSo5flushEv[_ZNSo5flushEv]+0x3c): unresolvable
R_ARM_REL32 relocation against symbol
`_ZTIN10__cxxabiv115__forced_unwindE'
/work/generated.arm/cross-tools-arm/lib/gcc/arm-unknown-haiku/7.3.0
/../../../../arm-unknown-haiku/bin/ld: final link failed: Nonrepresentable
section on output
collect2: error: ld returned 1 exit status
Makefile:150: recipe for target '../lib/libicuio.so.57.1' failed
make[1]: *** [../lib/libicuio.so.57.1] Error 1
}}}
--
Ticket URL: <https://dev.haiku-os.org/ticket/14842#comment:16>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.