cygport cross-compiling beta1

Charles Wilson cygwin@cwilson.fastmail.fm
Sun Jul 25 06:00:00 GMT 2010


On 7/24/2010 12:32 AM, Charles Wilson wrote:
> On 7/19/2010 9:49 PM, Yaakov (Cygwin/X) wrote:
>> On Sat, 2010-07-17 at 16:26 -0400, Charles Wilson wrote:
> 
> [linux toolchain]
> I'll try again, only this time using *your* linux-gcc pre-compiled
> compiler package.

Same problem. Using Yaakov's latest pre-built linux cross compiler, and
the latest linux-glibc src package, I attempted to rebuild.

First I had the same problem where -jN was too aggressive on my quad
core box, so I backed that down to -j1.  But then I had a link error at
the very end of the build:


i686-pc-linux-gnu-gcc   -nostdlib -nostartfiles -r -o
/usr/src/devel/cross/linux/linux-i686-glibc-2.11.2-1/build/elf/librtld.os '-Wl,-('
/usr/src/devel/cross/linux/linux-i686-glibc-2.11.2-1/build/elf/dl-allobjs.os
/usr/src/devel/cross/linux/linux-i686-glibc-2.11.2-1/build/elf/rtld-libc.a
-lgcc '-Wl,-)' \

-Wl,-Map,/usr/src/devel/cross/linux/linux-i686-glibc-2.11.2-1/build/elf/librtld.os.map
i686-pc-linux-gnu-gcc   -nostdlib -nostartfiles -shared         \
                  -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both
-Wl,-z,defs -Wl,--verbose 2>&1 |  \
                  LC_ALL=C \
                  sed -e '/^=========/,/^=========/!d;/^=========/d'    \
                      -e 's/\. = .* + SIZEOF_HEADERS;/& _begin = . -
SIZEOF_HEADERS;/' \
                  >
/usr/src/devel/cross/linux/linux-i686-glibc-2.11.2-1/build/elf/ld.so.lds
i686-pc-linux-gnu-gcc   -nostdlib -nostartfiles -shared -o
/usr/src/devel/cross/linux/linux-i686-glibc-2.11.2-1/build/elf/ld.so\
                  -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both
-Wl,-z,defs       \

/usr/src/devel/cross/linux/linux-i686-glibc-2.11.2-1/build/elf/librtld.os -Wl,--version-script=/usr/src/devel/cross/linux/linux-i686-glibc-2.11.2-1/build/ld.map
             \
                  -Wl,-soname=ld-linux.so.2 -T
/usr/src/devel/cross/linux/linux-i686-glibc-2.11.2-1/build/elf/ld.so.lds
/usr/src/devel/cross/linux/linux-i686-glibc-2.11.2-1/build/elf/librtld.os:
In function `.L125':
rtld.c:(.text+0x1149): undefined reference to `__open'
rtld.c:(.text+0x1328): undefined reference to `__access'
/usr/src/devel/cross/linux/linux-i686-glibc-2.11.2-1/build/elf/librtld.os:
In function `dl_main':
rtld.c:(.text+0x225a): undefined reference to `__access'
/usr/src/devel/cross/linux/linux-i686-glibc-2.11.2-1/build/elf/librtld.os:
In function `lose':
dl-load.c:(.text+0x4c28): undefined reference to `__close'
/usr/src/devel/cross/linux/linux-i686-glibc-2.11.2-1/build/elf/librtld.os:
In function `open_verify':
dl-load.c:(.text+0x4d92): undefined reference to `__open'
dl-load.c:(.text+0x4da6): undefined reference to `rtld_errno'
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../i686-pc-linux-gnu/bin/ld:
/usr/src/devel/cross/linux/linux-i686-glibc-2.11.2-1/build/elf/librtld.os:
relocation R_386_GOTOFF against undefined hidden symbol `rtld_errno' can
not be used when making a shared object
/usr/lib/gcc/i686-pc-linux-gnu/4.5.1/../../../../i686-pc-linux-gnu/bin/ld:
final link failed: Bad value
collect2: ld returned 1 exit status


I've put the config.log and the -compile.log here (even lzma compressed,
they are over 100K):
http://cygwin.cwilson.fastmail.fm/ITP/logs.lzma

--
Chuck



More information about the Cygwin-apps mailing list