[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#448154: [m68k] Nonrepresentational section on output



adding Roman to CC:

* Stephen R Marenka <stephen@marenka.net> [2007-10-26 07:33]:
> Package: gcc-4.2
> Version: 4.2.2-3
> Severity: important
> 
> gcc-4.2 causes other packages to FTBFS on m68k. 
> 
> Please let me know how I can help.
> 
> Thanks,
> 
> Stephen
> 
> 
> gcc -pie hello.c
> 
> | /usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init':
> | (.text+0x2e): undefined reference to `__init_array_start'
> | /usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init':
> | (.text+0x36): undefined reference to `__init_array_end'
> | /usr/bin/ld: a.out: hidden symbol `__init_array_end' isn't defined
> | /usr/bin/ld: final link failed: Nonrepresentable section on output
> | collect2: ld returned 1 exit statue
> 
> hello.c:
> 
> void main(void)
> {
>         printf("Hello world\n");
> }
> 
> 
> -- 
> Stephen R. Marenka     If life's not fun, you're not doing it right!
> <stephen@marenka.net>

> Using built-in specs.
> Target: m68k-linux-gnu
> Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --disable-libssp --disable-werror --enable-checking=release --build=m68k-linux-gnu --host=m68k-linux-gnu --target=m68k-linux-gnu
> Thread model: posix
> gcc version 4.2.3 20071014 (prerelease) (Debian 4.2.2-3)
>  /usr/lib/gcc/m68k-linux-gnu/4.2.3/cc1 -E -quiet -v -D__HAVE_68881__ hello.c -fpch-preprocess -o hello.i
> ignoring nonexistent directory "/usr/local/include/m68k-linux-gnu"
> ignoring nonexistent directory "/usr/lib/gcc/m68k-linux-gnu/4.2.3/../../../../m68k-linux-gnu/include"
> ignoring nonexistent directory "/usr/include/m68k-linux-gnu"
> #include "..." search starts here:
> #include <...> search starts here:
>  /usr/local/include
>  /usr/lib/gcc/m68k-linux-gnu/4.2.3/include
>  /usr/include
> End of search list.
>  /usr/lib/gcc/m68k-linux-gnu/4.2.3/cc1 -fpreprocessed hello.i -quiet -dumpbase hello.c -auxbase hello -version -o hello.s
> GNU C version 4.2.3 20071014 (prerelease) (Debian 4.2.2-3) (m68k-linux-gnu)
> 	compiled by GNU C version 4.2.3 20071014 (prerelease) (Debian 4.2.2-3).
> GGC heuristics: --param ggc-min-expand=48 --param ggc-min-heapsize=33855
> Compiler executable checksum: b6ee2c8262cd27f496da7f6c67bc0cbe
> hello.c: In function ‘main’:
> hello.c:3: warning: incompatible implicit declaration of built-in function ‘printf’
> hello.c:2: warning: return type of ‘main’ is not ‘int’
>  as -V -Qy -o hello.o hello.s
> GNU assembler version 2.18 (m68k-linux-gnu) using BFD version (GNU Binutils for Debian) 2.18
>  /usr/lib/gcc/m68k-linux-gnu/4.2.3/collect2 --eh-frame-hdr -m m68kelf -dynamic-linker /lib/ld.so.1 -pie /usr/lib/gcc/m68k-linux-gnu/4.2.3/../../../Scrt1.o /usr/lib/gcc/m68k-linux-gnu/4.2.3/../../../crti.o /usr/lib/gcc/m68k-linux-gnu/4.2.3/crtbeginS.o -L/usr/lib/gcc/m68k-linux-gnu/4.2.3 -L/usr/lib/gcc/m68k-linux-gnu/4.2.3 -L/usr/lib/gcc/m68k-linux-gnu/4.2.3/../../.. hello.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/m68k-linux-gnu/4.2.3/crtendS.o /usr/lib/gcc/m68k-linux-gnu/4.2.3/../../../crtn.o
> /usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init':
> (.text+0x2e): undefined reference to `__init_array_start'
> /usr/lib/libc_nonshared.a(elf-init.oS): In function `__libc_csu_init':
> (.text+0x36): undefined reference to `__init_array_end'
> /usr/bin/ld: a.out: hidden symbol `__init_array_end' isn't defined
> /usr/bin/ld: final link failed: Nonrepresentable section on output
> collect2: ld returned 1 exit status

-- 
Martin Michlmayr
http://www.cyrius.com/




Reply to: