Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warnings from LLVM 6.0 on OS X 10.10 #152

Open
rwfranks opened this issue Oct 27, 2024 · 0 comments
Open

Warnings from LLVM 6.0 on OS X 10.10 #152

rwfranks opened this issue Oct 27, 2024 · 0 comments

Comments

@rwfranks
Copy link

Transcribed verbatim from CPAN RT#101324, warts and all.

Mon Jan 05 14:24:22 2015 David Wheeler - Ticket created
Subject: Warnings from LLVM 6.0 on OS X 10.10

Date: Mon, 5 Jan 2015 11:24:07 -0800
To: [email protected]
From: "David E. Wheeler" [email protected]

There are a few warnings when building DBI with LLVM on OS X 10.10. Probably not a bit deal; just an FYI:

> cc -v
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin14.1.0
Thread model: posix

> make
"/usr/local/bin/perl" -MExtUtils::Command -e 'mkpath' -- blib/lib/DBI
rm -f blib/lib/DBI/Changes.pm
cp Changes blib/lib/DBI/Changes.pm
cp dbipport.h blib/arch/auto/DBI/dbipport.h
cp lib/DBI/ProfileData.pm blib/lib/DBI/ProfileData.pm
cp DBI.pm blib/lib/DBI.pm
cp lib/DBD/Gofer/Transport/corostream.pm blib/lib/DBD/Gofer/Transport/corostream.pm
cp lib/DBI/ProfileSubs.pm blib/lib/DBI/ProfileSubs.pm
cp lib/DBI/Gofer/Transport/stream.pm blib/lib/DBI/Gofer/Transport/stream.pm
cp lib/DBI/Gofer/Serializer/DataDumper.pm blib/lib/DBI/Gofer/Serializer/DataDumper.pm
cp dbixs_rev.pl blib/lib/dbixs_rev.pl
cp dbi_sql.h blib/arch/auto/DBI/dbi_sql.h
cp lib/DBD/Multiplex/Logic/Default.pm blib/lib/DBD/Multiplex/Logic/Default.pm
cp lib/DBD/File.pm blib/lib/DBD/File.pm
cp lib/DBD/Gofer/Policy/rush.pm blib/lib/DBD/Gofer/Policy/rush.pm
cp dbixs_rev.h blib/arch/auto/DBI/dbixs_rev.h
cp lib/DBI/ProfileDumper/Apache.pm blib/lib/DBI/ProfileDumper/Apache.pm
cp dbd_xsh.h blib/arch/auto/DBI/dbd_xsh.h
cp lib/Win32/DBIODBC.pm blib/lib/Win32/DBIODBC.pm
cp lib/DBI/Gofer/Execute.pm blib/lib/DBI/Gofer/Execute.pm
cp lib/DBI/Gofer/Response.pm blib/lib/DBI/Gofer/Response.pm
cp goferperf.pl blib/lib/goferperf.pl
cp lib/DBD/Gofer/Transport/null.pm blib/lib/DBD/Gofer/Transport/null.pm
cp lib/DBI/Profile.pm blib/lib/DBI/Profile.pm
cp Driver_xst.h blib/arch/auto/DBI/Driver_xst.h
cp lib/DBD/Gofer/Transport/pipeone.pm blib/lib/DBD/Gofer/Transport/pipeone.pm
cp lib/DBD/NullP.pm blib/lib/DBD/NullP.pm
cp lib/DBD/DBM.pm blib/lib/DBD/DBM.pm
cp lib/DBD/Gofer/Policy/pedantic.pm blib/lib/DBD/Gofer/Policy/pedantic.pm
cp lib/DBI/DBD.pm blib/lib/DBI/DBD.pm
cp lib/DBI/Const/GetInfo/ANSI.pm blib/lib/DBI/Const/GetInfo/ANSI.pm
cp lib/DBI/W32ODBC.pm blib/lib/DBI/W32ODBC.pm
cp lib/DBD/Proxy.pm blib/lib/DBD/Proxy.pm
cp lib/DBI/ProfileDumper.pm blib/lib/DBI/ProfileDumper.pm
cp lib/DBD/File/HowTo.pod blib/lib/DBD/File/HowTo.pod
cp lib/DBI/Gofer/Transport/pipeone.pm blib/lib/DBI/Gofer/Transport/pipeone.pm
cp lib/DBI/Util/_accessor.pm blib/lib/DBI/Util/_accessor.pm
cp lib/DBI/Gofer/Serializer/Storable.pm blib/lib/DBI/Gofer/Serializer/Storable.pm
cp lib/DBI/Const/GetInfo/ODBC.pm blib/lib/DBI/Const/GetInfo/ODBC.pm
cp lib/DBI/DBD/SqlEngine.pm blib/lib/DBI/DBD/SqlEngine.pm
cp lib/DBI/DBD/SqlEngine/Developers.pod blib/lib/DBI/DBD/SqlEngine/Developers.pod
cp lib/DBI/Const/GetInfoType.pm blib/lib/DBI/Const/GetInfoType.pm
cp dumpmethods.pl blib/lib/dumpmethods.pl
cp lib/DBD/Gofer/Transport/stream.pm blib/lib/DBD/Gofer/Transport/stream.pm
cp lib/DBD/Gofer/Policy/classic.pm blib/lib/DBD/Gofer/Policy/classic.pm
cp lib/DBI/Util/CacheMemory.pm blib/lib/DBI/Util/CacheMemory.pm
cp lib/DBI/SQL/Nano.pm blib/lib/DBI/SQL/Nano.pm
cp lib/DBI/ProxyServer.pm blib/lib/DBI/ProxyServer.pm
cp lib/DBI/DBD/SqlEngine/HowTo.pod blib/lib/DBI/DBD/SqlEngine/HowTo.pod
cp lib/DBD/Sponge.pm blib/lib/DBD/Sponge.pm
cp lib/DBD/File/Roadmap.pod blib/lib/DBD/File/Roadmap.pod
cp lib/DBD/Gofer/Policy/Base.pm blib/lib/DBD/Gofer/Policy/Base.pm
cp lib/DBD/ExampleP.pm blib/lib/DBD/ExampleP.pm
cp lib/Bundle/DBI.pm blib/lib/Bundle/DBI.pm
cp lib/DBD/File/Developers.pod blib/lib/DBD/File/Developers.pod
cp lib/DBI/Gofer/Transport/Base.pm blib/lib/DBI/Gofer/Transport/Base.pm
cp lib/DBI/Gofer/Serializer/Base.pm blib/lib/DBI/Gofer/Serializer/Base.pm
cp lib/DBI/PurePerl.pm blib/lib/DBI/PurePerl.pm
cp lib/DBD/Gofer/Transport/Base.pm blib/lib/DBD/Gofer/Transport/Base.pm
cp DBIXS.h blib/arch/auto/DBI/DBIXS.h
cp lib/DBI/Gofer/Request.pm blib/lib/DBI/Gofer/Request.pm
cp lib/DBI/Const/GetInfoReturn.pm blib/lib/DBI/Const/GetInfoReturn.pm
cp lib/DBD/Gofer.pm blib/lib/DBD/Gofer.pm
cp Driver.xst blib/arch/auto/DBI/Driver.xst
cp lib/DBD/Multiplex.pm blib/lib/DBD/Multiplex.pm
cp lib/DBI/DBD/Metadata.pm blib/lib/DBI/DBD/Metadata.pm
cp lib/DBI/FAQ.pm blib/lib/DBI/FAQ.pm
cp dbivport.h blib/arch/auto/DBI/dbivport.h

Running Mkbootstrap for DBI ()
chmod 644 "DBI.bs"
"/usr/local/bin/perl" -p -e "s/~DRIVER~/Perl/g" ./Driver.xst > Perl.xsi
"/usr/local/bin/perl" "/usr/local/lib/perl5/5.20.1/ExtUtils/xsubpp"  -typemap "/usr/local/lib/perl5/5.20.1/ExtUtils/typemap" -typemap "typemap"  Perl.xs > Perl.xsc && mv Perl.xsc Perl.c
cc -c   -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -O3   -DVERSION=\"1.630\" -DXS_VERSION=\"1.630\"  "-I/usr/local/lib/perl5/5.20.1/darwin-thread-multi-2level/CORE"  -W -Wall -Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare -Wno-cast-qual -Wmissing-noreturn -Wno-unused-parameter Perl.c
"/usr/local/bin/perl" "/usr/local/lib/perl5/5.20.1/ExtUtils/xsubpp"  -typemap "/usr/local/lib/perl5/5.20.1/ExtUtils/typemap" -typemap "typemap"  DBI.xs > DBI.xsc && mv DBI.xsc DBI.c
cc -c   -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -O3   -DVERSION=\"1.630\" -DXS_VERSION=\"1.630\"  "-I/usr/local/lib/perl5/5.20.1/darwin-thread-multi-2level/CORE"  -W -Wall -Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare -Wno-cast-qual -Wmissing-noreturn -Wno-unused-parameter DBI.c
DBI.xs:2359:49: warning: implicit conversion from 'int' to 'char' changes value from 924 to -100
      [-Wconstant-conversion]
                                *p = (upcase) ? toUPPER_LC(*p) : toLOWER_LC(*p);
                                   ~            ^~~~~~~~~~~~~~
/usr/local/lib/perl5/5.20.1/darwin-thread-multi-2level/CORE/handy.h:1380:27: note: expanded from macro
      'toUPPER_LC'
#    define toUPPER_LC(c) _generic_toUPPER_LC((c), toupper, U8)
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/perl5/5.20.1/darwin-thread-multi-2level/CORE/handy.h:1302:27: note: expanded from macro
      '_generic_toUPPER_LC'
                        ? GREEK_CAPITAL_LETTER_MU                              \
                          ^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/perl5/5.20.1/darwin-thread-multi-2level/CORE/utf8.h:558:49: note: expanded from macro
      'GREEK_CAPITAL_LETTER_MU'
#define GREEK_CAPITAL_LETTER_MU                 0x039C  /* Upper and title case
                                                ^~~~~~
DBI.xs:2359:49: warning: implicit conversion from 'int' to 'char' changes value from 376 to 120
      [-Wconstant-conversion]
                                *p = (upcase) ? toUPPER_LC(*p) : toLOWER_LC(*p);
                                   ~            ^~~~~~~~~~~~~~
/usr/local/lib/perl5/5.20.1/darwin-thread-multi-2level/CORE/handy.h:1380:27: note: expanded from macro
      'toUPPER_LC'
#    define toUPPER_LC(c) _generic_toUPPER_LC((c), toupper, U8)
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/perl5/5.20.1/darwin-thread-multi-2level/CORE/handy.h:1304:29: note: expanded from macro
      '_generic_toUPPER_LC'
                          ? LATIN_CAPITAL_LETTER_Y_WITH_DIAERESIS              \
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/perl5/5.20.1/darwin-thread-multi-2level/CORE/utf8.h:560:49: note: expanded from macro
      'LATIN_CAPITAL_LETTER_Y_WITH_DIAERESIS'
#define LATIN_CAPITAL_LETTER_Y_WITH_DIAERESIS   0x0178  /* Also is title case */
                                                ^~~~~~
DBI.xs:4157:42: warning: expression which evaluates to zero treated as a null pointer constant of type
      'const char *' [-Wnon-literal-null-conversion]
    const char *style = "", *laststyle = '\0';
                                         ^~~~
3 warnings generated.
rm -f blib/arch/auto/DBI/DBI.bundle
env MACOSX_DEPLOYMENT_TARGET=10.3 cc  -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector DBI.o  -o blib/arch/auto/DBI/DBI.bundle      \
                \
          
chmod 755 blib/arch/auto/DBI/DBI.bundle
"/usr/local/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- DBI.bs blib/arch/auto/DBI/DBI.bs 644
"/usr/local/bin/perl" "-Iblib/arch" "-Iblib/lib" dbilogstrip.PL dbilogstrip
Extracted dbilogstrip from dbilogstrip.PL with variable substitutions.
cp dbilogstrip blib/script/dbilogstrip
"/usr/local/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/dbilogstrip
"/usr/local/bin/perl" "-Iblib/arch" "-Iblib/lib" dbiprof.PL dbiprof
Extracted dbiprof from dbiprof.PL with variable substitutions.
dbiprof syntax OK
cp dbiprof blib/script/dbiprof
"/usr/local/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/dbiprof
"/usr/local/bin/perl" "-Iblib/arch" "-Iblib/lib" dbiproxy.PL dbiproxy
Extracted dbiproxy from dbiproxy.PL with variable substitutions.
dbiproxy syntax OK
cp dbiproxy blib/script/dbiproxy
"/usr/local/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/dbiproxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant