Opened 8 years ago
Last modified 8 years ago
#51557 new defect
mp3fs build error on Leopard i366 — at Version 2
Reported by: | arboz@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | powerpc leopard | Cc: | |
Port: | mp3fs |
Description (last modified by mf2k (Frank Schima))
While building new port for mp3fs r149164
The build fails with unrecognized command line option "-Wno-sign-conversion"
CXX transcode.o cc1: error: unrecognized command line option "-Wno-sign-conversion" cc1: error: unrecognized command line option "-Wno-sign-conversion" cc1plus: error: unrecognized command line option "-Wno-sign-conversion" make[1]: *** [transcode.o] Error 1
apparently my compiler does not recognize this warning flag
I changed the generated src/Makefile and removed that flag from WARNINGS
thusly
WARNINGS = -Wall -Wextra -Wconversion # -Wno-sign-conversion
Then called install and it proceeded with warnings
CXX transcode.o fuseops.c: In function ‘mp3fs_readdir’: fuseops.c:166: warning: passing argument 4 of ‘filler’ with different width due to prototype fuseops.c: In function ‘mp3fs_open’: fuseops.c:268: warning: cast from pointer to integer of different size fuseops.c: In function ‘mp3fs_read’: fuseops.c:308: warning: cast to pointer from integer of different size fuseops.c: In function ‘mp3fs_release’: fuseops.c:353: warning: cast to pointer from integer of different size
..finished building and cleaned up.
I am not sure, but the conversions may be safe.
I am personally a bit fuzzy on the different compiler features but gcc tells me:
Warnings about conversions between signed and unsigned integers can be disabled by using -Wno-sign-conversion.
I haven't tested yet, but it seems good.
I am attaching the main.log
Change History (3)
Changed 8 years ago by arboz@…
Attachment: | mp3fs_main.log added |
---|
comment:1 Changed 8 years ago by mf2k (Frank Schima)
Keywords: | powerpc leopard added; build error removed |
---|---|
Port: | mp3fs added |
In the future, please fill in the Port field.
comment:2 Changed 8 years ago by mf2k (Frank Schima)
Description: | modified (diff) |
---|
Note: See
TracTickets for help on using
tickets.
log after successful build