News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

mingw32-g++.exe: 0x6EEC0000: No such file or directory

Started by somostetoikilato, September 15, 2011, 03:33:04 PM

Previous topic - Next topic

somostetoikilato

Hi,

I know that it is easy for you but ..., so please help me!

I checked out the Apache APR source from the http://svn.apache.org/repos/asf/apr/apr/trunk
into the D:\temp\asf\apr\apr\trunk local folder. Then, using CodeBlocks 10.05's MS Visual C++
workspace importer I imported the D:\temp\asf\apr\trunk\apr.dsw.

There are more projects inside this workspace but only two of them are relevant: apr and libapr.
The first one is a static library and after setting the up the environmet it builds fine,
without errors and produces an .a file as it is specified in the target options:

D:\temp\asf\apr\trunk\LibR\libapr.a

The second project fails with the follwing message and do not produces the DLL:

Linking dynamic library: D:\temp\asf\apr\trunk\Release\libapr-2.dll
mingw32-g++.exe: 0x6EEC0000: No such file or directory
mingw32-g++.exe: Release\libapr-2: No such file or directory
Process terminated with status 1 (0 minutes, 25 seconds)
0 errors, 20 warnings

The target looks like this:

<Target title="Win32 Release">
   <Option output="D:\temp\asf\apr\trunk\Release\libapr-2.dll" prefix_auto="0" extension_auto="0" />
   <Option object_output="D:\temp\asf\apr\trunk\Release" />
   <Option type="3" />
   <Option compiler="gcc" />
   <Option createDefFile="1" />
   <Option createStaticLib="1" />
   <Compiler>
      <Add option="-W" />
      <Add option="-O2" />
      <Add option="-DWIN32" />
      <Add option="-DNDEBUG" />
      <Add option="-D_WINDOWS" />
      <Add option="-g" />
      <Add option="-DAPR_DECLARE_EXPORT" />
      <Add option="-DWINNT" />
      <Add directory="D:\temp\asf\apr\trunk\include" />
      <Add directory="D:\temp\asf\apr\trunk\include\private" />
      <Add directory="D:\temp\asf\apr\trunk\include\arch\win32" />
      <Add directory="D:\temp\asf\apr\trunk\include\arch\unix" />
      <Add directory="D:\temp\expat\expat-2.0.1\lib" />
   </Compiler>
   <ResourceCompiler>
      <Add directory=".\include" />
   </ResourceCompiler>
   <Linker>
      <Add option="--image-base 0x6EEC0000" />
      <Add library="kernel32" />
      <Add library="advapi32" />
      <Add library="ws2_32" />
      <Add library="mswsock" />
      <Add library="ole32" />
      <Add library="shell32" />
      <Add library="rpcrt4" />
      <Add library="libexpat" />
      <Add directory="D:\temp\expat\expat-2.0.1\win32\bin\Release" />
   </Linker>
   <ExtraCommands>
      <Add after="if exist $(TargetPath).manifest mt.exe -manifest $(TargetPath).manifest -outputresource:$(TargetPath);2" />
   </ExtraCommands>
</Target>

The linker is looking for an existing libapr-2.dll file or will create it?

SK

ollydbg

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Jenna

Quote from: ollydbg on September 15, 2011, 03:37:37 PM
Sounds like a compiler problem, you should read: 2.14 Q: How do I troubleshoot an compiler problem?
You can post the relevant parts of the build log here, after setting compiler logging to full commandline.
And please, please use code-tags if you post such an amount of output here.

somostetoikilato


-------------- Clean: Win32 Release in libapr ---------------
Cleaned "libapr - Win32 Release"
-------------- Build: Win32 Release in libapr ---------------
mingw32-gcc.exe  -O2 -g -W -DWIN32 -DNDEBUG -D_WINDOWS -DAPR_DECLARE_EXPORT -DWINNT    -I.\include -I.\include\private -I.\include\arch\win32 -I.\include\arch\unix -ID:\temp\expat\expat-2.0.1\lib  -c D:\temp\asf\apr\trunk\atomic\win32\apr_atomic.c -o Release\atomic\win32\apr_atomic.o

...

mingw32-g++.exe -shared -Wl,--output-def=Release\libapr-2.dll.def -Wl,--out-implib=Release\libapr-2.dll.a -Wl,--dll -LD:\temp\expat\expat-2.0.1\win32\bin\Release\dlls  Release\atomic\win32\apr_atomic.o Release\buckets\apr_brigade.o Release\buckets\apr_buckets.o Release\buckets\apr_buckets_alloc.o Release\buckets\apr_buckets_eos.o Release\buckets\apr_buckets_file.o Release\buckets\apr_buckets_flush.o Release\buckets\apr_buckets_heap.o Release\buckets\apr_buckets_mmap.o Release\buckets\apr_buckets_pipe.o Release\buckets\apr_buckets_pool.o Release\buckets\apr_buckets_refcount.o Release\buckets\apr_buckets_simple.o Release\buckets\apr_buckets_socket.o Release\crypto\apr_md4.o Release\crypto\apr_md5.o Release\crypto\apr_sha1.o Release\crypto\getuuid.o Release\crypto\uuid.o Release\dbd\apr_dbd.o Release\dbd\apr_dbd_freetds.o Release\dbd\apr_dbd_mysql.o Release\dbd\apr_dbd_odbc.o Release\dbd\apr_dbd_oracle.o Release\dbd\apr_dbd_pgsql.o Release\dbd\apr_dbd_sqlite2.o Release\dbd\apr_dbd_sqlite3.o Release\dbm\apr_dbm.o Release\dbm\apr_dbm_berkeleydb.o Release\dbm\apr_dbm_gdbm.o Release\dbm\apr_dbm_sdbm.o Release\dbm\sdbm\sdbm.o Release\dbm\sdbm\sdbm_hash.o Release\dbm\sdbm\sdbm_lock.o Release\dbm\sdbm\sdbm_pair.o Release\dso\win32\dso.o Release\encoding\apr_base64.o Release\file_io\unix\copy.o Release\file_io\unix\fileacc.o Release\file_io\unix\filepath_util.o Release\file_io\unix\fullrw.o Release\file_io\unix\mktemp.o Release\file_io\unix\tempdir.o Release\file_io\win32\buffer.o Release\file_io\win32\dir.o Release\file_io\win32\filedup.o Release\file_io\win32\filepath.o Release\file_io\win32\filestat.o Release\file_io\win32\filesys.o Release\file_io\win32\flock.o Release\file_io\win32\open.o Release\file_io\win32\pipe.o Release\file_io\win32\readwrite.o Release\file_io\win32\seek.o Release\hooks\apr_hooks.o Release\locks\win32\proc_mutex.o Release\locks\win32\thread_cond.o Release\locks\win32\thread_mutex.o Release\locks\win32\thread_rwlock.o Release\memcache\apr_memcache.o Release\memory\unix\apr_pools.o Release\misc\unix\errorcodes.o Release\misc\unix\getopt.o Release\misc\unix\otherchild.o Release\misc\unix\version.o Release\misc\win32\apr_app.o Release\misc\win32\charset.o Release\misc\win32\env.o Release\misc\win32\internal.o Release\misc\win32\misc.o Release\misc\win32\rand.o Release\misc\win32\start.o Release\misc\win32\utf8.o Release\mmap\unix\common.o Release\mmap\win32\mmap.o Release\network_io\unix\inet_ntop.o Release\network_io\unix\inet_pton.o Release\network_io\unix\multicast.o Release\network_io\unix\sockaddr.o Release\network_io\unix\socket_util.o Release\network_io\win32\sendrecv.o Release\network_io\win32\sockets.o Release\network_io\win32\sockopt.o Release\passwd\apr_getpass.o Release\poll\unix\poll.o Release\poll\unix\pollcb.o Release\poll\unix\pollset.o Release\poll\unix\select.o Release\poll\unix\wakeup.o Release\random\unix\apr_random.o Release\random\unix\sha2.o Release\random\unix\sha2_glue.o Release\shmem\win32\shm.o Release\strings\apr_cpystrn.o Release\strings\apr_fnmatch.o Release\strings\apr_snprintf.o Release\strings\apr_strings.o Release\strings\apr_strnatcmp.o Release\strings\apr_strtok.o Release\strmatch\apr_strmatch.o Release\tables\apr_hash.o Release\tables\apr_tables.o Release\threadproc\win32\proc.o Release\threadproc\win32\signals.o Release\threadproc\win32\thread.o Release\threadproc\win32\threadpriv.o Release\time\win32\time.o Release\time\win32\timestr.o Release\uri\apr_uri.o Release\user\win32\groupinfo.o Release\user\win32\userinfo.o Release\util-misc\apr_date.o Release\util-misc\apr_queue.o Release\util-misc\apr_reslist.o Release\util-misc\apr_rmm.o Release\util-misc\apr_thread_pool.o Release\util-misc\apu_dso.o Release\xlate\xlate.o Release\xml\apr_xml.o Release\xml\apr_xml_expat.o  Release\libapr.res  -o Release\libapr-2.dll --image-base 0x6EEC0000 --implib Release\libapr-2.lib  -lkernel32 -ladvapi32 -lws2_32 -lmswsock -lole32 -lshell32 -lrpcrt4 -lexpat
mingw32-g++.exe: 0x6EEC0000: No such file or directory
mingw32-g++.exe: Release\libapr-2.lib: No such file or directory
Process terminated with status 1 (0 minutes, 25 seconds)
0 errors, 20 warnings


stahta01

I suggest removing this linker option or fixing this linker option

--image-base 0x6EEC0000


The correct option might be this


--image-base=0x6EEC0000


or this


-Wl,--image-base=0x6EEC0000


or this


-Wl,"--image-base 0x6EEC0000"


Find the documentation of the compiler/Linker/ld to find the correct option.

Tim S.



C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]