Ticket #479 (closed defect: worksforme)
Opened 5 years ago
Last modified 4 years ago
gettext doesn't build on gcc4
| Reported by: | mbaluta | Owned by: | scottmc |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | sys-devel/gettext | Version: | |
| Severity: | normal | Keywords: | |
| Cc: |
Description
checking whether the C compiler works... no
configure: error: in `/boot/develop/haikuports/sys-devel/gettext/work/gettext-0.17/autoconf-lib-link':
configure: error: C compiler cannot create executables
See `config.log' for more details
configure: error: ./configure failed for autoconf-lib-link
Traceback (most recent call last):
File "/boot/common/bin/haikuporter", line 1553, in <module>
haikuporter = HaikuPorter(options, args)
File "/boot/common/bin/haikuporter", line 348, in __init__
self.buildPort() # build
File "/boot/common/bin/haikuporter", line 891, in buildPort
self.runCommandSequence(self.bepKeys['BUILD'], self.workDir)
File "/boot/common/bin/haikuporter", line 1180, in runCommandSequence
check_call(commandString, shell=True, cwd=dir, env=shellEnv)
File "/boot/common/lib/python2.6/subprocess.py", line 488, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'set -e
cd gettext-0.17
rm ./gettext-tools/gnulib-m4/openmp.m4
libtoolize --force --copy --install
echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.ac
libtoolize --force --copy --install
cd autoconf-lib-link
echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.ac
libtoolize --force --copy --install
cd ..
cd gettext-runtime
echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.ac
libtoolize --force --copy --install
cd ..
cd gettext-tools
echo "AC_CONFIG_MACRO_DIR([m4])" >> configure.ac
libtoolize --force --copy --install
cd ..
cd gettext-runtime/libasprintf
libtoolize --force --copy --install
cd ../..
export EXTRA_CONF="--disable-java"
export LDFLAGS="-lnetwork -liconv"
./autogen.sh --quick --skip-gnulib
./configure --prefix=/boot/common LDFLAGS="-lnetwork -liconv"
make
' returned non-zero exit status 77
No problems gcc2
Attachments
Change History
comment:1 Changed 5 years ago by bonefish
Changed 5 years ago by mbaluta
- attachment config.log added
comment:2 Changed 5 years ago by mbaluta
Few line before i've noticed this:
=== configuring in autoconf-lib-link (/boot/develop/haikuports/sys-devel/gettext/work/gettext-0.17/autoconf-lib-link) configure: running /bin/sh ./configure --disable-option-checking '--prefix=/boot/common' 'LDFLAGS=-lnetwork -liconv' --cache-file=/dev/null --srcdir=.
I have runned ./configure without LDFLAGS="-lnetwork -liconv" and it solved the problem (i hope so). Make didn't returned any errors.
comment:3 Changed 5 years ago by mbaluta
Still wasn't working good. I had some errors during compilation of flac. After i've installed gettext by using installoptionalpackage flac compiled successfully.
comment:4 Changed 4 years ago by scottmc
- Component changed from default to sys-devel/gettext
- Owner set to scottmc
comment:5 Changed 4 years ago by scottmc
- Resolution set to worksforme
- Status changed from new to closed
haikuporter -c -d gettext-18.1.1 builds ok on a plain gcc4 only Haiku.
The issue may be when building on hybrid systems?
Note: See
TracTickets for help on using
tickets.

As the output suggests, have a look at config.log. It should contain the program that failed to be built and the error message issued by the compiler.