| Summary: | sys-devel/gcc-4.8.4: /usr/i686-gentoo-freebsd9.2/usr/include/malloc.h:3:2: error: #error "<malloc.h> has been replaced by <stdlib.h>" | ||
|---|---|---|---|
| Product: | Gentoo/Alt | Reporter: | i.Dark_Templar <idarktemplar> |
| Component: | FreeBSD | Assignee: | Gentoo/BSD Team <bsd+disabled> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | idarktemplar |
| Priority: | Normal | Keywords: | PATCH |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
gcc-build-logs.tar.bz2
freebsd-crosscompilation.patch 0044-gengtypes.patch gcc-build-logs2.tar.bz2 |
||
|
Description
i.Dark_Templar
2015-03-30 15:36:03 UTC
Created attachment 400168 [details]
gcc-build-logs.tar.bz2
Created attachment 400172 [details, diff]
freebsd-crosscompilation.patch
One of two patches which allowed me to build gcc.
Created attachment 400174 [details, diff] 0044-gengtypes.patch Second patch. After fixing first issue I hit another one, but fortunately I found fix here and took this patch from here IIRC: http://lists.openembedded.org/pipermail/openembedded-core/2013-August/083103.html Created attachment 400186 [details]
gcc-build-logs2.tar.bz2
Build logs for build with only freebsd-crosscompilation.patch applied.
Part with error:
i686-gentoo-freebsd9.2-g++ -c -DGENERATOR_FILE -O2 -pipe -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I/usr/i686-gentoo-freebsd9.2/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc -I/usr/i686-gentoo-freebsd9.2/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/. -I/usr/i686-gentoo-freebsd9.2/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/../include -I/usr/i686-gentoo-freebsd9.2/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/../libcpp/include -I/usr/i686-gentoo-freebsd9.2/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/../libdecnumber -I/usr/i686-gentoo-freebsd9.2/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/../libdecnumber/dpd -I../libdecnumber -I/usr/i686-gentoo-freebsd9.2/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/../libbacktrace /usr/i686-gentoo-freebsd9.2/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/gengtype.c -o gengtype.o
In file included from /usr/i686-gentoo-freebsd9.2/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/gengtype.c:25:0:
/usr/i686-gentoo-freebsd9.2/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/gengtype.c: In function ‘void error_at_line(const fileloc*, const char*, ...)’:
/usr/i686-gentoo-freebsd9.2/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/system.h:93:53: error: ‘fputc_unlocked’ was not declared in this scope
# define fputc(C, Stream) fputc_unlocked (C, Stream)
^
/usr/i686-gentoo-freebsd9.2/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/gengtype.c:117:3: note: in expansion of macro ‘fputc’
fputc ('\n', stderr);
^
/usr/i686-gentoo-freebsd9.2/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/gengtype.c: In function ‘bool is_file_equal(outf_p)’:
/usr/i686-gentoo-freebsd9.2/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/system.h:130:47: error: ‘fgetc_unlocked’ was not declared in this scope
# define fgetc(Stream) fgetc_unlocked (Stream)
^
/usr/i686-gentoo-freebsd9.2/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/gengtype.c:2303:12: note: in expansion of macro ‘fgetc’
ch = fgetc (newfile);
^
/usr/i686-gentoo-freebsd9.2/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/gengtype.c: In function ‘void close_output_files()’:
/usr/i686-gentoo-freebsd9.2/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/system.h:165:77: error: ‘fwrite_unlocked’ was not declared in this scope
# define fwrite(Ptr, Size, N, Stream) fwrite_unlocked (Ptr, Size, N, Stream)
^
/usr/i686-gentoo-freebsd9.2/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4/gcc/gengtype.c:2343:8: note: in expansion of macro ‘fwrite’
if (fwrite (of->buf, 1, of->bufused, newfile) != of->bufused)
^
Makefile:1070: recipe for target 'gengtype.o' failed
gmake[2]: *** [gengtype.o] Error 1
gmake[2]: Leaving directory '/usr/i686-gentoo-freebsd9.2/tmp/portage/sys-devel/gcc-4.8.4/work/build/gcc'
Makefile:3906: recipe for target 'all-gcc' failed
gmake[1]: *** [all-gcc] Error 2
gmake[1]: Leaving directory '/usr/i686-gentoo-freebsd9.2/tmp/portage/sys-devel/gcc-4.8.4/work/build'
Makefile:854: recipe for target 'all' failed
gmake: *** [all] Error 2
* ERROR: sys-devel/gcc-4.8.4::gentoo failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=sys-devel/gcc-4.8.4::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sys-devel/gcc-4.8.4::gentoo'`.
* The complete build log is located at '/usr/i686-gentoo-freebsd9.2/tmp/portage/sys-devel/gcc-4.8.4/temp/build.log'.
* The ebuild environment file is located at '/usr/i686-gentoo-freebsd9.2/tmp/portage/sys-devel/gcc-4.8.4/temp/environment'.
* Working directory: '/usr/i686-gentoo-freebsd9.2/tmp/portage/sys-devel/gcc-4.8.4/work/build'
* S: '/usr/i686-gentoo-freebsd9.2/tmp/portage/sys-devel/gcc-4.8.4/work/gcc-4.8.4'
*-fbsd is gone. |