Maurilio, Przemek:

I am testing current Harbour with eCS 1.2MR and gcc-4.3.2-os2-20081025.zip from Paul Smedley and I get many warnings/errors

I do not know if they belong to:
a) A bad gcc environment settings
b) Failures of gcc 4.3.2 port
c) Real warnings/error in Harbour code, due maybe to gcc version revision in code

So I recall for your help  :-)

Below are warnings/errors

I tried to configure my gcc 4.3.2 environment settings based in gcc432.cmd file
Below are included my gccset.cmd and readme.os2

Libraries created are:
( many are skipped due missing harbour.exe )

28/10/08  6:01a        55,618    124 a---  hbcommon.a
28/10/08  6:03a       355,518    124 a---  hbcplr.a
28/10/08  6:13a        68,872    124 a---  hbmacro.a
28/10/08  6:17a        48,498    124 a---  hbcpage.a
28/10/08  6:20a       246,914    124 a---  hblang.a
28/10/08  6:23a       158,786    124 a---  hbpcre.a
28/10/08  6:23a        67,842    124 a---  hbzlib.a
28/10/08  6:24a       230,076    124 a---  hbbmcdx.a
28/10/08  6:25a        13,070    124 a---  hbclipsm.a
28/10/08  6:31a         9,226    124 a---  hbgt.a
28/10/08  6:31a        36,938    124 a---  hbmzip.a
       11 file(s)   1,291,358 bytes used

and make_gnu.log are 1602 lines length

David Macias


-------------------
[E:\harbour810\harbour]make -r           1>make_gnu.log
../../hbfsapi.c: In function 'hb_fsNameExists':
../../hbfsapi.c:323: warning: pointer targets in passing argument 1 of 'DosQueryPathInfo' differ in signedness
../../hbfsapi.c: In function 'hb_fsFileExists':
../../hbfsapi.c:381: warning: pointer targets in passing argument 1 of 'DosQueryPathInfo' differ in signedness
../../hbfsapi.c: In function 'hb_fsDirExists':
../../hbfsapi.c:440: warning: pointer targets in passing argument 1 of 'DosQueryPathInfo' differ in signedness

../../hbgete.c: In function 'hb_getenv':
../../hbgete.c:88: warning: pointer targets in initialization differ in signedness ../../hbgete.c:93: warning: pointer targets in passing argument 1 of 'DosScanEnv' differ in signedness ../../hbgete.c:95: warning: pointer targets in passing argument 1 of 'hb_strdup' differ in signedness
../../hbgete.c: In function 'hb_getenv_buffer':
../../hbgete.c:127: warning: pointer targets in initialization differ in signedness ../../hbgete.c:132: warning: pointer targets in passing argument 1 of 'DosScanEnv' differ in signedness ../../hbgete.c:136: warning: pointer targets in passing argument 2 of 'hb_strncpy' differ in signedness
emxbind: invalid a.out file (startup code)
ld.exe: emxbind failed

make[3]: *** [hbpp.exe] Error 1
make[2]: *** [descend] Error 2
ld.exe: No such file or directory for hbpp
make[3]: *** [harbour.exe] Error 1
make[2]: *** [descend] Error 2

../../hbffind.c: In function 'hb_fsFindNextLow':
../../hbffind.c:521: warning: pointer targets in passing argument 1 of 'DosFindFirst' differ in signedness
../../hbinet.c: In function 'HB_FUN_HB_INETACCEPT':
../../hbinet.c:1758: warning: pointer targets in passing argument 3 of 'accept' differ in signedness
make[3]: ../../../../source/main/os2/gcc/harbour.exe: Command not found
make[2]: *** [descend] Error 1
../../dynlibhb.c: In function 'HB_FUN_HB_LIBLOAD':
../../dynlibhb.c:102: warning: implicit declaration of function 'DosLoadModule'
../../dynlibhb.c: In function 'HB_FUN_HB_LIBFREE':
../../dynlibhb.c:145: warning: implicit declaration of function 'DosFreeModule'
../../estack.c: In function 'hb_stackDebugRequest':
../../estack.c:442: warning: return from incompatible pointer type
../../hvm.c: In function 'hb_dbg_InvokeDebug':
../../hvm.c:10596: warning: initialization from incompatible pointer type
../../hvm.c: In function 'HB_FUN___DBGINVOKEDEBUG':
../../hvm.c:10642: warning: initialization from incompatible pointer type
make[3]: ../../../../source/main/os2/gcc/harbour.exe: Command not found
make[2]: *** [descend] Error 1
make[3]: ../../../../source/main/os2/gcc/harbour.exe: Command not found
make[2]: *** [descend] Error 1
make[3]: ../../../../source/main/os2/gcc/harbour.exe: Command not found
make[2]: *** [descend] Error 1
make[3]: ../../../../source/main/os2/gcc/harbour.exe: Command not found
make[2]: *** [descend] Error 1
make[1]: *** [first] Error 2
make[3]: ../../../../source/main/os2/gcc/harbour.exe: Command not found
make[2]: *** [descend] Error 1
make[3]: ../../../../source/main/os2/gcc/harbour.exe: Command not found
make[2]: *** [descend] Error 1
make[3]: ../../../../source/main/os2/gcc/harbour.exe: Command not found
make[2]: *** [descend] Error 1
make[3]: ../../../../source/main/os2/gcc/harbour.exe: Command not found
make[2]: *** [descend] Error 1
make[1]: *** [first] Error 2
make[3]: ../../../../source/main/os2/gcc/harbour.exe: Command not found
make[2]: *** [descend] Error 1
../../files.c: In function 'HB_FUN_SETFDATI':
../../files.c:273: warning: pointer targets in passing argument 1 of 'DosQueryPathInfo' differ in signedness ../../files.c:308: warning: pointer targets in passing argument 1 of 'DosSetPathInfo' differ in signedness
../../os2pm.c: In function 'HB_FUN_WINREGISTERCLASS':
../../os2pm.c:113: warning: pointer targets in passing argument 2 of 'WinRegisterClass' differ in signedness
../../os2pm.c: In function 'HB_FUN_WINCREATESTDWINDOW':
../../os2pm.c:148: warning: pointer targets in passing argument 4 of 'WinCreateStdWindow' differ in signedness ../../os2pm.c:148: warning: pointer targets in passing argument 5 of 'WinCreateStdWindow' differ in signedness
../../os2pm.c: In function 'HB_FUN_WINSETWINDOWTEXT':
../../os2pm.c:180: warning: pointer targets in passing argument 2 of 'WinSetWindowText' differ in signedness
../../os2pm.c: In function 'HB_FUN_WINGETTEXT':
../../os2pm.c:189: warning: pointer targets in passing argument 1 of 'hb_retc' differ in signedness
../../os2pm.c: In function 'HB_FUN_MSGINFO':
../../os2pm.c:196: warning: pointer targets in initialization differ in signedness ../../os2pm.c:199: warning: pointer targets in passing argument 3 of 'WinMessageBox' differ in signedness
make[4]: ../../../../../source/main/os2/gcc/harbour.exe: Command not found
make[3]: *** [descend] Error 1
make[2]: *** [first] Error 2
make[3]: ../../../../source/main/os2/gcc/harbour.exe: Command not found
make[2]: *** [descend] Error 1
../../hbmzip.c: In function 'hb_zipStoreFile':
../../hbmzip.c:748: warning: pointer targets in passing argument 1 of 'DosQueryPathInfo' differ in signedness
../../hbmzip.c: In function 'hb_unzipExtractCurrentFile':
../../hbmzip.c:1049: warning: pointer targets in passing argument 1 of 'DosQueryPathInfo' differ in signedness ../../hbmzip.c:1067: warning: pointer targets in passing argument 1 of 'DosSetPathInfo' differ in signedness
make[3]: ../../../../source/main/os2/gcc/harbour.exe: Command not found
make[2]: *** [descend] Error 1
make[3]: ../../../../source/main/os2/gcc/harbour.exe: Command not found
make[2]: *** [descend] Error 1
make[3]: ../../../../source/main/os2/gcc/harbour.exe: Command not found
make[2]: *** [descend] Error 1
make[3]: ../../../../source/main/os2/gcc/harbour.exe: Command not found
make[2]: *** [descend] Error 1
make[3]: ../../../../source/main/os2/gcc/harbour.exe: Command not found
make[2]: *** [descend] Error 1
../../xhbcopyf.c:66: error: conflicting types for 'hb_fsCopy'
../../../../include/hbapifs.h:211: error: previous declaration of 'hb_fsCopy' was here
make[3]: *** [xhbcopyf.o] Error 1
make[2]: *** [descend] Error 2
make[3]: ../../../../source/main/os2/gcc/harbour.exe: Command not found
make[2]: *** [descend] Error 1

---------------------

Rem gccset.cmd

SET PATH_EMXPGCC=E:\usr
SET CCENV=EMX
SET BUILD_ENV=EMX
SET BUILD_PLATFORM=OS2
SET ROOT=E:

SET GCCDIR=%ROOT%\usr
SET GCCDIR2=%ROOT%/usr

SET EMX=%ROOT%\EMX
SET EMX2=%ROOT%/EMX

SET PATH=%GCCDIR%\local432\bin;%GCCDIR%\local432\libexec\gcc\i386-pc-os2-emx\4.3.2;%PATH%

SET BEGINLIBPATH=%GCCDIR%\local432\lib;%GCCDIR%\local432\lib\gcc\i386-pc-os2-emx\4.3.2;%BEGINLIBPATH%

SET DPATH=%GCCDIR%\local432\lib;%DPATH%

SET C_INCLUDE_PATH=%GCCDIR2%/local432/lib/gcc/i386-pc-os2-emx/4.3.2/include;

SET CPLUS_INCLUDE_PATH=%GCCDIR2%/local432/include/c++/4.3.2/backward;

Rem DAVID: CPLUS_INCLUDE_PATH=E:/usr/include/c++/3.3.5/;E:/usr/include/c++/3.3.5/i386-pc-os2-emx;E:/usr/include/c++/3.3.5/backward;E:/usr/include;

SET LIBRARY_PATH=%GCCDIR2%/local432/lib;%GCCDIR2%/local432/lib/gcc/i386-pc-os2-emx/4.3.2;

Rem SET INFOPATH=%EMX2%/info;u:/usr/share/info
Rem DAVID: INFOPATH=E:/usr/info;

---------------------

Readme.os2

GCC v4.3.2 + binutils 2.16.1 (minus ld.exe)

Requires libc063.dll available from ftp://ftp.netlabs.org/pub/gcc/libc-0.6.3-csd3.zip

Instructions for use:
- Currently installs into \usr\local432 so as not to interfere with an existing GCC 3.3.5 install in \usr\bin - See sample compiler environment setup scripts (in \usr\local432) for required differences compared to GCC 3.3.5 - report any problems via email to [EMAIL PROTECTED] or via http://mantis.smedley.info

Known Issues:
- no support yet for the GOMP multiprocessor library
- link warning when using -Zomf - emxomf will require updating to deal with the new stabs types, but according to Knut, these warnings can be safely ignored, and only affect debugging

Updates since original build:
- Added threading support (20081011 build)
- fixed problem with stdcall that produced errors like '{standard input}:75: Error: invalid character '_' in mnemonic' (20081012 build)
- fixed (hopefully) 'internal compiler error' crashes when -fPIC is used
- Added support for precompiled headers based on cygwin code (untested) (20081012 build)
- Fixed 'gcc conftest.c -lgcc' produced -lgcc.exe (20081012b build)
- Fixed problems with cdecl (20081014 build)
- Fixed (hopefully) problems with fastcall (20081014 build)
- Binutils 2.16.1 (minus ld.exe) included (20081025 build)
- Fixed (hopefully) probelm with recursive thread support in libstdc++ - thanks Yuri for the patch! (20081025 build)

ld.exe from binutils isn't included as it currently isn't working correctly (emxbind error)

This build hasn't had huge amounts of testing, but has been used to build Scribus, Firefox 3.0cvs and ffmpeg successfully. Any feedback on things that work/don't work vs GCC 3.3.5 would be appreciated!

If you like this software and want to support continued ports, please consider donating via PayPal via the link in the footer at http://smedley.info/os2ports or via the Mensys online store at http://www.mensys.net/os2ports

Cheers,

Paul Smedley
Adelaide, Australia
25th October, 2008

---------------------

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to