Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 542606 - dev-lang/pcc-1.1.0 - ./cc.c:212:47: error: expected '}' before 'MULTIARCH_PATH'
Summary: dev-lang/pcc-1.1.0 - ./cc.c:212:47: error: expected '}' before 'MULTIARCH_PATH'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-08 23:37 UTC by Bertrand Jacquin
Modified: 2015-03-09 09:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,7.44 KB, text/x-log)
2015-03-08 23:38 UTC, Bertrand Jacquin
Details
emerge --info (info.log,15.47 KB, text/x-log)
2015-03-08 23:38 UTC, Bertrand Jacquin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2015-03-08 23:37:24 UTC
dev-lang/pcc-1.1.0 fail to build on x86 with the following error message:

===> cc/cc
make[2]: Entering directory '/var/tmp/portage/dev-lang/pcc-1.1.0/work/pcc-1.1.0/cc/cc'
i686-pc-linux-gnu-gcc -march=native -O2 -pipe -fomit-frame-pointer  -Wall -Wmissing-prototypes -Wshadow -Wsign-compare -DLIBEXECDIR=\"/usr/libexec/\" -DGCC_COMPAT -DPCC_DEBUG -DINCLUDEDIR=\"/usr/include/\" -DPCCINCDIR=\"/usr/lib/pcc/i686-pc-linux-gnu/1.1.0/include/\" -DPCCLIBDIR=\"/usr/lib/pcc/i686-pc-linux-gnu/1.1.0/lib/\" -Dos_linux -Dmach_i386 -DTARGOSVER=0 -DCPPROGNAME=\"pcpp\" -I../../cc/driver -I../.. -I../../os/linux -I../../mip -I../../arch/i386 -c -o cc.o ./cc.c
./cc.c:212:47: error: expected '}' before 'MULTIARCH_PATH'
 #define DEFLIBDIRS { "/usr/lib/", "/usr/lib/" MULTIARCH_PATH "/", 0 }
                                               ^
./cc.c:230:22: note: in expansion of macro 'DEFLIBDIRS'
 char *deflibdirs[] = DEFLIBDIRS;
                      ^
Makefile:50: recipe for target 'cc.o' failed
make[2]: *** [cc.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/dev-lang/pcc-1.1.0/work/pcc-1.1.0/cc/cc'
Makefile:12: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/var/tmp/portage/dev-lang/pcc-1.1.0/work/pcc-1.1.0/cc'
Makefile:12: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: dev-lang/pcc-1.1.0::gentoo failed (compile phase):
 *   emake failed

Full log attached and emerge --info

Reproducible: Always
Comment 1 Bertrand Jacquin 2015-03-08 23:38:30 UTC
Created attachment 398420 [details]
build.log
Comment 2 Bertrand Jacquin 2015-03-08 23:38:45 UTC
Created attachment 398422 [details]
emerge --info
Comment 3 Patrick Lauer gentoo-dev 2015-03-09 09:18:22 UTC
#ifdef MULTIARCH_PATH
#define DEFLIBDIRS      { "/usr/lib/", 0 }
#else
#define DEFLIBDIRS      { "/usr/lib/", "/usr/lib/" MULTIARCH_PATH "/", 0 }
#endif


That is just perfectly backwards ...
Comment 4 Patrick Lauer gentoo-dev 2015-03-09 09:26:58 UTC
+  09 Mar 2015; Patrick Lauer <patrick@gentoo.org>
+  +files/pcc-1.1.0-multiarch.patch, +pcc-1.1.0-r1.ebuild, -pcc-1.1.0.ebuild:
+  Fix multiarch logic #542606