Closed Bug 1211375 Opened 9 years ago Closed 6 years ago

Flatfish build fails with toolchain error gcc < 4.7

Categories

(Firefox OS Graveyard :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: tzimmermann, Unassigned)

References

Details

(Whiteboard: [TCP][Flatfish])

Attachments

(1 file)

That's the same error as 1121600.
configure.sjis actually looking for gcc 4.7

configure:3104: checking whether we are using GNU C++
configure:3113: /home/mozilla/Projects/mozilla/src/B2G-master-flatfish/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-g++ -E conftest.C
configure:3132: checking whether /home/mozilla/Projects/mozilla/src/B2G-master-flatfish/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/arm-linux-androideabi-g++ accepts -g
configure:3169: checking for arm-linux-androideabi-ranlib
configure:3204: checking for arm-linux-androideabi-ar
configure:3239: checking for arm-linux-androideabi-as
configure:3274: checking for arm-linux-androideabi-ld
configure:3309: checking for arm-linux-androideabi-strip
configure:3344: checking for arm-linux-androideabi-windres
configure:3344: checking for arm-linux-android-windres
configure:3379: checking for arm-linux-androideabi-otool
configure:3379: checking for arm-linux-android-otool
configure: error: Only GCC 4.7 or newer supported
*** Fix above errors and then restart with\
               "make -f client.mk build"
make[3]: *** [configure] Error 1
Summary: Flatfish fails with toolchain error gcc < 4.6 → Flatfish fails with toolchain error gcc < 4.7
Attached file config.log
Summary: Flatfish fails with toolchain error gcc < 4.7 → Flatfish build fails with toolchain error gcc < 4.7
See Also: → 1122932
Hi Juan, do you have an idea what might be the problem here? It worked until recently.
Flags: needinfo?(atilag)
I just try to built a fresh clone and worked for me (well, is not building because some error later, but nothing related to this bug). You are trying to build master branch, right?
Flags: needinfo?(jgomez)
Yes, I do. But let me try again.
It still doesn't build for me. Same error as before. I deleted the old build and local copies and did a clean checkout. Everything's at the latest master.
I build with

  BRANCH="master" ./config.sh -j2 flatfish
Ok, so finally we found what's happening. Make 3.82 has changed $(wildcard ) function behavior [1]. But the documentation says that this function shouldn't be trusted for getting sorted values in a backward-compatible way, so we need to fix build/core/combo/TARGET_linux-arm.mk (lines 50-58) to sort the toolchains found, in a reliable way.
[1] https://bugzilla.redhat.com/show_bug.cgi?id=635607

Anyway, in the meantime and as a workaround, try to downgrade to Make 3.81.
Hardware: All → ARM
Whiteboard: [TCP][Flatfish]
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: