[erlang-bugs] Build failes on PPC Leopard

Björn-Egil Dahlberg egil@REDACTED
Thu Feb 14 14:19:15 CET 2008


Hi,

Thank you for pointing out this error.

Compiling with libgd on certain platforms is a known issue, especially 
on mac. Configure should have detected the linker problem and disabled 
it. It didn't and this is clearly a bug.

If you don't need percept I recommend using ./configure --without-gd 
which will disable percept also.

The image rendering used by percept is currently being phased towards 
pure erlang code which will eliminate this problem in the future.

Regards,
Björn-Egil Dahlberg


Markus Flambard wrote:
> Hello,
> 
> I'm trying to compile Erlang/OTP R12B-1..
> 
> $ sw_vers
> ProductName:	Mac OS X
> ProductVersion:	10.5.2
> BuildVersion:	9C31
> 
> $ gcc --version
> powerpc-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465)
> Copyright (C) 2005 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> $ ./configure
> ...
> $ make
> ...
> === Entering application percept
> make -f powerpc-apple-darwin9.2.0/Makefile TYPE=opt
> /usr/bin/install -c -d ../priv/obj/powerpc-apple-darwin9.2.0
> gcc -c -o ../priv/obj/powerpc-apple-darwin9.2.0/egd_port_driver.o -g
> -O2 -I/Users/markus/src/otp_src_R12B-1/erts/powerpc-apple-darwin9.2.0
> -no-cpp-precomp    -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -fPIC
> -fno-common -DHAVE_CONFIG_H -O2
> -I/Users/markus/src/otp_src_R12B-1/erts/emulator/beam
> -I/Users/markus/src/otp_src_R12B-1/erts/emulator/sys/unix
> -I/Users/markus/src/otp_src_R12B-1/erts/include/internal
> -I/Users/markus/src/otp_src_R12B-1/erts/include/internal/unix
> -I/Users/markus/src/otp_src_R12B-1/erts/include
> -I/Users/markus/src/otp_src_R12B-1/erts/include/unix
> -I/usr/local/include egd_port_driver.c
> /usr/bin/install -c -d ../priv/obj/powerpc-apple-darwin9.2.0
> gcc -c -o ../priv/obj/powerpc-apple-darwin9.2.0/egd_image.o -g -O2
> -I/Users/markus/src/otp_src_R12B-1/erts/powerpc-apple-darwin9.2.0
> -no-cpp-precomp    -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -fPIC
> -fno-common -DHAVE_CONFIG_H -O2
> -I/Users/markus/src/otp_src_R12B-1/erts/emulator/beam
> -I/Users/markus/src/otp_src_R12B-1/erts/emulator/sys/unix
> -I/Users/markus/src/otp_src_R12B-1/erts/include/internal
> -I/Users/markus/src/otp_src_R12B-1/erts/include/internal/unix
> -I/Users/markus/src/otp_src_R12B-1/erts/include
> -I/Users/markus/src/otp_src_R12B-1/erts/include/unix
> -I/usr/local/include egd_image.c
> egd_image.c: In function 'image_font_size':
> egd_image.c:197: warning: pointer targets in passing argument 2 of
> 'driver_output' differ in signedness
> /usr/bin/install -c -d ../priv/obj/powerpc-apple-darwin9.2.0
> gcc -c -o ../priv/obj/powerpc-apple-darwin9.2.0/egd_coding.o -g -O2
> -I/Users/markus/src/otp_src_R12B-1/erts/powerpc-apple-darwin9.2.0
> -no-cpp-precomp    -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -fPIC
> -fno-common -DHAVE_CONFIG_H -O2
> -I/Users/markus/src/otp_src_R12B-1/erts/emulator/beam
> -I/Users/markus/src/otp_src_R12B-1/erts/emulator/sys/unix
> -I/Users/markus/src/otp_src_R12B-1/erts/include/internal
> -I/Users/markus/src/otp_src_R12B-1/erts/include/internal/unix
> -I/Users/markus/src/otp_src_R12B-1/erts/include
> -I/Users/markus/src/otp_src_R12B-1/erts/include/unix
> -I/usr/local/include egd_coding.c
> /usr/bin/install -c -d ../priv/lib/powerpc-apple-darwin9.2.0
> gcc /usr/local/lib -bundle -flat_namespace -undefined suppress -o
> ../priv/lib/powerpc-apple-darwin9.2.0/egd_drv.so
> ../priv/obj/powerpc-apple-darwin9.2.0/egd_port_driver.o
> ../priv/obj/powerpc-apple-darwin9.2.0/egd_image.o
> ../priv/obj/powerpc-apple-darwin9.2.0/egd_coding.o -lutil -ldl -lm
> -L/usr/local/lib -lgd
> ld: in /usr/local/lib, can't map file, errno=22
> collect2: ld returned 1 exit status
> make[4]: *** [../priv/lib/powerpc-apple-darwin9.2.0/egd_drv.so] Error 1
> make[3]: *** [opt] Error 2
> make[2]: *** [opt] Error 2
> make[1]: *** [opt] Error 2
> make: *** [libs] Error 2
> 




More information about the erlang-bugs mailing list