Opened 12 years ago

Closed 12 years ago

#32593 closed defect (fixed)

quartz-wm 1.2.1_0 does not build on PPC Leopard because of "ld: unknown option: -errwarn=E_NO_EXPLICIT_TYPE_GIVEN"

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: jeremyhu (Jeremy Huddleston Sequoia)
Port: quartz-wm

Description

Here is the failure:

/usr/bin/gcc-4.0 -I/opt/local/include -I/opt/local/include/pixman-1   -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wbad-function-cast -Wformat=2 -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wcast-qual -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Winline -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED -errwarn=E_FUNC_HAS_NO_RETURN_STMT -errwarn=E_BAD_PTR_INT_COMBINATION -fno-strict-aliasing -O2 -arch ppc -L/opt/local/lib -lAppleWM -lpixman-1 -lX11 -lXext -lXinerama -lXrandr   -framework AppKit -framework Foundation -framework ApplicationServices -L/opt/local/lib -arch ppc -o quartz-wm frame.o main.o utils.o x-input.o x-list.o x-screen.o x-selection.o x-window.o x11-geometry.o dock-support.o 
ld: unknown option: -errwarn=E_NO_EXPLICIT_TYPE_GIVEN
collect2: ld returned 1 exit status
make[3]: *** [quartz-wm] Error 1
make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_ports_x11_quartz-wm/quartz-wm/work/quartz-wm-1.2.1/src'

I think all these -errwarn= options are dangerous for GCC 4.0.

Attachments (2)

main.log (46.8 KB) - added by ballapete (Peter "Pete" Dyballa) 12 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_ports_x11_quartz-wm/quartz-wm/main.log
config.log (52.4 KB) - added by ballapete (Peter "Pete" Dyballa) 12 years ago.
/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_ports_x11_quartz-wm/quartz-wm/work/quartz-wm-1.2.1/config.log

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_ports_x11_quartz-wm/quartz-wm/main.log

comment:1 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Hrm...

:info:configure checking if /usr/bin/gcc-4.0 -std=gnu99 supports -Werror=implicit... no
:info:configure checking if /usr/bin/gcc-4.0 -std=gnu99 supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... yes

Can you attach your config.log? -errwarn is for SunStudio's CC and gcc should've not built with it.

Changed 12 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: config.log added

/opt/local/var/macports/build/_opt_local_var_macports_sources_lil.fr.rsync.macports.org_release_ports_x11_quartz-wm/quartz-wm/work/quartz-wm-1.2.1/config.log

comment:2 in reply to:  1 Changed 12 years ago by ballapete (Peter "Pete" Dyballa)

Replying to jeremyhu@…:

Can you attach your config.log? -errwarn is for SunStudio's CC and gcc should've not built with it.

Done!

comment:3 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: fixed
Status: newclosed
 /usr/bin/gcc-4.0 -std=gnu99 -c -O2 -arch ppc -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED -I/opt/local/include 

That should've been fixed with http://cgit.freedesktop.org/xorg/util/macros/commit/?id=87340dcccf97c3e1f0ab918bb6740abf47d65558

My guess is that I had an older util-macros when I made the package, sorry...

This should be fixed with r88120

Note: See TracTickets for help on using tickets.