Kann nach Update keine Ports und C-Programme bauen

xcvb

Well-Known Member
Hallo.
Ich habe mir gestern per SVN die STABLE-9 Sourcen geladen und neu übersetzt und installiert. Hat soweit ohne Probleme funktioniert. Jetzt wollte ich meine Ports neu bauen bevor ich die alten Libs lösche. Leider bekomme ich keine Ports (in diesem Fall libtool) mehr gebaut und auch ein compilen des bekannten "hallo welt"-Programms schlägt fehl.

Hier ein Teil der Ausgabe von libtool:
Code:
...
checking for gcc... cc
checking whether the C compiler works... no
configure: error: in `/tmp/usr/ports/devel/libtool/work/libtool-2.4.2`:
configure: error: C compiler cannot create executables
See `config.log` for more details
....

hier die Ausgabe von 'cc -o hello hello.c'
Code:
/usr/lib/crt1.o: could not read symbols: File format not recognized

Mein Portstree ist aktuell und ich habe auch keine obskuren Compilerflags in /etc/make.conf.

Was ich ebenfalls versucht habe ist ein:
Code:
make -C /usr/ports/devel/libtool rmconfig-recursive
make -C /usr/ports/devel/libtool clean

Tante Google hat mir nicht geholfen. Hat jemand ne Idee was hier schief läuft?
 
Das klingt nicht gut... Einmal die Ausgabe von `file /usr/lib/crt1.o` bitte, um zu sehen ob auch das richtige in der Datei steht.
 
Code:
# file /usr/lib/crt1.o
/usr/lib/crt1.o: ELF 32-bit LSB relocatable, Intel 80386, version 1 (FreeBSD), for FreeBSD 9.1 (901504), not stripped
 
Wenn es ein FreeBSD/i386 ist, ist das richtig. Ich überlasse dann andern das Feld...
 
Von welcher Version bist du denn gekommen?
Sollte FreeBSD 9.1 nicht clang als Standard Compiler nutzen? Dann würde mich nicht wundern wenn eine gcc Version von 8.x sich verläuft. evtl mal clang in der make.conf angeben?

HTH
 
Ich bin auch etwas ratlos was das sein könnte. Was sagt denn readelf -a zu /usr/lib/crt1.o?
 
Gestern gab es zumindest auf einem Server für die Updates mit portsnap ein Problem mit dem Download. Nun würde ich nicht darauf wetten, daß ein eventuell mit svn abgeholter Portstree von Gestern einwandfrei ist.
 
Code:
# readelf -a /usr/lib/crt1.o

ELF Header:
  Magic:	7f 45 4c 46 01 01 01 09 00 00 00 00 00 00 00 00
  Class:				ELF32
  Data:					2's complement, little endian
  Version:			        1 (current)
  OS/ABI:				UNIX - FreeBSD
  ABI Version:			0
  Type:				REL (Relocatable file)
  Machine:				Intel 80386
  Version:				0x1
  Entry point address:		0x0
  Start of program headers:	0 (bytes into file)
  Start of section headers:	764 (bytes into file)
  Flags:				0x0
  Size of this header:		52 (bytes)
  Size of program headers:	0 (bytes)
  Number of program headers:	0
  Size of section headers:	40 (bytes)
  Number of section headers:		15
  Section header string table index:	12

Section Headers:
  [Nr] Name				Type				Addr		Off		Size	ES Flg Lk Inf Al
  [ 0]					NULL				00000000	000000	000000	00      0   0  0
  [ 1] .note.ABI-tag	NOTE				00000000	000034	000018	00   A  0   0  4
  [ 2] .text			PROGBITS			00000000	000050	0000de	00  AX  0   0 16
  [ 3] .rel.text		REL					00000000	000554	0000a0	08     13   2  4
  [ 4] .rodata.str1.1	PROGBITS			00000000	00012e	000001	01 AMS  0   0  1
  [ 5] .eh_frame		PROGBITS			00000000	000130	000034	00   A  0   0  4
  [ 6] .rel.eh_frame	REL					00000000	0005f4	000008	08     13   5  4
  [ 7] .data			PROGBITS			00000000	000164	000004	00  WA  0   0  4
  [ 8] .rel.data		REL					00000000	0005fc	000008	       13   7  4
  [ 9] .bss				NOBITS				00000000	000168	000000	00  WA  0   0  4
  [10] .comment			PROGBITS			00000000	000168	00011b	00      0   0  1
  [11] .note.GNU-stack	PROGBITS			00000000	000283	000000	00      0   0  1
  [12] .shstrtab		STRTAB				00000000	000283	000078	00      0   0  1
  [13] .symtab			SYMTAB				00000000	000604	0001a0	10     14  12  4
  [14] .strtab			STRTAB				00000000	0007a4	000084	00      1   0  1
Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings)
I (info), L (link order), G (group), x (unknown)
O (extra OS processing required) o (OS specific), p (processor specific)

There are no section groups in this file.

There are no program headers in this file.

Relocation section '.rel.text' at offset 0x554 contains 20 entries:
readelf: Error: Unable to read in 0x1a0 bytes of symbols

Relocation section '.rel.eh_frame' at offset 0x5f4 contains 1 entries:
readelf: Error: Unable to read in 0x1a0 bytes of symbols

Relocation section '.rel.data' at offset 0x5fc contains 1 entries:
readelf: Error: Unable to read in 0x1a0 bytes of symbols

There are no relocations in this file.

There are no unwind sections in this file.

Symbol table '.symtab' contains 26 entries:
	Num:	Value	Size	Type	Bind	Vis 	Ndx Name
readelf: Error: Unable to read in 0x1a0 bytes of symbols

No version information found in this file.

Notes at offset 0x00000034 with length 0x00000018:
  Owner		Data Size		Description
  FreeBSD	0x00000004		NT_VERSION (version)
 
Zurück
Oben