Bug 200271 - lang/gcc "make install" fails with Malformed conditional error
Summary: lang/gcc "make install" fails with Malformed conditional error
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: --- Affects Some People
Assignee: Andreas Tobler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-17 17:59 UTC by John
Modified: 2015-07-12 23:10 UTC (History)
4 users (show)

See Also:
gerald: maintainer-feedback-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John 2015-05-17 17:59:01 UTC
Running 10.1-STABLE on Raspberry Pi. Freshly installed system, attempted to build "news/cnews":

===>   cnews-cr.g_12 depends on executable: gcc48 - not found
===>    Verifying install for gcc48 in /usr/ports/lang/gcc
make[2]: "/usr/ports/lang/gcc/Makefile" line 66: Malformed conditional (${COMPILER_TYPE} == clang)
make[2]: Fatal errors encountered -- cannot continue
make[2]: stopped in /usr/ports/lang/gcc
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/news/cnews
*** Error code 1

Stop.
make: stopped in /usr/ports/news/cnews

If I run "make install" in the /usr/ports/lang/gcc, I see the same "Malformed conditional" error.

If I run "make install" in lang/gcc48, I see "===>  gcc48-4.8.5.s20150423 is only for amd64 i386 powerpc powerpc64 sparc64, while you are running armv6."
Comment 1 kientzle 2015-05-17 18:19:39 UTC
>> If I run "make install" in lang/gcc48, I see "===>  gcc48-4.8.5.s20150423 is only for amd64 i386 powerpc powerpc64 sparc64, while you are running armv6."

I believe the gcc49 port has fixes for this that can probably be easily copied over.
Comment 2 Andreas Tobler freebsd_committer freebsd_triage 2015-05-17 20:17:32 UTC
lang/gcc48 is not supported for arm*.


If you really need it, you can adapt the Makefile and copy the files from lang/gcc/files (patch-arm-support, patch-arm-libcpp) to lang/gcc48/files.

But this will not help you with your "Malformed conditional" message.

Can you build lang/gcc49?

A try, you could change line 66 of the lang/gcc/Makefile to:

. if ${COMPILER_TYPE} == "clang"

Do you have some special settings in /etc/src.conf or /etc/make.conf?
Comment 3 Gerald Pfeifer freebsd_committer freebsd_triage 2015-07-12 23:10:03 UTC
The workaround/fix is really not to use lang/gcc48 or older versions
of GCC for ARM.

Unfortunately the switch for lang/gcc to GCC 4.9 has been stuck on
my end now, but hopefully we'll get this going again soon.  In any
case, once lang/gcc49 is installed (on ARM or elsewhere), USE_GCC=yes
as well as USE_GCC=any will be happy to use that.