Package Details: gcc-gcj 6.1.1-2

Git Clone URL: https://aur.archlinux.org/gcc-gcj.git (read-only)
Package Base: gcc-gcj
Description: The GNU Compiler for Java
Upstream URL: http://gcc.gnu.org
Licenses: GPL, LGPL
Submitter: Allan
Maintainer: valandil
Last Packager: valandil
Votes: 234
Popularity: 2.650107
First Submitted: 2009-05-08 17:48
Last Updated: 2016-05-11 17:05

Pinned Comments

valandil commented on 2016-05-11 14:02

This package, gcc-gcj, is a subset of the GNU Compiler Collection, specifically the Java compiler part. In Arch Linux, it is mostly used to compile pdftk, a very nifty command-line PDF tool.

It is *very* long to compile and takes up a lot of disk space while doing so. Do not AUR helpers to compile this thing, you'll probably end up filling your /tmp partition and crash the compilation process. Download the PKGBUILD (either with yaourt -G gcc-gcj, with the helper of your choice or even manually) and run makepkg.

If you do not want to compile this and only need it for pdftk, consider using pdftk-bin. As its name indicates, it is a precompiled version of pdftk and depends only on libgcj, also precompiled.

The latest update has changed the way we download gcc. We now use the git repo and specify a given commit. As mentioned in recent comments (as of May 11th, 2016), this can be a pain as the git repo is rather large. I will probably switch back to tarballs if I can in the near future.

Latest Comments

valandil commented on 2016-05-12 13:35

@cfr42 I assume you used makepkg. Have you tried removing your src/ directory? Sometimes a previous failed build can cause problems the second time around. (For the record, I'm not sure this is the problem, but the fact that the recipe for `cc1` failed would be alarming if it were not for a trivial issue.)

@KlipperKyle Oh I wasn't aware of that syntax. I'll definitely use that in -3. For now I rely on the fact gcc-{_commit}{rest_of_sha_hash}/ is the only directory containing the string gcc-{_commit} and use cd gcc-{_commit}* to change directory. It's a bit of a kludge. Thanks for the suggestion!

KlipperKyle commented on 2016-05-12 04:39

@bidulock and @valandil, thank you for pointing out the Github snapshot trick. I almost forgot about that. And thank you for switching back to a tarball.

I did change one line to give the source tarball a reasonable name (I like to keep a small archive of source code in case e.g. a soname bump forces me to rebuild.):

"gcc-6.1.1.tar.gz::https://github.com/gcc-mirror/gcc/archive/${_commit}.tar.gz"

That's strange that there is no officially sanctioned 6.1.1 tarball yet. It seems weird that gcc would want to switch from 90MB tarballs to telling every build engineer to grab every single revision in history.

(I don't mean to knock git in any way. I use git quite a bit for revision control, and it is great. However, I think in this instance a tarball is more appropriate because of the sheer amount of bandwidth saved (about 90%).)

cfr42 commented on 2016-05-11 23:46

I tried to build the new version and ran out of space. Having freed some up, I tried again and the build failed with

collect2: error: ld returned 1 exit status
../../gcc/c/Make-lang.in:71: recipe for target 'cc1' failed
make[3]: *** [cc1] Error 1
make[3]: Leaving directory '/home/software/builds/gcc-gcj/src/gcc-80f78834ceffb73c04274c07e0fb2e47d23ff2ed/build/gcc'
Makefile:4472: recipe for target 'all-stage3-gcc' failed
make[2]: *** [all-stage3-gcc] Error 2
make[2]: Leaving directory '/home/software/builds/gcc-gcj/src/gcc-80f78834ceffb73c04274c07e0fb2e47d23ff2ed/build'
Makefile:22914: recipe for target 'stage3-bubble' failed
make[1]: *** [stage3-bubble] Error 2
make[1]: Leaving directory '/home/software/builds/gcc-gcj/src/gcc-80f78834ceffb73c04274c07e0fb2e47d23ff2ed/build'
Makefile:915: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...

cfr42 commented on 2016-05-11 20:25

Thanks for trying to find another option. 1.7G is quite a hefty amount of disk space, even aside from the bandwidth issues. I'm trying out the -2 at the moment. (I'll probably regret this since I guess it isn't really needed.)

bidulock commented on 2016-05-11 17:22

@valandil, many thanks for all your work on the package!

valandil commented on 2016-05-11 17:08

A bit of a hack, but I now use the tarball generated by GitHub to fetch the source. Basically, you can ask GitHub for a given commit with

wget https://github.com/gcc-mirror/gcc/archive/{commit}.tar.gz

and it'll give it to you. I would prefer to use the official tarball, but like I said I didn't find one for gcc-6.1.1, only gcc-6.1.0. Downloading the proper commit from GitHub might be easier to maintain.

Let me know if you run into any issues.

@bidulock beat me to it by a couple seconds ;)

bidulock commented on 2016-05-11 17:08

You can download a .zip of that commit instead of cloning the entire repository.

https://github.com/gcc-mirror/gcc/archive/80f78834ceffb73c04274c07e0fb2e47d23ff2ed.zip

I think that you can also use:

https://github.com/gcc-mirror/gcc/archive/80f78834ceffb73c04274c07e0fb2e47d23ff2ed.tar.gz

if you prefer. These are likely twice the size of a .xz, but way better than 1.7G.

valandil commented on 2016-05-11 14:02

This package, gcc-gcj, is a subset of the GNU Compiler Collection, specifically the Java compiler part. In Arch Linux, it is mostly used to compile pdftk, a very nifty command-line PDF tool.

It is *very* long to compile and takes up a lot of disk space while doing so. Do not AUR helpers to compile this thing, you'll probably end up filling your /tmp partition and crash the compilation process. Download the PKGBUILD (either with yaourt -G gcc-gcj, with the helper of your choice or even manually) and run makepkg.

If you do not want to compile this and only need it for pdftk, consider using pdftk-bin. As its name indicates, it is a precompiled version of pdftk and depends only on libgcj, also precompiled.

The latest update has changed the way we download gcc. We now use the git repo and specify a given commit. As mentioned in recent comments (as of May 11th, 2016), this can be a pain as the git repo is rather large. I will probably switch back to tarballs if I can in the near future.

valandil commented on 2016-05-11 13:54

I can replicate this if I have already tried to install gcc-gcj using yaourt before. Simply remove your /tmp/yaourt-tmp-{user} directory and try again. The downside is that you will download the git repo all over again. You're better off using makepkg directly (yaourt -G gcc-gcj && cd gcc-gcj && makepkg).

(I wish I had the capability to pin this comment on here, or put it even earlier in the build process.)

UPDATE: Apparently I can pin comments. I'll write something up.

ArnaudNux commented on 2016-05-11 13:43

==> Building and installing package
==> Making package: gcc-gcj 6.1.1-1 (Wed May 11 15:41:47 CEST 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Cloning gcc git repo...
Cloning into bare repository '/tmp/yaourt-tmp/aur-gcc-gcj/gcc'...
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
==> ERROR: Failure while downloading gcc git repo
Aborting...
==> ERROR: Makepkg was unable to build gcc-gcj.
==> Restart building gcc-gcj ? [y/N]

valandil commented on 2016-05-11 11:28

I don't mind switching back to a tarball. However, I can't seem to find a tarball for version gcc 6.1.1. Since we have to use the same version number for gcc and gcc-gcj, we might be stuck with the git repo.

Since this package should be compiled with makepkg directly anyway (see 90% of the comments below), the git repo will be a large download the first time, and then will consist of small diffs. Not ideal, but not too bad either.

@KlipperKyle I am not aware of a way to simply "download" a git commit. However, there is a way to do this on GitHub, and there happens to be gcc-mirror GitHub page. I can test this to see if it works.

@cfr42 Yes, notice that in the PKGBUILD I symlink isl and cloog in gcc's tree. It uses the downloaded version. isl is 1.6M download, and cloog a 4.6M one. This isn't much of an issue.

KlipperKyle commented on 2016-05-11 04:10

I have to echo @cfr42's thoughts.

Personally, I would prefer a tarball. When building a package, I really don't care about every revision in the code tree. I just need the officially sanctioned snapshot.

Comparing file sizes, the 92M tarball is about 10% the size of the git repo.

Is there any hack that only grabs the snapshot of the git repo you need? What is the advantage of cloning the *entire* git repo?

Either way, thank you for maintaining this package. Large packages like this can be a lot of work to maintain. (And users like me asking why certain things are done certain ways can be annoying. ;-) )

cfr42 commented on 2016-05-10 22:16

Thanks for maintaining this. I so wish this was in the repos in binary form. The new version is, I guess, going to take even longer to compile. On my system, it has still not finished checking out the code to begin from the git repository.

This is going to make it even trickier for people with bandwidth limitations. Anybody who has limited download allowances should bear the following in mind:

For gcc-gcj 5.3.0:

* gcc 5.3.0 tar.bz2: 92M

For gcc-gcj 6.1.1:

* gcc 6.1.1 git repo: 1.72G
* isl 0.17 tar.bz2: ?? (still waiting)
* cloog 0.18.4 tar.gz: ?? (still waiting)

But then it says it uses the 'in-tree' version of isl, anyway?

valandil commented on 2016-05-10 19:37

I was finally able to make it work (most of the time was spent compiling ^_^).

@haawda I did not have that particular issue and therefore left the line as is.

@frankspace Thanks for the updated PKGBUILD. I used some of it in this update.

The update to gcc 6 apparently changed the value of ${CHOST}. It will now contain the string "x86_64-pc-linux-gnu" for a 64-bit system. During testing, I uncovered that my makepkg.conf was still setting ${CHOST} to "x86_64-unknown-linxux-gnu" and was therefore causing run-time errors with gcc-gcj. Make sure that your makepkg.conf is up to date.

I'm not sure what the issue with fibheap was, but removing the line

echo ${pkgver} > gcc/BASE-VER

fixed it.

valandil commented on 2016-05-09 13:49

@rabarrett

Sorry for the lack of response, I hadn't seen your comment. I'm hopeful that this update will fix your issue. If not, I'll try to work it out.

valandil commented on 2016-05-09 13:48

I'm having an issue with fibheap, for some reason.

Error:
http://pastebin.com/hJfb02rY

PKGBUILD:
http://pastebin.com/ZqDP0grH

Will report back when I have found the cause of this issue.

valandil commented on 2016-05-09 13:27

Sorry for the delay, I was out of town last week. I am currently testing your PKGBUILD. The package should be ready by tonight (EST).

haawda commented on 2016-05-08 21:51

frankspace, your PKGBUILD did not work for me, I had to change line 78 to
install -Dm755 jc1 ${pkgdir}/usr/lib/gcc/${CHOST}/${pkgver}/jc1

frankspace commented on 2016-05-07 18:11

The following PKGBUILD worked for me, it's been tweaked to match the official repo's transition to using git and version "6.1.1". This built successfully for me on an x86_64 box and I was able to compile pdftk (which I tested as working) with it.

http://pastebin.com/eptkCRzq

rabarrett commented on 2016-04-12 01:06

No, 64-bit. I'll run the makepkg again and pipe the full output to a file for you.

Here is the output:
url: https://ptpb.pw/7LWx

valandil commented on 2016-04-11 19:16

Hmm, I'm not sure what's happening. Are you on a 32-bit system?

EDIT: What's weird is that I can't find this function `int recog_136` in my own gcc-5.3.0/ source tree.

rabarrett commented on 2016-04-11 18:44

When I just download the snapshot and compile with makepkg -sri, I get this error:

http://pastebin.com/nEwVb37F

valandil commented on 2016-04-11 14:59

I cannot replicate these. Try downloading the package (either through the snapshot or with yaourt -G) and compile with makepkg. If that doesn't work, post the errors you get then.

rabarrett commented on 2016-04-10 21:52

I seem to be getting a different error than others. I first tried to install it with pacaur which gave me an "internal compiler error: Segmentation fault."

pacaur error details pasted here:
http://pastebin.com/E2JiHTYu

Then I tried to install it with packer, which gave me these errors:
http://pastebin.com/szVyMyCd

cfr42 commented on 2016-04-06 21:59

Great! Thank you. And thanks for sorting all this out so efficiently.

valandil commented on 2016-04-06 20:37

Yes.

cfr42 commented on 2016-04-06 20:36

Is it safe to ignore the update to 5.3.0-7? I mean: I don't wish to rebuild this particular package unless there's a need to!

valandil commented on 2016-04-06 13:59

Well that was fast. Next time I'll wait a little longer before updating the package.

Hey at least the pgkrel is fixed now ;)

bidulock commented on 2016-04-06 13:56

FS#48813 has been fixed and classpath 0.99-3 works again now.
I will request deletion of classpath-notools.

cfr42 commented on 2016-04-06 13:15

Is there a missing dependency in classpath-notools? I get a compilation error complaining no suitable java compiler is found. Note that I uninstalled gcc-gcj in order to complete the system upgrade. I installed dependencies to satisfy classpath-notools. But I get

checking for gcj... no
configure: error: no acceptable Java compiler found in $PATH
==> ERROR: A failure occurred in build().
Aborting...

So now it seems that classpath-notools can't be built unless gcc-gcj is already built and installed. But gcc-gcj can't be installed (or built?) unless classpath-notools is installed and built first.

Presumably not an issue if you didn't uninstall in order to upgrade the system, but that's not a workable generic solution.

valandil commented on 2016-04-06 12:15

Thanks for the info, @bidulock. I've changed to classpath-notools in the dependencies of gcc-gcj for the time being. This will make sure that new installations work properly.

For current installations, simply install classpath-notools and you will be able to update the rest of your packages.

I will revert back to using classpath when FS#48813 is fixed (if it is fixed).

bidulock commented on 2016-04-06 08:56

Ok, added classpath-notools. Compile and build classpath-notools and replace classpath with it. Your existing gcc-gcj should work. If classpath is not fixed by next iteration, add classpath-notools to depends=() in gcc-gcj.

bidulock commented on 2016-04-06 04:31

See FS#48813.

I am in process of building AUR classpath-notools to replace classpath as dependency for gcc-gcj. Still hoping Sergey removes the tools again as well a gjdoc.1.gz as well per the original bug report.

cfr42 commented on 2016-04-05 20:54

I've uninstalled gcc-gcj and pdftk for the reason mentioned by David-UPCT. I take it this is the recommended action but am hoping some other action will be possible soon.

David-UPCT commented on 2016-04-05 18:25

I have gcc-gcj-5.3.0-1 installed (as it's a dependance of pdftk), and classpath (as it's a dependance of gcc-gcj). Today classpath has been updated in the community repo to classpath-0.99-2, and I've received the following messages when updating:

error: failed to commit transaction (conflicting files)
/usr/bin/gappletviewer exists in both 'classpath' and 'gcc-gcj'
/usr/bin/gjar exists in both 'classpath' and 'gcc-gcj'
/usr/bin/gjarsigner exists in both 'classpath' and 'gcc-gcj'
/usr/bin/gjavah exists in both 'classpath' and 'gcc-gcj'
/usr/bin/gkeytool exists in both 'classpath' and 'gcc-gcj'
/usr/bin/gnative2ascii exists in both 'classpath' and 'gcc-gcj'
/usr/bin/gorbd exists in both 'classpath' and 'gcc-gcj'
/usr/bin/grmic exists in both 'classpath' and 'gcc-gcj'
/usr/bin/grmid exists in both 'classpath' and 'gcc-gcj'
/usr/bin/grmiregistry exists in both 'classpath' and 'gcc-gcj'
/usr/bin/gserialver exists in both 'classpath' and 'gcc-gcj'
/usr/bin/gtnameserv exists in both 'classpath' and 'gcc-gcj'
/usr/lib/security/classpath.security exists in both 'classpath' and 'gcc-gcj'
/usr/share/man/man1/gappletviewer.1.gz exists in both 'classpath' and 'gcc-gcj'
/usr/share/man/man1/gcjh.1.gz exists in both 'classpath' and 'gcc-gcj'
/usr/share/man/man1/gjar.1.gz exists in both 'classpath' and 'gcc-gcj'
/usr/share/man/man1/gjarsigner.1.gz exists in both 'classpath' and 'gcc-gcj'
/usr/share/man/man1/gjavah.1.gz exists in both 'classpath' and 'gcc-gcj'
/usr/share/man/man1/gkeytool.1.gz exists in both 'classpath' and 'gcc-gcj'
/usr/share/man/man1/gnative2ascii.1.gz exists in both 'classpath' and 'gcc-gcj'
/usr/share/man/man1/gorbd.1.gz exists in both 'classpath' and 'gcc-gcj'
/usr/share/man/man1/grmid.1.gz exists in both 'classpath' and 'gcc-gcj'
/usr/share/man/man1/grmiregistry.1.gz exists in both 'classpath' and 'gcc-gcj'
/usr/share/man/man1/gserialver.1.gz exists in both 'classpath' and 'gcc-gcj'
/usr/share/man/man1/gtnameserv.1.gz exists in both 'classpath' and 'gcc-gcj'
Errors occurred, no packages were upgraded.

haawda commented on 2016-02-28 15:26

Install pkg-config. It is in the base-devel-group, which you should install also.

madman_xxx commented on 2016-02-28 11:20

Compiling fails:

checking for pkg-config... no
*** The pkg-config script could not be found. Make sure it is
*** in your path, or set the PKG_CONFIG environment variable
*** to the full path to pkg-config.
*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config.
configure: error: Library requirements (gtk+-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
Makefile:18426: recipe for target 'configure-target-libjava' failed
make[1]: *** [configure-target-libjava] Error 1
make[1]: Leaving directory '/mnt/res/AUR/gcc-gcj/src/gcc-5.3.0/build'
Makefile:904: recipe for target 'all' failed
make: *** [all] Error 2

F3nr1s commented on 2015-12-24 19:21

(removed original comment)
Okay, should have read the over comments. Problem was, that I was compiling in the tmp-directory and this was to small (< 10 GB).

valandil commented on 2015-12-10 22:01

Compilation should be fixed with the new version. It was probably caused by trying to compile gcc-gcj-5.2 with gcc-5.3, but my Russian is not so good. ;)

colorprint commented on 2015-10-12 15:22

Compiling fails:

libtool: link: /home/TMP/yaourt/tmp/yaourt-tmp-anton/aur-gcc-gcj/src/gcc-5.2.0/build/./gcc/gcj -B/home/TMP/yaourt/tmp/yaourt-tmp-anton/aur-gcc-gcj/src/gcc-5.2.0/build/x86_64-unknown-linux-gnu/libjava/ -B/home/TMP/yaourt/tmp/yaourt-tmp-anton/aur-gcc-gcj/src/gcc-5.2.0/build/./gcc/ -B/usr/x86_64-unknown-linux-gnu/bin/ -B/usr/x86_64-unknown-linux-gnu/lib/ -isystem /usr/x86_64-unknown-linux-gnu/include -isystem /usr/x86_64-unknown-linux-gnu/sys-include -fomit-frame-pointer -Usun -g -O2 -o .libs/gc-analyze --main=gnu.gcj.tools.gc_analyze.MemoryAnalyze -shared-libgcc -L/home/TMP/yaourt/tmp/yaourt-tmp-anton/aur-gcc-gcj/src/gcc-5.2.0/build/x86_64-unknown-linux-gnu/libjava/.libs -L/home/TMP/yaourt/tmp/yaourt-tmp-anton/aur-gcc-gcj/src/gcc-5.2.0/build/x86_64-unknown-linux-gnu/libjava ./.libs/libgcj-tools.so -lm /home/TMP/yaourt/tmp/yaourt-tmp-anton/aur-gcc-gcj/src/gcc-5.2.0/build/x86_64-unknown-linux-gnu/libjava/.libs/libgcj.so ./.libs/libgcj.so -lpthread -lrt -ldl -lz -Wl,-rpath -Wl,/usr/lib/../lib
make[3]: выход из каталога «/home/TMP/yaourt/tmp/yaourt-tmp-anton/aur-gcc-gcj/src/gcc-5.2.0/build/x86_64-unknown-linux-gnu/libjava»
make[2]: выход из каталога «/home/TMP/yaourt/tmp/yaourt-tmp-anton/aur-gcc-gcj/src/gcc-5.2.0/build/x86_64-unknown-linux-gnu/libjava»
make[1]: выход из каталога «/home/TMP/yaourt/tmp/yaourt-tmp-anton/aur-gcc-gcj/src/gcc-5.2.0/build»
Makefile:904: ошибка выполнения рецепта для цели «all»
make: *** [all] Ошибка 2

haawda commented on 2015-10-11 12:00

Compiles and installs fine here. The directory should be .../gcc-gcj/pkg/gcc-gcj/usr/lib/gcc/x86_64-unknown-linux-gnu/5.2.0/ or the like, so it seems something went wrong with the detection of your architecture.

kopiersperre commented on 2015-10-11 10:33

Compiling works, but installing fails:

install: target '.../gcc-gcj/pkg/gcc-gcj/usr/lib/gcc//5.2.0/' is not a directory: No such file or directory

valandil commented on 2015-09-26 13:53

Could not reproduce. Compiles with isl-0.14.1 that is downloaded with this package.

sagittarius commented on 2015-09-26 12:45

To be able to compile gcc-gcj, I had to uninstall pdtk and to install aur/isl 0.15-1.

valandil commented on 2015-09-15 17:40

I'm on vacation. Be back in two weeks. In theeantime, verify that you have enough space in /tmp (my German is rusty). Build manually with yaourt -G gcc-gcj and makepkg.

jro commented on 2015-09-14 21:16

Build fails reproducibly:

g++ -c -DIN_GCC_FRONTEND -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc/../libbacktrace -I/tmp/yaourt-tmp-jr/aur-gcc-gcj/src/gcc-5.2.0/build/./isl/include -I/tmp/yaourt-tmp-jr/aur-gcc-gcj/src/gcc-5.2.0/isl/include -D_FORTIFY_SOURCE=2 -O2 -o cc1-checksum.o -MT cc1-checksum.o -MMD -MP -MF ./.deps/cc1-checksum.TPo cc1-checksum.c
g++ -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -Wl,-O1,--sort-common,--as-needed,-z,relro -o cc1 c/c-lang.o c-family/stub-objc.o attribs.o c/c-errors.o c/c-decl.o c/c-typeck.o c/c-convert.o c/c-aux-info.o c/c-objc-common.o c/c-parser.o c/c-array-notation.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o c-family/c-cilkplus.o c-family/array-notation-common.o c-family/cilk.o c-family/c-ubsan.o i386-c.o glibc-c.o \
cc1-checksum.o libbackend.a main.o tree-browser.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/tmp/yaourt-tmp-jr/aur-gcc-gcj/src/gcc-5.2.0/build/./isl/.libs -lisl -lmpc -lmpfr -lgmp -lz
collect2: Fehler: ld gab 1 als Ende-Status zurück
../../gcc/c/Make-lang.in:71: die Regel für Ziel „cc1“ scheiterte
make[3]: *** [cc1] Fehler 1
make[3]: Verzeichnis „/tmp/yaourt-tmp-jr/aur-gcc-gcj/src/gcc-5.2.0/build/gcc“ wird verlassen
Makefile:4373: die Regel für Ziel „all-stage1-gcc“ scheiterte
make[2]: *** [all-stage1-gcc] Fehler 2
make[2]: Verzeichnis „/tmp/yaourt-tmp-jr/aur-gcc-gcj/src/gcc-5.2.0/build“ wird verlassen
Makefile:21779: die Regel für Ziel „stage1-bubble“ scheiterte
make[1]: *** [stage1-bubble] Fehler 2
make[1]: Verzeichnis „/tmp/yaourt-tmp-jr/aur-gcc-gcj/src/gcc-5.2.0/build“ wird verlassen
Makefile:904: die Regel für Ziel „all“ scheiterte
make: *** [all] Fehler 2

valandil commented on 2015-08-27 14:21

You'll have to uninstall pdftk before updating gcc-gcj. Sorry, that's my bad.

Pietro_Pizzi commented on 2015-08-27 08:19

I have a problem. I would do a system upgrade but i get (after successful building):

error: failed to prepare transaction (could not satisfy dependencies)
:: pdftk: requires gcc-gcj=5.1.0
==> WARNING: Your packages are saved in /tmp/yaourt-tmp-pietro

So i tried installing pdftk first but:

pdftk.cc:33:21: fatal error: gcj/cni.h: No such file or directory
compilation terminated.
Makefile.Base:46: recipe for target 'pdftk.o' failed
make: *** [pdftk.o] Error 1
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build pdftk.

What should i do?

Pietro_Pizzi commented on 2015-08-27 08:18

I have a problem. When i would do an system upgrade i get (after successful building):

error: failed to prepare transaction (could not satisfy dependencies)
:: pdftk: requires gcc-gcj=5.1.0
==> WARNING: Your packages are saved in /tmp/yaourt-tmp-pietro

So i tried installing pdftk first but:

pdftk.cc:33:21: fatal error: gcj/cni.h: No such file or directory
compilation terminated.
Makefile.Base:46: recipe for target 'pdftk.o' failed
make: *** [pdftk.o] Error 1
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build pdftk.

What should i do?

valandil commented on 2015-07-23 20:06

I've had linking issues in the past when trying to compile pdftk with mismatched version of gcc and gcc-gcj. Will try again a little bit later.

haawda commented on 2015-07-23 20:04

changing pkgver to 5.2.0 and md5sum is enough to compile.

valandil commented on 2015-04-24 03:42

This will remain out of date until gcc in [core] is updated to version 5.1.

valandil commented on 2015-04-22 13:59

You are absolutely right. I did not catch it before because I use gcc-gcj solely to build pdftk, which itself depends on gcc-gcj-ecj.

Thanks!

valandil commented on 2015-04-22 03:52

What do you mean, nhlemann? I can compile pdftk (which uses gcj) just fine wihtout gcc-gcj-ecj. Please show me the error you get.

nlehmann commented on 2015-04-21 21:44

Doesn't this package have as dependency gcc-gcj-ecj? I had to install it in order to use gcj.

valandil commented on 2015-03-29 18:26

Vous avez manqué d'espace dans votre /tmp. Il faut faire

yaourt -G gcc-gcj

dans un sous-dossier avec au moins 10GB d'espace et makepkg.

teke commented on 2015-03-29 11:50

collect2: error: ld returned 1 exit status
Makefile:9325 : la recette pour la cible « libgcj.la » a échouée
make[3]: *** [libgcj.la] Erreur 1
make[3]: *** Attente des tâches non terminées....
jc1: erreur fatale: erreur d'écriture dans /tmp/ccdjVSIu.s: Aucun espace disponible sur le périphérique
compilation terminée.
Makefile:10102 : la recette pour la cible « classpath/tools/libgcj_tools_la-tools.lo » a échouée
make[3]: *** [classpath/tools/libgcj_tools_la-tools.lo] Erreur 1
make[3] : on quitte le répertoire « /tmp/yaourt-tmp-rc/aur-gcc-gcj/src/gcc-4.9.2/build/x86_64-unknown-linux-gnu/libjava »
Makefile:10240 : la recette pour la cible « all-recursive » a échouée
make[2]: *** [all-recursive] Erreur 1
make[2] : on quitte le répertoire « /tmp/yaourt-tmp-rc/aur-gcc-gcj/src/gcc-4.9.2/build/x86_64-unknown-linux-gnu/libjava »
Makefile:18311 : la recette pour la cible « all-target-libjava » a échouée
make[1]: *** [all-target-libjava] Erreur 2
make[1] : on quitte le répertoire « /tmp/yaourt-tmp-rc/aur-gcc-gcj/src/gcc-4.9.2/build »
Makefile:894 : la recette pour la cible « all » a échouée
make: *** [all] Erreur 2
==> ERREUR : Une erreur s’est produite dans build().
Abandon...
==> ERREUR: Makepkg n'a pas pu construire gcc-gcj.


Sniff...

bich_30 commented on 2015-02-26 14:06

It resolved!!

uninstall the gcc, gcc-lib and gcc-* the 32 bits (gcc-* multi) and install the gcc* for 64 bits.

You restasrt the yaourt command and OK!!

PD: you need very disk in the folder /tmp, around 4,5 GB.

valandil commented on 2015-01-28 16:59

Good for you.

You probably just had to manually compiling the package in a separate directory by doing yaourt -G and then makepkg.

hoobastank commented on 2015-01-28 12:22

Sorry folks but I have no time to wait for this as I said it's some urgent situation for me. That's why I've looked around for it's binary package and found it on this repo https://wiki.archlinux.org/index.php/Unofficial_user_repositories#archlinuxcn

Thank you very much.

hoobastank commented on 2015-01-28 11:50

Hi,

I'm getting the error which is below. On the other hand to avoid from this error I've tried to install it's binary version via pacman using kps repository, but it wasn't in the repo. There is no file something like that "gcc-gcj-4.9-2-2-any.pkg.tar.xz" whereas I need this package very urgent :( Is there anyone else can help me please? Thanks in advance.

************************ error ************************
build/genchecksum cp/cp-lang.o c-family/stub-objc.o cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parser.o cp/ptree.o cp/rtti.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o cp/search.o cp/semantics.o cp/tree.o cp/repo.o cp/dump.o cp/optimize.o cp/mangle.o cp/cp-objcp-common.o cp/name-lookup.o cp/cxx-pretty-print.o cp/cp-cilkplus.o cp/cp-gimplify.o cp/cp-array-notation.o cp/lambda.o cp/vtable-class-hierarchy.o attribs.o incpath.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o c-family/c-cilkplus.o c-family/array-notation-common.o c-family/cilk.o c-family/c-ubsan.o i386-c.o glibc-c.o libbackend.a main.o tree-browser.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a ../libbacktrace/.libs/libbacktrace.a \
checksum-options > cc1plus-checksum.c.tmp && \
../../gcc/../move-if-change cc1plus-checksum.c.tmp cc1plus-checksum.c
g++ -c -DIN_GCC_FRONTEND -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc/../libbacktrace -DCLOOG_INT_GMP -I/tmp/yaourt-tmp-vodoo/aur-gcc-gcj/src/gcc-4.9.2/build/./cloog/include -I/tmp/yaourt-tmp-vodoo/aur-gcc-gcj/src/gcc-4.9.2/cloog/include -I../cloog/include -I/tmp/yaourt-tmp-vodoo/aur-gcc-gcj/src/gcc-4.9.2/build/./isl/include -I/tmp/yaourt-tmp-vodoo/aur-gcc-gcj/src/gcc-4.9.2/isl/include -D_FORTIFY_SOURCE=2 -O2 -o cc1plus-checksum.o -MT cc1plus-checksum.o -MMD -MP -MF ./.deps/cc1plus-checksum.TPo cc1plus-checksum.c
g++ -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -Wl,-O1,--sort-common,--as-needed,-z,relro -o cc1plus \
cp/cp-lang.o c-family/stub-objc.o cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parser.o cp/ptree.o cp/rtti.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o cp/search.o cp/semantics.o cp/tree.o cp/repo.o cp/dump.o cp/optimize.o cp/mangle.o cp/cp-objcp-common.o cp/name-lookup.o cp/cxx-pretty-print.o cp/cp-cilkplus.o cp/cp-gimplify.o cp/cp-array-notation.o cp/lambda.o cp/vtable-class-hierarchy.o attribs.o incpath.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o c-family/c-cilkplus.o c-family/array-notation-common.o c-family/cilk.o c-family/c-ubsan.o i386-c.o glibc-c.o cc1plus-checksum.o libbackend.a main.o tree-browser.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/tmp/yaourt-tmp-vodoo/aur-gcc-gcj/src/gcc-4.9.2/build/./cloog/.libs -lcloog-isl -L/tmp/yaourt-tmp-vodoo/aur-gcc-gcj/src/gcc-4.9.2/build/./isl/.libs -lisl -lmpc -lmpfr -lgmp -lz
collect2: error: ld returned 1 exit status
make[3]: *** [cc1plus] Error 1
make[3]: Leaving directory `/tmp/yaourt-tmp-vodoo/aur-gcc-gcj/src/gcc-4.9.2/build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/tmp/yaourt-tmp-vodoo/aur-gcc-gcj/src/gcc-4.9.2/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/tmp/yaourt-tmp-vodoo/aur-gcc-gcj/src/gcc-4.9.2/build'
make: *** [all] Error 2
************************ error ************************

hoobastank commented on 2015-01-28 10:57

Hi,

I'm getting the error which is below. On the other hand to avoid from this error I've tried to install it's binary version via pacman using kps repository, but it wasn't in the repo. There is no file something like that "gcc-gcj-4.9-2-2-any.pkg.tar.xz" whereas I need this package very urgent :( Is there anyone else can help me please? Thanks in advance.

************************ error ************************
build/genchecksum cp/cp-lang.o c-family/stub-objc.o cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parser.o cp/ptree.o cp/rtti.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o cp/search.o cp/semantics.o cp/tree.o cp/repo.o cp/dump.o cp/optimize.o cp/mangle.o cp/cp-objcp-common.o cp/name-lookup.o cp/cxx-pretty-print.o cp/cp-cilkplus.o cp/cp-gimplify.o cp/cp-array-notation.o cp/lambda.o cp/vtable-class-hierarchy.o attribs.o incpath.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o c-family/c-cilkplus.o c-family/array-notation-common.o c-family/cilk.o c-family/c-ubsan.o i386-c.o glibc-c.o libbackend.a main.o tree-browser.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a ../libbacktrace/.libs/libbacktrace.a \
checksum-options > cc1plus-checksum.c.tmp && \
../../gcc/../move-if-change cc1plus-checksum.c.tmp cc1plus-checksum.c
g++ -c -DIN_GCC_FRONTEND -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include -I../../gcc/../libdecnumber -I../../gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc/../libbacktrace -DCLOOG_INT_GMP -I/tmp/yaourt-tmp-mathman/aur-gcc-gcj/src/gcc-4.9.2/build/./cloog/include -I/tmp/yaourt-tmp-mathman/aur-gcc-gcj/src/gcc-4.9.2/cloog/include -I../cloog/include -I/tmp/yaourt-tmp-mathman/aur-gcc-gcj/src/gcc-4.9.2/build/./isl/include -I/tmp/yaourt-tmp-mathman/aur-gcc-gcj/src/gcc-4.9.2/isl/include -D_FORTIFY_SOURCE=2 -O2 -o cc1plus-checksum.o -MT cc1plus-checksum.o -MMD -MP -MF ./.deps/cc1plus-checksum.TPo cc1plus-checksum.c
g++ -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -static-libstdc++ -static-libgcc -Wl,-O1,--sort-common,--as-needed,-z,relro -o cc1plus \
cp/cp-lang.o c-family/stub-objc.o cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parser.o cp/ptree.o cp/rtti.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o cp/search.o cp/semantics.o cp/tree.o cp/repo.o cp/dump.o cp/optimize.o cp/mangle.o cp/cp-objcp-common.o cp/name-lookup.o cp/cxx-pretty-print.o cp/cp-cilkplus.o cp/cp-gimplify.o cp/cp-array-notation.o cp/lambda.o cp/vtable-class-hierarchy.o attribs.o incpath.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o c-family/c-cilkplus.o c-family/array-notation-common.o c-family/cilk.o c-family/c-ubsan.o i386-c.o glibc-c.o cc1plus-checksum.o libbackend.a main.o tree-browser.o libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -L/tmp/yaourt-tmp-mathman/aur-gcc-gcj/src/gcc-4.9.2/build/./cloog/.libs -lcloog-isl -L/tmp/yaourt-tmp-mathman/aur-gcc-gcj/src/gcc-4.9.2/build/./isl/.libs -lisl -lmpc -lmpfr -lgmp -lz
collect2: error: ld returned 1 exit status
make[3]: *** [cc1plus] Error 1
make[3]: Leaving directory `/tmp/yaourt-tmp-mathman/aur-gcc-gcj/src/gcc-4.9.2/build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/tmp/yaourt-tmp-mathman/aur-gcc-gcj/src/gcc-4.9.2/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/tmp/yaourt-tmp-mathman/aur-gcc-gcj/src/gcc-4.9.2/build'
make: *** [all] Error 2
************************ error ************************

gyurman commented on 2014-12-24 15:37

Thanks the information, valandil. ;-)

valandil commented on 2014-12-19 16:52

Hi gyurman,

I must say I am not surprised. The kps repository is an old one, and doesn't seem to be maintained. If you need gcc-gcj for pdftk, install the binary version of the pdftk package. If you need a binary version of gcc-gcj for some other purpose, and other people do, I might consider creating a binary version of this package myself.

Cheers,

haawda commented on 2014-12-16 21:28

gyurman, at least you could write a proper report.

What did you do?

What happend (error messages...)?

And what is kps?

gyurman commented on 2014-12-16 16:18

Hello, I probed to install from kps. But, the problem is. I cannot install. The package is invalid. What can I do?
Thanks

valandil commented on 2014-11-19 16:36

Switched to in-tree build of isl/cloog to mirror the changes in the gcc package in [core] (https://www.archlinux.org/todo/remove-cloogisl-dependency-in-gcc-packages/), as isl-0.13 is now incompatible with gcc.

haawda commented on 2014-11-19 13:44

For the record, I uploaded PKGBUILDs of isl and cloog to AUR and orphaned them.

valandil commented on 2014-11-19 13:01

I'll check this out and report back.

haawda commented on 2014-11-19 11:16

cloog was in [core], I believe. The gcc in [core] does not have it as makedependency anymore.

Rhinoceros commented on 2014-11-19 10:28

It looks like the dependency cloog (and its dependency isl) have been removed from AUR.

valandil commented on 2014-09-18 13:07

I know, it's terrible. Consider using the binary version (https://wiki.archlinux.org/index.php/Unofficial_user_repositories#kps).

narunas commented on 2014-09-18 05:35

Required 3977112 (3.8GB) on my machine to compile, produced 24120 (24M) tarball o_O
And I needed it just as dependency for pdftk

valandil commented on 2014-09-02 12:17

@hepha
If you are not compiling from a seperate build directory, like I indicated in one of my earlier comments, try this. If this doesn't work, I do not know what's wrong, as everything compiles fine on my end.

@mindbound
Nope. I can build this package fine with g++ 4.9.1. In fact, the last version requires this version.

hepha commented on 2014-08-30 21:38

@OdinEidolon
Your error message
Makefile: 20145: recipe for target 'stage1-bubble' failedMakefile: 20145: recipe for target 'stage1-bubble' failed

The top is not like I have this message
recipe for target 'floatformat.o' failed

I also fail to compile and today I find problems with the clang fails
Gcc changed back to normal I hope for your help

mindbound commented on 2014-08-12 20:53

It seems that I can reproduce this with *any* code that contains `#include <iostream.h>` (as opposed to <iostream>) on g++ 4.9.1. Has gcc/g++ stopped including the old C-style headers?

mindbound commented on 2014-08-12 20:52

The problem seems to be reproducible with *any* code that contains `#include <iostream.h>` (as opposed to <iostream>) on g++ 4.9.1. Has gcc/g++ stopped including the old C-style headers?

valandil commented on 2014-08-12 14:17

@mindbound I cannot reproduce the issue at work. I'll try this on my other laptop at home.

mindbound commented on 2014-08-12 03:57

Building via makepkg in a separate directory yields the same result as before.

This can't be caused by lack of space, too (I have more than 1TB free space in my home partition, and compiler emits the error within the first few minutes into the build).

mindbound commented on 2014-08-12 03:56

Building via makepkg in a separate directory yields the same result as before.

This can't be caused by lack of space, too (I have more than 1TB free space in my home partition, and compiler emits the error in the first few minutes into the build).

valandil commented on 2014-08-12 01:18

Yes. See my previous comment on the building process. I'll add a message to the PKGBUILD in the next iteration of the package.

mindbound commented on 2014-08-12 00:19

I built it using yaourt. Should I download the build package and do it manually?

valandil commented on 2014-08-11 15:29

Did you build this from a separate directory?

mindbound commented on 2014-08-11 14:28

I'm also getting the same error as @neonkowy:

../../libiberty/fibheap.c: In function ‘fibheap_delete_node’
../../libiberty/fibheap.c:38:24: error: ‘LONG_MIN’ undeclared (first use in this function)
#define FIBHEAPKEY_MIN LONG_MIN

I'm on Arch x86_64 3.15.8, all packages gcj depends on are updated to current versions.

haawda commented on 2014-08-04 18:01

If you think that this takes forever, try compiling pypy-hg.

Det commented on 2014-08-03 23:13

Holy christ this takes forever.

valandil commented on 2014-07-29 14:14

I'm not sure of what's happening, but it usually works for me.

I use a separate build folder in my home directory and use yaourt -G to download the PKGBUILD and other necessary files and then run makepkg manually. That way, you get to keep a compiled version of the package in your filesystem!

lylambda commented on 2014-07-29 13:08

So I used the command "yaourt --tmp /home/lylambda/TMP gcc-gcj" and edit "/etc/yaourtrc" with TMPDIR="/home/lylambda/TMP" and … that work ! Thanks :)
Maybe that's failed before because I put my /tmp on tmpfs (add line in /etc/fstab : "tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0").

valandil commented on 2014-07-28 01:07

@lylambda Try building from a separate directory anyway and report back if the error happens again (or not!). Thanks.

lylambda commented on 2014-07-26 16:00

On Manjaro, the compilation failed for me. Is it because no space left on my /temp (if yes, it's strange because I have 8GB).

"gcc-4.9.1/build/./gcc -L/lib/../lib -lc -lgcc_s /tmp/yaourt-tmp-lylambda/aur-gcc-gcj/src/gcc-4.9.1/build/./gcc/crtendS.o /lib/../lib/crtn.o -Wl,-Bsymbolic-functions -Wl,--version-script=../../../libjava/libgcj.ver -Wl,-soname -Wl,libgcj-tools.so.15 -o .libs/libgcj-tools.so.15.0.0
libtool: install: /usr/bin/install -c .libs/libgcj-tools.so.15.0.0T /tmp/yaourt-tmp-lylambda/aur-gcc-gcj/pkg/gcc-gcj/usr/lib/../lib/libgcj-tools.so.15.0.0
/usr/bin/install: error writing '/tmp/yaourt-tmp-lylambda/aur-gcc-gcj/pkg/gcc-gcj/usr/lib/../lib/libgcj-tools.so.15.0.0': No space left on device
/usr/bin/install: failed to extend '/tmp/yaourt-tmp-lylambda/aur-gcc-gcj/pkg/gcc-gcj/usr/lib/../lib/libgcj-tools.so.15.0.0': No space left on device
Makefile:8844: recipe for target 'install-toolexeclibLTLIBRARIES' failed
make[3]: *** [install-toolexeclibLTLIBRARIES] Error 1
make[3]: Leaving directory '/tmp/yaourt-tmp-lylambda/aur-gcc-gcj/src/gcc-4.9.1/build/x86_64-unknown-linux-gnu/libjava'
Makefile:10382: recipe for target 'install-am' failed
make[2]: *** [install-am] Error 2
make[2]: Leaving directory '/tmp/yaourt-tmp-lylambda/aur-gcc-gcj/src/gcc-4.9.1/build/x86_64-unknown-linux-gnu/libjava'
Makefile:10240: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/tmp/yaourt-tmp-lylambda/aur-gcc-gcj/src/gcc-4.9.1/build/x86_64-unknown-linux-gnu/libjava'
Makefile:16983: recipe for target 'install-target-libjava' failed
make: *** [install-target-libjava] Error 2
==> ERREUR : Une erreur s’est produite dans package().
Abandon...
==> ERREUR: Makepkg n'a pas pu construire gcc-gcj.
==> Relancer la compilation de gcc-gcj ? [o/N]"

valandil commented on 2014-07-24 17:23

There exists a repo with a binary version of gcc-gcj, for those who do want to compile the package (see https://wiki.archlinux.org/index.php/Unofficial_user_repositories#kps).

It is out-of-date for the moment, but gcc-4.9.1 only came out yesterday in the Arch official repos, so give it some time.

valandil commented on 2014-07-24 17:22

There exists a repo with gcc-gcj (see https://wiki.archlinux.org/index.php/Unofficial_user_repositories#kps).

It is out-of-date for the time being, but gcc-4.9.1 only came out yesterday.

BoLLo commented on 2014-07-24 04:15

My compile required over 3GB. If this is too much for your /tmp mount and you're compiling with yaourt you can use:

--tmp <dir>
Use <dir> as temporary folder. default to /tmp

valandil commented on 2014-06-02 16:17

Are you using yaourt to compile the package? If so, try to download the PKGBUILD in a directory with ample space (I use my /home partition) and compile it from there with makepkg.

And do it overnight.

snoxu commented on 2014-06-02 16:09

And it freezes my system halfway through. Too much hassle to get pdftk.

snoxu commented on 2014-06-02 15:49

Jesus Lordy Christ this takes ages to compile.

haawda commented on 2014-05-27 18:59

Just for the record, in PKGBUILDs "options=('!makeflags')" and/or "options=('buildflags')" is meant for suppressing makepkg.conf's settings. See "make PKGBUILD" for details.

valandil commented on 2014-05-27 17:52

No problem. Made me realize that CPPFLAGS should not be unset, but rather -O2 should be added in the PKGBUILD. Since it's not necessary and gcc-gcj takes a long time to compile, I'll wait until the next point release of gcc to make the update.

JanusDC commented on 2014-05-27 17:24

Ouch. Thanks. Sorry for the noise.

valandil commented on 2014-05-27 17:01

Apparently, -D_FORTIFY_SOURCE=2 should not appear in the CFLAGS/CXXFLAGS, but in the CPPFLAGS (https://mailman.archlinux.org/pipermail/arch-dev-public/2013-April/024776.html) as of pacman-4.1.



valandil commented on 2014-05-27 16:05

Yes, I'm going a couple of tests and will be updating the PKGBUILD soon.

Thanks for the help!

JanusDC commented on 2014-05-27 15:56

Thank you very much! I will try.
Anyway, the flag is valid, and the PKGBUILD should remove it somehow if the package cannot compile with it, doesn't it?

valandil commented on 2014-05-27 15:49

After a couple of tries, the problem seems to lie with the -D_FORTIFY_SOURCE=2 flag. Adding it to my CFLAGS and CXXFLAGS makes the compilation fail for me. My default /etc/makepkg.conf (below) compiles fine.

#-- Compiler and Linker Flags
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
CPPFLAGS="-D_FORTIFY_SOURCE=2"
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4"
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
#-- Make Flags: change this for DistCC/SMP systems
MAKEFLAGS="-j4"
#-- Debugging flags
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"

Try removing -D_FORTIFY_SOURCE=2 from your CFLAGS and CXXFLAGS.

JanusDC commented on 2014-05-27 14:18

I commented out the following lines in /etc/makepkg

CPPFLAGS="-D_FORTIFY_SOURCE=2"
CFLAGS="-march=native -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
MAKEFLAGS="-j4"
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"

Before commenting out these lines, the compilation ends with an error.
For information, after compiling gcc-gcj without these flags, I remove the comments and compiled pdftk without any issues.

valandil commented on 2014-05-27 14:13

Technically, line 49 of the PKGBUILD sets CPPFLAGS=, essentially resetting the flags.

What flags did you remove?

JanusDC commented on 2014-05-27 10:05

I had to comment my flags from makepkg to being able to compile it.
Maybe it would be nice to force in the PKGBUILD the overwrite of the user's flags with some "safe" flags.

JanusDC commented on 2014-05-27 07:52

I still get an error:

libtool: link: ( cd ".libs" && rm -f "libtsan.la" && ln -s "../libtsan.la" "libtsan.la" )
make[4]: Leaving directory '/tmp/makepkg/gcc-gcj/src/gcc-4.9.0/build/x86_64-unknown-linux-gnu/libsanitizer/tsan'
make[4]: Entering directory '/tmp/makepkg/gcc-gcj/src/gcc-4.9.0/build/x86_64-unknown-linux-gnu/libsanitizer'
true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -march=native -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2" "CXXFLAGS=-march=native -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE" "CFLAGS_FOR_BUILD=-march=native -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2" "CFLAGS_FOR_TARGET=-g -march=native -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "JC1FLAGS=" "LDFLAGS=" "LIBCFLAGS=-g -march=native -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2" "LIBCFLAGS_FOR_TARGET=-g -march=native -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2" "MAKE=make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/usr" "infodir=/usr/share/info" "libdir=/usr/lib" "prefix=/usr" "includedir=/usr/include" "AR=ar" "AS=/tmp/makepkg/gcc-gcj/src/gcc-4.9.0/build/./gcc/as" "LD=/tmp/makepkg/gcc-gcj/src/gcc-4.9.0/build/./gcc/collect-ld" "LIBCFLAGS=-g -march=native -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2" "NM=/tmp/makepkg/gcc-gcj/src/gcc-4.9.0/build/./gcc/nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # make
make[4]: Leaving directory '/tmp/makepkg/gcc-gcj/src/gcc-4.9.0/build/x86_64-unknown-linux-gnu/libsanitizer'
make[3]: Leaving directory '/tmp/makepkg/gcc-gcj/src/gcc-4.9.0/build/x86_64-unknown-linux-gnu/libsanitizer'
make[2]: Leaving directory '/tmp/makepkg/gcc-gcj/src/gcc-4.9.0/build/x86_64-unknown-linux-gnu/libsanitizer'
make[1]: Leaving directory '/tmp/makepkg/gcc-gcj/src/gcc-4.9.0/build'
Makefile:890: recipe for target 'all' failed
make: *** [all] Error 2

valandil commented on 2014-05-24 20:26

Yes, indeed, thank you. I have updated this PKGBUILD as well as pdftk. I don't mind taking over maintenance, but your input and comments are obviously welcome.

haawda commented on 2014-05-24 17:44

Thanks for figuring that out.

frankspace commented on 2014-05-24 12:24

Compiling gcc-gcj-4.9.0 works for me. I note that the native_freetype patch is no longer necessary, though, so I commented the prepare() bit out of my PKGBUILD entirely. Is it possible, valandill, that you could try again and also do that? The only other change I made to the supplied PKGBUILD was bumping the pkgver.

valandil commented on 2014-05-21 14:50

When trying to update this package to gcc-4.9, I get the following error.

make[4]: Entering directory '/home/valandil/build/gcc-gcj/src/gcc-4.9.0/build/x86_64-unknown-linux-gnu/libjava/classpath'
true DO=all multi-do # make
make[4]: Leaving directory '/home/valandil/build/gcc-gcj/src/gcc-4.9.0/build/x86_64-unknown-linux-gnu/libjava/classpath'
Makefile:413: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/valandil/build/gcc-gcj/src/gcc-4.9.0/build/x86_64-unknown-linux-gnu/libjava/classpath'
Makefile:10240: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/valandil/build/gcc-gcj/src/gcc-4.9.0/build/x86_64-unknown-linux-gnu/libjava'
Makefile:16953: recipe for target 'all-target-libjava' failed
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory '/home/valandil/build/gcc-gcj/src/gcc-4.9.0/build'
Makefile:890: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...

Anybody familiar with this kind of error?

haawda commented on 2014-05-11 20:13

I get another error.

xantares commented on 2014-05-11 18:24

+1: same error as OdinEidolon

OdinEidolon commented on 2014-05-10 09:55

checking for x86_64-unknown-linux-gnu-gcc... /tmp/yaourt-tmp-adriano/aur-gcc-gcj/src/gcc-4.8.2/build/./gcc/xgcc -B/tmp/yaourt-tmp-adriano/aur-gcc-gcj/src/gcc-4.8.2/build/./gcc/ -B/usr/x86_64-unknown-linux-gnu/bin/ -B/usr/x86_64-unknown-linux-gnu/lib/ -isystem /usr/x86_64-unknown-linux-gnu/include -isystem /usr/x86_64-unknown-linux-gnu/sys-include
checking for suffix of object files... configure: error: in `/tmp/yaourt-tmp-adriano/aur-gcc-gcj/src/gcc-4.8.2/build/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
Makefile:14626: recipe for target 'configure-stage1-target-libgcc' failed
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory '/tmp/yaourt-tmp-adriano/aur-gcc-gcj/src/gcc-4.8.2/build'
Makefile:20145: recipe for target 'stage1-bubble' failed
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory '/tmp/yaourt-tmp-adriano/aur-gcc-gcj/src/gcc-4.8.2/build'
Makefile:885: recipe for target 'all' failed
make: *** [all] Error 2

haawda commented on 2014-02-03 18:54

eigengrau, check your makepkg.conf. If you have

PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)

the dir-file should be removed by makepkg.

tjlee0821, you want to cross-compile?

tjlee0821 commented on 2014-02-03 14:47

please, help me.

---------------------------------------------------

gcj: internal compiler error: Killed (program jc1)
0x132e3 execute
../../gcc/gcc.c:2823
0x137ab do_spec_1
../../gcc/gcc.c:4615
0x15d0b process_brace_body
../../gcc/gcc.c:5872
0x15d0b handle_braces
../../gcc/gcc.c:5786
0x14033 do_spec_1
../../gcc/gcc.c:5269
0x15d0b process_brace_body
../../gcc/gcc.c:5872
0x15d0b handle_braces
../../gcc/gcc.c:5786
0x14033 do_spec_1
../../gcc/gcc.c:5269
0x1450f do_spec_1
../../gcc/gcc.c:5374
0x15d0b process_brace_body
../../gcc/gcc.c:5872
0x15d0b handle_braces
../../gcc/gcc.c:5786
0x14033 do_spec_1
../../gcc/gcc.c:5269
0x15217 do_spec_2
../../gcc/gcc.c:4316
0x16367 do_spec(char const*)
../../gcc/gcc.c:4283
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[3]: *** [gnu/java/nio/charset.lo] Error 1
make[3]: Leaving directory `/media/sda1-ata-FUJITSU_MHY2200B/temp2/src/gcc-4.8.2/build/armv5tel-unknown-linux-gnueabi/libjava'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/media/sda1-ata-FUJITSU_MHY2200B/temp2/src/gcc-4.8.2/build/armv5tel-unknown-linux-gnueabi/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/media/sda1-ata-FUJITSU_MHY2200B/temp2/src/gcc-4.8.2/build'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...

eigengrau commented on 2014-01-29 19:13

Currently this generates usr/share/info/dir without pruning it away, generating a conflict with the existing /usr/share/info/dir.

haawda commented on 2013-12-18 19:02

Thanks for your notofication, confirmation and the warm reply I got via PM.

Tristelune commented on 2013-12-17 20:45

And I can confirm: it works. Thank you very much!!!

Tristelune commented on 2013-12-17 20:45

haawda commented on 2013-12-16 21:30

And applied ...

haawda commented on 2013-12-16 20:06

Upstream seems to solve the problem in a different way. See
http://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=71f0b7e80ac05eb123b4002536f7c6bec50c4bc9#patch3

I will try that.

haawda commented on 2013-12-16 19:19

Thanks for your suggestions. I added a patch.

Tristelune commented on 2013-12-15 23:31

Hi jwundrak,

I can confirm I have the same problem before the one I mentioned. And your solution fixes also the problem for me. Thank you very much!!

@StefanHusmann: I think I will prepare a patch such that you can use is. Or perhaps you have a better idea. Perhaps it's a good idea to mention it upstream unless it's only an Arch problem.

jwundrak commented on 2013-12-14 23:09

@Tristelune:

hi. I got the same error. Some lines before there was a "directory or file not found"-error:

../../../../../../../libjava/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c:45:30: schwerwiegender Fehler: freetype/ftglyph.h: Datei oder Verzeichnis nicht gefunden
#include <freetype/ftglyph.h>
^
Kompilierung beendet.
Makefile:558: recipe for target 'gnu_java_awt_peer_gtk_FreetypeGlyphVector.lo' failed
make[6]: *** [gnu_java_awt_peer_gtk_FreetypeGlyphVector.lo] Error 1

Maybe you can confirm this?


So I edit these files by replacing "freetype" by "freetype2":
- "src/gcc-4.8.2/libjava/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_FreetypeGlyphVector.c" in line 45 and 46
- "src/gcc-4.8.2/libjava/classpath/native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c" in line 42-45

(see `grep -r "<freetype/" src/gcc-4.8.2/` )

That fix the compile error

@StefanHusmann : Can you add a patch please? Or is there a better solution?

Tristelune commented on 2013-12-14 09:47

Hello, I also can't compile gcc-gcj 4.8.2-1. I get the following error:

make[5]: Entering directory '/tmp/yaourt-tmp-user/aur-gcc-gcj/src/gcc-4.8.2/build/x86_64-unknown-linux-gnu/libjava/classpath/tools'
Makefile:837: warning: overriding recipe for target 'gjdoc'
Makefile:755: warning: ignoring old recipe for target 'gjdoc'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/tmp/yaourt-tmp-user/aur-gcc-gcj/src/gcc-4.8.2/build/x86_64-unknown-linux-gnu/libjava/classpath/tools'
make[4]: Leaving directory '/tmp/yaourt-tmp-user/aur-gcc-gcj/src/gcc-4.8.2/build/x86_64-unknown-linux-gnu/libjava/classpath/tools'
make[4]: Entering directory '/tmp/yaourt-tmp-user/aur-gcc-gcj/src/gcc-4.8.2/build/x86_64-unknown-linux-gnu/libjava/classpath'
true DO=all multi-do # make
make[4]: Leaving directory '/tmp/yaourt-tmp-user/aur-gcc-gcj/src/gcc-4.8.2/build/x86_64-unknown-linux-gnu/libjava/classpath'
Makefile:410: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/tmp/yaourt-tmp-user/aur-gcc-gcj/src/gcc-4.8.2/build/x86_64-unknown-linux-gnu/libjava/classpath'
Makefile:10217: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/tmp/yaourt-tmp-user/aur-gcc-gcj/src/gcc-4.8.2/build/x86_64-unknown-linux-gnu/libjava'
Makefile:16850: recipe for target 'all-target-libjava' failed
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory '/tmp/yaourt-tmp-user/aur-gcc-gcj/src/gcc-4.8.2/build'
Makefile:885: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build gcc-gcj.
==> Restart building gcc-gcj ? [y/N]
==> --------------------------------


I tried the fixes mentionned here like setting !makeflags or unset CPPFLAGS (but I think "CPPFLAGS= " is the same) but it doesn't help. I was told the problem could be in the FLAGS. Any Idea ?

haawda commented on 2013-09-11 18:18

RAMChYLD, I was asked by a user to merge the two packages. Of course it is possible to split them again.

Anonymous comment on 2013-09-11 03:49

@ Somnus : /tmp is too small to let gcc-gcj compile.

Try this :

$ mkdir ~/temporary
$ yaourt -S gcc-gcj --tmp ~/temporary

Somnus commented on 2013-09-11 00:54

I too am unable to compile this. I've tried removing the !makeflag option to no avail. I get this:

ar: libbackend.a: No space left on device
make[3]: *** [libbackend.a] Error 1
make[3]: Leaving directory `/tmp/yaourt-tmp-zach/aur-gcc-gcj/src/gcc-4.8.1/build/gcc'
make[2]: *** [all-stage3-gcc] Error 2
make[2]: Leaving directory `/tmp/yaourt-tmp-zach/aur-gcc-gcj/src/gcc-4.8.1/build'
make[1]: *** [stage3-bubble] Error 2
make[1]: Leaving directory `/tmp/yaourt-tmp-zach/aur-gcc-gcj/src/gcc-4.8.1/build'
make: *** [all] Error 2

Anonymous comment on 2013-09-10 13:07

Is there any possibility of creating a version without ecj jar built in? Including the ecj jar means making the compiler unable to coexist with eclipse-ecj. For some people like me, I'd welcome having both Eclipse ECJ and GCJ co-existing side-by-side for testing purposes.

Currently I've made a tweaked gcc-gcj pkgbuild that will not install the ECJ jar and won't flag the package as conflicting with eclipse-ecj, but I think it would be a much better idea to have gcc-gcj and gcc-gcj-ecj separated anyway.

PS: There's another side project that packages gcc-gcj-ecj separately that has been orphaned. Maybe you can consider picking that one up and using it to split gcc-gcj and gcc-gcj-ecj?

Raptorista commented on 2013-08-28 18:02

@Tom: this is strange: I tried with your settings but it still doesn't work. What's more, it fails even earlier than it used to do.

TomBoshoven commented on 2013-08-27 14:11

I'm having no problems compiling without the '!makeflags' .
I removed it so the compilation process is much faster on my system.

My CFLAGS and CXXFLAGS are both set to "-march=native -mtune=native -O2 -pipe -fstack-protector --param=ssp-buffer-size=4" (build architecture is changed to native for my machine).
My CPPFLAGS is set to "-D_FORTIFY_SOURCE=2" (default).
My MAKEFLAGS is set to "-j7" (7 concurrent jobs instead of 1).

Also, according to the wiki page ( https://wiki.archlinux.org/index.php/PKGBUILD#makedepends ), members of base-devel should not be included in the PKGBUILD as dependencies.

Raptorista commented on 2013-08-06 14:28

pkg-config is in base-devel, so its dependency is somewhat understood.
Anyway I had it installed already and still couldn't compile. The bug is somewhere else...

raisdead commented on 2013-08-06 14:12

I had to install pkg-config before this would compile. Should this be added to the Dependencies?

larvan commented on 2013-07-24 18:45

I had to remove '!makeflags' from options to compile it.

fylou commented on 2013-06-27 19:10

It does not work for me too.

Raptorista commented on 2013-06-23 17:52

I still can't compile with any of the solutions suggested by flapp.
In my /etc/makepkg.conf, CPPFLAGS is set to

CPPFLAGS="-D_FORTIFY_SOURCE=2"

and the error is

build/genattrtab.o build/rtl.o build/read-rtl.o build/ggc-none.o build/vec.o build/min-insn-modes.o build/gensupport.o build/print-rtl.o build/read-md.o build/errors.o ../build-x86_64-unknown-linux-gnu/libiberty/libiberty.a
build/genattrtab ../../gcc/config/i386/i386.md insn-conditions.md \
-Atmp-attrtab.c -Dtmp-dfatab.c -Ltmp-latencytab.c
make[3]: *** [s-attrtab] Ucciso
make[3]: Leaving directory `/tmp/gcc-gcj/src/gcc-4.8.1/build/gcc'
make[2]: *** [all-stage1-gcc] Errore 2
make[2]: Leaving directory `/tmp/gcc-gcj/src/gcc-4.8.1/build'
make[1]: *** [stage1-bubble] Errore 2
make[1]: Leaving directory `/tmp/gcc-gcj/src/gcc-4.8.1/build'
make: *** [all] Errore 2


Any tip highly appreciated :)

haawda commented on 2013-06-23 07:20

I cannot really test, because on my system it works without any changes in CPPFLAGS.

Anonymous comment on 2013-06-22 15:03

The last line in the build{} section (4.8.1-6) contains a little mistake, doesn't it ?

CPPFLAGS="" make

doesn't work, whereas

CPPFLAGS=
make

seems to work.

Anonymous comment on 2013-06-20 16:51

To succeed in compiling gcc-gcj-4.8.1-5, I had to add 2 details in the PKGBUILD :

'!makeflags' in the option parens

unset CPPFLAGS in the build section.



These little details may help You quizzmaster.

cfr42 commented on 2013-06-20 00:41

Is there some reason !buildflags has disappeared? I assume this will again not compile for many people unless they explicitly unset CPPFLAGS. Is that correct?

quizzmaster commented on 2013-06-19 21:38

I'm not able to compile..

make[3]: *** [fibheap.o] Error 1
make[3]: Leaving directory `/tmp/yaourt-tmp-quizzi/aur-gcc-gcj/src/gcc-4.8.1/build/libiberty'
make[2]: *** [all-stage1-libiberty] Error 2
make[2]: Leaving directory `/tmp/yaourt-tmp-quizzi/aur-gcc-gcj/src/gcc-4.8.1/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/tmp/yaourt-tmp-quizzi/aur-gcc-gcj/src/gcc-4.8.1/build'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build gcc-gcj.

mrbit commented on 2013-06-18 15:43

change please in the pkgbuild --> #rm ${pkgdir}/usr/share/info/dir not exist.!

Anonymous comment on 2013-06-07 11:52

To fix the build failure I recommend changing !makeflags to !buildflags in PKGBUILD.

Also due to the recent implementation of ecj you need to add the following to PKGBUILD to fix the installation error:

provides=('gcc-gcj-ecj=4.5' 'eclipse-ecj')
conflicts=('gcc-gcj-ecj' 'eclipse-ecj')

neonkowy commented on 2013-06-07 08:43

fails here with:
"
../../libiberty/fibheap.c:38:24: error: ‘LONG_MIN’ undeclared (first use in this function)
#define FIBHEAPKEY_MIN LONG_MIN
"

uname -a : Linux neon 3.9.4-1-ARCH #1 SMP PREEMPT Sat May 25 16:14:55 CEST 2013 x86_64 GNU/Linux

gna commented on 2013-06-07 07:39

I still need unset CPPFLAGS.

haawda commented on 2013-06-06 02:44

hexadecagram: uname -mrs
Linux 3.9.4-1-ARCH x86_64

!makeflags is specified in the PKGBUILD, not in makepkg.conf.

cfr42 commented on 2013-06-06 00:54

In answer to the compilation failure query, I'm also using 3.9.4-1-ARCH.

cfr42 commented on 2013-06-06 00:51

I just downloaded the latest PKGBUILD. However, given the time this takes to compile, I examined it first.

This package conflicts with gcc-gcj-ecj. Probably you need to declare both a conflict and a provides so that the absorption of eclipse-ecj into your package goes smoothly for people?

hexadecagram commented on 2013-06-06 00:30

@StefanHusmann: Here's the uname of a machine on which the build fails with an unchanged /etc/makepkg.conf. What's yours?

% uname -mrs
Linux 3.9.4-1-ARCH x86_64

Where do we specify option '!makeflags'? I don't see any such option in /etc/makepkg.conf.

haawda commented on 2013-06-05 19:01

Dit you try with option '!makeflags'?

haawda commented on 2013-06-05 18:57

Builds fine here without CPPFLAGS changed, and I have aan unchanged makepkg.conf.

cfr42 commented on 2013-06-04 21:54

The latest version still needs the PKGBUILD edited as described to unset CPPFLAGS.

Is this building on the maintainer's machine without that? Is the environment non-default or have those of us who need to edit configured something differently?

gna commented on 2013-06-04 19:29

EDIT:
@hexadecagram
unset CPPFLAGS seems to have fixed it, thank you!

It keeps crashing here:
...
checking for iconv declaration... install-shextern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depdir commands
mkdir -p -- .deps
make[2]: Leaving directory `/tmp/yaourt-tmp-gna/aur-gcc-gcj/src/gcc-4.8.1/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/tmp/yaourt-tmp-gna/aur-gcc-gcj/src/gcc-4.8.1/build'
make: *** [all] Error 2

Can anyone help me?

gna commented on 2013-06-04 19:08

It keeps crashing here:
...
checking for iconv declaration... install-shextern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depdir commands
mkdir -p -- .deps
make[2]: Leaving directory `/tmp/yaourt-tmp-gna/aur-gcc-gcj/src/gcc-4.8.1/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/tmp/yaourt-tmp-gna/aur-gcc-gcj/src/gcc-4.8.1/build'
make: *** [all] Error 2

Can anyone help me?

larsrh commented on 2013-06-02 19:12

@StefanHusmann: Sorry, I somehow missed your comment. Yes, I think it's a good idea for 'gcc-gcj' to include and provide 'gcc-gcj-ecj'.

hexadecagram commented on 2013-05-15 05:07

@FoolEcho:

I can confirm that putting "unset CPPFLAGS" in the build() section of PKGBUILD just before the ../configure line results in a successful build.

@cfr42:

I can likewise confirm that commenting-out CPPFLAGS in /etc/makepkg.conf also results in a successful build.

It seems the obvious route to go in order to resolve this issue is the former. Could we have PKGBUILD updated until the issue described on arch-dev-public that FoolEcho linked to is resolved?

haawda commented on 2013-05-06 17:01

You mean, 'gcc-gcj' should include and provide 'gcc-gcj-ecj'? Or should I simply add a makedependency?

larsrh commented on 2013-05-06 13:40

@yosefor: ecj1 is provided by the package 'gcc-gcj-ecj'. Maybe that should be incorporated here.

yoseforb commented on 2013-04-29 18:56

I get a error:
$ gcj MainApp.java
gcj: error trying to exec 'ecj1': execvp: No such file or directory

$ gcj -v MainApp.java
Using built-in specs.
Reading specs from /usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../libgcj.spec
rename spec startfile to startfileorig
rename spec lib to liborig
COLLECT_GCC=gcj
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/usr --enable-shared --enable-languages=java --enable-threads=posix --mandir=/usr/share/man --infodir=/usr/share/info --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu --disable-libstdcxx-pch --with-tune=generic --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-7-openjdk --enable-libgcj-multifile --disable-plugin --with-system-zlib
Thread model: posix
gcc version 4.8.0 (GCC)
COLLECT_GCC_OPTIONS='-fsaw-java-file' '-v' '-fbootclasspath=./:/usr/share/java/libgcj-4.8.0.jar' '-g1' '-specs=libgcj.spec' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
ecj1 MainApp.java -g1 -fbootclasspath=./:/usr/share/java/libgcj-4.8.0.jar -g1 -fsource=1.5 -ftarget=1.5 -fzip-dependency /tmp/ccIjG04m.zip -fzip-target /tmp/ccW97XIy.jar
gcj: error trying to exec 'ecj1': execvp: No such file or directory

There is a solution to this?

yoseforb commented on 2013-04-29 18:55

I get a error:
$ gcc MainApp.java
gcc: error: MainApp.java: Java compiler not installed on this system

$ gcc -v MainApp.java
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/src/gcc-4.8-20130425/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --enable-gnu-unique-object --enable-linker-build-id --enable-cloog-backend=isl --disable-cloog-version-check --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --with-linker-hash-style=gnu --disable-install-libiberty --disable-multilib --disable-libssp --disable-werror --enable-checking=release
Thread model: posix
gcc version 4.8.0 20130425 (prerelease) (GCC)
gcc: error: MainApp.java: Java compiler not installed on this system

There is a solution to this?

Anonymous comment on 2013-04-25 12:01

My situation seems to be a hardware related issue. You can safely disregard my previous report.

Thank you for the assistance.

Anonymous comment on 2013-04-22 01:00

@bidulock

Thank you for the prompt response. I don't think it is a heat-damaged. It seems to be a problem with the (cheap) hard drive. I left the netbook this afternoon and just came back and turned it back on. At this time the fsck process was able to recover the journal, however; I noticed a serious performance issue and noisy hard drive. Hence, I assume the storage is screwed and it is time to either buying a brand new hard drive or re-install ArchLinux.

Once I test out the compilation of this package I will post the outcome so you can safely disregard this report.

Thanks,

bidulock commented on 2013-04-21 19:24

@mortegach

There is a serious possibility that that notebook developed insufficient airflow while unattended and is now heat-damaged.

Anonymous comment on 2013-04-21 15:36

I downloaded the tarball, uncompress it, makepkg PKGBUILD and didn't have the chance to install the binary package.Now my systems is unrecoverable due kernel panic.

The first attempt to compile the package failed due missing dependencies. I was prompted to install the missing ones:libart-lgpl, zip and elfutils. I install them using pacman and then re-attempt to compile with makepkg PKGBUILD.

I went away for a moment, therefore, I don't even know if the compilation was successful. Last I saw was gcc version 3.8 downloading.

Additional notes:
- ArchLinux system was outdated. GCC version installed in the system is 3.7
- Official ArchLinux kernel installed, Yaourt not in use, pacman is up-to-date.
- System is an Intel Atom one. Toshiba NB505-SP0110L

After kernel panic, I hard-reset the laptop and then turned it back on. Journal recovery process failed due "fsck.ext4 unable to read block from filesystem resulted in short read while trying to re-open /dev/sda3".

Currently, I've been dropped to the emergency shell. I understand that the partition 3 is faulty, probably corrupted. That's fine,.

I can re-install ArchLinux into my laptop. I doesn't really matters, it is just a secondary usage unit. However, I'm afraid that either the additional dependencies (that are not listed in this page) broke any current archlinux system or the compilation process caused compatibility issues with systems running a previous version of GCC < 4.7

I'm willing to provide more information if needed as well as trying any further troubleshooting suggestions.

Thanks and regards.

FoolEcho commented on 2013-04-09 13:35

Hi,

It is probably related to build issues due to -D_FORTIFY_SOURCE=2 in CPPFLAGS : https://mailman.archlinux.org/pipermail/arch-dev-public/2013-April/024776.html .

Therefore, by example, before the configure, try with:
unset CPPFLAGS

cfr42 commented on 2013-04-06 18:41

I can confirm that commenting out CPPFLAGS and incorporating them into CFLAGS/CXXFLAGS does allow compilation to succeed (even with -j5).

cfr42 commented on 2013-04-06 16:46

I don't think it is a parallel build problem. I created a separate config for makepkg just commenting out the j5 line and it still fails. (But maybe the failure is different.)

I removed the pkg and src subdirectories before trying again:

$ makepkg --config /etc/makepkg-non-parallel.conf
==> Making package: gcc-gcj 4.8.0-2 (Sad 6 Ebr 17:35:29 BST 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found gcc-4.8.0.tar.bz2
==> Validating source files with md5sums...
gcc-4.8.0.tar.bz2 ... Passed
==> Extracting sources...
-> Extracting gcc-4.8.0.tar.bz2 with bsdtar
==> Starting build()...
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... gawk
checking for libatomic support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether g++ accepts -static-libstdc++ -static-libgcc... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for objdir... .libs
checking for the correct version of gmp.h... yes
checking for the correct version of mpfr.h... yes
checking for the correct version of mpc.h... yes
checking for the correct version of the gmp/mpfr/mpc libraries... yes
checking for version 0.10 of ISL... no
checking for version 0.11 of ISL... yes
checking for version 0.17.0 of CLooG... no
checking for version 0.18.0 of CLooG... yes
The following languages will be built: c,c++,java,lto
*** This configuration is not supported in the following subdirectories:
zlib gnattools target-libada target-libgfortran target-libgo target-libbacktrace target-libobjc
(Any other directories should still work fine.)
checking for default BUILD_CONFIG... bootstrap-debug
checking for bison... bison -y
checking for bison... bison
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
checking for expect... no
checking for runtest... no
checking for ar... ar
checking for as... as
checking for dlltool... no
checking for ld... ld
checking for lipo... no
checking for nm... nm
checking for ranlib... ranlib
checking for strip... strip
checking for windres... no
checking for windmc... no
checking for objcopy... objcopy
checking for objdump... objdump
checking for readelf... readelf
checking for cc... cc
checking for c++... c++
checking for gcc... gcc
checking for gcj... no
checking for gfortran... no
checking for gccgo... no
checking for ar... no
checking for ar... ar
checking for as... no
checking for as... as
checking for dlltool... no
checking for dlltool... no
checking for ld... no
checking for ld... ld
checking for lipo... no
checking for lipo... no
checking for nm... no
checking for nm... nm
checking for objdump... no
checking for objdump... objdump
checking for ranlib... no
checking for ranlib... ranlib
checking for readelf... no
checking for readelf... readelf
checking for strip... no
checking for strip... strip
checking for windres... no
checking for windres... no
checking for windmc... no
checking for windmc... no
checking where to find the target ar... host tool
checking where to find the target as... host tool
checking where to find the target cc... just compiled
checking where to find the target c++... just compiled
checking where to find the target c++ for libstdc++... just compiled
checking where to find the target dlltool... host tool
checking where to find the target gcc... just compiled
checking where to find the target gcj... just compiled
checking where to find the target gfortran... host tool
checking where to find the target gccgo... host tool
checking where to find the target ld... host tool
checking where to find the target lipo... host tool
checking where to find the target nm... host tool
checking where to find the target objdump... host tool
checking where to find the target ranlib... host tool
checking where to find the target readelf... host tool
checking where to find the target strip... host tool
checking where to find the target windres... host tool
checking where to find the target windmc... host tool
checking whether to enable maintainer-specific portions of Makefiles... no
configure: creating ./config.status
config.status: creating Makefile
[ -f stage_final ] || echo stage3 > stage_final
make[1]: Entering directory `/home/software/builds/gcc-gcj/src/gcc-4.8.0/build'
make[2]: Entering directory `/home/software/builds/gcc-gcj/src/gcc-4.8.0/build'
make[2]: Leaving directory `/home/software/builds/gcc-gcj/src/gcc-4.8.0/build'
make[2]: Entering directory `/home/software/builds/gcc-gcj/src/gcc-4.8.0/build'
Configuring stage 1 in ./intl
configure: creating cache ./config.cache
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for x86_64-unknown-linux-gnu-gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for x86_64-unknown-linux-gnu-ranlib... ranlib
checking for library containing strerror... none required
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for off_t... yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking whether we are using the GNU C Library 2.1 or newer... yes
checking whether integer division by zero raises SIGFPE... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unsigned long long... yes
checking for inttypes.h... yes
checking whether the inttypes.h PRIxNN macros are broken... no
checking for ld used by GCC... ld
checking if the linker (ld) is GNU ld... yes
checking for shared library run path origin... done
checking argz.h usability... yes
checking argz.h presence... yes
checking for argz.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking nl_types.h usability... yes
checking nl_types.h presence... yes
checking for nl_types.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for feof_unlocked... yes
checking for fgets_unlocked... yes
checking for getc_unlocked... yes
checking for getcwd... yes
checking for getegid... yes
checking for geteuid... yes
checking for getgid... yes
checking for getuid... yes
checking for mempcpy... yes
checking for munmap... yes
checking for putenv... yes
checking for setenv... yes
checking for setlocale... yes
checking for stpcpy... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strtoul... yes
checking for tsearch... yes
checking for __argz_count... yes
checking for __argz_stringify... yes
checking for __argz_next... yes
checking for __fsetlocking... yes
checking for iconv... yes
checking for iconv declaration... install-shextern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... yes
checking for LC_MESSAGES... yes
checking for bison... bison
checking version of bison... 2.7, ok
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for aclocal... aclocal
checking for autoconf... autoconf
checking for autoheader... autoheader
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.intl
config.status: creating config.h
config.status: executing default-1 commands
Configuring stage 1 in ./lto-plugin
configure: creating cache ./config.cache
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for x86_64-unknown-linux-gnu-gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking whether gcc supports -Wall... yes
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... ld
checking if the linker (ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... nm
checking the name lister (nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for ld option to reload object files... -r
checking for x86_64-unknown-linux-gnu-objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-unknown-linux-gnu-ar... ar
checking for x86_64-unknown-linux-gnu-strip... no
checking for strip... strip
checking for x86_64-unknown-linux-gnu-ranlib... ranlib
checking command to parse nm output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for int64_t... yes
checking for uint64_t... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
Configuring stage 1 in ./libiberty
configure: creating cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... makeinfo --split-size=5000000 --split-size=5000000
checking for perl... perl
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for x86_64-unknown-linux-gnu-ar... ar
checking for x86_64-unknown-linux-gnu-ranlib... ranlib
checking for x86_64-unknown-linux-gnu-gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking how to run the C preprocessor... gcc -E
checking whether gcc supports -W... yes
checking whether gcc supports -Wall... yes
checking whether gcc supports -Wwrite-strings... yes
checking whether gcc supports -Wc++-compat... yes
checking whether gcc supports -Wstrict-prototypes... yes
checking whether gcc supports -pedantic ... yes
checking whether gcc and cc understand -c and -o together... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking whether byte ordering is bigendian... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for sys/file.h... no
checking for sys/param.h... no
checking for limits.h... no
checking for stdlib.h... (cached) no
checking for malloc.h... no
checking for string.h... (cached) no
checking for unistd.h... (cached) no
checking for strings.h... (cached) no
checking for sys/time.h... no
checking for time.h... no
checking for sys/resource.h... no
checking for sys/stat.h... (cached) no
checking for sys/mman.h... no
checking for fcntl.h... no
checking for alloca.h... no
checking for sys/pstat.h... no
checking for sys/sysmp.h... no
checking for sys/sysinfo.h... no
checking for machine/hal_sysinfo.h... no
checking for sys/table.h... no
checking for sys/sysctl.h... no
checking for sys/systemcfg.h... no
checking for stdint.h... (cached) no
checking for stdio_ext.h... no
checking for process.h... no
checking for sys/prctl.h... no
checking for sys/wait.h that is POSIX.1 compatible... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether errno must be declared... no
checking size of int... 4
checking for a 64-bit type... unsigned long
checking for intptr_t... no
checking for uintptr_t... no
checking for ssize_t... yes
checking for pid_t... yes
checking for library containing strerror... none required
checking for asprintf... yes
checking for atexit... yes
checking for basename... yes
checking for bcmp... yes
checking for bcopy... yes
checking for bsearch... yes
checking for bzero... yes
checking for calloc... yes
checking for clock... yes
checking for ffs... yes
checking for getcwd... yes
checking for getpagesize... yes
checking for gettimeofday... yes
checking for index... yes
checking for insque... yes
checking for memchr... yes
checking for memcmp... yes
checking for memcpy... yes
checking for memmem... yes
checking for memmove... yes
checking for mempcpy... yes
checking for memset... yes
checking for mkstemps... yes
checking for putenv... yes
checking for random... yes
checking for rename... yes
checking for rindex... yes
checking for setenv... yes
checking for snprintf... yes
checking for sigsetmask... yes
checking for stpcpy... yes
checking for stpncpy... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strncasecmp... yes
checking for strndup... yes
checking for strnlen... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtod... yes
checking for strtol... yes
checking for strtoul... yes
checking for strverscmp... yes
checking for tmpnam... yes
checking for vasprintf... yes
checking for vfprintf... yes
checking for vprintf... yes
checking for vsnprintf... yes
checking for vsprintf... yes
checking for waitpid... yes
checking for setproctitle... no
checking whether alloca needs Cray hooks... no
checking stack direction for C alloca... -1
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for _doprnt... no
checking for sys_errlist... yes
checking for sys_nerr... yes
checking for sys_siglist... yes
checking for external symbol _system_configuration... no
checking for __fsetlocking... yes
checking for canonicalize_file_name... yes
checking for dup3... yes
checking for getrlimit... yes
checking for getrusage... yes
checking for getsysinfo... no
checking for gettimeofday... (cached) yes
checking for on_exit... yes
checking for psignal... yes
checking for pstat_getdynamic... no
checking for pstat_getstatic... no
checking for realpath... yes
checking for setrlimit... yes
checking for sbrk... yes
checking for spawnve... no
checking for spawnvpe... no
checking for strerror... yes
checking for strsignal... yes
checking for sysconf... yes
checking for sysctl... yes
checking for sysmp... no
checking for table... no
checking for times... yes
checking for wait3... yes
checking for wait4... yes
checking whether basename is declared... no
checking whether ffs is declared... no
checking whether asprintf is declared... no
checking whether vasprintf is declared... no
checking whether snprintf is declared... yes
checking whether vsnprintf is declared... yes
checking whether calloc is declared... yes
checking whether getenv is declared... yes
checking whether getopt is declared... no
checking whether malloc is declared... yes
checking whether realloc is declared... yes
checking whether sbrk is declared... no
checking whether strverscmp is declared... no
checking whether canonicalize_file_name must be declared... yes
checking for stdlib.h... (cached) no
checking for unistd.h... (cached) no
checking for getpagesize... (cached) yes
checking for working mmap... yes
checking for working strncmp... no
configure: updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating config.h
config.status: executing default commands
make[3]: Entering directory `/home/software/builds/gcc-gcj/src/gcc-4.8.0/build/libiberty'
if [ x"-fpic" != x ] && [ ! -d pic ]; then \
mkdir pic; \
else true; fi
touch stamp-picdir
if [ x"-fpic" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -fpic ../../libiberty/regex.c -o pic/regex.o; \
else true; fi
In file included from /usr/include/stdlib.h:24:0,
from ../../libiberty/regex.c:130:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
gcc -c -DHAVE_CONFIG_H -g -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ../../libiberty/regex.c -o regex.o
In file included from /usr/include/stdlib.h:24:0,
from ../../libiberty/regex.c:130:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
if [ x"-fpic" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -fpic ../../libiberty/cplus-dem.c -o pic/cplus-dem.o; \
else true; fi
In file included from /usr/include/ctype.h:26:0,
from ../../libiberty/../include/safe-ctype.h:122,
from ../../libiberty/cplus-dem.c:46:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
../../libiberty/cplus-dem.c:55:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
void * malloc ();
^
../../libiberty/cplus-dem.c:56:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
void * realloc ();
^
../../libiberty/cplus-dem.c: In function ‘code_for_qualifier’:
../../libiberty/cplus-dem.c:578:3: warning: implicit declaration of function ‘abort’ [-Wimplicit-function-declaration]
abort ();
^
../../libiberty/cplus-dem.c:578:3: warning: incompatible implicit declaration of built-in function ‘abort’ [enabled by default]
../../libiberty/cplus-dem.c: In function ‘qualifier_string’:
../../libiberty/cplus-dem.c:618:3: warning: incompatible implicit declaration of built-in function ‘abort’ [enabled by default]
abort ();
^
../../libiberty/cplus-dem.c: In function ‘squangle_mop_up’:
../../libiberty/cplus-dem.c:1220:7: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
free ((char *) work -> btypevec);
^
../../libiberty/cplus-dem.c:1220:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
../../libiberty/cplus-dem.c:1224:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free ((char *) work -> ktypevec);
^
../../libiberty/cplus-dem.c: In function ‘delete_non_B_K_work_stuff’:
../../libiberty/cplus-dem.c:1305:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free ((char *) work -> typevec);
^
../../libiberty/cplus-dem.c:1314:2: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free ((char*) work->tmpl_argvec[i]);
^
../../libiberty/cplus-dem.c:1322:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free ((char*) work->previous_argument);
^
../../libiberty/cplus-dem.c: In function ‘demangle_template_value_parm’:
../../libiberty/cplus-dem.c:2047:5: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (q);
^
../../libiberty/cplus-dem.c:2051:8: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (p);
^
../../libiberty/cplus-dem.c: In function ‘gnu_special’:
../../libiberty/cplus-dem.c:3086:8: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (method);
^
../../libiberty/cplus-dem.c: In function ‘recursively_demangle’:
../../libiberty/cplus-dem.c:3142:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (recurse_dem);
^
../../libiberty/cplus-dem.c:3148:3: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (recurse);
^
../../libiberty/cplus-dem.c: In function ‘demangle_qualified’:
../../libiberty/cplus-dem.c:3313:7: warning: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration]
qualifiers = atoi (num);
^
../../libiberty/cplus-dem.c: In function ‘do_hpacc_template_literal’:
../../libiberty/cplus-dem.c:4113:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (recurse_dem);
^
../../libiberty/cplus-dem.c:4120:3: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (recurse);
^
../../libiberty/cplus-dem.c: In function ‘forget_B_and_K_types’:
../../libiberty/cplus-dem.c:4325:4: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (work -> ktypevec[i]);
^
../../libiberty/cplus-dem.c:4335:4: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (work -> btypevec[i]);
^
../../libiberty/cplus-dem.c: In function ‘forget_types’:
../../libiberty/cplus-dem.c:4352:4: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (work -> typevec[i]);
^
../../libiberty/cplus-dem.c: In function ‘demangle_nested_args’:
../../libiberty/cplus-dem.c:4551:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free ((char *) work->previous_argument);
^
../../libiberty/cplus-dem.c: In function ‘string_delete’:
../../libiberty/cplus-dem.c:4757:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (s->b);
^
gcc -c -DHAVE_CONFIG_H -g -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ../../libiberty/cplus-dem.c -o cplus-dem.o
In file included from /usr/include/ctype.h:26:0,
from ../../libiberty/../include/safe-ctype.h:122,
from ../../libiberty/cplus-dem.c:46:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
../../libiberty/cplus-dem.c:55:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
void * malloc ();
^
../../libiberty/cplus-dem.c:56:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
void * realloc ();
^
../../libiberty/cplus-dem.c: In function ‘code_for_qualifier’:
../../libiberty/cplus-dem.c:578:3: warning: implicit declaration of function ‘abort’ [-Wimplicit-function-declaration]
abort ();
^
../../libiberty/cplus-dem.c:578:3: warning: incompatible implicit declaration of built-in function ‘abort’ [enabled by default]
../../libiberty/cplus-dem.c: In function ‘qualifier_string’:
../../libiberty/cplus-dem.c:618:3: warning: incompatible implicit declaration of built-in function ‘abort’ [enabled by default]
abort ();
^
../../libiberty/cplus-dem.c: In function ‘squangle_mop_up’:
../../libiberty/cplus-dem.c:1220:7: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
free ((char *) work -> btypevec);
^
../../libiberty/cplus-dem.c:1220:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
../../libiberty/cplus-dem.c:1224:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free ((char *) work -> ktypevec);
^
../../libiberty/cplus-dem.c: In function ‘delete_non_B_K_work_stuff’:
../../libiberty/cplus-dem.c:1305:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free ((char *) work -> typevec);
^
../../libiberty/cplus-dem.c:1314:2: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free ((char*) work->tmpl_argvec[i]);
^
../../libiberty/cplus-dem.c:1322:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free ((char*) work->previous_argument);
^
../../libiberty/cplus-dem.c: In function ‘demangle_template_value_parm’:
../../libiberty/cplus-dem.c:2047:5: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (q);
^
../../libiberty/cplus-dem.c:2051:8: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (p);
^
../../libiberty/cplus-dem.c: In function ‘gnu_special’:
../../libiberty/cplus-dem.c:3086:8: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (method);
^
../../libiberty/cplus-dem.c: In function ‘recursively_demangle’:
../../libiberty/cplus-dem.c:3142:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (recurse_dem);
^
../../libiberty/cplus-dem.c:3148:3: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (recurse);
^
../../libiberty/cplus-dem.c: In function ‘demangle_qualified’:
../../libiberty/cplus-dem.c:3313:7: warning: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration]
qualifiers = atoi (num);
^
../../libiberty/cplus-dem.c: In function ‘do_hpacc_template_literal’:
../../libiberty/cplus-dem.c:4113:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (recurse_dem);
^
../../libiberty/cplus-dem.c:4120:3: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (recurse);
^
../../libiberty/cplus-dem.c: In function ‘forget_B_and_K_types’:
../../libiberty/cplus-dem.c:4325:4: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (work -> ktypevec[i]);
^
../../libiberty/cplus-dem.c:4335:4: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (work -> btypevec[i]);
^
../../libiberty/cplus-dem.c: In function ‘forget_types’:
../../libiberty/cplus-dem.c:4352:4: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (work -> typevec[i]);
^
../../libiberty/cplus-dem.c: In function ‘demangle_nested_args’:
../../libiberty/cplus-dem.c:4551:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free ((char *) work->previous_argument);
^
../../libiberty/cplus-dem.c: In function ‘string_delete’:
../../libiberty/cplus-dem.c:4757:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (s->b);
^
if [ x"-fpic" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -fpic ../../libiberty/cp-demangle.c -o pic/cp-demangle.o; \
else true; fi
In file included from /usr/include/stdio.h:27:0,
from ../../libiberty/cp-demangle.c:106:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
../../libiberty/cp-demangle.c: In function ‘d_make_demangle_mangled_name’:
../../libiberty/cp-demangle.c:921:5: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
return d_make_name (di, s, strlen (s));
^
../../libiberty/cp-demangle.c:921:32: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
return d_make_name (di, s, strlen (s));
^
../../libiberty/cp-demangle.c: In function ‘d_unqualified_name’:
../../libiberty/cp-demangle.c:1462:4: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
if (!strcmp (ret->u.s_operator.op->code, "li"))
^
../../libiberty/cp-demangle.c: In function ‘d_identifier’:
../../libiberty/cp-demangle.c:1589:7: warning: implicit declaration of function ‘memcmp’ [-Wimplicit-function-declaration]
&& memcmp (name, ANONYMOUS_NAMESPACE_PREFIX,
^
../../libiberty/cp-demangle.c: In function ‘d_growable_string_resize’:
../../libiberty/cp-demangle.c:3531:3: warning: implicit declaration of function ‘realloc’ [-Wimplicit-function-declaration]
newbuf = (char *) realloc (dgs->buf, newalc);
^
../../libiberty/cp-demangle.c:3531:21: warning: incompatible implicit declaration of built-in function ‘realloc’ [enabled by default]
newbuf = (char *) realloc (dgs->buf, newalc);
^
../../libiberty/cp-demangle.c:3534:7: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
free (dgs->buf);
^
../../libiberty/cp-demangle.c:3534:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
../../libiberty/cp-demangle.c: In function ‘d_growable_string_append_buffer’:
../../libiberty/cp-demangle.c:3560:3: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]
memcpy (dgs->buf + dgs->len, s, l);
^
../../libiberty/cp-demangle.c:3560:3: warning: incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default]
../../libiberty/cp-demangle.c: In function ‘d_append_string’:
../../libiberty/cp-demangle.c:3643:28: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
d_append_buffer (dpi, s, strlen (s));
^
../../libiberty/cp-demangle.c: In function ‘cplus_demangle_print’:
../../libiberty/cp-demangle.c:3707:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (dgs.buf);
^
../../libiberty/cp-demangle.c: In function ‘d_print_comp’:
../../libiberty/cp-demangle.c:4020:13: warning: implicit declaration of function ‘strncmp’ [-Wimplicit-function-declaration]
&& strncmp (dcl->u.s_name.s, "JArray", 6) == 0)
^
../../libiberty/cp-demangle.c: In function ‘d_demangle_callback’:
../../libiberty/cp-demangle.c:5300:47: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
cplus_demangle_init_info (mangled, options, strlen (mangled), &di);
^
../../libiberty/cp-demangle.c: In function ‘d_demangle’:
../../libiberty/cp-demangle.c:5373:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (dgs.buf);
^
../../libiberty/cp-demangle.c: In function ‘is_ctor_or_dtor’:
../../libiberty/cp-demangle.c:5579:51: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
cplus_demangle_init_info (mangled, DMGL_GNU_V3, strlen (mangled), &di);
^
gcc -c -DHAVE_CONFIG_H -g -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ../../libiberty/cp-demangle.c -o cp-demangle.o
In file included from /usr/include/stdio.h:27:0,
from ../../libiberty/cp-demangle.c:106:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
../../libiberty/cp-demangle.c: In function ‘d_make_demangle_mangled_name’:
../../libiberty/cp-demangle.c:921:5: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
return d_make_name (di, s, strlen (s));
^
../../libiberty/cp-demangle.c:921:32: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
return d_make_name (di, s, strlen (s));
^
../../libiberty/cp-demangle.c: In function ‘d_unqualified_name’:
../../libiberty/cp-demangle.c:1462:4: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
if (!strcmp (ret->u.s_operator.op->code, "li"))
^
../../libiberty/cp-demangle.c: In function ‘d_identifier’:
../../libiberty/cp-demangle.c:1589:7: warning: implicit declaration of function ‘memcmp’ [-Wimplicit-function-declaration]
&& memcmp (name, ANONYMOUS_NAMESPACE_PREFIX,
^
../../libiberty/cp-demangle.c: In function ‘d_growable_string_resize’:
../../libiberty/cp-demangle.c:3531:3: warning: implicit declaration of function ‘realloc’ [-Wimplicit-function-declaration]
newbuf = (char *) realloc (dgs->buf, newalc);
^
../../libiberty/cp-demangle.c:3531:21: warning: incompatible implicit declaration of built-in function ‘realloc’ [enabled by default]
newbuf = (char *) realloc (dgs->buf, newalc);
^
../../libiberty/cp-demangle.c:3534:7: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
free (dgs->buf);
^
../../libiberty/cp-demangle.c:3534:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
../../libiberty/cp-demangle.c: In function ‘d_growable_string_append_buffer’:
../../libiberty/cp-demangle.c:3560:3: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]
memcpy (dgs->buf + dgs->len, s, l);
^
../../libiberty/cp-demangle.c:3560:3: warning: incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default]
../../libiberty/cp-demangle.c: In function ‘d_append_string’:
../../libiberty/cp-demangle.c:3643:28: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
d_append_buffer (dpi, s, strlen (s));
^
../../libiberty/cp-demangle.c: In function ‘cplus_demangle_print’:
../../libiberty/cp-demangle.c:3707:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (dgs.buf);
^
../../libiberty/cp-demangle.c: In function ‘d_print_comp’:
../../libiberty/cp-demangle.c:4020:13: warning: implicit declaration of function ‘strncmp’ [-Wimplicit-function-declaration]
&& strncmp (dcl->u.s_name.s, "JArray", 6) == 0)
^
../../libiberty/cp-demangle.c: In function ‘d_demangle_callback’:
../../libiberty/cp-demangle.c:5300:47: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
cplus_demangle_init_info (mangled, options, strlen (mangled), &di);
^
../../libiberty/cp-demangle.c: In function ‘d_demangle’:
../../libiberty/cp-demangle.c:5373:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (dgs.buf);
^
../../libiberty/cp-demangle.c: In function ‘is_ctor_or_dtor’:
../../libiberty/cp-demangle.c:5579:51: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
cplus_demangle_init_info (mangled, DMGL_GNU_V3, strlen (mangled), &di);
^
if [ x"-fpic" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -fpic ../../libiberty/md5.c -o pic/md5.o; \
else true; fi
In file included from /usr/include/sys/types.h:25:0,
from ../../libiberty/md5.c:28:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
gcc -c -DHAVE_CONFIG_H -g -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ../../libiberty/md5.c -o md5.o
In file included from /usr/include/sys/types.h:25:0,
from ../../libiberty/md5.c:28:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
if [ x"-fpic" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -fpic ../../libiberty/sha1.c -o pic/sha1.o; \
else true; fi
In file included from /usr/include/stdio.h:27:0,
from ../../libiberty/../include/sha1.h:23,
from ../../libiberty/sha1.c:28:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
gcc -c -DHAVE_CONFIG_H -g -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ../../libiberty/sha1.c -o sha1.o
In file included from /usr/include/stdio.h:27:0,
from ../../libiberty/../include/sha1.h:23,
from ../../libiberty/sha1.c:28:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
if [ x"-fpic" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -fpic ../../libiberty/alloca.c -o pic/alloca.o; \
else true; fi
In file included from /usr/include/stdio.h:27:0,
from ../../libiberty/../include/libiberty.h:50,
from ../../libiberty/alloca.c:49:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
../../libiberty/alloca.c: In function ‘C_alloca’:
../../libiberty/alloca.c:184:4: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
free ((PTR) hp); /* Collect garbage. */
^
../../libiberty/alloca.c:184:4: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
../../libiberty/alloca.c:204:7: warning: implicit declaration of function ‘abort’ [-Wimplicit-function-declaration]
abort();
^
../../libiberty/alloca.c:204:7: warning: incompatible implicit declaration of built-in function ‘abort’ [enabled by default]
gcc -c -DHAVE_CONFIG_H -g -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ../../libiberty/alloca.c -o alloca.o
In file included from /usr/include/stdio.h:27:0,
from ../../libiberty/../include/libiberty.h:50,
from ../../libiberty/alloca.c:49:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
../../libiberty/alloca.c: In function ‘C_alloca’:
../../libiberty/alloca.c:184:4: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
free ((PTR) hp); /* Collect garbage. */
^
../../libiberty/alloca.c:184:4: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
../../libiberty/alloca.c:204:7: warning: implicit declaration of function ‘abort’ [-Wimplicit-function-declaration]
abort();
^
../../libiberty/alloca.c:204:7: warning: incompatible implicit declaration of built-in function ‘abort’ [enabled by default]
if [ x"-fpic" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -fpic ../../libiberty/argv.c -o pic/argv.o; \
else true; fi
In file included from /usr/include/stdio.h:27:0,
from ../../libiberty/../include/libiberty.h:50,
from ../../libiberty/argv.c:29:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
gcc -c -DHAVE_CONFIG_H -g -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ../../libiberty/argv.c -o argv.o
In file included from /usr/include/stdio.h:27:0,
from ../../libiberty/../include/libiberty.h:50,
from ../../libiberty/argv.c:29:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
if [ x"-fpic" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -fpic ../../libiberty/choose-temp.c -o pic/choose-temp.o; \
else true; fi
In file included from /usr/include/stdio.h:27:0,
from ../../libiberty/choose-temp.c:24:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
../../libiberty/choose-temp.c: In function ‘choose_temp_base’:
../../libiberty/choose-temp.c:67:3: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
len = strlen (base);
^
../../libiberty/choose-temp.c:67:9: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
len = strlen (base);
^
../../libiberty/choose-temp.c:69:3: warning: implicit declaration of function ‘strcpy’ [-Wimplicit-function-declaration]
strcpy (temp_filename, base);
^
../../libiberty/choose-temp.c:69:3: warning: incompatible implicit declaration of built-in function ‘strcpy’ [enabled by default]
../../libiberty/choose-temp.c:72:3: warning: implicit declaration of function ‘mktemp’ [-Wimplicit-function-declaration]
if (mktemp (temp_filename) == 0)
^
../../libiberty/choose-temp.c:73:5: warning: implicit declaration of function ‘abort’ [-Wimplicit-function-declaration]
abort ();
^
../../libiberty/choose-temp.c:73:5: warning: incompatible implicit declaration of built-in function ‘abort’ [enabled by default]
gcc -c -DHAVE_CONFIG_H -g -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ../../libiberty/choose-temp.c -o choose-temp.o
In file included from /usr/include/stdio.h:27:0,
from ../../libiberty/choose-temp.c:24:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
../../libiberty/choose-temp.c: In function ‘choose_temp_base’:
../../libiberty/choose-temp.c:67:3: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
len = strlen (base);
^
../../libiberty/choose-temp.c:67:9: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
len = strlen (base);
^
../../libiberty/choose-temp.c:69:3: warning: implicit declaration of function ‘strcpy’ [-Wimplicit-function-declaration]
strcpy (temp_filename, base);
^
../../libiberty/choose-temp.c:69:3: warning: incompatible implicit declaration of built-in function ‘strcpy’ [enabled by default]
../../libiberty/choose-temp.c:72:3: warning: implicit declaration of function ‘mktemp’ [-Wimplicit-function-declaration]
if (mktemp (temp_filename) == 0)
^
../../libiberty/choose-temp.c:73:5: warning: implicit declaration of function ‘abort’ [-Wimplicit-function-declaration]
abort ();
^
../../libiberty/choose-temp.c:73:5: warning: incompatible implicit declaration of built-in function ‘abort’ [enabled by default]
if [ x"-fpic" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -fpic ../../libiberty/concat.c -o pic/concat.o; \
else true; fi
In file included from /usr/include/stdio.h:27:0,
from ../../libiberty/../include/libiberty.h:50,
from ../../libiberty/concat.c:52:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
../../libiberty/concat.c: In function ‘vconcat_length’:
../../libiberty/concat.c:77:5: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
length += strlen (arg);
^
../../libiberty/concat.c:77:15: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
length += strlen (arg);
^
../../libiberty/concat.c: In function ‘vconcat_copy’:
../../libiberty/concat.c:90:30: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
unsigned long length = strlen (arg);
^
../../libiberty/concat.c:91:7: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]
memcpy (end, arg, length);
^
../../libiberty/concat.c:91:7: warning: incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default]
../../libiberty/concat.c: In function ‘reconcat’:
../../libiberty/concat.c:208:5: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
free (optr);
^
../../libiberty/concat.c:208:5: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
gcc -c -DHAVE_CONFIG_H -g -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ../../libiberty/concat.c -o concat.o
In file included from /usr/include/stdio.h:27:0,
from ../../libiberty/../include/libiberty.h:50,
from ../../libiberty/concat.c:52:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
../../libiberty/concat.c: In function ‘vconcat_length’:
../../libiberty/concat.c:77:5: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
length += strlen (arg);
^
../../libiberty/concat.c:77:15: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
length += strlen (arg);
^
../../libiberty/concat.c: In function ‘vconcat_copy’:
../../libiberty/concat.c:90:30: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
unsigned long length = strlen (arg);
^
../../libiberty/concat.c:91:7: warning: implicit declaration of function ‘memcpy’ [-Wimplicit-function-declaration]
memcpy (end, arg, length);
^
../../libiberty/concat.c:91:7: warning: incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default]
../../libiberty/concat.c: In function ‘reconcat’:
../../libiberty/concat.c:208:5: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
free (optr);
^
../../libiberty/concat.c:208:5: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
if [ x"-fpic" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -fpic ../../libiberty/cp-demint.c -o pic/cp-demint.o; \
else true; fi
In file included from /usr/include/stdio.h:27:0,
from ../../libiberty/../include/libiberty.h:50,
from ../../libiberty/cp-demint.c:52:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
../../libiberty/cp-demint.c: In function ‘cplus_demangle_fill_builtin_type’:
../../libiberty/cp-demint.c:140:3: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
len = strlen (type_name);
^
../../libiberty/cp-demint.c:140:9: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
len = strlen (type_name);
^
../../libiberty/cp-demint.c:144:4: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
&& strcmp (type_name, cplus_demangle_builtin_types[i].name) == 0)
^
../../libiberty/cp-demint.c: In function ‘cplus_demangle_fill_operator’:
../../libiberty/cp-demint.c:165:9: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
len = strlen (opname);
^
../../libiberty/cp-demint.c: In function ‘cplus_demangle_v3_components’:
../../libiberty/cp-demint.c:190:9: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
len = strlen (mangled);
^
../../libiberty/cp-demint.c:204:8: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
malloc (di.num_comps * sizeof (struct demangle_component)));
^
../../libiberty/cp-demint.c:204:8: warning: incompatible implicit declaration of built-in function ‘malloc’ [enabled by default]
../../libiberty/cp-demint.c:209:7: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
free (di.comps);
^
../../libiberty/cp-demint.c:209:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
../../libiberty/cp-demint.c:224:3: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (di.subs);
^
gcc -c -DHAVE_CONFIG_H -g -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ../../libiberty/cp-demint.c -o cp-demint.o
In file included from /usr/include/stdio.h:27:0,
from ../../libiberty/../include/libiberty.h:50,
from ../../libiberty/cp-demint.c:52:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
../../libiberty/cp-demint.c: In function ‘cplus_demangle_fill_builtin_type’:
../../libiberty/cp-demint.c:140:3: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
len = strlen (type_name);
^
../../libiberty/cp-demint.c:140:9: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
len = strlen (type_name);
^
../../libiberty/cp-demint.c:144:4: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
&& strcmp (type_name, cplus_demangle_builtin_types[i].name) == 0)
^
../../libiberty/cp-demint.c: In function ‘cplus_demangle_fill_operator’:
../../libiberty/cp-demint.c:165:9: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
len = strlen (opname);
^
../../libiberty/cp-demint.c: In function ‘cplus_demangle_v3_components’:
../../libiberty/cp-demint.c:190:9: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
len = strlen (mangled);
^
../../libiberty/cp-demint.c:204:8: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
malloc (di.num_comps * sizeof (struct demangle_component)));
^
../../libiberty/cp-demint.c:204:8: warning: incompatible implicit declaration of built-in function ‘malloc’ [enabled by default]
../../libiberty/cp-demint.c:209:7: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
free (di.comps);
^
../../libiberty/cp-demint.c:209:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
../../libiberty/cp-demint.c:224:3: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (di.subs);
^
if [ x"-fpic" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -fpic ../../libiberty/crc32.c -o pic/crc32.o; \
else true; fi
In file included from /usr/include/stdio.h:27:0,
from ../../libiberty/../include/libiberty.h:50,
from ../../libiberty/crc32.c:34:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
gcc -c -DHAVE_CONFIG_H -g -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ../../libiberty/crc32.c -o crc32.o
In file included from /usr/include/stdio.h:27:0,
from ../../libiberty/../include/libiberty.h:50,
from ../../libiberty/crc32.c:34:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
if [ x"-fpic" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -fpic ../../libiberty/dwarfnames.c -o pic/dwarfnames.o; \
else true; fi
gcc -c -DHAVE_CONFIG_H -g -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic ../../libiberty/dwarfnames.c -o dwarfnames.o
if [ x"-fpic" != x ]; then \
gcc -c -DHAVE_CONFIG_H -g -D_FORTIFY_SOURCE=2 -I. -I../../libiberty/../include -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic -fpic ../../libiberty/dyn-string.c -o pic/dyn-string.o; \
else true; fi
In file included from /usr/include/stdio.h:27:0,
from ../../libiberty/dyn-string.c:35:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
../../libiberty/dyn-string.c: In function ‘dyn_string_delete’:
../../libiberty/dyn-string.c:110:3: warning: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
free (ds->s);
^
../../libiberty/dyn-string.c:110:3: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
../../libiberty/dyn-string.c: In function ‘dyn_string_release’:
../../libiberty/dyn-string.c:126:3: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
free (ds);
^
../../libiberty/dyn-string.c: In function ‘dyn_string_copy’:
../../libiberty/dyn-string.c:187:5: warning: implicit declaration of function ‘abort’ [-Wimplicit-function-declaration]
abort ();
^
../../libiberty/dyn-string.c:187:5: warning: incompatible implicit declaration of built-in function ‘abort’ [enabled by default]
../../libiberty/dyn-string.c:193:3: warning: implicit declaration of function ‘strcpy’ [-Wimplicit-function-declaration]
strcpy (dest->s, src->s);
^
../../libiberty/dyn-string.c:193:3: warning: incompatible implicit declaration of built-in function ‘strcpy’ [enabled by default]
../../libiberty/dyn-string.c: In function ‘dyn_string_copy_cstr’:
../../libiberty/dyn-string.c:206:3: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
int length = strlen (src);
^
../../libiberty/dyn-string.c:206:16: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
int length = strlen (src);
^
../../libiberty/dyn-string.c:211:3: warning: incompatible implicit declaration of built-in function ‘strcpy’ [enabled by default]
strcpy (dest->s, src);
^
../../libiberty/dyn-string.c: In function ‘dyn_string_insert’:
../../libiberty/dyn-string.c:249:5: warning: incompatible implicit declaration of built-in function ‘abort’ [enabled by default]
abort ();
^
../../libiberty/dyn-string.c:257:3: warning: implicit declaration of function ‘strncpy’ [-Wimplicit-function-declaration]
strncpy (dest->s + pos, src->s, src->length);
^
../../libiberty/dyn-string.c:257:3: warning: incompatible implicit declaration of built-in function ‘strncpy’ [enabled by default]
../../libiberty/dyn-string.c: In function ‘dyn_string_insert_cstr’:
../../libiberty/dyn-string.c:272:16: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default]
int length = strlen (src);
^
../../libiberty/dyn-string.c:280:3: warning: incompatible implicit declaration of built-in function ‘strncpy’ [enabled by default]
strncpy (dest->s + pos, src, length);
^
../../libiberty/dyn-string.c: In function ‘dyn_string_append’:
../../libiberty/dyn-string.c:316:3: warning: incompatible implicit declaration of built-in function ‘strcpy’ [enabled by default]
strcpy (dest->s + dest->length, s->s);
^
../../libiberty/dyn-string.c: In function ‘dyn_string_append_cstr’:
../../libiberty/dyn-string.c:328:13: warning: incompatible implicit declaration of built-in funct

Anonymous comment on 2013-04-06 13:38

@ skuda: Fantastic. It works! Thank you ;)

skuda commented on 2013-04-06 11:21

In my machine i have fixed the problem moving -D_FORTIFY_SOURCE=2 from CPPFLAGS back to CXXFLAGS and CFLAGS, i am ever using -j5.

bidulock commented on 2013-04-06 01:15

checking for working strncmp... libtool: link: ar rc .libs/libbacktrace.a .libs/dwarf.o .libs/fileline.o .libs/posix.o .libs/print.o .libs/state.o .libs/backtrace.o .libs/simple.o .libs/elf.o .libs/mmapio.o .libs/mmap.o
libtool: link: ranlib .libs/libbacktrace.a
no

doesn't gcc have a working strncmp?

likely parallel build problem. I never got an automake generated package to build properly even with as little as -j2.

bidulock commented on 2013-04-06 01:05

On x86_64 I built all the way.

my makepkg.conf has:

CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
#MAKEFLAGS="-j2"

Perhaps it is a parallel build problem: try commenting out the -j5

cfr42 commented on 2013-04-06 00:42

Why isn't there an edit button?

Forgot to say that the partition where I'm building has 27G free after the build fails so I assume it is not running out of room in my case?

cfr42 commented on 2013-04-06 00:38

I get this error building with makepkg rather than an AUR helper. gcc is 4.8.0-1 (multilib version):
$ cd gcc-gcj
$ makepkg
...
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../libbacktrace -I ../../libbacktrace/../include -I ../../libbacktrace/../libgcc -I ../libgcc -D_FORTIFY_SOURCE=2 -funwind-tables -frandom-seed=mmap.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -g -c ../../libbacktrace/mmap.c -fPIC -DPIC -o .libs/mmap.o
no
checking whether strverscmp is declared... In file included from /usr/include/errno.h:28:0,
from ../../libbacktrace/mmap.c:35:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
In file included from /usr/include/errno.h:28:0,
from ../../libbacktrace/mmapio.c:35:
/usr/include/features.h:330:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
# warning _FORTIFY_SOURCE requires compiling with optimization (-O)
^
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../libbacktrace -I ../../libbacktrace/../include -I ../../libbacktrace/../libgcc -I ../libgcc -D_FORTIFY_SOURCE=2 -funwind-tables -frandom-seed=mmapio.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -g -c ../../libbacktrace/mmapio.c -o mmapio.o >/dev/null 2>&1
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../libbacktrace -I ../../libbacktrace/../include -I ../../libbacktrace/../libgcc -I ../libgcc -D_FORTIFY_SOURCE=2 -funwind-tables -frandom-seed=elf.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -g -c ../../libbacktrace/elf.c -o elf.o >/dev/null 2>&1
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../libbacktrace -I ../../libbacktrace/../include -I ../../libbacktrace/../libgcc -I ../libgcc -D_FORTIFY_SOURCE=2 -funwind-tables -frandom-seed=mmap.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -g -c ../../libbacktrace/mmap.c -o mmap.o >/dev/null 2>&1
no
checking whether canonicalize_file_name must be declared... /bin/sh ./libtool --tag=CC --mode=link gcc -funwind-tables -frandom-seed=libbacktrace.la -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -g -static-libstdc++ -static-libgcc -Wl,-O1,--sort-common,--as-needed,-z,relro -o libbacktrace.la dwarf.lo fileline.lo posix.lo print.lo state.lo backtrace.lo simple.lo elf.lo mmapio.lo mmap.lo
yes
checking for stdlib.h... (cached) no
checking for unistd.h... (cached) no
checking for getpagesize... (cached) yes
checking for working mmap... yes
checking for working strncmp... libtool: link: ar rc .libs/libbacktrace.a .libs/dwarf.o .libs/fileline.o .libs/posix.o .libs/print.o .libs/state.o .libs/backtrace.o .libs/simple.o .libs/elf.o .libs/mmapio.o .libs/mmap.o
libtool: link: ranlib .libs/libbacktrace.a
no
configure: updating cache ./config.cache
configure: creating ./config.status
libtool: link: ( cd ".libs" && rm -f "libbacktrace.la" && ln -s "../libbacktrace.la" "libbacktrace.la" )
make[4]: Leaving directory `/home/software/builds/gcc-gcj/src/gcc-4.8.0/build/libbacktrace'
make[3]: Leaving directory `/home/software/builds/gcc-gcj/src/gcc-4.8.0/build/libbacktrace'
config.status: creating Makefile
config.status: creating testsuite/Makefile
config.status: creating config.h
config.status: executing default commands
make[2]: Leaving directory `/home/software/builds/gcc-gcj/src/gcc-4.8.0/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/software/builds/gcc-gcj/src/gcc-4.8.0/build'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...

This is on x86_64. In makepkg.conf, I'm using:

CPPFLAGS="-D_FORTIFY_SOURCE=2"
CFLAGS="-march=native -O2 -pipe -fstack-protector --param=ssp-buffer-size=4"
CXXFLAGS="${CFLAGS}"
MAKEFLAGS="-j5"

I am not trying to build in tmpfs. (At least, that's not my build directory so I'm not doing this unless the compilation itself changes to /tmp or something which it certainly does not seem to do.)

Anonymous comment on 2013-04-05 19:24

Hello,
I have a similar error here:

make[3]: *** [fibheap.o] Erreur 1
make[3] : on quitte le répertoire « /tmp/packerbuild-1000/gcc-gcj/gcc-gcj/src/gcc-4.8.0/build/libiberty »
make[2]: *** [all-stage1-libiberty] Erreur 2
make[2] : on quitte le répertoire « /tmp/packerbuild-1000/gcc-gcj/gcc-gcj/src/gcc-4.8.0/build »
make[1]: *** [stage1-bubble] Erreur 2
make[1] : on quitte le répertoire « /tmp/packerbuild-1000/gcc-gcj/gcc-gcj/src/gcc-4.8.0/build »
make: *** [all] Erreur 2
==> ERREUR : Une erreur s'est produite dans build().
Abandon…
The build failed.

skuda commented on 2013-04-05 16:04

Yes, the last one, core/gcc 4.8.0-1

haawda commented on 2013-04-05 16:01

gcc itself is up to date?

skuda commented on 2013-04-05 15:48

I have the same error that ptrxyz if i use the new flags of makepkg.conf that pacman 4.1 installs, -D_FORTIFY_SOURCE=2 have been moved from CFLAGS and CXXFLAGS to CPPFLAGS, where it belongs anyway, it's supposed to be a preprocesor flag, but the compilation fails with this flag.

bidulock commented on 2013-04-05 12:33

Actually, it is unlikely that you can use yaourt to build the package. I discovered that /tmp is too small to build the package.

See df -h /tmp

bidulock commented on 2013-04-05 12:31

built fine for me under both i686 and x86_64

haawda commented on 2013-04-05 11:30

gcc itself is up to date?

ptrxyz commented on 2013-04-05 09:33

The PKGBUILD for gcc4.8 is not working for me (x86_64):

....
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/tmp/yaourt-tmp-ptrxyz/aur-gcc-gcj/src/gcc-4.8.0/build'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build gcc-gcj.


Full error at: http://paste.pound-python.org/show/32000/

haawda commented on 2013-03-29 11:54

Under http://paste.pound-python.org/show/31757 I sent a PKGBUILD for the gcc 4.8.0 in testing.

haawda commented on 2013-03-21 08:31

First, do not use yaourt, second post the full error log somewhere. The messages you posted are meaningless.

einsiedlerkrebs commented on 2013-03-20 19:58

it does not work for me (after hours of waiting)
make[3]: *** [libgcj.la] Fehler 1
make[3]: Leaving directory `/tmp/yaourt-tmp-o00o/aur-gcc-gcj/src/gcc-4.7.2/build/x86_64-unknown-linux-gnu/libjava'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/tmp/yaourt-tmp-o00o/aur-gcc-gcj/src/gcc-4.7.2/build/x86_64-unknown-linux-gnu/libjava'
make[1]: *** [all-target-libjava] Fehler 2
make[1]: Leaving directory `/tmp/yaourt-tmp-o00o/aur-gcc-gcj/src/gcc-4.7.2/build'
make: *** [all] Fehler 2

any hints?

einsiedlerkrebs commented on 2013-03-20 19:44

it does not work for me (after hours of waiting)
make[3]: *** [libgcj.la] Fehler 1
make[3]: Leaving directory `/tmp/yaourt-tmp-o00o/aur-gcc-gcj/src/gcc-4.7.2/build/x86_64-unknown-linux-gnu/libjava'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/tmp/yaourt-tmp-o00o/aur-gcc-gcj/src/gcc-4.7.2/build/x86_64-unknown-linux-gnu/libjava'
make[1]: *** [all-target-libjava] Fehler 2
make[1]: Leaving directory `/tmp/yaourt-tmp-o00o/aur-gcc-gcj/src/gcc-4.7.2/build'
make: *** [all] Fehler 2

any hints?

haawda commented on 2013-03-19 17:47

Thanks, fixed.

Sirat18 commented on 2013-03-19 13:34

There seems to be a missing entry in the texinfo patch. In gcc/doc/invoke.texi
@itemx -fdump-rtl-pro_and_epilogue
should be
@item -fdump-rtl-pro_and_epilogue

With this makeinfo works for me.

Anonymous comment on 2013-03-19 05:49

Build fails with the following

if [ xinfo = xinfo ]; then \
makeinfo --split-size=5000000 --split-size=5000000 --split-size=5000000 --no-split -I . -I ../../gcc/doc \
-I ../../gcc/doc/include -o doc/cpp.info ../../gcc/doc/cpp.texi; \
fi
../../gcc/doc/cppopts.texi:806: @itemx must follow @item

i18nde commented on 2013-02-03 13:01

Actually, yaourt brings it's own way to solve this. You can copy the /etc/yaourtrc to your home directory as .yaourtrc, than edit it to:
TMPDIR="/home/[username]/tmp" or whereever you like it.

karhu commented on 2012-10-12 12:12

I'am so sorry. It's work now.
The problem came with the directory /tmp too small !! It's no more a directory but a tmpfs. I created a symbolic link to a true one for yaourt-tmp-iohan.
Thanks.

karhu commented on 2012-10-12 11:56

I'am so sorry. It's work now.
The problem came with the directory /tmp too small !! It's no more a directory but a tmpfs. I created a symbolic link to a true one for yaourt-tmp-iohan.
Thanks.

karhu commented on 2012-10-12 11:43

I don't know why twice the same comment ??????

hugleo commented on 2012-10-12 11:14

I also have intalled pdftk.
For solve your problema you can do:
yaourt -R pdftk
yaourt -R gcc-gcj
yaourt -Syua
yaourt -Sy gcc-gcj
yaourt -Sy pdftk

Abs,
Hugleo

karhu commented on 2012-10-12 11:07

I don't know why twice the same comment ??????

karhu commented on 2012-10-12 11:06

yaourt -R pdftk
Supress pdftk and gcc-gcj => ok
yaourt -Sua => ok
yaourt -S pdftk => ko
bsdtar: Error exit delayed from previous errors.
==> ERREUR : L'extraction de gcc-4.7.2.tar.bz2 a échoué
Abandon...
I don't understand why gcc-gcj needs the compilation of gcc because it is already installed.

haawda commented on 2012-10-12 09:33

You wrote that already.

karhu commented on 2012-10-12 09:30

When I try to update to 4.7.2 from 4.7.1
yaourt -Sua
error: failed to prepare transaction (could not satisfy dependencies)
:: Starting full system upgrade...
:: gcc-gcj: requires gcc=4.7.1

haawda commented on 2012-10-12 09:18

Deinstall gcc-gcj first.

karhu commented on 2012-10-12 08:20

When I try to update to 4.7.2 from 4.7.1
yaourt -Sua
error: failed to prepare transaction (could not satisfy dependencies)
:: Starting full system upgrade...
:: gcc-gcj: requires gcc=4.7.1

falconindy commented on 2012-10-11 15:05

Please use 'makepkg -S' to generate your tarballs for submission.

Anonymous comment on 2012-10-10 03:22

Has anyone tried editing the PKGBUILD to build gcc-gcj-multilib? I can't seem to get it to work.

haawda commented on 2012-10-09 14:33

Updated.

hugleo commented on 2012-10-09 00:28

pacman -Syu --debug give the results:

debug: checkdeps: transaction would break 'gcc=4.7.1' dependency of 'gcc-gcj'
error: failed to prepare transaction (could not satisfy dependencies)
:: gcc-gcj: requires gcc=4.7.1

Need be upgraded to gcc gcc-4.7.2-1

alexiobash commented on 2012-09-25 18:40

usage: yaourt -S gcc-gcj --tmp /home/$USER/temp
it work!

haawda commented on 2012-09-19 15:08

I compiled this again today, works for me. Do you have some unusual compile flags in makepkg.conf? Also, compiling in a ramdisk does not seem to be a good idea, see below (April 25 and older).

diederick76 commented on 2012-09-19 07:48

Build fails after this:

gcc -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common -DHAVE_CONFIG_H -Wl,-O1,--sort-common,--as-needed,-z,relro -o lto1 \
lto/lto-lang.o lto/lto.o lto/lto-object.o attribs.o main.o tree-browser.o libbackend.a libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a -lmpc -lmpfr -lgmp -lz libcommon.a ../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
collect2: error: ld returned 1 exit status
make[3]: *** [lto1] Error 1
make[3]: Leaving directory `/tmp/yaourt-tmp-diederick/aur-gcc-gcj/src/gcc-4.7.1/build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/tmp/yaourt-tmp-diederick/aur-gcc-gcj/src/gcc-4.7.1/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/tmp/yaourt-tmp-diederick/aur-gcc-gcj/src/gcc-4.7.1/build'
make: *** [all] Error 2

haawda commented on 2012-08-10 19:17

1) Vote for it (if you did not do so already)

2) Ask on aur-general

3) become a TU and move it to community yourself

Anonymous comment on 2012-08-09 23:04

This should really be included in the official repository. For one thing, this takes a really long time to compile.... (~1.5hr on my laptop). Is a policy/petition for moving packages of this kind into the official repo?

haawda commented on 2012-07-10 19:50

Download the tarball, not the PKGBUILD and the patche file by file. The tarball definitely includes the install-file, I just checked it. And I'd say, do not use /tmp for compiling (or make /tmp a regular filesystem). Not sure if yaourt can be configured to use a normal directory rather than /tmp.

msoloi commented on 2012-07-10 07:36

trying to build with makepkg it says that gcc-gcj.install does not exist also, I've tryed using yaourt increased /tmp to 5.0G, swap still fills up and throws this error on build():
gcc: internal compiler error: Killed (program cc1)
on retry:
/bin/sh: line 1: 24213 Killed build/genattrtab ../../gcc/config/i386/i386.md insn-conditions.md > tmp-attrtab.c

I'm guessing it has something to do with the swap filling up, even though /tmp is still has 2.0G left.

ertua commented on 2012-06-30 22:29

If compiling fails, verify that your build device (/tmp for yaourt, e.g.) is big enough to handle all the temporary files. You need at least 4.0G (as of 4.7.1-2--x86_64, binary package size 23M)

Feng-Huang commented on 2012-06-23 16:35

Compiled in clean chroot for x86_64 i3/5/7 non sandy bridge

>> march=corei7 -mtune=corei7 -O2 -pipe -fstack-protector --param ssp-buffer-size=4 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -D_FORTIFY_SOURCE=2
>> MAKEFLAGS="-j4"

Download : http://rghost.net/download/38832093/f397c8e98feecd29539baa8545d4b9be8d6c4734/gcc-gcj-4.7.1-2-x86_64.pkg.tar.xz

haawda commented on 2012-06-23 07:30

Serious bug fixed.

Feng-Huang commented on 2012-06-19 15:53

Compiled in clean chroot for x86_64 i3/5/7 non sandy bridge

>> march=corei7 -mtune=corei7 -O2 -pipe -fstack-protector --param ssp-buffer-size=4 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -D_FORTIFY_SOURCE=2
>> MAKEFLAGS="-j4"

Download : http://rghost.net/download/38758100/4d98d8203dc5b6a14fcc90a79e79c11bfd8c7d11/gcc-gcj-4.7.1-1-x86_64.pkg.tar.xz

Feng-Huang commented on 2012-06-19 15:52

Compiled in clean chroot for x86_64 i3/5/7 non sandy bridge

>> march=corei7 -mtune=corei7 -O2 -pipe -fstack-protector --param ssp-buffer-size=4 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -D_FORTIFY_SOURCE=2
>> MAKEFLAGS="-j4"

GCC-GCJ : http://rghost.net/download/38757839/f0d98c01b951e76ba3fc774293ace9230bf4542e/gcc-4.7.0-6-x86_64.pkg.tar.xz

Feng-Huang commented on 2012-06-19 15:50

Compiled in clean chroot for x86_64 i3/5/7 non sandy bridge

>> march=corei7 -mtune=corei7 -O2 -pipe -fstack-protector --param ssp-buffer-size=4 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -D_FORTIFY_SOURCE=2
>> MAKEFLAGS="-j4"

GCC : http://rghost.net/download/38758100/4d98d8203dc5b6a14fcc90a79e79c11bfd8c7d11/gcc-gcj-4.7.1-1-x86_64.pkg.tar.xz
GCC-GCJ : http://rghost.net/download/38757839/f0d98c01b951e76ba3fc774293ace9230bf4542e/gcc-4.7.0-6-x86_64.pkg.tar.xz

Feng-Huang commented on 2012-06-19 15:48

Compiled in clean chroot for x86_64 i3/5/7 non sandy bridge

>> march=corei7 -mtune=corei7 -O2 -pipe -fstack-protector --param ssp-buffer-size=4 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -D_FORTIFY_SOURCE=2
>> MAKEFLAGS="-j4"

GCC : http://rghost.net/38757839
GCC-GCJ : http://rghost.net/38758100

arriagga commented on 2012-06-19 00:58

Im getting this error:

checking for C compiler default output file name...
configure: error: in `/home/arriaga/aur-gcc-gcj/src/gcc-4.7.1/build':
configure: error: C compiler cannot create executables
See `config.log' for more details.

haawda commented on 2012-06-18 16:59

Keep the version 4.7.0 if you do not use [testing].

Anonymous comment on 2012-05-02 17:06

I'm sorry, it works perfectly!

I just had to compile it with "makepkg" in the hard disk.
Thank you!

haawda commented on 2012-04-26 13:27

Thank you, Feng-Huang.

Feng-Huang commented on 2012-04-26 12:03

Compiled in clean chroot for x86_64 i3/5/7 non sandy bridge

>> march=corei7 -mtune=corei7 -O2 -pipe -fstack-protector --param ssp-buffer-size=4 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -D_FORTIFY_SOURCE=2
>> MAKEFLAGS="-j4"

Download : http://rghost.net/download/37778510/3f712c0c42d545ac6622013f7af812419f6d83f6/gcc-gcj-4.7.0-2-x86_64.pkg.tar.xz

haawda commented on 2012-04-25 21:44

I compiled this again today, works for me. Do you have some unusual compile flags in makepkg.conf? Also, compiling in a ramdisk does not seem to be a good idea, see below.

haawda commented on 2012-04-25 21:43

I compiled this again today, works for me. Do you have some unusual compile flags in makepkg.conf? Also, compiling in a ramdisk does not seem to be a good idea, see below.

Anonymous comment on 2012-04-24 15:06

I tried to install with yaourt and the compilation fails:
These are the last lines shown in the terminal:

gcc -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common -DHAVE_CONFIG_H -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -o cc1plus \
cp/cp-lang.o c-family/stub-objc.o cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o cp/class.o cp/decl2.o cp/error.o cp/lex.o cp/parser.o cp/ptree.o cp/rtti.o cp/typeck.o cp/cvt.o cp/except.o cp/friend.o cp/init.o cp/method.o cp/search.o cp/semantics.o cp/tree.o cp/repo.o cp/dump.o cp/optimize.o cp/mangle.o cp/cp-objcp-common.o cp/name-lookup.o cp/cxx-pretty-print.o cp/cp-gimplify.o tree-mudflap.o attribs.o incpath.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o i386-c.o default-c.o cc1plus-checksum.o main.o tree-browser.o libbackend.a libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -lppl_c -lppl -lgmpxx -lmpc -lmpfr -lgmp -lz
collect2: error: ld returned 1 exit status
make[3]: *** [cc1plus] Errore 1
make[3]: Leaving directory `/tmp/yaourt-tmp-pione/aur-gcc-gcj/src/gcc-4.7.0/build/gcc'
make[2]: *** [all-stage1-gcc] Errore 2
make[2]: Leaving directory `/tmp/yaourt-tmp-pione/aur-gcc-gcj/src/gcc-4.7.0/build'
make[1]: *** [stage1-bubble] Errore 2
make[1]: Leaving directory `/tmp/yaourt-tmp-pione/aur-gcc-gcj/src/gcc-4.7.0/build'
make: *** [all] Errore 2

Maybe is it a problem of my computer, or my fault?

cap_sensitive commented on 2012-04-04 16:58

@delroth: My fault. I just complied this package at my harddisk, and it worked properly. I shouldn't compile it in my RAM.

delroth commented on 2012-04-04 10:23

@cap_sensitive: probably out of memory. Try adding more swap or compiling the package on a computer with more RAM.

cap_sensitive commented on 2012-04-04 08:57

Hi, I got this error message when updating this package:
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[3]: *** [insn-recog.o] Error 4
make[3]: *** Waiting for unfinished jobs....
rm gcc.pod
make[3]: Leaving directory `/tmp/gcc-gcj/src/gcc-4.7.0/build/gcc'
make[2]: *** [all-stage3-gcc] Error 2
make[2]: Leaving directory `/tmp/gcc-gcj/src/gcc-4.7.0/build'
make[1]: *** [stage3-bubble] Error 2
make[1]: Leaving directory `/tmp/gcc-gcj/src/gcc-4.7.0/build'
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...

Archlinux x86_64
glibc 2.15-10
gcc-4.7.0-3

haawda commented on 2012-03-04 15:05

I am currently rebuilding.

I commented out
# patch -Np0 -i ${srcdir}/gcc47-pr50888.patch
and changed version number and md5sum. Maybe this is enough.

cfr42 commented on 2012-03-04 14:36

gcc-gcj requires gcc-4.6.2 but the version of gcc now available in the stable repos is 4.6.3. I just wondered if an update is in the works or if I should try fiddling myself. Thanks for maintaining the package.

sysrob commented on 2012-01-31 15:11

Thanks @StefanHusmann. It did build here as well.

haawda commented on 2012-01-31 02:41

Compiles for me with that patch. Adopted and updated.

haawda commented on 2012-01-30 22:21

The patch at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50888 could be worth a try.

haawda commented on 2012-01-30 22:20

The patch at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50888 could be worth a try.

sysrob commented on 2012-01-30 21:50

@olive: you are right, the package fails as well for me, here is the last part of the log: http://pastebin.com/Rn91hh86

olive commented on 2012-01-08 09:53

This package do not compile (as 7 January 2012, up to date system). Unfortunately the error appears only after a long time and I have lost the log. Does someone get this package to compile on a updated system?

mezcal commented on 2011-12-10 09:57

Hello,
pkg-config is also makedepends.

rmanola commented on 2011-11-02 17:01

@Synthead: Done.

Synthead commented on 2011-11-02 14:14

Line 42:
[ -d build] || mkdir build
... should be:
[ -d build ] || mkdir build

rmanola commented on 2011-11-02 12:12

@setokaiba1308: Try again, the files are all there and are compiling fine.

boina commented on 2011-11-01 21:21

Thanks for your work guys!!

Anonymous comment on 2011-11-01 19:22

==> ERROR: gcc_pure64.patch no fue encontrado en el directorio de compilación, y no es una URL.
^ I got that error

rmanola commented on 2011-11-01 15:10

@boina:
It was not picking because it wasn't updated it yet. I have updated it know.

@arriagga:
Thanks for posting the pkgbuild with the updated hashes and dependencies.

boina commented on 2011-11-01 14:50

I'm a arch beginner so sorry if this is obvious for you but yaourt is not picking up 6.2-1 version of gcc-gcj, and I can't update the entire system because pacman complains that gcc-gcj needs gcc 6.1
Should I update manually with the pkbuild posted by arriaga??
Thanks in advance

arriagga commented on 2011-10-31 01:17

here's the version 6.2-1 : http://pastebin.com/erqBXiPR

rmanola commented on 2011-06-30 03:16

Updated with the new version of gcc, thanks to arriagga for posting the PKBUILD with the correct hashes.

arriagga commented on 2011-06-30 02:21

in case anyone wants the version 4.6.1, I took this pkgbuild made the changes
and compile it. you can take it from here: http://pastebin.com/GnKtejx0.

Also if you just want the package I uploaded to my dropbox, so you can get it
here: http://dl.dropbox.com/u/5922731/gcc-gcj-4.6.1/gcc-core-4.6.1.tar.bz2

in my laptop it took almost 3 hours too compile.

arriagga commented on 2011-06-30 01:21

in case anyone wants the version 4.6.1, I took this pkgbuild made the changes and compile it.
you can take it from here: http://pastebin.com/GnKtejx0

arriagga commented on 2011-06-30 01:19

in case anyone wants the version 4.6.1 I took this pkgbuild made the changes and compile it.
you can take it from here: http://pastebin.com/GnKtejx0

arriagga commented on 2011-06-30 01:19

in case anyone wants the version 4.6.1 I took this pkgbuild made the changes and compile it.
you can take it from here: [URL = http://pastebin.com/GnKtejx0 /URL]

rmanola commented on 2011-06-29 17:04

Makedepedency changed to "cloog>=0.16.2-1".

Anonymous comment on 2011-06-29 09:39

==> Install or build missing dependencies for gcc-gcj:
error: target not found: cloog-ppl>=0.15.9-2

Can we change cloog-ppl to cloog in the PKGBUILD? See https://bbs.archlinux.org/viewtopic.php?id=118578

haawda commented on 2011-04-25 13:19

The blank in line 42 is still or again missing.

rmanola commented on 2011-04-23 05:25

Updated to the new version of GCC. Thanks Ramón Arriaga for pointing out the modification on the patch. I have also updated the extra-official binary mirror, with the binaries for both archs (x86_64 and i686).

Anonymous comment on 2011-04-22 21:59

in the [archlinuxfr] http://repo.archlinux.fr repository, u'll find gcc-gcj-4.6.0-1

here u can see the PKGBUILD they used
http://afur.archlinux.fr/pkgbuild/gcc-gcj/PKGBUILD

Anonymous comment on 2011-04-21 17:26

New version 4.6.0 available. Please make update!

haawda commented on 2011-04-07 16:14

line 42 has a miising blank after first "build"

should be

[ -d build ] || mkdir build

rmanola commented on 2011-03-18 03:23

@StefanHusmann: I could compile this package without the packages dssi and ladspa, so I don't think they are makedependencies.

For those who have difficulties compiling this packages either because of time or disk space, I'm making available an extra-official binary mirror of this package and others that I have built myself, just go to: http://www.4shared.com/dir/iwjMZH9B/ArchLinux.html

rmanola commented on 2011-03-18 02:57

@dwh: There is nothing wrong with the source paths, it is needed to download the 3 files in order to correctly compile gcc-gcj.

@modular: Yes, it needs to compile the gcc, g++ and java in order to build the gcc-gcj. Compiling the gcc and g++ packages really takes a lot of disk space and time.

@dej: I can't help you with your compilation error, as it was printed, it seems that previous messages before the "collect2: ld returned 1 as end status" may give you a clue of what caused the error. Did you install the base-devel package? It may be something very specific on your setup, it never happened to me and I have compiled this package on more than 3 different machines so far.

Anonymous comment on 2011-03-17 22:17

The path of the source file is wrong.
Please change "gcc-{core,g++,java}-4.5.2" to "gcc-java-4.5.2".
Thx

dominik

Anonymous comment on 2011-03-14 14:07

Is this really supposed to take over 730Megs to build?!

dej commented on 2011-02-06 20:17

Can anyone tell me why I get this error message?
[some rough translations made by me in output]

collect2: ld returned 1 as end status
make[3]: *** [cc1-dummy] Fehler 1
make[3]: Leaving directory `/tmp/yaourt-tmp-user/aur-gcc-gcj/src/gcc-4.5.2/build/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/tmp/yaourt-tmp-user/aur-gcc-gcj/src/gcc-4.5.2/build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/tmp/yaourt-tmp-user/aur-gcc-gcj/src/gcc-4.5.2/build'
make: *** [all] Error 2
Aborting ...
==> ERROR: Makepkg was unable to build gcc-gcj.

haawda commented on 2011-01-29 21:55

I needed dssi and ladspa at build time to build this package. namcap says they are not dependencies, so they must be makedependencies.

rmanola commented on 2011-01-29 19:50

Updated with the blank line.

haawda commented on 2011-01-29 12:59

in line 42 a blank is missing:

[[ -d build ]] || mkdir build

works.

rmanola commented on 2011-01-27 19:27

I have bumped the version of the package and its dependency (gcc) keeping untouched the patches and dpatches.On my tests I could compile pdftk and use it without problems.

Anonymous comment on 2011-01-21 12:26

@stefanhussman, thanks, that worked!

cap_sensitive commented on 2011-01-21 09:19

Maybe someone should bump the version.

haawda commented on 2011-01-21 01:40

You have to download the tarball, not only the PKGBUILD.

Anonymous comment on 2011-01-20 22:27

@drankinatty, when I mkpkg on the pkgbuild you provided I got the following error:
==> ERROR: gcc_pure64.patch was not found in the build directory and is not a URL.
What am I doing wrong?

dej commented on 2011-01-05 15:22

It worked for me using core/gcc 4.5.2-4 (base-devel).

But heck, the compilation was annoying just for pdftk.

drankinatty commented on 2011-01-01 16:20

cap_sensative, I don't think you can. I just need gcc-gcj for pdftk like most and each time I have to compile everything. I just kick off the build and go do something else -- for a long while.. But on the plus side, the PKGBUILD worked flawlessly and when I check back I had a new gcc-gcj package ready to install.

cap_sensitive commented on 2011-01-01 01:09

Can I just compile gcj? Compiling the whole gcc is just too slow.

Anonymous comment on 2010-12-31 18:19

@frankspace, it should work, though I'm not sure if there is any potential problems, either.

frankspace commented on 2010-12-31 06:24

If you'd like a gcc-gcj-multilib, I rather crudely made the following, based on the PKGBUILD created by drankinatty with the change suggested by tsdgeos:

http://aur.pastebin.com/x2DEsFdt

I've tested that it compiles (although it requires a vast amount of scratch space), and I tested that I can compile pdftk with it. I'm not knowledgeable enough to predict whether there are any subtle problems with it, though.

Anonymous comment on 2010-12-31 01:41

Is it possible to make a PKGBUILD for gcc-gcj-multilib? I'm not sure what is needed.

delroth commented on 2010-12-30 21:37

Grr. gcc was updated but as I am a gcc-multilib user I can't upgrade to 4.5.2 yet. I'm orphaning this package if someone using gcc from [core] want to maintains it.

drankinatty commented on 2010-12-30 15:20

I have put an updated PKGBUILD for gcc-gcj 4.5.2 at the following location:

http://paste.pocoo.org/show/312009/

enjoy!

Artefact2 commented on 2010-12-30 13:46

http://paste.pocoo.org/show/311974/
I have this little issue when trying to run a system upgrade.

delroth commented on 2010-12-27 06:40

You're right, I'll change that when updating to 4.5.2. Thanks!

Anonymous comment on 2010-12-27 00:34

When doing the makepkg step i get a warning in this line
[ -d build] || mkdir build
Maybe because it has to be
[ -d build ] || mkdir build
?

delroth commented on 2010-12-19 08:38

Sorry for those using [testing], I must wait until gcc-4.5.2 enters [core] to update this package.

delroth commented on 2010-08-19 07:25

That's right, doing this right now.

revel commented on 2010-08-19 05:46

you can upload an updated PKGBUILD without changing its pkgver/pkgrel
existing users wouldn't be forced to update and new users would still benefit from the fixes

haawda commented on 2010-08-19 04:53

There is a missing makedependency to "jack". If "jack" is not installed at buildtime, the build fails with a message about a missing file dssi.h.

delroth commented on 2010-08-18 22:56

@StefanHusmann, thank you for this bug report :) . I will update the PKGBUILD at the next upstream release. Rebuilds are very long so I try to avoid pkgrel upgrades when they are not strictly needed.

haawda commented on 2010-08-18 22:24

Thank you for maintaining this. Great job!

But there is an easy fixable problem: the build fails if you try it twice, because the "mkdir build" fails (build is already there).
You can replace

mkdir build && cd build

by

[ -d build ] || mkdir build
cd build

Also the "|| return 1" statements are no longer needed since pacman 3.4.

delroth commented on 2010-08-11 15:22

gcc 4.5.1 just hit testing, I'll start to work on a 4.5.1 version of this package. However, I can't make it the default as long as 4.5.1 is not in core.

electron commented on 2010-06-30 02:42

> The de_DE locale is a GCC requirement.
You keep stating this over and over again. I repeat again that if I remove from the PKGBUILD your odd check for the DE locale, your package builds fine. I do not have the DE locale enabled in /etc/locale.gen nor does locale -a report that I have it available. What exactly is supposed to fail without the DE locale?

delroth commented on 2010-06-24 10:59

Can't do anything about this one, it's a GCC bug. Please report it upstream (http://gcc.gnu.org/bugs.html).

indianahorst commented on 2010-06-24 10:54

libtool: compile: /tmp/yaourt-tmp-florian/aur-gcc-gcj/src/gcc-4.5.0/build/./gcc/gcj -B/tmp/yaourt-tmp-florian/aur-gcc-gcj/src/gcc-4.5.0/build/x86_64-unknown-linux-gnu/libjava/ -B/tmp/yaourt-tmp-florian/aur-gcc-gcj/src/gcc-4.5.0/build/./gcc/ -B/usr/x86_64-unknown-linux-gnu/bin/ -B/usr/x86_64-unknown-linux-gnu/lib/ -isystem /usr/x86_64-unknown-linux-gnu/include -isystem /usr/x86_64-unknown-linux-gnu/sys-include -fomit-frame-pointer -fclasspath= -fbootclasspath=../../../libjava/classpath/lib --encoding=UTF-8 -Wno-deprecated -fbootstrap-classes -g -O2 -c -fsource-filename=/tmp/yaourt-tmp-florian/aur-gcc-gcj/src/gcc-4.5.0/build/x86_64-unknown-linux-gnu/libjava/classpath/lib/classes -MT gnu/java/nio/charset.lo -MD -MP -MF gnu/java/nio/charset.deps @gnu/java/nio/charset.list -fPIC -o gnu/java/nio/.libs/charset.o
gcj: Internal error: Killed (program jc1)
Please submit a full bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[3]: *** [gnu/java/nio/charset.lo] Error 1
make[3]: Leaving directory `/tmp/yaourt-tmp-florian/aur-gcc-gcj/src/gcc-4.5.0/build/x86_64-unknown-linux-gnu/libjava'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/yaourt-tmp-florian/aur-gcc-gcj/src/gcc-4.5.0/build/x86_64-unknown-linux-gnu/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/tmp/yaourt-tmp-florian/aur-gcc-gcj/src/gcc-4.5.0/build'
make: *** [all] Error 2
==> ERROR: Build Failed.
Aborting...
==> ERROR: Makepkg was unable to build gcc-gcj.

delroth commented on 2010-06-17 08:17

This check was previously needed but GCC 4.5.0 only requires it to build libstdc++. The check will be removed when I'll update the PKGBUILD.

revel commented on 2010-06-17 01:24

the package builds fine without de_DE locale
please remove this o_O check

delroth commented on 2010-05-21 12:02

Bumped to 4.5.0-2 to fix the missing libart-lgpl dependency. Please note that I did not test this update as it should be trivial and GCJ takes a long time to compile.

delroth commented on 2010-05-21 10:22

Thanks for reporting this issue. I'll update the PKGBUILD ASAP.

quantax commented on 2010-05-21 06:44

libart-lgpl is a missing dependency:

checking for libart-2.0 >= 2.1... Package libart-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `libart-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'libart-2.0' found
configure: error: Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
make[1]: *** [configure-target-libjava] Error 1
make[1]: Leaving directory `/tmp/packerbuild-1000/gcc-gcj/gcc-gcj/src/gcc-4.5.0/build'
make: *** [all] Error 2

electron commented on 2010-05-10 23:17

> The de_DE locale is a GCC requirement.
Could you explain? That seems odd, and GCJ seems to build fine without it

delroth commented on 2010-04-24 16:27

Bumped to version 4.5.0, sorry for the lag. Please report any problem you get with this upgrade.

delroth commented on 2010-04-24 15:51

I'm getting a build problem with the new GCC version, working on it. Sorry for all people who can't upgrade because of this package.

delroth commented on 2010-04-24 14:19

Currently testing the new PKGBUILD I posted below, as the compilation takes about 4h on my machine I will probably update the package at 6PM UTC.

delroth commented on 2010-04-17 00:04

The update to GCC 4.5.0 is ready and an updated PKGBUILD can be found there : http://paste.pocoo.org/show/202762/ .

I'll bump the AUR package when the main GCC packages will be upgraded to 4.5.0.

syntaxerrormmm commented on 2010-04-14 00:45

This is what yaourt says compiling gcc-gcj at build() time:
You need the de_DE locale to build gcc.

WTF?

syntaxerrormmm commented on 2010-04-14 00:40

This is what yaourt says compiling gcc-gcj at build() time:
You need the de_DE locale to build gcc.

WTF?

delroth commented on 2010-04-10 14:40

Bumped to 4.4.3-2 and added a dependency to the new gcc-gcj-ecj package which is needed to have a working GCJ after installation.

delroth commented on 2010-04-09 23:58

By the way, I just adopted and updated the package. It now builds and installs GCJ 4.4.3 (last version), and has a dependency on zip which was missing from the last PKGBUILD and caused the build to fail after hours of compilation. Please report any problems with this new PKGBUILD in the comments so I can fix it soon.

delroth commented on 2010-04-09 23:55

The de_DE locale is a GCC requirement.

To build it on your system, edit /etc/locale.gen and uncomment the "de_DE ISO-8859-1" line, then launch locale-gen as root.

PiousMinion commented on 2010-04-08 18:43

Why do I need de_DE?
Please fix.

.....
==> Starting build()...
You need the de_DE locale to build gcc.
==> ERROR: Build Failed.
Aborting...
Error: Makepkg was unable to build gcc-gcj package.